The class represents a state in a state-chart Data-Model.
More...
#include <scstate.h>
Inherits SCItem.
List of all members.
Detailed Description
The class represents a state in a state-chart Data-Model.
The state contains children elements which are sub-states (also instances of SCState) and state-transitions (SCTransition class). The state also contains a public attribute container as well as convenience methods to accessing the attributes. Since te attribute container is public, attributes can be accessed directly.
The children states and transitions are contained as QObject children in the base QObject class (see addState or addTransition methods).
Constructor & Destructor Documentation
SCState::SCState |
( |
QObject * |
parent = 0 |
) |
|
SCState::SCState |
( |
const SCState & |
st |
) |
|
SCState::SCState |
( |
bool |
topState = false |
) |
|
Member Function Documentation
void SCState::addState |
( |
SCState * |
s |
) |
|
void SCState::changed |
( |
|
) |
[signal] |
void SCState::getAllStates |
( |
QList< SCState * > & |
stateList |
) |
|
void SCState::getAllTransitions |
( |
QList< SCTransition * > & |
list |
) |
|
QString SCState::getAttributeValue |
( |
QString |
key |
) |
|
SCState::getIDTextBlock |
( |
|
) |
|
Returns a pointer to the ID TextBlock.
- Parameters:
-
| xmlWriter | is the writer that writes the xml |
int SCState::getStateCount |
( |
|
) |
|
void SCState::getStates |
( |
QList< SCState * > & |
stateList |
) |
|
void SCState::getTransitions |
( |
QList< SCTransition * > & |
transitionList |
) |
|
void SCState::setAttributeValue |
( |
QString |
key, |
|
|
QString |
value | |
|
) |
| | |
void SCState::setPosition |
( |
QPointF & |
size |
) |
|
void SCState::setSize |
( |
QPointF & |
size |
) |
|
void SCState::setSize |
( |
QPoint & |
size |
) |
|
void SCState::setStateName |
( |
QString |
n |
) |
|
void SCState::writeSCVXML |
( |
QXmlStreamWriter & |
xmlWriter |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files:
- C:/Users/David/Documents/QtProjects/visualsc/scdatamodel/scstate.h
- C:/Users/David/Documents/QtProjects/visualsc/bin/debug/moc_scstate.cpp
- C:/Users/David/Documents/QtProjects/visualsc/scdatamodel/scstate.cpp