KDStateMachineEditor API Documentation 2.1
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
KDSME::CreateElementCommand Class Reference

#include <createelementcommand_p.h>

Inheritance diagram for KDSME::CreateElementCommand:
Inheritance graph
[legend]
Collaboration diagram for KDSME::CreateElementCommand:
Collaboration graph
[legend]

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 ()
 
ElementcreatedElement () const
 
int id () const override
 
ElementparentElement () 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)
 
StateModelmodel () const
 

Properties

KDSME::ElementparentElement
 
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.

◆ ~CreateElementCommand()

CreateElementCommand::~CreateElementCommand ( )

Definition at line 35 of file createelementcommand.cpp.

References KDSME::Element::parent.

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.

◆ parentElement()

Element * CreateElementCommand::parentElement ( ) const

Definition at line 41 of file createelementcommand.cpp.

◆ parentElementChanged

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

Referenced by setParentElement().

◆ redo()

void CreateElementCommand::redo ( )
override

◆ 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

Referenced by setType().

◆ undo()

void CreateElementCommand::undo ( )
override

Property Documentation

◆ parentElement

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

Definition at line 27 of file createelementcommand_p.h.

Referenced by setParentElement().

◆ type

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

Definition at line 28 of file createelementcommand_p.h.

Referenced by setType().


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 Tue Jul 15 2025 15:21:47 for KDStateMachineEditor API Documentation by doxygen 1.9.8