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 bool scriptable() const noexcept {
return m_scriptable; }
88 void setScriptable(
bool b);
91 void dateChanged(
const TimeVal& arg_1)
92 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dateChanged, arg_1)
95 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, newEvent, eventId)
97 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, eventRemoved, eventId)
100 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggerChanged, arg_1)
101 void activeChanged() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, activeChanged)
103 void autotriggerChanged(
bool b)
104 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, autotriggerChanged, b)
105 void startPointChanged(
bool b)
106 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startPointChanged, b)
107 void scriptableChanged(
bool b)
108 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, scriptableChanged, b)
110 void triggeredByGui() const E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggeredByGui)
112 void waitingChanged(
bool b) const
113 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, waitingChanged, b)
115 double musicalSyncChanged(ossia::musical_sync sync)
116 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, musicalSyncChanged, sync)
120 musicalSync READ musicalSync WRITE setMusicalSync NOTIFY musicalSyncChanged)
121 PROPERTY(
double, date READ dateInFlicks NOTIFY dateChanged)
122 PROPERTY(
bool, active READ active WRITE setActive NOTIFY activeChanged)
124 bool, autotrigger READ autotrigger WRITE setAutotrigger NOTIFY autotriggerChanged)
126 bool, startPoint READ isStartPoint WRITE setStartPoint NOTIFY startPointChanged)
127 PROPERTY(
bool, scriptable READ scriptable WRITE setScriptable NOTIFY scriptableChanged)
130 expression READ expression WRITE setExpression NOTIFY triggerChanged)
137 ossia::musical_sync m_musicalSync{-1.};
138 bool m_active{
false};
139 bool m_autotrigger{
false};
140 bool m_startPoint{
false};
141 bool m_scriptable{
false};
142 bool m_waiting{
false};