KDStateMachineEditor  1.1.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

Public Slots

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


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)
void contextMenuPolicyChanged (Qt::ContextMenuPolicy contextMenuPolicy)
void customContextMenuEvent (KDSME::AbstractSceneContextMenuEvent *event)

Public Member Functions

 StateMachineScene (QQuickItem *parent=nullptr)
StateModelstateModel () const
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 () const
- 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
void setContextMenuPolicy (Qt::ContextMenuPolicy contextMenuPolicy)
Qt::ContextMenuPolicy contextMenuPolicy () const
QObject * itemForIndex (const QModelIndex &index) const
ViewState viewState () const
QModelIndex currentIndex () const

Protected Slots

void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
void rowsInserted (const QModelIndex &parent, int start, int end) override
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)


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

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

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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products