26 #ifndef KDSME_VIEW_STATEMACHINESCENE_H
27 #define KDSME_VIEW_STATEMACHINESCENE_H
29 #include "kdsme_view_export.h"
30 #include "abstractscene.h"
37 class LayoutProperties;
46 Q_PROPERTY(
KDSME::State* rootState READ rootState WRITE setRootState NOTIFY rootStateChanged)
47 Q_PROPERTY(
KDSME::Element* currentItem READ currentItem WRITE setCurrentItem NOTIFY currentItemChanged)
49 Q_PROPERTY(qreal zoom READ zoom WRITE setZoom NOTIFY zoomChanged FINAL)
50 Q_PROPERTY(
int maximumDepth READ maximumDepth WRITE setMaximumDepth NOTIFY maximumDepthChanged FINAL)
57 virtual void setModel(QAbstractItemModel* model)
override;
59 State* rootState()
const;
60 void setRootState(
State* rootState);
64 void setLayouter(
Layouter* layouter);
67 void setZoom(qreal zoom);
69 void zoomBy(qreal scale);
71 int maximumDepth()
const;
72 void setMaximumDepth(
int depth);
78 Q_INVOKABLE
bool isItemExpanded(
KDSME::State* state)
const;
79 Q_INVOKABLE
void setItemExpanded(
KDSME::State* state,
bool expand);
82 Q_INVOKABLE
void setItemSelected(
KDSME::Element* item,
bool selected);
96 void zoomChanged(qreal zoom);
97 void maximumDepthChanged(
int depth);
100 virtual void currentChanged(
const QModelIndex& current,
const QModelIndex& previous)
override;
102 virtual void rowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end)
override;
103 virtual void rowsInserted(
const QModelIndex& parent,
int start,
int end)
override;
104 virtual void layoutChanged()
override;
108 QScopedPointer<Private> d;
Definition: layoutproperties.h:37
Definition: elementmodel.h:97
Definition: abstractscene.h:38
Definition: layouter.h:40
Definition: statemachinescene.h:43
Definition: abstractexporter.h:33