umbrello 2.32.3 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::ObjectType
ObjectType
Definition: umlobject.h:80
Uml::CmdCreateUMLObject::CmdCreateUMLObject
CmdCreateUMLObject(UMLObject *o)
Definition: cmdcreateumlobject.cpp:28
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Uml::CmdCreateUMLObject::~CmdCreateUMLObject
~CmdCreateUMLObject()
Definition: cmdcreateumlobject.cpp:43
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1883
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1985
cmdcreateumlobject.h
Uml::CmdCreateUMLObject::redo
void redo()
Definition: cmdcreateumlobject.cpp:50
Uml::CmdCreateUMLObject::m_name
QString m_name
Definition: cmdcreateumlobject.h:35
Uml::CmdCreateUMLObject::m_skipSignal
bool m_skipSignal
Definition: cmdcreateumlobject.h:36
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
i18n
#define i18n
Definition: main.cpp:39
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
Uml::CmdCreateUMLObject::undo
void undo()
Definition: cmdcreateumlobject.cpp:77
UMLDoc
Definition: umldoc.h:75
Uml
Definition: basictypes.cpp:37
uError
#define uError()
Definition: debug_utils.h:123
uml.h
debug_utils.h
Uml::CmdCreateUMLObject::m_obj
UMLObject * m_obj
Definition: cmdcreateumlobject.h:32
umlobject.h
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
Uml::CmdCreateUMLObject::m_type
UMLObject::ObjectType m_type
Definition: cmdcreateumlobject.h:34
Uml::CmdCreateUMLObject::m_package
UMLPackage * m_package
Definition: cmdcreateumlobject.h:33
package.h
Uml::CmdCreateUMLObject
Definition: cmdcreateumlobject.h:23
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33