2 #include <State/Expression.hpp>
4 #include <Process/Dataflow/TimeSignature.hpp>
5 #include <Process/TimeValue.hpp>
7 #include <Scenario/Document/Event/ExecutionStatus.hpp>
8 #include <Scenario/Document/Metatypes.hpp>
9 #include <Scenario/Document/VerticalExtent.hpp>
11 #include <score/model/Component.hpp>
12 #include <score/model/EntityImpl.hpp>
13 #include <score/model/IdentifiedObject.hpp>
14 #include <score/model/Identifier.hpp>
15 #include <score/selection/Selectable.hpp>
16 #include <score/tools/Metadata.hpp>
17 #include <score/tools/std/Optional.hpp>
21 #include <score_plugin_scenario_export.h>
31 class ScenarioInterface;
38 SCORE_SERIALIZE_FRIENDS
47 template <
typename DeserializerVisitor>
55 const TimeVal& date() const noexcept;
58 void addEvent(const
Id<EventModel>&);
59 bool removeEvent(const
Id<EventModel>&);
62 using EventIdVec = ossia::small_vector<
Id<EventModel>, 2>;
63 const EventIdVec& events() const noexcept;
64 void setEvents(const TimeSyncModel::EventIdVec& events);
66 State::Expression expression() const noexcept {
return m_expression; }
69 bool active() const noexcept;
70 void setActive(
bool active);
72 bool autotrigger() const noexcept;
73 void setAutotrigger(
bool t);
75 bool isStartPoint() const noexcept;
76 void setStartPoint(
bool t);
78 ossia::musical_sync musicalSync() const noexcept;
79 void setMusicalSync(ossia::musical_sync sig);
81 void setWaiting(
bool);
82 bool waiting() const noexcept;
85 void dateChanged(const
TimeVal& arg_1)
86 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dateChanged, arg_1)
88 void newEvent(const
Id<
Scenario::EventModel>& eventId)
89 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, newEvent, eventId)
90 void eventRemoved(const
Id<
Scenario::EventModel>& eventId)
91 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, eventRemoved, eventId)
93 void triggerChanged(const
State::Expression& arg_1)
94 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggerChanged, arg_1)
95 void activeChanged() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, activeChanged)
97 void autotriggerChanged(
bool b)
98 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, autotriggerChanged, b)
99 void startPointChanged(
bool b)
100 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startPointChanged, b)
102 void triggeredByGui() const E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, triggeredByGui)
104 void waitingChanged(
bool b) const
105 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, waitingChanged, b)
107 double musicalSyncChanged(ossia::musical_sync sync)
108 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, musicalSyncChanged, sync)
112 musicalSync READ musicalSync WRITE setMusicalSync NOTIFY musicalSyncChanged)
114 bool, startPoint READ isStartPoint WRITE setStartPoint NOTIFY startPointChanged)
121 ossia::musical_sync m_musicalSync{-1.};
122 bool m_active{
false};
123 bool m_autotrigger{
false};
124 bool m_startPoint{
false};
125 bool m_waiting{
false};
Definition: VisitorInterface.hpp:53
Definition: VisitorInterface.hpp:61
Metadata to get the name that will be shown in the user interface.
Definition: lib/score/tools/Metadata.hpp:42
Definition: TimeSyncModel.hpp:35
The Selectable class.
Definition: Selectable.hpp:14
The id_base_t class.
Definition: Identifier.hpp:57
Base for complex model objects.
Definition: EntityBase.hpp:24
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Definition: TimeValue.hpp:21