umbrello
2.39.0
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
umbrello
cmds
widget
cmdbasewidgetcommand.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 CMDBASEWIDGETCOMMAND_H
7
#define CMDBASEWIDGETCOMMAND_H
8
9
#include "
basictypes.h
"
10
11
#include <QPointer>
12
#include <QUndoCommand>
13
14
class
AssociationWidget
;
15
class
UMLScene
;
16
class
UMLWidget
;
17
18
namespace
Uml
19
{
20
class
CmdBaseWidgetCommand
:
public
QUndoCommand
21
{
22
public
:
23
explicit
CmdBaseWidgetCommand
(
UMLWidget
*
widget
);
24
CmdBaseWidgetCommand
(
AssociationWidget
*
widget
);
25
virtual
~CmdBaseWidgetCommand
();
26
27
protected
:
28
Uml::ID::Type
m_sceneId
;
29
Uml::ID::Type
m_widgetId
;
30
QPointer<UMLScene>
m_scene
;
31
QPointer<UMLWidget>
m_widget
;
32
QPointer<AssociationWidget>
m_assocWidget
;
33
bool
m_isAssoc
;
34
35
void
setWidget
(
UMLWidget
*
widget
);
36
void
setWidget
(
AssociationWidget
*
widget
);
37
void
addWidgetToScene
(
UMLWidget
*
widget
);
38
void
addWidgetToScene
(
AssociationWidget
*
widget
);
39
void
removeWidgetFromScene
(
UMLWidget
*
widget
);
40
void
removeWidgetFromScene
(
AssociationWidget
*
widget
);
41
UMLWidget
*
widget
();
42
AssociationWidget
*
assocWidget
();
43
UMLScene
*
scene
();
44
};
45
}
46
47
#endif
// CMDBASEWIDGETCOMMAND_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition
associationwidget.h:47
UMLScene
Definition
umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition
umlwidget.h:36
Uml::CmdBaseWidgetCommand
Definition
cmdbasewidgetcommand.h:21
Uml::CmdBaseWidgetCommand::assocWidget
AssociationWidget * assocWidget()
Definition
cmdbasewidgetcommand.cpp:81
Uml::CmdBaseWidgetCommand::addWidgetToScene
void addWidgetToScene(UMLWidget *widget)
Definition
cmdbasewidgetcommand.cpp:96
Uml::CmdBaseWidgetCommand::m_scene
QPointer< UMLScene > m_scene
Definition
cmdbasewidgetcommand.h:30
Uml::CmdBaseWidgetCommand::scene
UMLScene * scene()
Definition
cmdbasewidgetcommand.cpp:60
Uml::CmdBaseWidgetCommand::removeWidgetFromScene
void removeWidgetFromScene(UMLWidget *widget)
Definition
cmdbasewidgetcommand.cpp:131
Uml::CmdBaseWidgetCommand::m_widget
QPointer< UMLWidget > m_widget
Definition
cmdbasewidgetcommand.h:31
Uml::CmdBaseWidgetCommand::m_assocWidget
QPointer< AssociationWidget > m_assocWidget
Definition
cmdbasewidgetcommand.h:32
Uml::CmdBaseWidgetCommand::m_widgetId
Uml::ID::Type m_widgetId
Definition
cmdbasewidgetcommand.h:29
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition
cmdbasewidgetcommand.cpp:71
Uml::CmdBaseWidgetCommand::setWidget
void setWidget(UMLWidget *widget)
Definition
cmdbasewidgetcommand.cpp:38
Uml::CmdBaseWidgetCommand::m_isAssoc
bool m_isAssoc
Definition
cmdbasewidgetcommand.h:33
Uml::CmdBaseWidgetCommand::~CmdBaseWidgetCommand
virtual ~CmdBaseWidgetCommand()
Definition
cmdbasewidgetcommand.cpp:34
Uml::CmdBaseWidgetCommand::m_sceneId
Uml::ID::Type m_sceneId
Definition
cmdbasewidgetcommand.h:28
Uml::CmdBaseWidgetCommand::CmdBaseWidgetCommand
CmdBaseWidgetCommand(UMLWidget *widget)
Definition
cmdbasewidgetcommand.cpp:22
Uml::ID::Type
std::string Type
Definition
basictypes.h:371
Uml
Definition
basictypes.cpp:17
Generated by
1.10.0