KDStateMachineEditor  1.0.0
A framework for creating Qt State Machine metacode using a graphical user interface
Public Slots | Signals | Public Member Functions | Protected Slots | Properties | List of all members
KDSME::StateMachineScene Class Reference
Inheritance diagram for KDSME::StateMachineScene:
Inheritance graph
[legend]

Public Slots

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

Signals

void stateMachineChanged (KDSME::StateMachine *stateMachine)
 
void rootStateChanged (KDSME::State *state)
 
void currentItemChanged (KDSME::Element *currentItem)
 
void zoomChanged (qreal zoom)
 
void maximumDepthChanged (int depth)
 
- Signals inherited from KDSME::AbstractScene
void modelChanged (QAbstractItemModel *model)
 
void stateChanged (ViewState state)
 
void instantiatorChanged (QObject *instantiator)
 

Public Member Functions

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

Protected Slots

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

Properties

KDSME::State rootState
 
KDSME::Element currentItem
 
KDSME::LayoutProperties layoutProperties
 
qreal zoom
 
int maximumDepth
 
- Properties inherited from KDSME::AbstractScene
QAbstractItemModel model
 
QQuickItem instantiator
 
ViewState viewState
 

Additional Inherited Members

- Public Types inherited from KDSME::AbstractScene
enum  EditTrigger { NoEditTriggers, SelectedClicked }
 
enum  ViewState { NoState, RefreshState }
 

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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
https://github.com/KDAB/KDStateMachineEditor