umbrello  2.31.70
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 
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);
46 
48 
54 
55 private:
56  virtual void init();
57 };
58 
59 #endif //TOOLBARSTATEONEWIDGET_H
Definition: toolbarstatepool.h:22
WidgetBase::WidgetType widgetType()
Definition: toolbarstateonewidget.cpp:217
virtual void init()
Definition: toolbarstateonewidget.cpp:238
virtual void setCurrentElement()
Definition: toolbarstateonewidget.cpp:99
WidgetType
Definition: widgetbase.h:110
virtual void cleanBeforeChange()
Definition: toolbarstateonewidget.cpp:66
void setWidget(UMLWidget *firstObject)
Definition: toolbarstateonewidget.cpp:177
virtual void mouseReleaseWidget()
Definition: toolbarstateonewidget.cpp:127
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstateonewidget.cpp:87
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstateonewidget.cpp:76
bool m_isObjectWidgetLine
Definition: toolbarstateonewidget.h:53
Definition: toolbarstateonewidget.h:23
UMLWidget * m_firstObject
The first object in the message.
Definition: toolbarstateonewidget.h:47
virtual void mouseReleaseEmpty()
Definition: toolbarstateonewidget.cpp:166
ToolBarStateOneWidget(UMLScene *umlScene)
Definition: toolbarstateonewidget.cpp:48
virtual ~ToolBarStateOneWidget()
Definition: toolbarstateonewidget.cpp:58
Definition: umlscene.h:68
The base class for graphical UML objects.
Definition: umlwidget.h:40