KDStateMachineEditor API Documentation 2.1
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
KDSME::TimeoutTransition Class Reference

#include <transition.h>

Inheritance diagram for KDSME::TimeoutTransition:
Inheritance graph
[legend]
Collaboration diagram for KDSME::TimeoutTransition:
Collaboration graph
[legend]

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::StateMachinemachine () 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
 
StatesourceState () const
 
StatetargetState () 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
 
ElementparentElement () 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::StatesourceState
 
KDSME::StatetargetState
 
- Properties inherited from KDSME::Element
Flags flags
 
qreal height
 
QString label
 
KDSME::Elementparent
 
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)
 

Detailed Description

Definition at line 97 of file transition.h.

Constructor & Destructor Documentation

◆ TimeoutTransition()

TimeoutTransition::TimeoutTransition ( State sourceState)
explicit

Definition at line 177 of file transition.cpp.

◆ ~TimeoutTransition()

TimeoutTransition::~TimeoutTransition ( )

Definition at line 183 of file transition.cpp.

Member Function Documentation

◆ setTimeout()

void TimeoutTransition::setTimeout ( int  timeout)

Definition at line 197 of file transition.cpp.

References timeout, and timeoutChanged().

◆ timeout()

int TimeoutTransition::timeout ( ) const

Definition at line 192 of file transition.cpp.

◆ timeoutChanged

void KDSME::TimeoutTransition::timeoutChanged ( int  timeout)
signal

Referenced by setTimeout().

◆ type()

Element::Type TimeoutTransition::type ( ) const
overridevirtual

Reimplemented from KDSME::Element.

Definition at line 187 of file transition.cpp.

References KDSME::Element::TimeoutTransitionType.

Property Documentation

◆ timeout

int KDSME::TimeoutTransition::timeout
readwrite

Definition at line 100 of file transition.h.

Referenced by setTimeout().


The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor
Generated on Tue Jul 15 2025 15:21:47 for KDStateMachineEditor API Documentation by doxygen 1.9.8