umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
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:
30  virtual ~CmdBaseWidgetCommand();
31 
32  protected:
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);
46  UMLWidget* widget();
48  UMLScene* scene();
49  };
50 }
51 
52 #endif // CMDBASEWIDGETCOMMAND_H
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
Definition: umlscene.h:70
The base class for graphical UML objects.
Definition: umlwidget.h:41
Definition: cmdbasewidgetcommand.h:26
AssociationWidget * assocWidget()
Definition: cmdbasewidgetcommand.cpp:86
void addWidgetToScene(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:101
QPointer< UMLScene > m_scene
Definition: cmdbasewidgetcommand.h:35
UMLScene * scene()
Definition: cmdbasewidgetcommand.cpp:65
void removeWidgetFromScene(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:136
QPointer< UMLWidget > m_widget
Definition: cmdbasewidgetcommand.h:36
QPointer< AssociationWidget > m_assocWidget
Definition: cmdbasewidgetcommand.h:37
Uml::ID::Type m_widgetId
Definition: cmdbasewidgetcommand.h:34
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
void setWidget(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:43
bool m_isAssoc
Definition: cmdbasewidgetcommand.h:38
virtual ~CmdBaseWidgetCommand()
Definition: cmdbasewidgetcommand.cpp:39
Uml::ID::Type m_sceneId
Definition: cmdbasewidgetcommand.h:33
CmdBaseWidgetCommand(UMLWidget *widget)
Definition: cmdbasewidgetcommand.cpp:27
std::string Type
Definition: basictypes.h:385
Definition: basictypes.cpp:37