KDStateMachineEditor API Documentation 2.1
|
#include <state.h>
Signals | |
void | runtimeControllerChanged (KDSME::RuntimeController *runtimeController) |
![]() | |
void | childModeChanged (KDSME::State::ChildMode childMode) |
void | expandedChanged (bool expanded) |
void | isCompositeChanged (bool isComposite) |
void | onEntryChanged (const QString &onEntry) |
void | onExitChanged (const QString &onExit) |
![]() | |
void | flagsChanged (KDSME::Element::Flags flags) |
void | heightChanged (qreal height) |
void | labelChanged (const QString &label) |
void | parentChanged (KDSME::Element *parent) |
void | posChanged (const QPointF &pos) |
void | selectedChanged (bool selected) |
void | visibleChanged (bool visible) |
void | widthChanged (qreal width) |
Public Member Functions | |
StateMachine (QObject *parent=nullptr) | |
~StateMachine () | |
RuntimeController * | runtimeController () const |
void | setRuntimeController (RuntimeController *runtimeController) |
Type | type () const override |
![]() | |
State (State *parent=nullptr) | |
~State () | |
SignalTransition * | addSignalTransition (State *target, const QString &silgnal=QString()) |
TimeoutTransition * | addTimeoutTransition (State *target, int timeout) |
void | addTransition (Transition *transition) |
ChildMode | childMode () const |
QList< State * > | childStates () const |
State * | initialState () const |
bool | isComposite () const |
bool | isExpanded () const |
Q_INVOKABLE KDSME::StateMachine * | machine () const |
QString | onEntry () const |
QString | onExit () const |
Q_INVOKABLE KDSME::State * | parentState () const |
void | setChildMode (ChildMode childMode) |
void | setExpanded (bool expanded) |
void | setInitialState (State *initialState) |
void | setOnEntry (const QString &onEntry) |
void | setOnExit (const QString &onExit) |
QList< Transition * > | transitions () const |
![]() | |
Element (QObject *parent=nullptr) | |
~Element () | |
QPointF | absolutePos () const |
virtual QRectF | boundingRect () const |
QList< Element * > | childElements () const |
Flags | flags () const |
qreal | height () const |
quintptr | internalId () const |
void * | internalPointer () const |
bool | isSelected () const |
bool | isVisible () const |
QString | label () const |
Element * | parentElement () const |
QPointF | pos () const |
QSizeF | preferredSize () const |
void | setFlags (Flags flags) |
void | setHeight (qreal height) |
void | setInternalId (quintptr id) |
void | setInternalPointer (void *ptr) |
void | setLabel (const QString &label) |
void | setParent (QObject *object) |
void | setParentElement (Element *parent) |
void | setPos (const QPointF &pos) |
void | setSelected (bool selected) |
void | setVisible (bool visible) |
void | setWidth (qreal width) |
virtual QString | toDisplayString () const |
qreal | width () const |
Properties | |
KDSME::RuntimeController * | runtimeController |
![]() | |
ChildMode | childMode |
bool | expanded |
bool | isComposite |
QString | onEntry |
QString | onExit |
![]() | |
Flags | flags |
qreal | height |
QString | label |
KDSME::Element * | parent |
QPointF | pos |
The position of the element from the top-left corner. | |
bool | selected |
Whether this item is marked as selected. | |
Type | type |
bool | visible |
Whether this item is visible in the scene. | |
qreal | width |
Additional Inherited Members | |
![]() | |
enum | ChildMode { ExclusiveStates , ParallelStates } |
![]() | |
enum | Flag { NoFlags = 0x0 , ElementIsDragEnabled = 0x1 , ElementIsSelectable = 0x2 , ElementIsEditable = 0x4 } |
enum | Type { ElementType , TransitionType , SignalTransitionType , TimeoutTransitionType , StateType , StateMachineType , HistoryStateType , FinalStateType , PseudoStateType } |
![]() | |
static Q_INVOKABLE KDSME::Element::Type | stringToType (const char *type) |
static Q_INVOKABLE const char * | typeToString (KDSME::Element::Type type) |
![]() | |
bool | event (QEvent *event) override |
|
explicit |
Definition at line 235 of file state.cpp.
References KDSME::Element::parent, KDSME::Element::setHeight(), KDSME::Element::setParent(), and KDSME::Element::setWidth().
RuntimeController * StateMachine::runtimeController | ( | ) | const |
|
signal |
Referenced by setRuntimeController().
void StateMachine::setRuntimeController | ( | RuntimeController * | runtimeController | ) |
Definition at line 252 of file state.cpp.
References runtimeController, and runtimeControllerChanged().
|
overridevirtual |
Reimplemented from KDSME::State.
Definition at line 352 of file state.cpp.
References KDSME::Element::StateMachineType.
|
readwrite |
Definition at line 158 of file state.h.
Referenced by setRuntimeController().