|
|
Displays an instance UMLObject of a concept.
See also: UMLWidget
| ObjectWidget (UMLView * view, UMLObject *o, int lid)
| ObjectWidget |
Creates an ObjectWidget.
Parameters:
| view | The parent to this object. |
| o | The object it will be representing. |
| lid | The local id for the object. |
| ObjectWidget (UMLView * view, UMLObject *o, UMLWidgetData *pData)
| ObjectWidget |
Creates an ObjectWidget.
Parameters:
| view | The parent to this object. |
| o | The object it will be representing. |
| pData | The UMLWidgetData to represent. |
| ObjectWidget (UMLView * view)
| ObjectWidget |
Creates an ObjectWidget.
Parameters:
| view | The parent to this object. |
| void init ()
| init |
Initializes the key attributes of the class.
Reimplemented from UMLWidget.
| ~ObjectWidget ()
| ~ObjectWidget |
Standard deconstructor.
| int getLocalID ()
| getLocalID |
Returns the local ID for this object. This ID is used so that many objects of the same UMLObject instance can be on the same diagram.
Returns: Returns the local ID.
| QString getInstanceName ()
| getInstanceName |
Returns the instance name.
Returns: Returns the instance name.
| void setInstanceName (QString name)
| setInstanceName |
Sets the instance name.
Parameters:
| name | The name to set the instance name to. |
| QString getDoc ()
| getDoc |
Returns the documentation for the object.
Returns: Returns the documentation for the object.
Reimplemented from UMLWidget.
| void setDoc (QString _doc)
| setDoc |
Sets the documentation.
Parameters:
| _doc | The documentation to set to. |
Reimplemented from UMLWidget.
| bool getMultipleInstance ()
| getMultipleInstance |
Returns whether object is representing a multi-object.
Returns: Returns whether object is representing a multi-object.
| void setMultipleInstance (bool m_bMultiple)
| setMultipleInstance |
Sets whether representing a multi-instance object.
Parameters:
| multiple | Object state. true- multi, false - single. |
| void setLocalID (int id)
| setLocalID |
Sets the local id of the object.
Parameters:
| id | the local id of the object. |
| int getOldID ()
| getOldID |
Returns the local id of the object.
Parameters:
| Returns | the local id of the object. |
Reimplemented from UMLWidget.
| bool Activate (IDChangeLog* ChangeLog = 0)
| Activate |
[virtual]
Activate the object after serializing it from a QDataStream
Reimplemented from UMLWidget.
| void SynchronizeData ()
| SynchronizeData |
[virtual]
Synchronize the Widget's m_pData member with its display properties, for example: the X and Y positions of the widget, etc
Reimplemented from UMLWidget.
| void draw (QPainter & p, int offsetX, int offsetY)
| draw |
Override default method
Reimplemented from UMLWidget.
| void moveEvent (QMoveEvent *)
| moveEvent |
[virtual]
Overrides the standard operation.
Reimplemented from UMLWidget.
| void cleanup ()
| cleanup |
Used to cleanup any other widget it may need to delete.
Reimplemented from UMLWidget.
| bool getDrawAsActor ()
| getDrawAsActor |
Returns whether to draw as an object or not.
| void setDrawAsActor ( bool drawAsActor )
| setDrawAsActor |
Sets whether to draw as an Actor.
| void mouseMoveEvent (QMouseEvent *me)
| mouseMoveEvent |
[virtual]
Overrides the standard operation.
Reimplemented from UMLWidget.
| void setShowDeconstruction ( bool bShow )
| setShowDeconstruction |
Sets whether to show deconstruction on sequence line
| bool getShowDeconstruction ()
| getShowDeconstruction |
Returns whether to show deconstruction on sequence line
| int getEndLineY ()
| getEndLineY |
Returns the end Y co-ord of the seq. line.
| QString m_Doc | m_Doc |
[protected]
| int m_nOldID | m_nOldID |
[protected]
| SeqLineWidget * m_pLine | m_pLine |
[protected]
| void calculateSize ()
| calculateSize |
[protected]
Calculates the size of the widget.
Reimplemented from UMLWidget.
| void drawActor (QPainter & p, int offsetX, int offsetY)
| drawActor |
[protected]
Draw the object as an actor.
| void drawObject (QPainter & p, int offsetX, int offsetY)
| drawObject |
[protected]
Draw the object as an object (default).
| void tabUp ()
| tabUp |
[protected]
Move the object up on a sequence diagram.
| void tabDown ()
| tabDown |
[protected]
Move the object down on a sequence diagram.
| void slotMenuSelection (int sel)
| slotMenuSelection |
[slot]
Handles a popup menu selection.
Reimplemented from UMLWidget.
| void slotColorChanged (int viewID)
| slotColorChanged |
[virtual slot]
Handles a color change signal.
Reimplemented from UMLWidget.
| void slotLineLengthChanged ()
| slotLineLengthChanged |
[slot]
When a message is added to the view, all lines must extend themselves. The view will change the length and signal all objects.
FUTURE:- signal here when you add manual line length changes by the user.