KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
CommandFactory Class Reference

#include <commandfactory_p.h>

Inheritance diagram for CommandFactory:
Collaboration diagram for CommandFactory:

Signals

void modelChanged (KDSME::StateModel *model)

Public Member Functions

 CommandFactory (QObject *parent=nullptr)
Q_INVOKABLE KDSME::ChangeStateMachineCommand * changeStateMachineElement (KDSME::StateMachineScene *view, KDSME::StateMachine *statemachine)
Q_INVOKABLE KDSME::CreateElementCommand * createElement (KDSME::StateModel *model, KDSME::Element::Type type, KDSME::Element *parentElement=nullptr) const
Q_INVOKABLE KDSME::DeleteElementCommand * deleteElement (KDSME::StateMachineScene *view, KDSME::Element *element) const
Q_INVOKABLE KDSME::LayoutSnapshotCommand * layoutSnapshot (KDSME::StateMachineScene *view, const QString &text=QString()) const
KDSME::StateModel * model () const
Q_INVOKABLE KDSME::ModifyElementCommand * modifyElement (KDSME::Element *item)
Q_INVOKABLE KDSME::ModifyPropertyCommand * modifyProperty (QObject *object, const char *property, const QVariant &value, const QString &text=QString())
Q_INVOKABLE KDSME::ModifyPropertyCommand * modifyProperty (QObject *object, const QJsonObject &propertyMap, const QString &text=QString())
Q_INVOKABLE KDSME::ModifyTransitionCommand * modifyTransition (KDSME::Transition *transition, KDSME::StateModel *model)
Q_INVOKABLE KDSME::ReparentElementCommand * reparentElement (KDSME::StateMachineScene *view, KDSME::Element *element)
void setModel (KDSME::StateModel *model)

Properties

KDSME::StateModel * model

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

References model.

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(), modelChanged(), 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 for KDStateMachineEditor API Documentation by doxygen 1.15.0