KDStateMachineEditor API Documentation 2.1
|
Command for modifying properties of a KDSME::Transition. More...
#include <modifytransitioncommand_p.h>
Public Member Functions | |
ModifyTransitionCommand (Transition *transition, StateModel *model, QUndoCommand *parent=nullptr) | |
int | id () const override |
bool | mergeWith (const QUndoCommand *other) override |
void | redo () override |
Q_INVOKABLE void | setShape (const QPainterPath &shape) |
Q_INVOKABLE void | setSourceState (KDSME::State *sourceState) |
Q_INVOKABLE void | setTargetState (KDSME::State *targetState) |
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 } |
Command for modifying properties of a KDSME::Transition.
A command can only set one property at the time. On undo, the previous value of the particular property is restored.
Definition at line 35 of file modifytransitioncommand_p.h.
|
explicit |
Definition at line 24 of file modifytransitioncommand.cpp.
|
inlineoverride |
Definition at line 42 of file modifytransitioncommand_p.h.
|
override |
Definition at line 76 of file modifytransitioncommand.cpp.
|
override |
Definition at line 31 of file modifytransitioncommand.cpp.
References KDSME::Command::model().
void ModifyTransitionCommand::setShape | ( | const QPainterPath & | shape | ) |
Definition at line 107 of file modifytransitioncommand.cpp.
void ModifyTransitionCommand::setSourceState | ( | KDSME::State * | sourceState | ) |
Definition at line 93 of file modifytransitioncommand.cpp.
void ModifyTransitionCommand::setTargetState | ( | KDSME::State * | targetState | ) |
Definition at line 100 of file modifytransitioncommand.cpp.
|
override |
Definition at line 55 of file modifytransitioncommand.cpp.
References KDSME::Command::model().