umbrello: umbrello/cmds/cmdremovediagram.h Source File

umbrello 2.32.1 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,
27 Uml::DiagramType::Enum type,
28 const QString& name,
29 Uml::ID::Type id);
30 ~CmdRemoveDiagram();
31
32 void redo();
33 void undo();
34
35 private:
36 UMLFolder* m_folder;
37 Uml::DiagramType::Enum m_type;
38 QString m_name;
39 Uml::ID::Type m_sceneId;
40 QDomElement m_element;
41 };
42 }
43
44 #endif
Uml::CmdRemoveDiagram::m_folder
UMLFolder * m_folder
Definition: cmdremovediagram.h:36
umlview.h
Uml::CmdRemoveDiagram::undo
void undo()
Definition: cmdremovediagram.cpp:57
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::CmdRemoveDiagram::m_type
Uml::DiagramType::Enum m_type
Definition: cmdremovediagram.h:37
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1825
Uml::CmdRemoveDiagram::CmdRemoveDiagram
CmdRemoveDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id)
Definition: cmdremovediagram.cpp:24
UMLScene::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlscene.cpp:3738
cmdremovediagram.h
Uml::CmdRemoveDiagram::redo
void redo()
Definition: cmdremovediagram.cpp:52
UMLView
Definition: umlview.h:35
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1646
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdRemoveDiagram
Definition: cmdremovediagram.h:24
basictypes.h
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLDoc
Definition: umldoc.h:75
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
Uml
Definition: basictypes.cpp:37
umlscene.h
uml.h
UMLScene::name
QString name() const
Definition: umlscene.cpp:410
UMLScene
Definition: umlscene.h:69
Uml::CmdRemoveDiagram::m_element
QDomElement m_element
Definition: cmdremovediagram.h:40
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
UMLScene::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlscene.cpp:3813
UMLDoc::findView
UMLView * findView(Uml::ID::Type id)
Definition: umldoc.cpp:1003
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
Uml::CmdRemoveDiagram::m_sceneId
Uml::ID::Type m_sceneId
Definition: cmdremovediagram.h:39
Uml::CmdRemoveDiagram::~CmdRemoveDiagram
~CmdRemoveDiagram()
Definition: cmdremovediagram.cpp:48
Uml::CmdRemoveDiagram::m_name
QString m_name
Definition: cmdremovediagram.h:38