KDStateMachineEditor API Documentation 2.1
|
#include <transition.h>
Signals | |
void | signalChanged (const QString &signal) |
![]() | |
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) |
![]() | |
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 | |
SignalTransition (State *sourceState) | |
~SignalTransition () | |
void | setSignal (const QString &signal) |
QString | signal () const |
Type | type () const override |
![]() | |
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 |
![]() | |
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 | |
QString | signal |
![]() | |
QString | guard |
QRectF | labelBoundingRect |
QPainterPath | shape |
The exact shape of this transition. | |
KDSME::State * | sourceState |
KDSME::State * | targetState |
![]() | |
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 | 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) |
Definition at line 75 of file transition.h.
|
explicit |
Definition at line 138 of file transition.cpp.
SignalTransition::~SignalTransition | ( | ) |
Definition at line 144 of file transition.cpp.
void SignalTransition::setSignal | ( | const QString & | signal | ) |
Definition at line 158 of file transition.cpp.
References signal, and signalChanged().
QString SignalTransition::signal | ( | ) | const |
Definition at line 153 of file transition.cpp.
|
signal |
Referenced by setSignal().
|
overridevirtual |
Reimplemented from KDSME::Element.
Definition at line 148 of file transition.cpp.
References KDSME::Element::SignalTransitionType.
|
readwrite |
Definition at line 78 of file transition.h.
Referenced by setSignal().