umbrello: umbrello/cmds/widget/cmdremovewidget.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

cmdremovewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CMDREMOVEWIDGET_H
7#define CMDREMOVEWIDGET_H
8
9#include "cmdbasewidgetcommand.h"
10
11#include <QDomElement>
12
13class AssociationWidget;
14class UMLWidget;
15
16namespace Uml
17{
18 class CmdRemoveWidget : public CmdBaseWidgetCommand
19 {
20 public:
21 explicit CmdRemoveWidget(UMLWidget* widget);
22 CmdRemoveWidget(AssociationWidget *widget);
23 ~CmdRemoveWidget();
24
25 void redo();
26 void undo();
27
28 private:
29 QDomElement m_element;
30 QList<QDomElement> m_children;
31 };
32}
33
34#endif
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition associationwidget.h:47
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
Uml::CmdBaseWidgetCommand
Definition cmdbasewidgetcommand.h:21
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition cmdbasewidgetcommand.cpp:71
Uml::CmdRemoveWidget
Definition cmdremovewidget.h:19
Uml::CmdRemoveWidget::CmdRemoveWidget
CmdRemoveWidget(UMLWidget *widget)
Definition cmdremovewidget.cpp:23
Uml::CmdRemoveWidget::m_children
QList< QDomElement > m_children
Definition cmdremovewidget.h:30
Uml::CmdRemoveWidget::redo
void redo()
Definition cmdremovewidget.cpp:108
Uml::CmdRemoveWidget::~CmdRemoveWidget
~CmdRemoveWidget()
Definition cmdremovewidget.cpp:101
Uml::CmdRemoveWidget::m_element
QDomElement m_element
Definition cmdremovewidget.h:29
Uml::CmdRemoveWidget::undo
void undo()
Definition cmdremovewidget.cpp:119
cmdbasewidgetcommand.h
Uml
Definition basictypes.cpp:18