|
KDStateMachineEditor API Documentation 2.3
|
Modifies the parent element of a KDSME::Element. More...
#include <reparentelementcommand_p.h>


Public Member Functions | |
| ReparentElementCommand (StateMachineScene *view, Element *element, QUndoCommand *parent=nullptr) | |
| int | id () const override |
| void | redo () override |
| Q_INVOKABLE void | setParentElement (KDSME::Element *parentElement) |
| 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 |
Additional Inherited Members | |
Public Types inherited from KDSME::Command | |
| enum | Id { CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot , ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement , ModifyTransition , ChangeStateMachine } |
Modifies the parent element of a KDSME::Element.
This command is useful when dragging & dropping elements into a different level in the state chart hierarchy. On undo, the previous parent is restored.
Definition at line 35 of file reparentelementcommand_p.h.
| ReparentElementCommand::ReparentElementCommand | ( | StateMachineScene * | view, |
| Element * | element, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Definition at line 26 of file reparentelementcommand.cpp.
|
inlineoverride |
Definition at line 42 of file reparentelementcommand_p.h.
|
override |
Definition at line 41 of file reparentelementcommand.cpp.
| void ReparentElementCommand::setParentElement | ( | KDSME::Element * | parentElement | ) |
Definition at line 36 of file reparentelementcommand.cpp.
|
override |
Definition at line 58 of file reparentelementcommand.cpp.