|
|
This class is the graphical version of a UML Activity. A ActivityWidget is created by a UMLView. An ActivityWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to, it will be automatically deleted.
The ActivityWidget class inherits from the UMLWidget class which adds most of the functionality to this class.
| enum ActivityType { Initial = 0, Normal, End, Branch, Fork } | ActivityType |
| ActivityWidget ( UMLView * view, UMLWidgetData* pData )
| ActivityWidget |
Creates a Activity widget.
Parameters:
| view | The parent of the widget. |
| pData | The UMLWidgetData to represent. |
| ActivityWidget ( UMLView * view, ActivityType activityType )
| ActivityWidget |
Creates a Activity widget.
Parameters:
| view | The parent of the widget. |
| activityType | The type of activity. |
| ActivityWidget (UMLView * view)
| ActivityWidget |
Creates a Activity widget.
Parameters:
| view | The parent of the widget. |
| ~ActivityWidget ()
| ~ActivityWidget |
Standard deconstructor
| 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 |
Overrides the standard paint event.
Reimplemented from UMLWidget.
| void SetName (QString strName)
| SetName |
[virtual]
Sets the name of the Activity.
Reimplemented from UMLWidget.
| QString GetName ()
| GetName |
[virtual]
Returns the name of the Activity.
Reimplemented from UMLWidget.
| QString getDoc ()
| getDoc |
Returns the documentation of the activity.
Reimplemented from UMLWidget.
| void setDoc ( QString doc )
| setDoc |
Sets the documenation of the activity.
Reimplemented from UMLWidget.
| ActivityType getActivityType ()
| getActivityType |
Returns the type of activity.
| void setActivityType ( ActivityType activityType )
| setActivityType |
Sets the type of activity.
| void mouseDoubleClickEvent (QMouseEvent * )
| mouseDoubleClickEvent |
Overrides a method. Used to pickup double clicks.
Reimplemented from UMLWidget.
| void calculateSize ()
| calculateSize |
[protected]
Calculates the size of the widget.
Reimplemented from UMLWidget.
| void slotMenuSelection (int sel)
| slotMenuSelection |
[slot]
Captures any popup menu signals for menus it created.
Reimplemented from UMLWidget.