umbrello 2.39.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <toolbarstatepool.h>
Public Member Functions | |
virtual | ~ToolBarStatePool () |
void | setButton (const WorkToolBar::ToolBar_Buttons &button) |
WorkToolBar::ToolBar_Buttons | getButton () const |
![]() | |
virtual | ~ToolBarState () |
virtual void | init () |
virtual void | cleanBeforeChange () |
virtual void | mousePress (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseRelease (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseDoubleClick (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseMove (QGraphicsSceneMouseEvent *ome) |
Private Attributes | |
WorkToolBar::ToolBar_Buttons | m_ToolBarButton |
The current button of the tool. | |
Additional Inherited Members | |
![]() | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
![]() | |
void | finished () |
![]() | |
UMLScene * | m_pUMLScene |
The UMLScene. | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
The mouse event currently in use. | |
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.
|
virtual |
Destroys this ToolBarStatePool.
|
protected |
Creates a new ToolBarStatePool. Protected to avoid classes other than derived to create objects of this class.
umlScene | The UMLScene to use. |
WorkToolBar::ToolBar_Buttons ToolBarStatePool::getButton | ( | ) | const |
Returns the current button.
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.
button | The button to set. |
|
private |
The current button of the tool.