37 SCORE_SERIALIZE_FRIENDS
46 template <
typename DeserializerVisitor>
54 const TimeVal& date() const noexcept;
57 double dateInFlicks() const noexcept {
return date().impl; }
64 using EventIdVec = ossia::small_vector<Id<EventModel>, 2>;
65 const EventIdVec& events() const noexcept;
68 State::Expression expression() const noexcept {
return m_expression; }
71 bool active() const noexcept;
72 void setActive(
bool active);
74 bool autotrigger() const noexcept;
75 void setAutotrigger(
bool t);
77 bool isStartPoint() const noexcept;
78 void setStartPoint(
bool t);
80 ossia::musical_sync musicalSync() const noexcept;
81 void setMusicalSync(ossia::musical_sync sig);
83 void setWaiting(
bool);
84 bool waiting() const noexcept;
87 void dateChanged(const
TimeVal& arg_1)
88 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dateChanged, arg_1)
90 void newEvent(const
Id<
Scenario::EventModel>& eventId)
91 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, newEvent, eventId)
92 void eventRemoved(const
Id<
Scenario::EventModel>& eventId)
93 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, eventRemoved, eventId)
95 void triggerChanged(const
State::Expression& arg_1)
96 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggerChanged, arg_1)
97 void activeChanged() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, activeChanged)
99 void autotriggerChanged(
bool b)
100 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, autotriggerChanged, b)
101 void startPointChanged(
bool b)
102 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startPointChanged, b)
104 void triggeredByGui() const E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggeredByGui)
106 void waitingChanged(
bool b) const
107 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, waitingChanged, b)
109 double musicalSyncChanged(ossia::musical_sync sync)
110 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, musicalSyncChanged, sync)
114 musicalSync READ musicalSync WRITE setMusicalSync NOTIFY musicalSyncChanged)
115 PROPERTY(
double, date READ dateInFlicks NOTIFY dateChanged)
116 PROPERTY(
bool, active READ active WRITE setActive NOTIFY activeChanged)
118 bool, autotrigger READ autotrigger WRITE setAutotrigger NOTIFY autotriggerChanged)
120 bool, startPoint READ isStartPoint WRITE setStartPoint NOTIFY startPointChanged)
123 expression READ expression WRITE setExpression NOTIFY triggerChanged)
130 ossia::musical_sync m_musicalSync{-1.};
131 bool m_active{
false};
132 bool m_autotrigger{
false};
133 bool m_startPoint{
false};
134 bool m_waiting{
false};