umbrello  2.31.70
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:
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
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
void redo()
Definition: cmdrenameumlinstancetype.cpp:33
Definition: basictypes.cpp:36
Definition: cmdrenameumlinstancetype.h:24
QPointer< UMLInstance > m_obj
Definition: cmdrenameumlinstancetype.h:34
~CmdRenameUMLInstanceType()
Definition: cmdrenameumlinstancetype.cpp:29
QPointer< UMLClassifier > m_type
Definition: cmdrenameumlinstancetype.h:35
void undo()
Definition: cmdrenameumlinstancetype.cpp:38
Non-graphical Information for an Instance.
Definition: instance.h:26
QPointer< UMLClassifier > m_oldType
Definition: cmdrenameumlinstancetype.h:36
CmdRenameUMLInstanceType(UMLInstance *o, UMLClassifier *type)
Definition: cmdrenameumlinstancetype.cpp:21