umbrello: umbrello/cmds/widget/cmdremovewidget.h Source File

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

cmdremovewidget.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CMDREMOVEWIDGET_H
12 #define CMDREMOVEWIDGET_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QDomElement>
17
18 class AssociationWidget;
19 class UMLWidget;
20
21 namespace Uml
22 {
23 class CmdRemoveWidget : public CmdBaseWidgetCommand
24 {
25 public:
26 explicit CmdRemoveWidget(UMLWidget* widget);
27 CmdRemoveWidget(AssociationWidget *widget);
28 ~CmdRemoveWidget();
29
30 void redo();
31 void undo();
32
33 private:
34 QDomElement m_element;
35 QList<QDomElement> m_children;
36 };
37 }
38
39 #endif
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
Uml::CmdRemoveWidget
Definition: cmdremovewidget.h:24
Uml::CmdRemoveWidget::CmdRemoveWidget
CmdRemoveWidget(UMLWidget *widget)
Definition: cmdremovewidget.cpp:27
Uml::CmdRemoveWidget::m_children
QList< QDomElement > m_children
Definition: cmdremovewidget.h:35
Uml::CmdRemoveWidget::redo
void redo()
Definition: cmdremovewidget.cpp:109
Uml::CmdRemoveWidget::~CmdRemoveWidget
~CmdRemoveWidget()
Definition: cmdremovewidget.cpp:102
Uml::CmdRemoveWidget::m_element
QDomElement m_element
Definition: cmdremovewidget.h:34
Uml::CmdRemoveWidget::undo
void undo()
Definition: cmdremovewidget.cpp:120
cmdbasewidgetcommand.h
Uml
Definition: basictypes.cpp:37