2 #include <Scenario/Palette/ScenarioPaletteBaseTransitions.hpp>
3 #include <Scenario/Process/ScenarioInterface.hpp>
6 template <
typename Scenario_T>
14 void onTransition(QEvent* ev)
override
17 this->state().clear();
19 this->state().clickedState = qev->id;
20 this->state().currentPoint = qev->point;
24 template <
typename Scenario_T>
27 template <
typename Scenario_T>
35 bool eventTest(QEvent* e)
override
37 if(e->type() == QEvent::Type(QEvent::User + ClickOnState_Event::user_type))
40 return qev->id == Scenario::endId<StateModel>();
45 void onTransition(QEvent* ev)
override
48 this->state().clear();
50 this->state().clickedState = qev->id;
51 this->state().currentPoint = qev->point;
55 template <
typename Scenario_T>
63 void onTransition(QEvent* ev)
override
67 this->state().hoveredState = qev->id;
68 this->state().currentPoint = qev->point;
72 template <
typename Scenario_T>
75 template <
typename Scenario_T>
83 void onTransition(QEvent* ev)
override
87 this->state().hoveredState = qev->id;
88 this->state().currentPoint = qev->point;
92 template <
typename Scenario_T>
Definition: StateTransitions.hpp:30
Definition: ScenarioPaletteBaseTransitions.hpp:15
Definition: StateTransitions.hpp:9
Definition: StateTransitions.hpp:58
Definition: StateTransitions.hpp:78
Definition: ScenarioPaletteBaseTransitions.hpp:23
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ScenarioPaletteBaseEvents.hpp:53