38 qRegisterMetaType<CreateElementCommand *>();
39 qRegisterMetaType<DeleteElementCommand *>();
40 qRegisterMetaType<ModifyElementCommand *>();
41 qRegisterMetaType<ModifyPropertyCommand *>();
42 qRegisterMetaType<ModifyTransitionCommand *>();
43 qRegisterMetaType<ReparentElementCommand *>();
44 qRegisterMetaType<ChangeStateMachineCommand *>();
64 cmd->setParentElement(parentElement);
106 cmd->setStateMachine(statemachine);
void modelChanged(KDSME::StateModel *model)
Q_INVOKABLE KDSME::ReparentElementCommand * reparentElement(KDSME::StateMachineScene *view, KDSME::Element *element)
void setModel(KDSME::StateModel *model)
Q_INVOKABLE KDSME::ChangeStateMachineCommand * changeStateMachineElement(KDSME::StateMachineScene *view, KDSME::StateMachine *statemachine)
Q_INVOKABLE KDSME::ModifyElementCommand * modifyElement(KDSME::Element *item)
Q_INVOKABLE KDSME::LayoutSnapshotCommand * layoutSnapshot(KDSME::StateMachineScene *view, const QString &text=QString()) const
KDSME::StateModel * model
Q_INVOKABLE KDSME::DeleteElementCommand * deleteElement(KDSME::StateMachineScene *view, KDSME::Element *element) const
Q_INVOKABLE KDSME::CreateElementCommand * createElement(KDSME::StateModel *model, KDSME::Element::Type type, KDSME::Element *parentElement=nullptr) const
Q_INVOKABLE KDSME::ModifyPropertyCommand * modifyProperty(QObject *object, const char *property, const QVariant &value, const QString &text=QString())
CommandFactory(QObject *parent=nullptr)
Q_INVOKABLE KDSME::ModifyTransitionCommand * modifyTransition(KDSME::Transition *transition, KDSME::StateModel *model)
Changes the state machine of a KDSME::StateMachineScene and records the old state machine the scene w...
This is the inverse operation to the KDSME::CreateElementCommand command.
Creates a snapshot of the current layout of the state chart.
Command for modifying properties of KDSME::Element.
Modifies any specific property of a QObject.
Command for modifying properties of a KDSME::Transition.
Modifies the parent element of a KDSME::Element.