2 #include <Process/Focus/FocusDispatcher.hpp>
3 #include <Process/LayerPresenter.hpp>
4 #include <Process/ProcessContext.hpp>
5 #include <Process/ZoomHelper.hpp>
7 #include <Scenario/Palette/ScenarioPalette.hpp>
8 #include <Scenario/PresenterInstantiations.hpp>
9 #include <Scenario/Process/ScenarioModel.hpp>
10 #include <Scenario/Process/ScenarioViewInterface.hpp>
12 #include <score/command/Dispatchers/OngoingCommandDispatcher.hpp>
13 #include <score/graphics/GraphicsItem.hpp>
14 #include <score/model/IdentifiedObjectMap.hpp>
15 #include <score/model/Identifier.hpp>
16 #include <score/tools/std/Optional.hpp>
23 class EditionSettings;
28 ,
public Nano::Observer
52 void setWidth(qreal width, qreal defaultWidth)
override;
53 void setHeight(qreal height)
override;
54 void putToFront()
override;
55 void putBehind()
override;
57 void parentGeometryChanged()
override;
59 void on_zoomRatioChanged(ZoomRatio val)
override;
67 return m_comments.at(
id);
69 const auto& getEvents()
const {
return m_events; }
70 const auto& getTimeSyncs()
const {
return m_timeSyncs; }
71 const auto& getIntervals()
const {
return m_intervals; }
72 const auto& getGraphIntervals()
const {
return m_graphIntervals; }
73 const auto& getStates()
const {
return m_states; }
74 const auto& getComments()
const {
return m_comments; }
77 const ZoomRatio& zoomRatio()
const {
return m_zoomRatio; }
82 void setSnapLine(
TimeVal t,
bool enabled);
85 QMenu&, QPoint pos, QPointF scenepos,
88 bool event(QEvent* e)
override {
return QObject::event(e); }
91 void stopDrawDragLine()
const;
94 void linesExtremityScaled(
int arg_1,
int arg_2)
95 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, linesExtremityScaled, arg_1, arg_2)
97 void keyPressed(
int arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, keyPressed, arg_1)
98 void keyReleased(
int arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, keyReleased, arg_1)
119 void on_intervalExecutionTimer();
127 void doubleClick(QPointF);
128 void on_focusChanged()
override;
130 template <
typename Map,
typename Id>
131 void removeElement(Map& map,
const Id&
id);
133 void updateAllElements();
135 ZoomRatio m_zoomRatio{1};
155 QMetaObject::Connection m_con;
A map to access child objects through their id.
Definition: IdentifiedObjectMap.hpp:16
Definition: LayerPresenter.hpp:34
Definition: LayerView.hpp:21
Definition: ScenarioEditionSettings.hpp:14
Definition: EventModel.hpp:36
Definition: EventPresenter.hpp:24
Definition: IntervalModel.hpp:50
Definition: IntervalPresenter.hpp:30
The core hierarchical and temporal process of score.
Definition: ScenarioModel.hpp:37
Definition: ScenarioPresenter.hpp:29
Definition: ScenarioView.hpp:27
Definition: ScenarioViewInterface.hpp:15
Definition: StateModel.hpp:63
Definition: StatePresenter.hpp:23
Definition: TimeSyncModel.hpp:34
Definition: TimeSyncPresenter.hpp:29
The id_base_t class.
Definition: Identifier.hpp:57
The SelectionDispatcher class.
Definition: SelectionDispatcher.hpp:15
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ProcessContext.hpp:12
Definition: ScenarioPoint.hpp:13
Definition: TimeValue.hpp:21
Definition: GraphicsItem.hpp:41