|
|
This class is the graphical version of a UML State. A StateWidget is created by a UMLView. An StateWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to, it will be automatically deleted.
The StateWidget class inherits from the UMLWidget class which adds most of the functionality to this class.
| enum StateType { Initial = 0, Normal, End } | StateType |
| StateWidget ( UMLView * view, UMLWidgetData* pData )
| StateWidget |
Creates a State widget.
Parameters:
| view | The parent of the widget. |
| pData | The UMLWidgetData to represent. |
| StateWidget ( UMLView * view, StateType stateType )
| StateWidget |
Creates a State widget.
Parameters:
| view | The parent of the widget. |
| stateType | The type of state. |
| StateWidget (UMLView * view)
| StateWidget |
Creates a State widget.
Parameters:
| view | The parent of the widget. |
| ~StateWidget ()
| ~StateWidget |
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 State.
Reimplemented from UMLWidget.
| QString GetName ()
| GetName |
[virtual]
Returns the name of the State.
Reimplemented from UMLWidget.
| QString getDoc ()
| getDoc |
Returns the documentation of the state.
Reimplemented from UMLWidget.
| void setDoc ( QString doc )
| setDoc |
Sets the documenation of the state.
Reimplemented from UMLWidget.
| StateType getStateType ()
| getStateType |
Returns the type of state.
| void setStateType ( StateType stateType )
| setStateType |
Sets the type of state.
| void mouseDoubleClickEvent (QMouseEvent * )
| mouseDoubleClickEvent |
Overrides a method. Used to pickup double clicks.
Reimplemented from UMLWidget.
| bool addActivity ( QString activity )
| addActivity |
Adds the given activity to the state.
| bool removeActivity ( QString activity )
| removeActivity |
Removes the given activity from the state.
| bool renameActivity ( QString activity, QString newName )
| renameActivity |
Renames the given activity.
| void setActivities ( QStringList & list )
| setActivities |
Sets the states activities to the ones given.
| QStringList & getActivityList ()
| getActivityList |
Returns the list of activities.
| 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.