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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

cmdcreatediagram.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2012-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CMDCREATEDIAGRAM_H
7#define CMDCREATEDIAGRAM_H
8
9#include "basictypes.h"
10
11#include <QUndoCommand>
12
13 class UMLDoc;
14 class UMLView;
15 class UMLFolder;
16
17 namespace Uml
18{
19 class CmdCreateDiagram : public QUndoCommand
20 {
21 public:
22 explicit CmdCreateDiagram(UMLDoc* doc, Uml::DiagramType::Enum type, const QString& name, UMLFolder *parent=0);
23 ~CmdCreateDiagram();
24
25 void redo();
26 void undo();
27 UMLView *view() { return m_pUMLView; }
28
29 private:
30 QString m_name;
31 Uml::DiagramType::Enum m_type;
32 UMLDoc* m_pUMLDoc;
33 UMLView* m_pUMLView;
34 Uml::ID::Type m_sceneId;
35 UMLFolder* m_parent;
36 };
37}
38
39#endif
basictypes.h
UMLDoc
Definition umldoc.h:63
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition folder.h:30
UMLView
Definition umlview.h:30
Uml::CmdCreateDiagram
Definition cmdcreatediagram.h:20
Uml::CmdCreateDiagram::m_type
Uml::DiagramType::Enum m_type
Definition cmdcreatediagram.h:31
Uml::CmdCreateDiagram::view
UMLView * view()
Definition cmdcreatediagram.h:27
Uml::CmdCreateDiagram::m_name
QString m_name
Definition cmdcreatediagram.h:30
Uml::CmdCreateDiagram::undo
void undo()
Definition cmdcreatediagram.cpp:50
Uml::CmdCreateDiagram::~CmdCreateDiagram
~CmdCreateDiagram()
Definition cmdcreatediagram.cpp:32
Uml::CmdCreateDiagram::m_pUMLView
UMLView * m_pUMLView
Definition cmdcreatediagram.h:33
Uml::CmdCreateDiagram::m_parent
UMLFolder * m_parent
Definition cmdcreatediagram.h:35
Uml::CmdCreateDiagram::m_pUMLDoc
UMLDoc * m_pUMLDoc
Definition cmdcreatediagram.h:32
Uml::CmdCreateDiagram::redo
void redo()
Definition cmdcreatediagram.cpp:36
Uml::CmdCreateDiagram::CmdCreateDiagram
CmdCreateDiagram(UMLDoc *doc, Uml::DiagramType::Enum type, const QString &name, UMLFolder *parent=0)
Definition cmdcreatediagram.cpp:18
Uml::CmdCreateDiagram::m_sceneId
Uml::ID::Type m_sceneId
Definition cmdcreatediagram.h:34
Uml::DiagramType::Enum
Enum
Definition basictypes.h:63
Uml::ID::Type
std::string Type
Definition basictypes.h:371
Uml
Definition basictypes.cpp:18