KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
KDSME::CreateElementCommand Class Reference

#include <createelementcommand_p.h>

Inheritance diagram for KDSME::CreateElementCommand:
Collaboration diagram for KDSME::CreateElementCommand:

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
Public Member Functions inherited from KDSME::Command
 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

Public Types inherited from KDSME::Command
enum  Id {
  CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot ,
  ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement ,
  ModifyTransition , ChangeStateMachine
}

Detailed Description

Definition at line 24 of file createelementcommand_p.h.

Constructor & Destructor Documentation

◆ CreateElementCommand()

CreateElementCommand::CreateElementCommand ( StateModel * model = nullptr,
Element::Type type = Element::ElementType,
QUndoCommand * parent = nullptr )
explicit

Definition at line 26 of file createelementcommand.cpp.

References KDSME::Command::Command(), KDSME::Command::model(), and type.

◆ ~CreateElementCommand()

CreateElementCommand::~CreateElementCommand ( )

Definition at line 35 of file createelementcommand.cpp.

Member Function Documentation

◆ createdElement()

Element * CreateElementCommand::createdElement ( ) const

Definition at line 69 of file createelementcommand.cpp.

◆ id()

int KDSME::CreateElementCommand::id ( ) const
inlineoverride

Definition at line 44 of file createelementcommand_p.h.

References KDSME::Command::CreateElement.

◆ parentElement()

Element * CreateElementCommand::parentElement ( ) const

Definition at line 41 of file createelementcommand.cpp.

◆ parentElementChanged

void KDSME::CreateElementCommand::parentElementChanged ( KDSME::Element * parentElement)
signal

References parentElement.

Referenced by setParentElement().

◆ redo()

◆ setParentElement()

void CreateElementCommand::setParentElement ( Element * parentElement)

Definition at line 46 of file createelementcommand.cpp.

References parentElement, and parentElementChanged().

◆ setType()

void CreateElementCommand::setType ( Element::Type type)

Definition at line 60 of file createelementcommand.cpp.

References type, and typeChanged().

◆ type()

Element::Type CreateElementCommand::type ( ) const

Definition at line 55 of file createelementcommand.cpp.

◆ typeChanged

void KDSME::CreateElementCommand::typeChanged ( KDSME::Element::Type type)
signal

References type.

Referenced by setType().

◆ undo()

void CreateElementCommand::undo ( )
override

Definition at line 101 of file createelementcommand.cpp.

References KDSME::Command::model().

Property Documentation

◆ parentElement

KDSME::Element * KDSME::CreateElementCommand::parentElement
readwrite

Definition at line 27 of file createelementcommand_p.h.

Referenced by parentElementChanged(), and setParentElement().

◆ type

KDSME::Element::Type KDSME::CreateElementCommand::type
readwrite

Definition at line 28 of file createelementcommand_p.h.

Referenced by CreateElementCommand(), setType(), and typeChanged().


The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor
Generated on for KDStateMachineEditor API Documentation by doxygen 1.15.0