KDStateMachineEditor API Documentation 2.1
|
Creates a snapshot of the current layout of the state chart. More...
#include <layoutsnapshotcommand_p.h>
Public Member Functions | |
LayoutSnapshotCommand (StateMachineScene *scene, const QString &text, QUndoCommand *parent=nullptr) | |
LayoutSnapshotCommand (StateMachineScene *scene, QUndoCommand *parent=nullptr) | |
int | id () const override |
void | redo () override |
void | undo () override |
![]() | |
Command (const QString &text=QString(), QUndoCommand *parent=nullptr) | |
Command (StateModel *model, QUndoCommand *parent=nullptr) | |
StateModel * | model () const |
Additional Inherited Members | |
![]() | |
enum | Id { CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot , ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement , ModifyTransition , ChangeStateMachine } |
Creates a snapshot of the current layout of the state chart.
This is useful when a user requested an automatic layout manually. This command should be used before the automatic layout happens, so the user can restore the initial layout when undoing the command.
Definition at line 34 of file layoutsnapshotcommand_p.h.
|
explicit |
Definition at line 22 of file layoutsnapshotcommand.cpp.
LayoutSnapshotCommand::LayoutSnapshotCommand | ( | StateMachineScene * | scene, |
const QString & | text, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 28 of file layoutsnapshotcommand.cpp.
|
inlineoverride |
Definition at line 42 of file layoutsnapshotcommand_p.h.
|
override |
Definition at line 34 of file layoutsnapshotcommand.cpp.
|
override |
Definition at line 39 of file layoutsnapshotcommand.cpp.