umbrello/umbrello
#include <toolbarstateonewidget.h>
Public Slots | |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
Public Slots inherited from ToolBarState | |
virtual void | slotAssociationRemoved (AssociationWidget *association) |
virtual void | slotWidgetRemoved (UMLWidget *widget) |
Public Member Functions | |
ToolBarStateOneWidget (UMLScene *umlScene) | |
virtual | ~ToolBarStateOneWidget () |
virtual void | cleanBeforeChange () |
virtual void | mouseMove (QGraphicsSceneMouseEvent *ome) |
Public Member Functions inherited from ToolBarStatePool | |
virtual | ~ToolBarStatePool () |
WorkToolBar::ToolBar_Buttons | getButton () const |
void | setButton (const WorkToolBar::ToolBar_Buttons &button) |
Public Member Functions inherited from ToolBarState | |
virtual | ~ToolBarState () |
virtual void | mouseDoubleClick (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 | mouseReleaseEmpty () |
virtual void | mouseReleaseWidget () |
virtual void | setCurrentElement () |
void | setWidget (UMLWidget *firstObject) |
WidgetBase::WidgetType | widgetType () |
Protected Member Functions inherited from ToolBarStatePool | |
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 | setCurrentAssociation (AssociationWidget *association) |
virtual void | setCurrentWidget (UMLWidget *widget) |
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 | |
UMLWidget * | m_firstObject |
bool | m_isObjectWidgetLine |
Protected Attributes inherited from ToolBarState | |
QGraphicsSceneMouseEvent * | m_pMouseEvent |
UMLScene * | m_pUMLScene |
Additional Inherited Members | |
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
Sequence tool to create components linked with one object in sequence diagram like precondition.
With sequence tool, one objects is selected clicking with left button on it
Definition at line 23 of file toolbarstateonewidget.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new ToolBarStateOneWidget.
- Parameters
-
umlScene The UMLScene to use.
Definition at line 44 of file toolbarstateonewidget.cpp.
|
virtual |
Destroys this ToolBarStateOneWidget.
Definition at line 54 of file toolbarstateonewidget.cpp.
Member Function Documentation
|
virtual |
Called when the current tool is changed to use another tool.
Executes base method and cleans the message.
Reimplemented from ToolBarState.
Definition at line 62 of file toolbarstateonewidget.cpp.
|
virtual |
Called when a mouse event happened.
It executes the base method and then updates the position of the message line, if any.
Reimplemented from ToolBarState.
Definition at line 72 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Called when the release event happened on an empty space.
Cleans the message. Empty spaces are not only actual empty spaces, but also associations.
Reimplemented from ToolBarState.
Definition at line 162 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Called when the release event happened on a widget.
If the button pressed isn't left button or the widget isn't an object widget, the message is cleaned. If the release event didn't happen on the line of an object and the first object wasn't selected, nothing is done. If the first object was already selected, a creation message is made. If the event happened on the line of an object, the first object or the second are set, depending on whether the first object was already set or not.
Reimplemented from ToolBarState.
Definition at line 123 of file toolbarstateonewidget.cpp.
|
protectedvirtual |
Selects only widgets, but no associations.
Overrides base class method. If the press event happened on the line of an object, the object is set as current widget. If the press event happened on a widget, the widget is set as current widget.
Reimplemented from ToolBarState.
Definition at line 95 of file toolbarstateonewidget.cpp.
|
protected |
Sets the first object of the message using the specified object.
The temporal visual message is created and mouse tracking enabled, so mouse events will be delivered.
- Parameters
-
firstObject The first object of the message.
Definition at line 173 of file toolbarstateonewidget.cpp.
|
virtualslot |
A widget was removed from the UMLView.
If the widget removed was the current widget, the current widget is set to 0. Also, if it was the first object, the message is cleaned.
Definition at line 83 of file toolbarstateonewidget.cpp.
|
protected |
Returns the widget type of this tool.
- Returns
- The widget type of this tool.
Definition at line 213 of file toolbarstateonewidget.cpp.
Member Data Documentation
|
protected |
The first object in the message.
Definition at line 47 of file toolbarstateonewidget.h.
|
protected |
If there is a current widget, it is true if the press event happened on the line of an object, or false if it happened on a normal UMLWidget.
Definition at line 53 of file toolbarstateonewidget.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.