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

Modifies the initial state of a KDSME::State. More...

#include <modifyinitialstatecommand_p.h>

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

Public Member Functions

 ModifyInitialStateCommand (State *state, State *initialState, QUndoCommand *parent=nullptr)
 
 ~ModifyInitialStateCommand ()
 
int id () const override
 
void redo () override
 
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
 

Additional Inherited Members

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

Detailed Description

Modifies the initial state of a KDSME::State.

On undo the previous initial state is restored.

Definition at line 32 of file modifyinitialstatecommand_p.h.

Constructor & Destructor Documentation

◆ ModifyInitialStateCommand()

ModifyInitialStateCommand::ModifyInitialStateCommand ( State state,
State initialState,
QUndoCommand *  parent = nullptr 
)
explicit

Definition at line 25 of file modifyinitialstatecommand.cpp.

References KDSME::Element::label.

◆ ~ModifyInitialStateCommand()

ModifyInitialStateCommand::~ModifyInitialStateCommand ( )
default

Member Function Documentation

◆ id()

int ModifyInitialStateCommand::id ( ) const
override

Definition at line 36 of file modifyinitialstatecommand.cpp.

References KDSME::Command::ModifyInitialState.

◆ redo()

void ModifyInitialStateCommand::redo ( )
override

◆ undo()

void ModifyInitialStateCommand::undo ( )
override

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