|
KDStateMachineEditor API Documentation 2.3
|
#include <transition.h>


Signals | |
| void | timeoutChanged (int timeout) |
Signals inherited from KDSME::Transition | |
| void | guardChanged (const QString &guard) |
| void | labelBoundingRectChanged (const QRectF &rect) |
| void | shapeChanged (const QPainterPath &path) |
| void | sourceStateChanged (KDSME::State *sourceState) |
| void | targetStateChanged (KDSME::State *targetState) |
Signals inherited from KDSME::Element | |
| 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 | |
| TimeoutTransition (State *sourceState) | |
| ~TimeoutTransition () | |
| void | setTimeout (int timeout) |
| int | timeout () const |
| Type | type () const override |
Public Member Functions inherited from KDSME::Transition | |
| Transition (State *sourceState=nullptr) | |
| ~Transition () | |
| QString | guard () const |
| QRectF | labelBoundingRect () const |
| Q_INVOKABLE KDSME::StateMachine * | machine () const |
| void | setGuard (const QString &guard) |
| void | setLabelBoundingRect (const QRectF &rect) |
| void | setShape (const QPainterPath &shape) |
| void | setSourceState (State *sourceState) |
| void | setTargetState (State *targetState) |
| QPainterPath | shape () const |
| State * | sourceState () const |
| State * | targetState () const |
| Type | type () const override |
Public Member Functions inherited from KDSME::Element | |
| 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 | |
| int | timeout |
Properties inherited from KDSME::Transition | |
| QString | guard |
| QRectF | labelBoundingRect |
| QPainterPath | shape |
| The exact shape of this transition. | |
| KDSME::State * | sourceState |
| KDSME::State * | targetState |
Properties inherited from KDSME::Element | |
| 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 | |
Public Types inherited from KDSME::Element | |
| enum | Flag { NoFlags = 0x0 , ElementIsDragEnabled = 0x1 , ElementIsSelectable = 0x2 , ElementIsEditable = 0x4 } |
| enum | Type { ElementType , TransitionType , SignalTransitionType , TimeoutTransitionType , StateType , StateMachineType , HistoryStateType , FinalStateType , PseudoStateType } |
Static Public Member Functions inherited from KDSME::Element | |
| static Q_INVOKABLE KDSME::Element::Type | stringToType (const char *type) |
| static Q_INVOKABLE const char * | typeToString (KDSME::Element::Type type) |
Definition at line 97 of file transition.h.
|
explicit |
Definition at line 177 of file transition.cpp.
| TimeoutTransition::~TimeoutTransition | ( | ) |
Definition at line 183 of file transition.cpp.
| void TimeoutTransition::setTimeout | ( | int | timeout | ) |
Definition at line 197 of file transition.cpp.
References timeout, and timeoutChanged().
| int TimeoutTransition::timeout | ( | ) | const |
Definition at line 192 of file transition.cpp.
|
signal |
Referenced by setTimeout().
|
overridevirtual |
Reimplemented from KDSME::Element.
Definition at line 187 of file transition.cpp.
References KDSME::Element::TimeoutTransitionType.
|
readwrite |
Definition at line 100 of file transition.h.
Referenced by setTimeout().