umbrello/umbrello
#include <toolbarstatepool.h>
Public Member Functions | |
virtual | ~ToolBarStatePool () |
WorkToolBar::ToolBar_Buttons | getButton () const |
void | setButton (const WorkToolBar::ToolBar_Buttons &button) |
Public Member Functions inherited from ToolBarState | |
virtual | ~ToolBarState () |
virtual void | cleanBeforeChange () |
virtual void | init () |
virtual void | mouseDoubleClick (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseMove (QGraphicsSceneMouseEvent *ome) |
virtual void | mousePress (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseRelease (QGraphicsSceneMouseEvent *ome) |
Protected Member Functions | |
ToolBarStatePool (UMLScene *umlScene) | |
Protected Member Functions inherited from ToolBarState | |
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 | mouseReleaseEmpty () |
virtual void | mouseReleaseWidget () |
virtual void | setCurrentAssociation (AssociationWidget *association) |
virtual void | setCurrentElement () |
virtual void | setCurrentWidget (UMLWidget *widget) |
void | setMouseEvent (QGraphicsSceneMouseEvent *ome, const QEvent::Type &type) |
Additional Inherited Members | |
Public Slots inherited from ToolBarState | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
Protected Attributes inherited from ToolBarState | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
UMLScene * | m_pUMLScene |
Detailed Description
Base class for tools that can use the same state but with different button.
This class only adds support to specify the button currently in use for a tool bar state.
Definition at line 22 of file toolbarstatepool.h.
Constructor & Destructor Documentation
|
virtual |
Destroys this ToolBarStatePool.
Definition at line 17 of file toolbarstatepool.cpp.
|
protected |
Creates a new ToolBarStatePool.
Protected to avoid classes other than derived to create objects of this class.
- Parameters
-
umlScene The UMLScene to use.
Definition at line 54 of file toolbarstatepool.cpp.
Member Function Documentation
WorkToolBar::ToolBar_Buttons ToolBarStatePool::getButton | ( | ) | const |
Returns the current button.
- Returns
- The current button.
Definition at line 42 of file toolbarstatepool.cpp.
void ToolBarStatePool::setButton | ( | const WorkToolBar::ToolBar_Buttons & | button | ) |
Sets the current button and inits the tool.
If the current button is the same to the button to set, the tool isn't initialized.
- Parameters
-
button The button to set.
Definition at line 28 of file toolbarstatepool.cpp.
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.