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