umbrello: umbrello/cmds/cmdcreatediagram.h Source File

umbrello 2.32.0 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
basictypes.h
UMLDoc
Definition: umldoc.h:75
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
UMLView
Definition: umlview.h:35
Uml::CmdCreateDiagram
Definition: cmdcreatediagram.h:25
Uml::CmdCreateDiagram::m_type
Uml::DiagramType::Enum m_type
Definition: cmdcreatediagram.h:36
Uml::CmdCreateDiagram::view
UMLView * view()
Definition: cmdcreatediagram.h:32
Uml::CmdCreateDiagram::m_name
QString m_name
Definition: cmdcreatediagram.h:35
Uml::CmdCreateDiagram::undo
void undo()
Definition: cmdcreatediagram.cpp:55
Uml::CmdCreateDiagram::~CmdCreateDiagram
~CmdCreateDiagram()
Definition: cmdcreatediagram.cpp:37
Uml::CmdCreateDiagram::m_pUMLView
UMLView * m_pUMLView
Definition: cmdcreatediagram.h:38
Uml::CmdCreateDiagram::m_parent
UMLFolder * m_parent
Definition: cmdcreatediagram.h:40
Uml::CmdCreateDiagram::m_pUMLDoc
UMLDoc * m_pUMLDoc
Definition: cmdcreatediagram.h:37
Uml::CmdCreateDiagram::redo
void redo()
Definition: cmdcreatediagram.cpp:41
Uml::CmdCreateDiagram::CmdCreateDiagram
CmdCreateDiagram(UMLDoc *doc, Uml::DiagramType::Enum type, const QString &name, UMLFolder *parent=0)
Definition: cmdcreatediagram.cpp:23
Uml::CmdCreateDiagram::m_sceneId
Uml::ID::Type m_sceneId
Definition: cmdcreatediagram.h:39
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::ID::Type
std::string Type
Definition: basictypes.h:385
Uml
Definition: basictypes.cpp:37