23 #ifndef KDSME_MODEL_STATE_H
24 #define KDSME_MODEL_STATE_H
30 class RuntimeController;
32 class SignalTransition;
33 class TimeoutTransition;
39 Q_PROPERTY(QString onEntry READ onEntry WRITE setOnEntry NOTIFY onEntryChanged FINAL)
40 Q_PROPERTY(QString onExit READ onExit WRITE setOnExit NOTIFY onExitChanged FINAL)
41 Q_PROPERTY(ChildMode childMode READ childMode WRITE setChildMode NOTIFY childModeChanged FINAL)
42 Q_PROPERTY(
bool isComposite READ isComposite NOTIFY isCompositeChanged FINAL)
43 Q_PROPERTY(
bool expanded READ isExpanded WRITE setExpanded NOTIFY expandedChanged FINAL)
54 virtual Type type()
const override;
58 State* initialState()
const;
59 void setInitialState(
State* initialState);
61 QList<State*> childStates()
const;
63 QList<Transition*> transitions()
const;
71 QString onEntry()
const;
72 void setOnEntry(
const QString& onEntry);
77 QString onExit()
const;
78 void setOnExit(
const QString& onExit);
80 ChildMode childMode()
const;
81 void setChildMode(ChildMode childMode);
86 bool isComposite()
const;
88 bool isExpanded()
const;
89 void setExpanded(
bool expanded);
94 virtual bool event(QEvent* event)
override;
97 void onEntryChanged(
const QString& onEntry);
98 void onExitChanged(
const QString& onExit);
99 void childModeChanged(ChildMode childMode);
100 void isCompositeChanged(
bool isComposite);
101 void expandedChanged(
bool expanded);
105 QScopedPointer<Private> d;
112 Q_PROPERTY(
KDSME::State* defaultState READ defaultState WRITE setDefaultState NOTIFY defaultStateChanged FINAL)
113 Q_PROPERTY(HistoryType historyType READ historyType WRITE setHistoryType NOTIFY historyTypeChanged FINAL)
125 virtual Type type()
const override;
126 virtual QString toDisplayString()
const override;
128 State* defaultState()
const;
129 void setDefaultState(
State *state);
131 HistoryType historyType()
const;
132 void setHistoryType(HistoryType historyType);
135 void defaultStateChanged(
State *state);
136 void historyTypeChanged();
140 QScopedPointer<Private> d;
143 KDSME_CORE_EXPORT QDebug operator<<(QDebug dbg,
const State* representative);
153 virtual Type type()
const override;
157 QScopedPointer<Private> d;
163 Q_PROPERTY(
KDSME::RuntimeController* runtimeController READ runtimeController WRITE setRuntimeController NOTIFY runtimeControllerChanged)
169 virtual Type type()
const override;
179 QScopedPointer<Private> d;
185 Q_PROPERTY(Kind kind READ kind WRITE setKind NOTIFY kindChanged FINAL)
196 virtual Type type()
const override;
199 void setKind(Kind kind);
201 QString kindString()
const;
203 virtual QString toDisplayString()
const override;
206 void kindChanged(Kind kind);
210 QScopedPointer<Private> d;
213 KDSME_CORE_EXPORT QDebug operator<<(QDebug dbg,
const PseudoState* representative);
217 Q_DECLARE_METATYPE(KDSME::PseudoState::Kind)
Definition: transition.h:82
Definition: transition.h:30
Definition: runtimecontroller.h:37
Definition: transition.h:104
Definition: abstractexporter.h:33