umbrello/umbrello
#include <toolbarstatearrow.h>
Public Member Functions | |
ToolBarStateArrow (UMLScene *umlScene) | |
virtual | ~ToolBarStateArrow () |
virtual void | init () |
Public Member Functions inherited from ToolBarState | |
virtual | ~ToolBarState () |
virtual void | cleanBeforeChange () |
virtual void | mouseDoubleClick (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseMove (QGraphicsSceneMouseEvent *ome) |
virtual void | mousePress (QGraphicsSceneMouseEvent *ome) |
virtual void | mouseRelease (QGraphicsSceneMouseEvent *ome) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
virtual void | changeTool () |
virtual void | mouseDoubleClickAssociation () |
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 | setCurrentWidget (UMLWidget *currentWidget) |
Protected Member Functions inherited from ToolBarState | |
ToolBarState (UMLScene *umlScene) | |
AssociationWidget * | associationAt (const QPointF &pos) |
virtual AssociationWidget * | currentAssociation () const |
virtual UMLWidget * | currentWidget () const |
FloatingDashLineWidget * | floatingLineAt (const QPointF &pos) |
MessageWidget * | messageAt (const QPointF &pos) |
virtual void | mouseDoubleClickEmpty () |
virtual void | setCurrentAssociation (AssociationWidget *association) |
virtual void | setCurrentElement () |
void | setMouseEvent (QGraphicsSceneMouseEvent *ome, const QEvent::Type &type) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
QList< QGraphicsLineItem * > | m_selectionRect |
QPointF | m_startPosition |
Protected Attributes inherited from ToolBarState | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
UMLScene * | m_pUMLScene |
Additional Inherited Members | |
Public Slots inherited from ToolBarState | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Arrow tool for select, move and resize widgets and associations.
Arrow tool delegates the event handling in the widgets and associations. When no widget nor association is being used, the arrow tool acts as a selecting tool that selects all the elements in the rectangle created when dragging the mouse.
This is the default tool.
Definition at line 30 of file toolbarstatearrow.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new ToolBarStateArrow.
- Parameters
-
umlScene The UMLScene to use.
Definition at line 24 of file toolbarstatearrow.cpp.
|
virtual |
Destroys this ToolBarStateArrow.
Definition at line 33 of file toolbarstatearrow.cpp.
Member Function Documentation
|
protectedvirtual |
Overridden from base class to do nothing, as arrow is the default tool.
Reimplemented from ToolBarState.
Definition at line 207 of file toolbarstatearrow.cpp.
|
virtual |
Goes back to the initial state.
Reimplemented from ToolBarState.
Definition at line 40 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the double click event happened on an association.
Delivers the event to the association.
Reimplemented from ToolBarState.
Definition at line 138 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the double click event happened on a widget.
Delivers the event to the widget.
Reimplemented from ToolBarState.
Definition at line 147 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the move event happened when an association is currently available.
Delivers the event to the association.
Reimplemented from ToolBarState.
Definition at line 157 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the move event happened when no association nor widget are currently available.
Updates the selection rectangle to the new position and selectes all the widgets in the rectangle.
- Todo:
- Fix selection
Reimplemented from ToolBarState.
Definition at line 180 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the move event happened when a widget is currently available.
Delivers the event to the widget.
Reimplemented from ToolBarState.
Definition at line 167 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the press event happened on an association.
Delivers the event to the association.
Reimplemented from ToolBarState.
Definition at line 53 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the press event happened on an empty space.
Calls base method and, if left button was pressed, prepares the selection rectangle.
Reimplemented from ToolBarState.
Definition at line 72 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the press event happened on a widget.
Delivers the event to the widget.
Reimplemented from ToolBarState.
Definition at line 62 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the release event happened on an association.
Delivers the event to the association.
Reimplemented from ToolBarState.
Definition at line 106 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the release event happened on an empty space.
If selection rectangle is active, it is cleared. Else, if the right button was released, it shows the pop up menu for the diagram.
Reimplemented from ToolBarState.
Definition at line 125 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Called when the release event happened on a widget.
Delivers the event to the widget.
Reimplemented from ToolBarState.
Definition at line 115 of file toolbarstatearrow.cpp.
|
protectedvirtual |
Sets the widget currently in use.
It ensures that the widget is only set if there is no other widget set already. It avoids things like moving a big widget over a little one, clicking right button to cancel the movement and the little widget getting the event, thus not canceling the movement in the big widget.
Reimplemented from ToolBarState.
Definition at line 219 of file toolbarstatearrow.cpp.
Member Data Documentation
|
protected |
The selection rectangle that contains the four lines of its borders.
Definition at line 60 of file toolbarstatearrow.h.
|
protected |
The start position of the selection rectangle.
Definition at line 65 of file toolbarstatearrow.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.