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().clickedEvent = qev->id;
20 this->state().currentPoint = qev->point;
24template <
typename Scenario_T>
32 bool eventTest(QEvent* e)
override
34 if(e->type() == QEvent::Type(QEvent::User + ClickOnEvent_Event::user_type))
37 return qev->id == Scenario::endId<EventModel>();
42 void onTransition(QEvent* ev)
override
45 this->state().clear();
47 this->state().clickedEvent = qev->id;
48 this->state().currentPoint = qev->point;
52template <
typename Scenario_T>
55template <
typename Scenario_T>
63 void onTransition(QEvent* ev)
override
67 this->state().hoveredEvent = qev->id;
68 this->state().currentPoint = qev->point;
71template <
typename Scenario_T>
74template <
typename Scenario_T>
82 void onTransition(QEvent* ev)
override
86 this->state().hoveredEvent = qev->id;
87 this->state().currentPoint = qev->point;
90template <
typename Scenario_T>
Definition EventTransitions.hpp:27
Definition ScenarioPaletteBaseTransitions.hpp:15
Definition EventTransitions.hpp:9
Definition EventTransitions.hpp:58
Definition EventTransitions.hpp:77
Definition ScenarioPaletteBaseTransitions.hpp:23
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Definition ScenarioPaletteBaseEvents.hpp:53