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().clickedTimeSync = qev->id;
20 this->state().currentPoint = qev->point;
23template <
typename Scenario_T>
26template <
typename Scenario_T>
34 bool eventTest(QEvent* e)
override
36 if(e->type() == QEvent::Type(QEvent::User + ClickOnTimeSync_Event::user_type))
39 return qev->id == Scenario::endId<TimeSyncModel>();
44 void onTransition(QEvent* ev)
override
47 this->state().clear();
49 this->state().clickedTimeSync = qev->id;
50 this->state().currentPoint = qev->point;
54template <
typename Scenario_T>
62 void onTransition(QEvent* ev)
override
66 this->state().hoveredTimeSync = qev->id;
67 this->state().currentPoint = qev->point;
70template <
typename Scenario_T>
73template <
typename Scenario_T>
81 void onTransition(QEvent* ev)
override
85 this->state().hoveredTimeSync = qev->id;
86 this->state().currentPoint = qev->point;
89template <
typename Scenario_T>
Definition TimeSyncTransitions.hpp:29
Definition ScenarioPaletteBaseTransitions.hpp:15
Definition TimeSyncTransitions.hpp:9
Definition TimeSyncTransitions.hpp:57
Definition TimeSyncTransitions.hpp:76
Definition ScenarioPaletteBaseTransitions.hpp:23
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Definition ScenarioPaletteBaseEvents.hpp:53