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

Changes the state machine of a KDSME::StateMachineScene and records the old state machine the scene was showing. More...

#include <changestatemachinecommand_p.h>

Inheritance diagram for KDSME::ChangeStateMachineCommand:
Collaboration diagram for KDSME::ChangeStateMachineCommand:

Signals

void stateMachineChanged (KDSME::State *statemachine)

Public Member Functions

 ChangeStateMachineCommand (KDSME::StateMachineScene *view, QUndoCommand *parent=nullptr)
int id () const override
void redo () override
void setStateMachine (KDSME::State *stateMachine)
KDSME::State * stateMachine () const
void undo () override
Public Member Functions inherited from KDSME::Command
 Command (const QString &text=QString(), QUndoCommand *parent=nullptr)
 Command (StateModel *model, QUndoCommand *parent=nullptr)
StateModel * model () const

Properties

KDSME::State * stateMachine

Additional Inherited Members

Public Types inherited from KDSME::Command
enum  Id {
  CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot ,
  ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement ,
  ModifyTransition , ChangeStateMachine
}

Detailed Description

Changes the state machine of a KDSME::StateMachineScene and records the old state machine the scene was showing.

On undo, the old state machine is restored.

Definition at line 35 of file changestatemachinecommand_p.h.

Constructor & Destructor Documentation

◆ ChangeStateMachineCommand()

ChangeStateMachineCommand::ChangeStateMachineCommand ( KDSME::StateMachineScene * view,
QUndoCommand * parent = nullptr )
explicit

Definition at line 26 of file changestatemachinecommand.cpp.

References KDSME::Command::Command().

Member Function Documentation

◆ id()

int KDSME::ChangeStateMachineCommand::id ( ) const
inlineoverride

Definition at line 43 of file changestatemachinecommand_p.h.

References KDSME::Command::ChangeStateMachine.

◆ redo()

void ChangeStateMachineCommand::redo ( )
override

Definition at line 48 of file changestatemachinecommand.cpp.

◆ setStateMachine()

void ChangeStateMachineCommand::setStateMachine ( KDSME::State * stateMachine)

Definition at line 40 of file changestatemachinecommand.cpp.

References stateMachine, and stateMachineChanged().

◆ stateMachine()

KDSME::State * ChangeStateMachineCommand::stateMachine ( ) const

Definition at line 35 of file changestatemachinecommand.cpp.

◆ stateMachineChanged

void KDSME::ChangeStateMachineCommand::stateMachineChanged ( KDSME::State * statemachine)
signal

Referenced by setStateMachine().

◆ undo()

void ChangeStateMachineCommand::undo ( )
override

Definition at line 63 of file changestatemachinecommand.cpp.

Property Documentation

◆ stateMachine

KDSME::State * KDSME::ChangeStateMachineCommand::stateMachine
readwrite

Definition at line 38 of file changestatemachinecommand_p.h.

Referenced by setStateMachine().


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