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

cmdremoveumlobject.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 CMDREMOVEUMLOBJECT_H
12 #define CMDREMOVEUMLOBJECT_H
13
14 #include "umlobject.h"
15 #include <QUndoCommand>
16
17 namespace Uml
18 {
19 class CmdRemoveUMLObject : public QUndoCommand
20 {
21 public:
22 explicit CmdRemoveUMLObject(UMLObject* o);
23 ~CmdRemoveUMLObject();
24
25 void redo();
26 void undo();
27
28 private:
29 UMLObject *m_obj;
30 };
31 }
32
33 #endif
cmdremoveumlobject.h
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1883
Uml::CmdRemoveUMLObject::redo
void redo()
Definition: cmdremoveumlobject.cpp:43
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1180
Uml::CmdRemoveUMLObject::undo
void undo()
Definition: cmdremoveumlobject.cpp:52
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1985
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdRemoveUMLObject
Definition: cmdremoveumlobject.h:20
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLDoc
Definition: umldoc.h:75
Uml
Definition: basictypes.cpp:37
Uml::CmdRemoveUMLObject::CmdRemoveUMLObject
CmdRemoveUMLObject(UMLObject *o)
Definition: cmdremoveumlobject.cpp:26
uml.h
Uml::CmdRemoveUMLObject::m_obj
UMLObject * m_obj
Definition: cmdremoveumlobject.h:29
umlobject.h
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
Uml::CmdRemoveUMLObject::~CmdRemoveUMLObject
~CmdRemoveUMLObject()
Definition: cmdremoveumlobject.cpp:36