umbrello
2.34.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <toolbarstateother.h>
Public Member Functions | |
ToolBarStateOther (UMLScene *umlScene) | |
virtual | ~ToolBarStateOther () |
![]() | |
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 Member Functions | |
virtual void | setCurrentElement () |
virtual void | mouseReleaseEmpty () |
UMLObject::ObjectType | getObjectType () const |
bool | newWidget () |
Other tool creates almost all the objects (except associations and messages). Objects are created when left button is released, no matter if it was released on an association, on a widget or on an empty space.
Associations and widgets aren't taken into account, and are treated as empty spaces.
|
explicit |
Creates a new ToolBarStateOther.
umlScene | The UMLScene to use. |
|
virtual |
Destroys this ToolBarStateOther.
|
private |
Returns the object type of this tool.
|
privatevirtual |
Called when the release event happened on an empty space. Associations, widgets and actual empty spaces are all treated as empty spaces. It creates a new widget if the left button was released. The widget to create depends on the type of the toolbar button selected. If the widget is the visual representation of a UMLObject, the object factory handles its creation. Otherwise, the widget is created using newWidget().
Reimplemented from ToolBarState.
|
private |
Creates and adds a new widget to the UMLView (if widgets of that type don't have an associated UMLObject). If the type of the widget doesn't use an UMLObject (for example, a note or a box), it creates the widget, adds it to the view and returns true. Otherwise, it returns false.
|
privatevirtual |
Overridden from base class to ignore associations and widgets and treat them as empty spaces to create widgets on it. Sets nothing.
Reimplemented from ToolBarState.