umbrello 2.39.0
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 () |
Additional Inherited Members | |
![]() | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
![]() | |
void | finished () |
![]() | |
ToolBarStatePool (UMLScene *umlScene) | |
![]() | |
ToolBarState (UMLScene *umlScene) | |
virtual void | mousePressAssociation () |
virtual void | mousePressWidget () |
virtual void | mousePressEmpty () |
virtual void | mouseReleaseAssociation () |
virtual void | mouseReleaseWidget () |
virtual void | mouseDoubleClickAssociation () |
virtual void | mouseDoubleClickWidget () |
virtual void | mouseDoubleClickEmpty () |
virtual void | mouseMoveAssociation () |
virtual void | mouseMoveWidget () |
virtual void | mouseMoveEmpty () |
virtual void | changeTool () |
virtual UMLWidget * | currentWidget () const |
virtual void | setCurrentWidget (UMLWidget *widget) |
virtual AssociationWidget * | currentAssociation () const |
virtual void | setCurrentAssociation (AssociationWidget *association) |
void | setMouseEvent (QGraphicsSceneMouseEvent *ome, const QEvent::Type &type) |
AssociationWidget * | associationAt (const QPointF &pos) |
MessageWidget * | messageAt (const QPointF &pos) |
FloatingDashLineWidget * | floatingLineAt (const QPointF &pos) |
![]() | |
UMLScene * | m_pUMLScene |
The UMLScene. | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
The mouse event currently in use. | |
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.