umbrello: umbrello/cmds/cmdremovediagram.h Source File

umbrello 2.39.3 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

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