umbrello
2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
umbrello
cmds
widget
cmdbasewidgetcommand.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 CMDBASEWIDGETCOMMAND_H
12
#define CMDBASEWIDGETCOMMAND_H
13
14
#include "
basictypes.h
"
15
16
#include <QPointer>
17
#include <QUndoCommand>
18
19
class
AssociationWidget
;
20
class
UMLScene
;
21
class
UMLWidget
;
22
23
namespace
Uml
24
{
25
class
CmdBaseWidgetCommand
:
public
QUndoCommand
26
{
27
public
:
28
explicit
CmdBaseWidgetCommand
(
UMLWidget
*
widget
);
29
CmdBaseWidgetCommand
(
AssociationWidget
*
widget
);
30
virtual
~CmdBaseWidgetCommand
();
31
32
protected
:
33
Uml::ID::Type
m_sceneId
;
34
Uml::ID::Type
m_widgetId
;
35
QPointer<UMLScene>
m_scene
;
36
QPointer<UMLWidget>
m_widget
;
37
QPointer<AssociationWidget>
m_assocWidget
;
38
bool
m_isAssoc
;
39
40
void
setWidget
(
UMLWidget
*
widget
);
41
void
setWidget
(
AssociationWidget
*
widget
);
42
void
addWidgetToScene
(
UMLWidget
*
widget
);
43
void
addWidgetToScene
(
AssociationWidget
*
widget
);
44
void
removeWidgetFromScene
(
UMLWidget
*
widget
);
45
void
removeWidgetFromScene
(
AssociationWidget
*
widget
);
46
UMLWidget
*
widget
();
47
AssociationWidget
*
assocWidget
();
48
UMLScene
*
scene
();
49
};
50
}
51
52
#endif
// CMDBASEWIDGETCOMMAND_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition:
associationwidget.h:52
UMLScene
Definition:
umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition:
umlwidget.h:41
Uml::CmdBaseWidgetCommand
Definition:
cmdbasewidgetcommand.h:26
Uml::CmdBaseWidgetCommand::assocWidget
AssociationWidget * assocWidget()
Definition:
cmdbasewidgetcommand.cpp:86
Uml::CmdBaseWidgetCommand::addWidgetToScene
void addWidgetToScene(UMLWidget *widget)
Definition:
cmdbasewidgetcommand.cpp:101
Uml::CmdBaseWidgetCommand::m_scene
QPointer< UMLScene > m_scene
Definition:
cmdbasewidgetcommand.h:35
Uml::CmdBaseWidgetCommand::scene
UMLScene * scene()
Definition:
cmdbasewidgetcommand.cpp:65
Uml::CmdBaseWidgetCommand::removeWidgetFromScene
void removeWidgetFromScene(UMLWidget *widget)
Definition:
cmdbasewidgetcommand.cpp:136
Uml::CmdBaseWidgetCommand::m_widget
QPointer< UMLWidget > m_widget
Definition:
cmdbasewidgetcommand.h:36
Uml::CmdBaseWidgetCommand::m_assocWidget
QPointer< AssociationWidget > m_assocWidget
Definition:
cmdbasewidgetcommand.h:37
Uml::CmdBaseWidgetCommand::m_widgetId
Uml::ID::Type m_widgetId
Definition:
cmdbasewidgetcommand.h:34
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition:
cmdbasewidgetcommand.cpp:76
Uml::CmdBaseWidgetCommand::setWidget
void setWidget(UMLWidget *widget)
Definition:
cmdbasewidgetcommand.cpp:43
Uml::CmdBaseWidgetCommand::m_isAssoc
bool m_isAssoc
Definition:
cmdbasewidgetcommand.h:38
Uml::CmdBaseWidgetCommand::~CmdBaseWidgetCommand
virtual ~CmdBaseWidgetCommand()
Definition:
cmdbasewidgetcommand.cpp:39
Uml::CmdBaseWidgetCommand::m_sceneId
Uml::ID::Type m_sceneId
Definition:
cmdbasewidgetcommand.h:33
Uml::CmdBaseWidgetCommand::CmdBaseWidgetCommand
CmdBaseWidgetCommand(UMLWidget *widget)
Definition:
cmdbasewidgetcommand.cpp:27
Uml::ID::Type
std::string Type
Definition:
basictypes.h:385
Uml
Definition:
basictypes.cpp:37
Generated by
1.9.1