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

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

cmdrenameumlinstancetype.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) 2017 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CMD_RENAME_UMLINSTANCE_TYPE_H
12 #define CMD_RENAME_UMLINSTANCE_TYPE_H
13
14 #include <QPointer>
15 #include <QUndoCommand>
16
17 #include <KLocalizedString>
18
19 class UMLInstance;
20 class UMLClassifier;
21
22 namespace Uml
23 {
24 class CmdRenameUMLInstanceType : public QUndoCommand
25 {
26 public:
27 CmdRenameUMLInstanceType(UMLInstance* o, UMLClassifier *type);
28 ~CmdRenameUMLInstanceType();
29
30 void redo();
31 void undo();
32
33 private:
34 QPointer<UMLInstance> m_obj;
35 QPointer<UMLClassifier> m_type;
36 QPointer<UMLClassifier> m_oldType;
37 };
38 }
39
40 #endif
instance.h
UMLInstance
Non-graphical Information for an Instance.
Definition: instance.h:26
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Uml::CmdRenameUMLInstanceType::m_obj
QPointer< UMLInstance > m_obj
Definition: cmdrenameumlinstancetype.h:34
Uml::CmdRenameUMLInstanceType::CmdRenameUMLInstanceType
CmdRenameUMLInstanceType(UMLInstance *o, UMLClassifier *type)
Definition: cmdrenameumlinstancetype.cpp:29
Uml::CmdRenameUMLInstanceType
Definition: cmdrenameumlinstancetype.h:24
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdRenameUMLInstanceType::~CmdRenameUMLInstanceType
~CmdRenameUMLInstanceType()
Definition: cmdrenameumlinstancetype.cpp:37
Uml::CmdRenameUMLInstanceType::m_type
QPointer< UMLClassifier > m_type
Definition: cmdrenameumlinstancetype.h:35
cmdrenameumlinstancetype.h
UMLInstance::classifier
UMLClassifier * classifier()
Definition: instance.cpp:97
Uml
Definition: basictypes.cpp:36
Uml::CmdRenameUMLInstanceType::redo
void redo()
Definition: cmdrenameumlinstancetype.cpp:41
Uml::CmdRenameUMLInstanceType::undo
void undo()
Definition: cmdrenameumlinstancetype.cpp:46
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
Uml::CmdRenameUMLInstanceType::m_oldType
QPointer< UMLClassifier > m_oldType
Definition: cmdrenameumlinstancetype.h:36