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

#include <state.h>

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

Public Types

enum  HistoryType { ShallowHistory , DeepHistory }
 
- Public Types inherited from KDSME::State
enum  ChildMode { ExclusiveStates , ParallelStates }
 
- 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
}
 

Signals

void defaultStateChanged (KDSME::State *state)
 
void historyTypeChanged ()
 
- Signals inherited from KDSME::State
void childModeChanged (KDSME::State::ChildMode childMode)
 
void expandedChanged (bool expanded)
 
void isCompositeChanged (bool isComposite)
 
void onEntryChanged (const QString &onEntry)
 
void onExitChanged (const QString &onExit)
 
- 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

 HistoryState (HistoryType type, State *parent=nullptr)
 
 HistoryState (State *parent=nullptr)
 
 ~HistoryState ()
 
StatedefaultState () const
 
HistoryType historyType () const
 
void setDefaultState (State *state)
 
void setHistoryType (HistoryType historyType)
 
QString toDisplayString () const override
 
Type type () const override
 
- Public Member Functions inherited from KDSME::State
 State (State *parent=nullptr)
 
 ~State ()
 
SignalTransitionaddSignalTransition (State *target, const QString &silgnal=QString())
 
TimeoutTransitionaddTimeoutTransition (State *target, int timeout)
 
void addTransition (Transition *transition)
 
ChildMode childMode () const
 
QList< State * > childStates () const
 
StateinitialState () const
 
bool isComposite () const
 
bool isExpanded () const
 
Q_INVOKABLE KDSME::StateMachinemachine () const
 
QString onEntry () const
 
QString onExit () const
 
Q_INVOKABLE KDSME::StateparentState () 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
 
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)
 
qreal width () const
 

Properties

KDSME::StatedefaultState
 
HistoryType historyType
 
- Properties inherited from KDSME::State
ChildMode childMode
 
bool expanded
 
bool isComposite
 
QString onEntry
 
QString onExit
 
- 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

- 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)
 
- Protected Member Functions inherited from KDSME::State
bool event (QEvent *event) override
 

Detailed Description

Definition at line 102 of file state.h.

Member Enumeration Documentation

◆ HistoryType

Enumerator
ShallowHistory 
DeepHistory 

Definition at line 109 of file state.h.

Constructor & Destructor Documentation

◆ HistoryState() [1/2]

HistoryState::HistoryState ( State parent = nullptr)
explicit

Definition at line 274 of file state.cpp.

◆ HistoryState() [2/2]

HistoryState::HistoryState ( HistoryState::HistoryType  type,
State parent = nullptr 
)
explicit

Definition at line 280 of file state.cpp.

References type().

◆ ~HistoryState()

HistoryState::~HistoryState ( )

Definition at line 287 of file state.cpp.

Member Function Documentation

◆ defaultState()

State * HistoryState::defaultState ( ) const

Definition at line 303 of file state.cpp.

◆ defaultStateChanged

void KDSME::HistoryState::defaultStateChanged ( KDSME::State state)
signal

Referenced by setDefaultState().

◆ historyType()

HistoryState::HistoryType HistoryState::historyType ( ) const

Definition at line 316 of file state.cpp.

◆ historyTypeChanged

void KDSME::HistoryState::historyTypeChanged ( )
signal

Referenced by setHistoryType().

◆ setDefaultState()

void HistoryState::setDefaultState ( State state)

Definition at line 308 of file state.cpp.

References defaultStateChanged().

◆ setHistoryType()

void HistoryState::setHistoryType ( HistoryState::HistoryType  historyType)

Definition at line 321 of file state.cpp.

References historyType, and historyTypeChanged().

◆ toDisplayString()

QString HistoryState::toDisplayString ( ) const
overridevirtual

Reimplemented from KDSME::Element.

Definition at line 296 of file state.cpp.

References KDSME::ObjectHelper::className(), and KDSME::ObjectHelper::StripNameSpace.

◆ type()

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

Reimplemented from KDSME::Element.

Definition at line 291 of file state.cpp.

References KDSME::Element::HistoryStateType.

Referenced by HistoryState().

Property Documentation

◆ defaultState

KDSME::State * KDSME::HistoryState::defaultState
readwrite

Definition at line 105 of file state.h.

◆ historyType

HistoryType KDSME::HistoryState::historyType
readwrite

Definition at line 106 of file state.h.

Referenced by setHistoryType().


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