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

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

cmdcreatewidget.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 CMDCREATEWIDGET_H
12 #define CMDCREATEWIDGET_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QDomElement>
17
18 class AssociationWidget;
19 class UMLWidget;
20
21 namespace Uml
22 {
23 class CmdCreateWidget : public CmdBaseWidgetCommand
24 {
25 public:
26 explicit CmdCreateWidget(UMLWidget *widget);
27 CmdCreateWidget(AssociationWidget *widget);
28 ~CmdCreateWidget();
29
30 void redo();
31 void undo();
32
33 private:
34 QDomElement m_element;
35 };
36 }
37
38 #endif
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:51
Uml::CmdCreateWidget
Definition: cmdcreatewidget.h:23
cmdcreatewidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:40
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
Uml::CmdBaseWidgetCommand::scene
UMLScene * scene()
Definition: cmdbasewidgetcommand.cpp:73
cmdbasewidgetcommand.h
Uml::CmdBaseWidgetCommand::assocWidget
AssociationWidget * assocWidget()
Definition: cmdbasewidgetcommand.cpp:94
model_utils.h
Uml::CmdCreateWidget::redo
void redo()
Definition: cmdcreatewidget.cpp:74
UMLScene::addAssociation
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Definition: umlscene.cpp:2080
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:25
i18n
#define i18n
Definition: main.cpp:39
UMLScene::loadWidgetFromXMI
UMLWidget * loadWidgetFromXMI(QDomElement &widgetElement)
Definition: umlscene.cpp:3959
Uml::CmdBaseWidgetCommand::m_assocWidget
QPointer< AssociationWidget > m_assocWidget
Definition: cmdbasewidgetcommand.h:37
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:84
Uml::CmdBaseWidgetCommand::m_isAssoc
bool m_isAssoc
Definition: cmdbasewidgetcommand.h:38
Uml::CmdCreateWidget::undo
void undo()
Definition: cmdcreatewidget.cpp:112
UMLScene::findWidget
UMLWidget * findWidget(Uml::ID::Type id)
Definition: umlscene.cpp:1184
Uml
Definition: basictypes.cpp:36
Uml::CmdCreateWidget::m_element
QDomElement m_element
Definition: cmdcreatewidget.h:34
associationwidget.h
umlscene.h
uml.h
Uml::CmdBaseWidgetCommand::addWidgetToScene
void addWidgetToScene(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:109
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
Uml::CmdCreateWidget::CmdCreateWidget
CmdCreateWidget(UMLWidget *widget)
Definition: cmdcreatewidget.cpp:37
Uml::CmdBaseWidgetCommand::m_widgetId
Uml::ID::Type m_widgetId
Definition: cmdbasewidgetcommand.h:34
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
Uml::CmdCreateWidget::~CmdCreateWidget
~CmdCreateWidget()
Definition: cmdcreatewidget.cpp:67
UMLScene::findAssocWidget
AssociationWidget * findAssocWidget(Uml::ID::Type id)
Definition: umlscene.cpp:1213
WidgetBase::id
Uml::ID::Type id() const
Definition: widgetbase.cpp:214
Uml::CmdBaseWidgetCommand::removeWidgetFromScene
void removeWidgetFromScene(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:144