KDStateMachineEditor API Documentation 2.1
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for KDSME::ChangeStateMachineCommand:
Collaboration graph
[legend]

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::StatestateMachine () 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)
 
StateModelmodel () const
 

Properties

KDSME::StatestateMachine
 

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.

Member Function Documentation

◆ id()

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

Definition at line 43 of file changestatemachinecommand_p.h.

◆ 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 Tue Jul 15 2025 15:21:47 for KDStateMachineEditor API Documentation by doxygen 1.9.8