umbrello: umbrello/umlwidgets/toolbarstateonewidget.h Source File

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

toolbarstateonewidget.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) 2004-2014 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef TOOLBARSTATEONEWIDGET_H
12 #define TOOLBARSTATEONEWIDGET_H
13
14 #include "toolbarstatepool.h"
15 #include "widgetbase.h"
16
23 class ToolBarStateOneWidget : public ToolBarStatePool
24 {
25 Q_OBJECT
26 public:
27 explicit ToolBarStateOneWidget(UMLScene *umlScene);
28 virtual ~ToolBarStateOneWidget();
29
30 virtual void cleanBeforeChange();
31
32 // FIXME: obsolete
33 virtual void mouseMove(QGraphicsSceneMouseEvent* ome);
34
35 public Q_SLOTS:
36 virtual void slotWidgetRemoved(UMLWidget* widget);
37
38 protected:
39 virtual void setCurrentElement();
40
41 virtual void mouseReleaseWidget();
42 virtual void mouseReleaseEmpty();
43
44 void setWidget(UMLWidget* firstObject);
45 WidgetBase::WidgetType widgetType();
46
47 UMLWidget* m_firstObject;
48
53 bool m_isObjectWidgetLine;
54
55 private:
56 virtual void init();
57 };
58
59 #endif //TOOLBARSTATEONEWIDGET_H
ToolBarStateOneWidget
Definition: toolbarstateonewidget.h:24
ToolBarStateOneWidget::setWidget
void setWidget(UMLWidget *firstObject)
Definition: toolbarstateonewidget.cpp:177
ToolBarStateOneWidget::widgetType
WidgetBase::WidgetType widgetType()
Definition: toolbarstateonewidget.cpp:217
ToolBarStateOneWidget::cleanBeforeChange
virtual void cleanBeforeChange()
Definition: toolbarstateonewidget.cpp:66
ToolBarStateOneWidget::init
virtual void init()
Definition: toolbarstateonewidget.cpp:238
ToolBarStateOneWidget::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstateonewidget.cpp:87
ToolBarStateOneWidget::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstateonewidget.cpp:127
ToolBarStateOneWidget::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstateonewidget.cpp:166
ToolBarStateOneWidget::ToolBarStateOneWidget
ToolBarStateOneWidget(UMLScene *umlScene)
Definition: toolbarstateonewidget.cpp:48
ToolBarStateOneWidget::setCurrentElement
virtual void setCurrentElement()
Definition: toolbarstateonewidget.cpp:99
ToolBarStateOneWidget::m_isObjectWidgetLine
bool m_isObjectWidgetLine
Definition: toolbarstateonewidget.h:53
ToolBarStateOneWidget::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstateonewidget.cpp:76
ToolBarStateOneWidget::~ToolBarStateOneWidget
virtual ~ToolBarStateOneWidget()
Definition: toolbarstateonewidget.cpp:58
ToolBarStateOneWidget::m_firstObject
UMLWidget * m_firstObject
The first object in the message.
Definition: toolbarstateonewidget.h:47
ToolBarStatePool
Definition: toolbarstatepool.h:23
UMLScene
Definition: umlscene.h:69
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:111
toolbarstatepool.h
widgetbase.h