2#include <Scenario/Palette/ScenarioPaletteBaseTransitions.hpp>
3#include <Scenario/Process/ScenarioInterface.hpp>
6template <
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;
24template <
typename Scenario_T>
27template <
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;
55template <
typename Scenario_T>
63 void onTransition(QEvent* ev)
override
67 this->state().hoveredState = qev->id;
68 this->state().currentPoint = qev->point;
72template <
typename Scenario_T>
75template <
typename Scenario_T>
83 void onTransition(QEvent* ev)
override
87 this->state().hoveredState = qev->id;
88 this->state().currentPoint = qev->point;
92template <
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:13
Definition ScenarioPaletteBaseEvents.hpp:53