umbrello: umbrello/cmds/generic/cmdrenameumlobject.h Source File

umbrello 2.38.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

cmdrenameumlobject.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CMDRENAMEUMLOBJECT_H
7#define CMDRENAMEUMLOBJECT_H
8
9#include <QUndoCommand>
10
11class UMLObject;
12
13namespace Uml
14{
15 class CmdRenameUMLObject : public QUndoCommand
16 {
17 public:
18 CmdRenameUMLObject(UMLObject* o, const QString& name);
19 ~CmdRenameUMLObject();
20
21 void redo();
22 void undo();
23
24 private:
25 UMLObject* m_obj;
26 QString m_name;
27 QString m_oldname;
28 };
29}
30
31#endif
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
Uml::CmdRenameUMLObject
Definition: cmdrenameumlobject.h:16
Uml::CmdRenameUMLObject::~CmdRenameUMLObject
~CmdRenameUMLObject()
Definition: cmdrenameumlobject.cpp:24
Uml::CmdRenameUMLObject::m_oldname
QString m_oldname
Definition: cmdrenameumlobject.h:27
Uml::CmdRenameUMLObject::m_obj
UMLObject * m_obj
Definition: cmdrenameumlobject.h:25
Uml::CmdRenameUMLObject::undo
void undo()
Definition: cmdrenameumlobject.cpp:33
Uml::CmdRenameUMLObject::m_name
QString m_name
Definition: cmdrenameumlobject.h:26
Uml::CmdRenameUMLObject::redo
void redo()
Definition: cmdrenameumlobject.cpp:28
Uml
Definition: basictypes.cpp:18