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

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

cmdcreateumlobject.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 CMDCREATEUMLOBJECT_H
12 #define CMDCREATEUMLOBJECT_H
13
14 #include "umlobject.h"
15 #include <QDomElement>
16 #include <QUndoCommand>
17
18 class UMLPackage;
19
20 namespace Uml
21 {
22 class CmdCreateUMLObject : public QUndoCommand
23 {
24 public:
25 explicit CmdCreateUMLObject(UMLObject* o);
26 ~CmdCreateUMLObject();
27
28 void redo();
29 void undo();
30
31 private:
32 UMLObject *m_obj;
33 UMLPackage *m_package;
34 UMLObject::ObjectType m_type;
35 QString m_name;
36 bool m_skipSignal;
37 };
38 }
39
40 #endif
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:81
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
Uml::CmdCreateUMLObject
Definition: cmdcreateumlobject.h:23
Uml::CmdCreateUMLObject::~CmdCreateUMLObject
~CmdCreateUMLObject()
Definition: cmdcreateumlobject.cpp:43
Uml::CmdCreateUMLObject::m_name
QString m_name
Definition: cmdcreateumlobject.h:35
Uml::CmdCreateUMLObject::m_obj
UMLObject * m_obj
Definition: cmdcreateumlobject.h:32
Uml::CmdCreateUMLObject::CmdCreateUMLObject
CmdCreateUMLObject(UMLObject *o)
Definition: cmdcreateumlobject.cpp:28
Uml::CmdCreateUMLObject::m_package
UMLPackage * m_package
Definition: cmdcreateumlobject.h:33
Uml::CmdCreateUMLObject::m_type
UMLObject::ObjectType m_type
Definition: cmdcreateumlobject.h:34
Uml::CmdCreateUMLObject::m_skipSignal
bool m_skipSignal
Definition: cmdcreateumlobject.h:36
Uml::CmdCreateUMLObject::redo
void redo()
Definition: cmdcreateumlobject.cpp:50
Uml::CmdCreateUMLObject::undo
void undo()
Definition: cmdcreateumlobject.cpp:77
Uml
Definition: basictypes.cpp:37
umlobject.h