|
|
This class holds all the StateWidget's Information All this information goes to a file or clipboard when an StateWidget object is serialized With this class we are trying to achieve isolation between data and display layers.
| StateWidgetData ()
| StateWidgetData |
Default constructor
| StateWidgetData (StateWidgetData & Other)
| StateWidgetData |
Copy constructor
| ~StateWidgetData ()
| ~StateWidgetData |
[virtual]
Deconstructor
| StateWidgetData & operator= (StateWidgetData & Other)
| operator= |
[virtual]
Overrides '=' operator
Reimplemented from UMLWidgetData.
| bool operator== (StateWidgetData & Other)
| operator== |
[virtual]
Overrides '==' operator
Reimplemented from UMLWidgetData.
| long getClipSizeOf ()
| getClipSizeOf |
[virtual]
Returns the buffer size needed to serialize object
Reimplemented from UMLWidgetData.
| bool serialize (QDataStream *s, bool archive)
| serialize |
[virtual]
Saves/Loads the object.
Reimplemented from UMLWidgetData.
| StateWidget::StateType getStateType ()
| getStateType |
Returns type of state
| void setStateType ( StateWidget::StateType stateType )
| setStateType |
Sets type of state.
| QString getName ()
| getName |
Returns the name of the state.
| void setName ( QString name )
| setName |
Sets the name of the state.
| QString getDoc ()
| getDoc |
Returns the documentation of the state.
| void setDoc ( QString doc )
| setDoc |
Sets the documenation of the state.
| bool addActivity ( QString activity )
| addActivity |
Adds the given activity to the state.
| bool removeActivity ( QString activity )
| removeActivity |
Removes the given activity from the state.
| int getActivityCount ()
| getActivityCount |
Returns the amount of activities in state.
| QStringList & getActivityList ()
| getActivityList |
Returns the list of activities.
| void setActivities ( QStringList & list )
| setActivities |
Sets the states activities to the ones given.
| bool renameActivity ( QString activity, QString newName )
| renameActivity |
Renames the given activity.
| bool saveToXMI ( QDomDocument & qDoc, QDomElement & qElement )
| saveToXMI |
Reimplemented from UMLWidgetData.
| bool loadFromXMI ( QDomElement & qElement )
| loadFromXMI |
Reimplemented from UMLWidgetData.