umbrello  2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdremovediagram.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) 2012-2014 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CMDREMOVEDIAGRAM_H
12 #define CMDREMOVEDIAGRAM_H
13 
14 #include "basictypes.h"
15 
16 #include <QDomElement>
17 #include <QUndoCommand>
18 
19 class UMLFolder;
20 
21 namespace Uml
22 {
23  class CmdRemoveDiagram : public QUndoCommand
24  {
25  public:
26  explicit CmdRemoveDiagram(UMLFolder* folder,
28  const QString& name,
29  Uml::ID::Type id);
31 
32  void redo();
33  void undo();
34 
35  private:
38  QString m_name;
40  QDomElement m_element;
41  };
42 }
43 
44 #endif
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
Definition: cmdremovediagram.h:24
void redo()
Definition: cmdremovediagram.cpp:62
CmdRemoveDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id)
Definition: cmdremovediagram.cpp:26
~CmdRemoveDiagram()
Definition: cmdremovediagram.cpp:58
UMLFolder * m_folder
Definition: cmdremovediagram.h:36
void undo()
Definition: cmdremovediagram.cpp:67
QString m_name
Definition: cmdremovediagram.h:38
Uml::DiagramType::Enum m_type
Definition: cmdremovediagram.h:37
Uml::ID::Type m_sceneId
Definition: cmdremovediagram.h:39
QDomElement m_element
Definition: cmdremovediagram.h:40
Enum
Definition: basictypes.h:77
std::string Type
Definition: basictypes.h:385
Definition: basictypes.cpp:37