umbrello/umbrello
#include <toolbarstateonewidget.h>
![Inheritance graph](classToolBarStateOneWidget__inherit__graph.png)
Public Slots | |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
![]() | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
Public Member Functions | |
ToolBarStateOneWidget (UMLScene *umlScene) | |
virtual | ~ToolBarStateOneWidget () |
virtual void | cleanBeforeChange () |
virtual void | mouseMove (QGraphicsSceneMouseEvent *ome) |
![]() | |
virtual | ~ToolBarStatePool () |
WorkToolBar::ToolBar_Buttons | getButton () const |
void | setButton (const WorkToolBar::ToolBar_Buttons &button) |
![]() | |
virtual | ~ToolBarState () |
virtual void | mouseDoubleClick (QGraphicsSceneMouseEvent *ome) |
virtual void | mousePress (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseRelease (QGraphicsSceneMouseEvent *ome) |
Protected Member Functions | |
virtual void | mouseReleaseEmpty () |
virtual void | mouseReleaseWidget () |
virtual void | setCurrentElement () |
void | setWidget (UMLWidget *firstObject) |
WidgetBase::WidgetType | widgetType () |
![]() | |
ToolBarStatePool (UMLScene *umlScene) | |
![]() | |
ToolBarState (UMLScene *umlScene) | |
AssociationWidget * | associationAt (const QPointF &pos) |
virtual void | changeTool () |
virtual AssociationWidget * | currentAssociation () const |
virtual UMLWidget * | currentWidget () const |
FloatingDashLineWidget * | floatingLineAt (const QPointF &pos) |
MessageWidget * | messageAt (const QPointF &pos) |
virtual void | mouseDoubleClickAssociation () |
virtual void | mouseDoubleClickEmpty () |
virtual void | mouseDoubleClickWidget () |
virtual void | mouseMoveAssociation () |
virtual void | mouseMoveEmpty () |
virtual void | mouseMoveWidget () |
virtual void | mousePressAssociation () |
virtual void | mousePressEmpty () |
virtual void | mousePressWidget () |
virtual void | mouseReleaseAssociation () |
virtual void | setCurrentAssociation (AssociationWidget *association) |
virtual void | setCurrentWidget (UMLWidget *widget) |
void | setMouseEvent (QGraphicsSceneMouseEvent *ome, const QEvent::Type &type) |
Protected Attributes | |
UMLWidget * | m_firstObject |
bool | m_isObjectWidgetLine |
![]() | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
UMLScene * | m_pUMLScene |
Detailed Description
Sequence tool to create components linked with one object in sequence diagram like precondition.
With sequence tool, one objects is selected clicking with left button on it
Definition at line 23 of file toolbarstateonewidget.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new ToolBarStateOneWidget.
- Parameters
-
umlView The UMLView to use.
Definition at line 39 of file toolbarstateonewidget.cpp.
|
virtual |
Destroys this ToolBarStateOneWidget.
Definition at line 49 of file toolbarstateonewidget.cpp.
Member Function Documentation
|
virtual |
Called when the current tool is changed to use another tool.
Executes base method and cleans the message.
Reimplemented from ToolBarState.
Definition at line 57 of file toolbarstateonewidget.cpp.
|
virtual |
Called when a mouse event happened.
It executes the base method and then updates the position of the message line, if any.
Reimplemented from ToolBarState.
Definition at line 67 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Called when the release event happened on an empty space.
Cleans the message. Empty spaces are not only actual empty spaces, but also associations.
Reimplemented from ToolBarState.
Definition at line 156 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Called when the release event happened on a widget.
If the button pressed isn't left button or the widget isn't an object widget, the message is cleaned. If the release event didn't happen on the line of an object and the first object wasn't selected, nothing is done. If the first object was already selected, a creation message is made. If the event happened on the line of an object, the first object or the second are set, depending on whether the first object was already set or not.
Reimplemented from ToolBarState.
Definition at line 118 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Selects only widgets, but no associations.
Overrides base class method. If the press event happened on the line of an object, the object is set as current widget. If the press event happened on a widget, the widget is set as current widget.
Reimplemented from ToolBarState.
Definition at line 90 of file toolbarstateonewidget.cpp.
|
protected |
Sets the first object of the message using the specified object.
The temporal visual message is created and mouse tracking enabled, so mouse events will be delivered.
- Parameters
-
firstObject The first object of the message.
Definition at line 167 of file toolbarstateonewidget.cpp.
|
virtualslot |
A widget was removed from the UMLView.
If the widget removed was the current widget, the current widget is set to 0. Also, if it was the first object, the message is cleaned.
Definition at line 78 of file toolbarstateonewidget.cpp.
|
protected |
Returns the widget type of this tool.
- Returns
- The widget type of this tool.
Definition at line 196 of file toolbarstateonewidget.cpp.
Member Data Documentation
|
protected |
The first object in the message.
Definition at line 47 of file toolbarstateonewidget.h.
|
protected |
If there is a current widget, it is true if the press event happened on the line of an object, or false if it happened on a normal UMLWidget.
Definition at line 53 of file toolbarstateonewidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.