SlotTransitions.hpp
1 #pragma once
2 
3 #include <Scenario/Palette/ScenarioPaletteBaseEvents.hpp>
4 
5 #include <score/statemachine/StateMachineUtils.hpp>
6 
7 #include <score_plugin_scenario_export.h>
8 class QEvent;
9 namespace Scenario
10 {
11 class SlotState;
12 } // namespace Scenario
13 
14 namespace Scenario
15 {
16 class SCORE_PLUGIN_SCENARIO_EXPORT ClickOnSlotHandle_Transition final
17  : public score::MatchedTransition<ClickOnSlotHandle_Event>
18 {
19 public:
21 
22  Scenario::SlotState& state() const;
23 
24 protected:
25  void onTransition(QEvent* ev) override;
26 
27 private:
28  Scenario::SlotState& m_state;
29 };
30 class SCORE_PLUGIN_SCENARIO_EXPORT MoveOnSlotHandle_Transition final
31  : public score::MatchedTransition<MoveOnSlotHandle_Event>
32 {
33 public:
35 
36  Scenario::SlotState& state() const;
37 
38 protected:
39  void onTransition(QEvent* ev) override;
40 
41 private:
42  Scenario::SlotState& m_state;
43 };
44 
45 class SCORE_PLUGIN_SCENARIO_EXPORT ReleaseOnSlotHandle_Transition final
46  : public score::MatchedTransition<ReleaseOnSlotHandle_Event>
47 {
48 public:
50 
51  Scenario::SlotState& state() const;
52 
53 protected:
54  void onTransition(QEvent* ev) override;
55 
56 private:
57  Scenario::SlotState& m_state;
58 };
59 }
Definition: SlotTransitions.hpp:18
Definition: SlotTransitions.hpp:32
Definition: SlotTransitions.hpp:47
Definition: ScenarioPaletteBaseStates.hpp:60
Definition: StateMachineUtils.hpp:60
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14