|
KDStateMachineEditor API Documentation 2.3
|
Changes the state machine of a KDSME::StateMachineScene and records the old state machine the scene was showing. More...
#include <changestatemachinecommand_p.h>


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 } |
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.
|
explicit |
Definition at line 26 of file changestatemachinecommand.cpp.
|
inlineoverride |
Definition at line 43 of file changestatemachinecommand_p.h.
|
override |
Definition at line 48 of file changestatemachinecommand.cpp.
| void ChangeStateMachineCommand::setStateMachine | ( | KDSME::State * | stateMachine | ) |
Definition at line 40 of file changestatemachinecommand.cpp.
References stateMachine, and stateMachineChanged().
| KDSME::State * ChangeStateMachineCommand::stateMachine | ( | ) | const |
Definition at line 35 of file changestatemachinecommand.cpp.
|
signal |
Referenced by setStateMachine().
|
override |
Definition at line 63 of file changestatemachinecommand.cpp.
|
readwrite |
Definition at line 38 of file changestatemachinecommand_p.h.
Referenced by setStateMachine().