umbrello  2.32.2
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);
27 
28  void redo();
29  void undo();
30 
31  private:
35  QString m_name;
37  };
38 }
39 
40 #endif
The base class for UML objects.
Definition: umlobject.h:75
ObjectType
Definition: umlobject.h:81
Non-graphical information for a Package.
Definition: package.h:33
Definition: cmdcreateumlobject.h:23
~CmdCreateUMLObject()
Definition: cmdcreateumlobject.cpp:43
QString m_name
Definition: cmdcreateumlobject.h:35
UMLObject * m_obj
Definition: cmdcreateumlobject.h:32
CmdCreateUMLObject(UMLObject *o)
Definition: cmdcreateumlobject.cpp:28
UMLPackage * m_package
Definition: cmdcreateumlobject.h:33
UMLObject::ObjectType m_type
Definition: cmdcreateumlobject.h:34
bool m_skipSignal
Definition: cmdcreateumlobject.h:36
void redo()
Definition: cmdcreateumlobject.cpp:50
void undo()
Definition: cmdcreateumlobject.cpp:77
Definition: basictypes.cpp:37