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

Modifies the default state of a KDSME::HistoryState. More...

#include <modifydefaultstatecommand_p.h>

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

Public Member Functions

 ModifyDefaultStateCommand (HistoryState *state, State *defaultState, QUndoCommand *parent=nullptr)
 
 ~ModifyDefaultStateCommand ()
 
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 default state of a KDSME::HistoryState.

On undo, the previous default state is restored.

Definition at line 33 of file modifydefaultstatecommand_p.h.

Constructor & Destructor Documentation

◆ ModifyDefaultStateCommand()

ModifyDefaultStateCommand::ModifyDefaultStateCommand ( HistoryState state,
State defaultState,
QUndoCommand *  parent = nullptr 
)
explicit

Definition at line 25 of file modifydefaultstatecommand.cpp.

References KDSME::Element::label.

◆ ~ModifyDefaultStateCommand()

ModifyDefaultStateCommand::~ModifyDefaultStateCommand ( )
default

Member Function Documentation

◆ id()

int ModifyDefaultStateCommand::id ( ) const
override

Definition at line 36 of file modifydefaultstatecommand.cpp.

References KDSME::Command::ModifyDefaultState.

◆ redo()

void ModifyDefaultStateCommand::redo ( )
override

Definition at line 49 of file modifydefaultstatecommand.cpp.

◆ undo()

void ModifyDefaultStateCommand::undo ( )
override

Definition at line 41 of file modifydefaultstatecommand.cpp.


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