KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
KDSME::PseudoState Class Reference

#include <state.h>

Inheritance diagram for KDSME::PseudoState:
Collaboration diagram for KDSME::PseudoState:

Public Types

enum  Kind { InitialState }
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 kindChanged (KDSME::PseudoState::Kind kind)
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

 PseudoState (Kind kind=InitialState, State *parent=nullptr)
 ~PseudoState ()
Kind kind () const
QString kindString () const
void setKind (Kind kind)
QString toDisplayString () const override
Type type () const override
Public Member Functions inherited from KDSME::State
 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
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)
qreal width () const

Properties

Kind kind
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::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

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 177 of file state.h.

Member Enumeration Documentation

◆ Kind

Enumerator
InitialState 

Definition at line 183 of file state.h.

Constructor & Destructor Documentation

◆ PseudoState()

PseudoState::PseudoState ( Kind kind = InitialState,
State * parent = nullptr )
explicit

Definition at line 367 of file state.cpp.

References KDSME::State::State(), kind, and KDSME::Element::parent.

◆ ~PseudoState()

PseudoState::~PseudoState ( )

Definition at line 374 of file state.cpp.

Member Function Documentation

◆ kind()

PseudoState::Kind PseudoState::kind ( ) const

Definition at line 383 of file state.cpp.

◆ kindChanged

void KDSME::PseudoState::kindChanged ( KDSME::PseudoState::Kind kind)
signal

References kind.

Referenced by setKind().

◆ kindString()

QString PseudoState::kindString ( ) const

Definition at line 397 of file state.cpp.

Referenced by KDSME::operator<<(), and toDisplayString().

◆ setKind()

void PseudoState::setKind ( PseudoState::Kind kind)

Definition at line 388 of file state.cpp.

References kind, and kindChanged().

◆ toDisplayString()

QString PseudoState::toDisplayString ( ) const
overridevirtual

Reimplemented from KDSME::Element.

Definition at line 402 of file state.cpp.

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

◆ type()

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

Reimplemented from KDSME::Element.

Definition at line 378 of file state.cpp.

References KDSME::Element::PseudoStateType.

Property Documentation

◆ kind

Kind KDSME::PseudoState::kind
readwrite

Definition at line 180 of file state.h.

Referenced by PseudoState(), kindChanged(), and setKind().


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 for KDStateMachineEditor API Documentation by doxygen 1.15.0