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

#include <commandfactory_p.h>

Inheritance diagram for CommandFactory:
Inheritance graph
[legend]
Collaboration diagram for CommandFactory:
Collaboration graph
[legend]

Signals

void modelChanged (KDSME::StateModel *model)
 

Public Member Functions

 CommandFactory (QObject *parent=nullptr)
 
Q_INVOKABLE KDSME::ChangeStateMachineCommandchangeStateMachineElement (KDSME::StateMachineScene *view, KDSME::StateMachine *statemachine)
 
Q_INVOKABLE KDSME::CreateElementCommandcreateElement (KDSME::StateModel *model, KDSME::Element::Type type, KDSME::Element *parentElement=nullptr) const
 
Q_INVOKABLE KDSME::DeleteElementCommanddeleteElement (KDSME::StateMachineScene *view, KDSME::Element *element) const
 
Q_INVOKABLE KDSME::LayoutSnapshotCommandlayoutSnapshot (KDSME::StateMachineScene *view, const QString &text=QString()) const
 
KDSME::StateModelmodel () const
 
Q_INVOKABLE KDSME::ModifyElementCommandmodifyElement (KDSME::Element *item)
 
Q_INVOKABLE KDSME::ModifyPropertyCommandmodifyProperty (QObject *object, const char *property, const QVariant &value, const QString &text=QString())
 
Q_INVOKABLE KDSME::ModifyPropertyCommandmodifyProperty (QObject *object, const QJsonObject &propertyMap, const QString &text=QString())
 
Q_INVOKABLE KDSME::ModifyTransitionCommandmodifyTransition (KDSME::Transition *transition, KDSME::StateModel *model)
 
Q_INVOKABLE KDSME::ReparentElementCommandreparentElement (KDSME::StateMachineScene *view, KDSME::Element *element)
 
void setModel (KDSME::StateModel *model)
 

Properties

KDSME::StateModelmodel
 

Detailed Description

Definition at line 39 of file commandfactory_p.h.

Constructor & Destructor Documentation

◆ CommandFactory()

CommandFactory::CommandFactory ( QObject *  parent = nullptr)
explicit

Definition at line 34 of file commandfactory.cpp.

Member Function Documentation

◆ changeStateMachineElement()

ChangeStateMachineCommand * CommandFactory::changeStateMachineElement ( KDSME::StateMachineScene view,
KDSME::StateMachine statemachine 
)

Definition at line 103 of file commandfactory.cpp.

◆ createElement()

CreateElementCommand * CommandFactory::createElement ( KDSME::StateModel model,
KDSME::Element::Type  type,
KDSME::Element parentElement = nullptr 
) const

Definition at line 61 of file commandfactory.cpp.

References model.

◆ deleteElement()

DeleteElementCommand * CommandFactory::deleteElement ( KDSME::StateMachineScene view,
KDSME::Element element 
) const

Definition at line 68 of file commandfactory.cpp.

◆ layoutSnapshot()

LayoutSnapshotCommand * CommandFactory::layoutSnapshot ( KDSME::StateMachineScene view,
const QString &  text = QString() 
) const

Definition at line 73 of file commandfactory.cpp.

◆ model()

StateModel * CommandFactory::model ( ) const

Definition at line 47 of file commandfactory.cpp.

◆ modelChanged

void CommandFactory::modelChanged ( KDSME::StateModel model)
signal

Referenced by setModel().

◆ modifyElement()

ModifyElementCommand * CommandFactory::modifyElement ( KDSME::Element item)

Definition at line 88 of file commandfactory.cpp.

◆ modifyProperty() [1/2]

ModifyPropertyCommand * CommandFactory::modifyProperty ( QObject *  object,
const char *  property,
const QVariant &  value,
const QString &  text = QString() 
)

Definition at line 78 of file commandfactory.cpp.

◆ modifyProperty() [2/2]

ModifyPropertyCommand * CommandFactory::modifyProperty ( QObject *  object,
const QJsonObject &  propertyMap,
const QString &  text = QString() 
)

Definition at line 83 of file commandfactory.cpp.

◆ modifyTransition()

KDSME::ModifyTransitionCommand * CommandFactory::modifyTransition ( KDSME::Transition transition,
KDSME::StateModel model 
)

Definition at line 93 of file commandfactory.cpp.

References model.

◆ reparentElement()

ReparentElementCommand * CommandFactory::reparentElement ( KDSME::StateMachineScene view,
KDSME::Element element 
)

Definition at line 98 of file commandfactory.cpp.

◆ setModel()

void CommandFactory::setModel ( KDSME::StateModel model)

Definition at line 52 of file commandfactory.cpp.

References model, and modelChanged().

Property Documentation

◆ model

KDSME::StateModel * CommandFactory::model
readwrite

Definition at line 42 of file commandfactory_p.h.

Referenced by createElement(), modifyTransition(), and setModel().


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