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

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
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::CmdRemoveUMLObject
Definition: cmdremoveumlobject.h:20
Uml::CmdRemoveUMLObject::redo
void redo()
Definition: cmdremoveumlobject.cpp:43
Uml::CmdRemoveUMLObject::m_obj
UMLObject * m_obj
Definition: cmdremoveumlobject.h:29
Uml::CmdRemoveUMLObject::undo
void undo()
Definition: cmdremoveumlobject.cpp:52
Uml::CmdRemoveUMLObject::CmdRemoveUMLObject
CmdRemoveUMLObject(UMLObject *o)
Definition: cmdremoveumlobject.cpp:26
Uml::CmdRemoveUMLObject::~CmdRemoveUMLObject
~CmdRemoveUMLObject()
Definition: cmdremoveumlobject.cpp:36
Uml
Definition: basictypes.cpp:37
umlobject.h