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

cmdrenameumlobject.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2014 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CMDRENAMEUMLOBJECT_H
12 #define CMDRENAMEUMLOBJECT_H
13
14 #include <QUndoCommand>
15
16 class UMLObject;
17
18 namespace Uml
19 {
20 class CmdRenameUMLObject : public QUndoCommand
21 {
22 public:
23 CmdRenameUMLObject(UMLObject* o, const QString& name);
24 ~CmdRenameUMLObject();
25
26 void redo();
27 void undo();
28
29 private:
30 UMLObject* m_obj;
31 QString m_name;
32 QString m_oldname;
33 };
34 }
35
36 #endif
Uml::CmdRenameUMLObject
Definition: cmdrenameumlobject.h:21
Uml::CmdRenameUMLObject::m_oldname
QString m_oldname
Definition: cmdrenameumlobject.h:32
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Uml::CmdRenameUMLObject::CmdRenameUMLObject
CmdRenameUMLObject(UMLObject *o, const QString &name)
Definition: cmdrenameumlobject.cpp:22
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::CmdRenameUMLObject::undo
void undo()
Definition: cmdrenameumlobject.cpp:38
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdRenameUMLObject::m_obj
UMLObject * m_obj
Definition: cmdrenameumlobject.h:30
cmdrenameumlobject.h
Uml
Definition: basictypes.cpp:37
Uml::CmdRenameUMLObject::m_name
QString m_name
Definition: cmdrenameumlobject.h:31
umlobject.h
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:202
Uml::CmdRenameUMLObject::redo
void redo()
Definition: cmdrenameumlobject.cpp:33
Uml::CmdRenameUMLObject::~CmdRenameUMLObject
~CmdRenameUMLObject()
Definition: cmdrenameumlobject.cpp:29