2 #include <Scenario/Palette/ScenarioPaletteBaseTransitions.hpp>
5 template <
typename Scenario_T>
13 bool eventTest(QEvent* e)
override
16 static const constexpr QEvent::Type types[]
17 = {QEvent::Type(QEvent::User + MoveOnNothing_Event::user_type),
18 QEvent::Type(QEvent::User + MoveOnState_Event::user_type),
19 QEvent::Type(QEvent::User + MoveOnEvent_Event::user_type),
20 QEvent::Type(QEvent::User + MoveOnTimeSync_Event::user_type),
21 QEvent::Type(QEvent::User + MoveOnInterval_Event::user_type),
22 QEvent::Type(QEvent::User + MoveOnLeftBrace_Event::user_type),
23 QEvent::Type(QEvent::User + MoveOnRightBrace_Event::user_type)};
25 return find(begin(types), end(types), e->type()) != end(types);
28 void onTransition(QEvent* event)
override
32 this->state().currentPoint = qev->point;
36 template <
typename Scenario_T>
44 bool eventTest(QEvent* e)
override
47 static const constexpr QEvent::Type types[]
48 = {QEvent::Type(QEvent::User + MoveOnNothing_Event::user_type),
49 QEvent::Type(QEvent::User + MoveOnState_Event::user_type),
50 QEvent::Type(QEvent::User + MoveOnEvent_Event::user_type),
51 QEvent::Type(QEvent::User + MoveOnInterval_Event::user_type),
52 QEvent::Type(QEvent::User + MoveOnLeftBrace_Event::user_type),
53 QEvent::Type(QEvent::User + MoveOnRightBrace_Event::user_type)};
55 return find(begin(types), end(types), e->type()) != end(types);
58 void onTransition(QEvent* event)
override
62 this->state().currentPoint = qev->point;
66 template <
typename Scenario_T>
74 bool eventTest(QEvent* e)
override
77 static const constexpr QEvent::Type types[]
78 = {QEvent::Type(QEvent::User + MoveOnNothing_Event::user_type),
79 QEvent::Type(QEvent::User + MoveOnTimeSync_Event::user_type),
80 QEvent::Type(QEvent::User + MoveOnInterval_Event::user_type),
81 QEvent::Type(QEvent::User + MoveOnLeftBrace_Event::user_type),
82 QEvent::Type(QEvent::User + MoveOnRightBrace_Event::user_type)};
84 return find(begin(types), end(types), e->type()) != end(types);
87 void onTransition(QEvent* event)
override
91 this->state().currentPoint = qev->point;
95 template <
typename Scenario_T>
103 bool eventTest(QEvent* e)
override
106 static const constexpr QEvent::Type types[]
107 = {QEvent::Type(QEvent::User + MoveOnNothing_Event::user_type),
108 QEvent::Type(QEvent::User + MoveOnInterval_Event::user_type),
109 QEvent::Type(QEvent::User + MoveOnLeftBrace_Event::user_type),
110 QEvent::Type(QEvent::User + MoveOnRightBrace_Event::user_type)};
112 return find(begin(types), end(types), e->type()) != end(types);
115 void onTransition(QEvent* event)
override
119 this->state().currentPoint = qev->point;
126 bool eventTest(QEvent* e)
override
129 static const constexpr QEvent::Type types[]
130 = {QEvent::Type(QEvent::User + ReleaseOnNothing_Event::user_type),
131 QEvent::Type(QEvent::User + ReleaseOnState_Event::user_type),
132 QEvent::Type(QEvent::User + ReleaseOnEvent_Event::user_type),
133 QEvent::Type(QEvent::User + ReleaseOnTimeSync_Event::user_type),
134 QEvent::Type(QEvent::User + ReleaseOnInterval_Event::user_type),
135 QEvent::Type(QEvent::User + ReleaseOnLeftBrace_Event::user_type),
136 QEvent::Type(QEvent::User + ReleaseOnRightBrace_Event::user_type)};
138 return find(begin(types), end(types), e->type()) != end(types);
140 void onTransition(QEvent* event)
override { }
Definition: AnythingTransitions.hpp:8
Definition: AnythingTransitions.hpp:69
Definition: AnythingTransitions.hpp:98
Definition: AnythingTransitions.hpp:39
Definition: AnythingTransitions.hpp:124
Definition: StateMachineUtils.hpp:76
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ScenarioPaletteBaseEvents.hpp:13