KDStateMachineEditor API Documentation 2.1
|
#include <createelementcommand_p.h>
Signals | |
void | parentElementChanged (KDSME::Element *parentElement) |
void | typeChanged (KDSME::Element::Type type) |
Public Member Functions | |
CreateElementCommand (StateModel *model=nullptr, Element::Type type=Element::ElementType, QUndoCommand *parent=nullptr) | |
~CreateElementCommand () | |
Element * | createdElement () const |
int | id () const override |
Element * | parentElement () const |
void | redo () override |
void | setParentElement (Element *parentElement) |
void | setType (Element::Type type) |
Element::Type | type () const |
void | undo () override |
![]() | |
Command (const QString &text=QString(), QUndoCommand *parent=nullptr) | |
Command (StateModel *model, QUndoCommand *parent=nullptr) | |
StateModel * | model () const |
Properties | |
KDSME::Element * | parentElement |
KDSME::Element::Type | type |
Additional Inherited Members | |
![]() | |
enum | Id { CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot , ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement , ModifyTransition , ChangeStateMachine } |
Definition at line 24 of file createelementcommand_p.h.
|
explicit |
Definition at line 26 of file createelementcommand.cpp.
CreateElementCommand::~CreateElementCommand | ( | ) |
Definition at line 35 of file createelementcommand.cpp.
References KDSME::Element::parent.
Element * CreateElementCommand::createdElement | ( | ) | const |
Definition at line 69 of file createelementcommand.cpp.
|
inlineoverride |
Definition at line 44 of file createelementcommand_p.h.
Element * CreateElementCommand::parentElement | ( | ) | const |
Definition at line 41 of file createelementcommand.cpp.
|
signal |
Referenced by setParentElement().
|
override |
Definition at line 74 of file createelementcommand.cpp.
References KDSME::ElementFactory::create(), KDSME::Element::ElementType, KDSME::Command::model(), KDSME::Element::setLabel(), KDSME::Element::setParent(), and KDSME::StateModel::state.
void CreateElementCommand::setParentElement | ( | Element * | parentElement | ) |
Definition at line 46 of file createelementcommand.cpp.
References parentElement, and parentElementChanged().
void CreateElementCommand::setType | ( | Element::Type | type | ) |
Definition at line 60 of file createelementcommand.cpp.
References type, and typeChanged().
Element::Type CreateElementCommand::type | ( | ) | const |
Definition at line 55 of file createelementcommand.cpp.
|
signal |
Referenced by setType().
|
override |
Definition at line 101 of file createelementcommand.cpp.
References KDSME::Command::model(), and KDSME::Element::setParent().
|
readwrite |
Definition at line 27 of file createelementcommand_p.h.
Referenced by setParentElement().
|
readwrite |
Definition at line 28 of file createelementcommand_p.h.
Referenced by setType().