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

cmdcreatediagram.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-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CMDCREATEDIAGRAM_H
12 #define CMDCREATEDIAGRAM_H
13
14 #include "basictypes.h"
15
16 #include <QUndoCommand>
17
18 class UMLDoc;
19 class UMLView;
20 class UMLFolder;
21
22 namespace Uml
23 {
24 class CmdCreateDiagram : public QUndoCommand
25 {
26 public:
27 explicit CmdCreateDiagram(UMLDoc* doc, Uml::DiagramType::Enum type, const QString& name, UMLFolder *parent=0);
28 ~CmdCreateDiagram();
29
30 void redo();
31 void undo();
32 UMLView *view() { return m_pUMLView; }
33
34 private:
35 QString m_name;
36 Uml::DiagramType::Enum m_type;
37 UMLDoc* m_pUMLDoc;
38 UMLView* m_pUMLView;
39 Uml::ID::Type m_sceneId;
40 UMLFolder* m_parent;
41 };
42 }
43
44 #endif
Uml::CmdCreateDiagram::m_pUMLView
UMLView * m_pUMLView
Definition: cmdcreatediagram.h:38
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
Uml::CmdCreateDiagram::m_sceneId
Uml::ID::Type m_sceneId
Definition: cmdcreatediagram.h:39
cmdcreatediagram.h
Uml::CmdCreateDiagram::m_name
QString m_name
Definition: cmdcreatediagram.h:35
Model_Utils::convert_DT_MT
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Definition: model_utils.cpp:1414
umlview.h
Uml::CmdCreateDiagram::m_parent
UMLFolder * m_parent
Definition: cmdcreatediagram.h:40
Uml::CmdCreateDiagram
Definition: cmdcreatediagram.h:25
Uml::CmdCreateDiagram::m_pUMLDoc
UMLDoc * m_pUMLDoc
Definition: cmdcreatediagram.h:37
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3205
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::CmdCreateDiagram::~CmdCreateDiagram
~CmdCreateDiagram()
Definition: cmdcreatediagram.cpp:37
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
model_utils.h
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1827
Uml::CmdCreateDiagram::redo
void redo()
Definition: cmdcreatediagram.cpp:41
Uml::CmdCreateDiagram::view
UMLView * view()
Definition: cmdcreatediagram.h:32
UMLView
Definition: umlview.h:35
Uml::CmdCreateDiagram::CmdCreateDiagram
CmdCreateDiagram(UMLDoc *doc, Uml::DiagramType::Enum type, const QString &name, UMLFolder *parent=0)
Definition: cmdcreatediagram.cpp:23
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1648
i18n
#define i18n
Definition: main.cpp:39
basictypes.h
Uml::DiagramType::toString
QString toString(Enum item)
Definition: basictypes.cpp:168
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
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
Uml::CmdCreateDiagram::m_type
Uml::DiagramType::Enum m_type
Definition: cmdcreatediagram.h:36
UMLScene::ID
Uml::ID::Type ID() const
Definition: umlscene.cpp:442
UMLDoc::findView
UMLView * findView(Uml::ID::Type id)
Definition: umldoc.cpp:1005
umldoc.h
Uml::CmdCreateDiagram::undo
void undo()
Definition: cmdcreatediagram.cpp:55