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

#include <statemachinescene.h>

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

Classes

struct  Private
 

Public Slots

void layout ()
 
- Public Slots inherited from KDSME::AbstractScene
void setCurrentIndex (const QModelIndex &index)
 

Signals

void currentItemChanged (KDSME::Element *currentItem)
 
void maximumDepthChanged (int depth)
 
void rootStateChanged (KDSME::State *state)
 
void stateMachineChanged (KDSME::StateMachine *stateMachine)
 
void zoomChanged (qreal zoom)
 
- Signals inherited from KDSME::AbstractScene
void contextMenuPolicyChanged (Qt::ContextMenuPolicy contextMenuPolicy)
 
void customContextMenuEvent (KDSME::AbstractSceneContextMenuEvent *event)
 
void instantiatorChanged (QObject *instantiator)
 
void modelChanged (QAbstractItemModel *model)
 
void viewStateChanged (KDSME::AbstractScene::ViewState state)
 

Public Member Functions

 StateMachineScene (QQuickItem *parent=nullptr)
 
 ~StateMachineScene ()
 
Q_INVOKABLE void collapseItem (KDSME::State *state)
 
KDSME::ElementcurrentItem () const
 
KDSME::ElementcurrentState () const
 
Q_INVOKABLE void expandItem (KDSME::State *state)
 
Q_INVOKABLE bool isItemExpanded (KDSME::State *state) const
 
Q_INVOKABLE bool isItemSelected (KDSME::Element *item)
 
Layouterlayouter () const
 
LayoutPropertieslayoutProperties () const
 
int maximumDepth () const
 
StaterootState () const
 
void setCurrentItem (KDSME::Element *item)
 
Q_INVOKABLE void setItemExpanded (KDSME::State *state, bool expand)
 
Q_INVOKABLE void setItemSelected (KDSME::Element *item, bool selected)
 
void setLayouter (Layouter *layouter)
 Ownership is transferred.
 
void setMaximumDepth (int maximumDepth)
 
void setModel (QAbstractItemModel *model) override
 
void setRootState (State *rootState)
 
void setZoom (qreal zoom)
 
StateModelstateModel () const
 
qreal zoom () const
 
void zoomBy (qreal scale)
 
- Public Member Functions inherited from KDSME::AbstractScene
 AbstractScene (QQuickItem *parent=nullptr)
 
virtual ~AbstractScene ()
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
QModelIndex currentIndex () const
 
EditTriggers editTriggers () const
 
QQuickItem * instantiator () const
 
QObject * itemForIndex (const QModelIndex &index) const
 
QAbstractItemModel * model () const
 
QItemSelectionModel * selectionModel () const
 
void setContextMenuPolicy (Qt::ContextMenuPolicy contextMenuPolicy)
 
void setEditTriggers (EditTriggers triggers)
 
void setInstantiator (QQuickItem *instantiator)
 
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
 
ViewState viewState () const
 

Protected Slots

void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 
void layoutChanged () override
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
- Protected Slots inherited from KDSME::AbstractScene
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
virtual void layoutChanged ()
 
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
void setViewState (KDSME::AbstractScene::ViewState state)
 

Properties

KDSME::ElementcurrentItem
 
KDSME::LayoutPropertieslayoutProperties
 
int maximumDepth
 
KDSME::StaterootState
 
qreal zoom
 
- Properties inherited from KDSME::AbstractScene
Qt::ContextMenuPolicy ContextMenuPolicy
 
QQuickItem * instantiator
 
QAbstractItemModel * model
 
ViewState viewState
 

Additional Inherited Members

- Public Types inherited from KDSME::AbstractScene
enum  EditTrigger { NoEditTriggers , SelectedClicked }
 
enum  ViewState { NoState , RefreshState }
 
- Protected Member Functions inherited from KDSME::AbstractScene
bool event (QEvent *event) override
 

Detailed Description

Definition at line 34 of file statemachinescene.h.

Constructor & Destructor Documentation

◆ StateMachineScene()

StateMachineScene::StateMachineScene ( QQuickItem *  parent = nullptr)
explicit

Definition at line 61 of file statemachinescene.cpp.

References setModel().

◆ ~StateMachineScene()

StateMachineScene::~StateMachineScene ( )

Definition at line 68 of file statemachinescene.cpp.

Member Function Documentation

◆ collapseItem()

void StateMachineScene::collapseItem ( KDSME::State state)

Definition at line 77 of file statemachinescene.cpp.

References KDSME::State::setExpanded().

Referenced by setItemExpanded().

◆ currentChanged

void StateMachineScene::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
overrideprotectedslot

◆ currentItem()

Element * StateMachineScene::currentItem ( ) const

◆ currentItemChanged

void KDSME::StateMachineScene::currentItemChanged ( KDSME::Element currentItem)
signal

Referenced by currentChanged().

◆ currentState()

Element * StateMachineScene::currentState ( ) const

◆ expandItem()

void StateMachineScene::expandItem ( KDSME::State state)

Definition at line 86 of file statemachinescene.cpp.

References KDSME::State::setExpanded().

Referenced by setItemExpanded().

◆ isItemExpanded()

bool StateMachineScene::isItemExpanded ( KDSME::State state) const

Definition at line 95 of file statemachinescene.cpp.

References KDSME::State::isExpanded().

◆ isItemSelected()

bool StateMachineScene::isItemSelected ( KDSME::Element item)

◆ layout

void StateMachineScene::layout ( )
slot

◆ layoutChanged

void StateMachineScene::layoutChanged ( )
overrideprotectedslot

Definition at line 373 of file statemachinescene.cpp.

References KDSME::AbstractScene::layoutChanged().

◆ layouter()

Layouter * StateMachineScene::layouter ( ) const

Definition at line 176 of file statemachinescene.cpp.

Referenced by setLayouter().

◆ layoutProperties()

LayoutProperties * StateMachineScene::layoutProperties ( ) const

Definition at line 72 of file statemachinescene.cpp.

◆ maximumDepth()

int StateMachineScene::maximumDepth ( ) const

Definition at line 218 of file statemachinescene.cpp.

◆ maximumDepthChanged

void KDSME::StateMachineScene::maximumDepthChanged ( int  depth)
signal

Referenced by setMaximumDepth().

◆ rootState()

State * StateMachineScene::rootState ( ) const

Definition at line 154 of file statemachinescene.cpp.

◆ rootStateChanged

void KDSME::StateMachineScene::rootStateChanged ( KDSME::State state)
signal

◆ rowsAboutToBeRemoved

void StateMachineScene::rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideprotectedslot

◆ rowsInserted

void StateMachineScene::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideprotectedslot

Definition at line 368 of file statemachinescene.cpp.

References KDSME::AbstractScene::rowsInserted().

◆ setCurrentItem()

void StateMachineScene::setCurrentItem ( KDSME::Element item)

◆ setItemExpanded()

void StateMachineScene::setItemExpanded ( KDSME::State state,
bool  expand 
)

Definition at line 100 of file statemachinescene.cpp.

References collapseItem(), and expandItem().

◆ setItemSelected()

void StateMachineScene::setItemSelected ( KDSME::Element item,
bool  selected 
)

◆ setLayouter()

void StateMachineScene::setLayouter ( Layouter layouter)

Ownership is transferred.

Definition at line 181 of file statemachinescene.cpp.

References layout(), and layouter().

◆ setMaximumDepth()

void StateMachineScene::setMaximumDepth ( int  maximumDepth)

◆ setModel()

void StateMachineScene::setModel ( QAbstractItemModel *  model)
overridevirtual

◆ setRootState()

void StateMachineScene::setRootState ( State rootState)

◆ setZoom()

void StateMachineScene::setZoom ( qreal  zoom)

Definition at line 201 of file statemachinescene.cpp.

References zoom, and zoomChanged().

Referenced by layout(), setRootState(), and zoomBy().

◆ stateMachineChanged

void KDSME::StateMachineScene::stateMachineChanged ( KDSME::StateMachine stateMachine)
signal

◆ stateModel()

StateModel * StateMachineScene::stateModel ( ) const

◆ zoom()

qreal StateMachineScene::zoom ( ) const

Definition at line 196 of file statemachinescene.cpp.

◆ zoomBy()

void StateMachineScene::zoomBy ( qreal  scale)

Definition at line 213 of file statemachinescene.cpp.

References setZoom().

Referenced by KDSME::StateMachineView::fitInView().

◆ zoomChanged

void KDSME::StateMachineScene::zoomChanged ( qreal  zoom)
signal

Referenced by setZoom().

Property Documentation

◆ currentItem

KDSME::Element * KDSME::StateMachineScene::currentItem
readwrite

Definition at line 38 of file statemachinescene.h.

Referenced by currentChanged().

◆ layoutProperties

KDSME::LayoutProperties * KDSME::StateMachineScene::layoutProperties
read

Definition at line 39 of file statemachinescene.h.

Referenced by layout().

◆ maximumDepth

int KDSME::StateMachineScene::maximumDepth
readwrite

Definition at line 41 of file statemachinescene.h.

Referenced by setMaximumDepth().

◆ rootState

KDSME::State * KDSME::StateMachineScene::rootState
readwrite

Definition at line 37 of file statemachinescene.h.

Referenced by KDSME::StateMachineView::fitInView(), and setRootState().

◆ zoom

qreal KDSME::StateMachineScene::zoom
readwrite

Definition at line 40 of file statemachinescene.h.

Referenced by setZoom().


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