2#include <Process/DocumentPlugin.hpp>
3#include <Process/Focus/FocusDispatcher.hpp>
4#include <Process/ProcessContext.hpp>
5#include <Process/ZoomHelper.hpp>
7#include <Scenario/Document/DisplayedElements/DisplayedElementsModel.hpp>
8#include <Scenario/Document/ScenarioDocument/CentralIntervalDisplay.hpp>
9#include <Scenario/Document/ScenarioDocument/CentralNodalDisplay.hpp>
10#include <Scenario/Document/ScenarioDocument/ProcessFocusManager.hpp>
11#include <Scenario/Palette/Tools/PlayToolState.hpp>
13#include <score/plugins/documentdelegate/DocumentDelegatePresenter.hpp>
14#include <score/selection/Selection.hpp>
15#include <score/selection/SelectionDispatcher.hpp>
17#include <ossia/detail/variant.hpp>
30class DocumentDelegateModel;
31class DocumentDelegateView;
32class DocumentPresenter;
41class DisplayedElementsPresenter;
43class ScenarioDocumentModel;
44class ScenarioDocumentPresenter;
45class ScenarioDocumentView;
46class TimeRulerPresenter;
49 = ossia::slow_variant<ossia::monostate, CentralIntervalDisplay, CentralNodalDisplay>;
58 ,
public Nano::Observer
73 const CentralDisplay& display()
const noexcept;
81 ZoomRatio zoomRatio()
const noexcept;
87 void setZoomRatio(ZoomRatio newFactor);
88 void updateRect(
const QRectF& rect);
97 void on_dropInEmptyFullView(QPoint viewPos,
const QMimeData* data);
98 void focusFrontProcess();
108 bool isNodal()
const noexcept;
110 void setAutoScroll(
bool);
113 void pressed(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, pressed, arg_1)
114 void moved(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, moved, arg_1)
115 void released(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, released, arg_1)
116 void escPressed() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, escPressed)
118 void setFocusedPresenter(QPointer<Process::LayerPresenter> arg_1)
119 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, setFocusedPresenter, arg_1)
122 void on_windowSizeChanged(QSize);
123 W_SLOT(on_windowSizeChanged);
125 W_SLOT(on_viewReady);
128 void updateTimeBar();
129 void updateMinimap();
130 double computeReverseZoom(ZoomRatio r);
131 void switchMode(
bool nodal);
132 void recenterNodal();
140 void on_timeRulerChanged();
141 void on_horizontalZoom(QPointF, QPointF);
142 void on_verticalZoom(QPointF, QPointF);
143 void on_timeRulerDragEvent(QPointF, QPointF);
144 void on_timeRulerScrubPressEvent(QPointF, QPointF);
145 void on_timeRulerScrubMoveEvent(QPointF, QPointF);
146 void on_timeRulerScrubReleaseEvent(QPointF, QPointF);
147 void on_visibleRectChanged(
const QRectF& c);
148 void on_horizontalPositionChanged(
int dx);
149 void on_minimapChanged(
double l,
double r);
150 void on_executionTimer();
151 void on_timelineModeSwitch(
bool b);
152 void on_requestTransport(QPointF pt);
153 ZoomRatio computeZoom(
double l,
double r);
159 void on_dropOnCable(
const QPointF& pos,
const QMimeData& mime);
160 void on_dropFinished();
162 TimeVal timeRulerClickTime(QPointF scenePos)
const noexcept;
165 CentralDisplay m_centralDisplay;
169 QPointer<IntervalModel> m_focusedInterval{};
173 ZoomRatio m_zoomRatio{-1};
174 QMetaObject::Connection m_intervalConnection, m_durationConnection;
177 QAction* m_timelineAction{};
178 QAction* m_musicalAction{};
180 std::vector<QMetaObject::Connection> m_processSelectionConnections;
184 bool m_zooming{
false};
185 bool m_updatingMinimap{
false};
186 bool m_reloadingMinimap{
false};
187 bool m_updatingView{
false};
188 bool m_autoScroll{
false};
191SCORE_PLUGIN_SCENARIO_EXPORT
Definition CableItem.hpp:37
Definition FocusDispatcher.hpp:17
The ObjectPath class.
Definition ObjectPath.hpp:37
Definition plugins/score-lib-process/Process/DocumentPlugin.hpp:13
Definition LayerView.hpp:95
Definition ProcessFocusManager.hpp:33
The Process class.
Definition score-lib-process/Process/Process.hpp:62
Definition CentralIntervalDisplay.hpp:15
Definition CentralNodalDisplay.hpp:14
Definition DisplayedElementsModel.hpp:16
Definition DisplayedElementsPresenter.hpp:25
Definition IntervalModel.hpp:50
Definition IntervalPresenter.hpp:30
Definition ScenarioDocumentModel.hpp:29
The ScenarioDocumentPresenter class.
Definition ScenarioDocumentPresenter.hpp:59
Definition ScenarioDocumentView.hpp:139
Definition PlayToolState.hpp:18
Definition Selection.hpp:12
Definition DocumentDelegateModel.hpp:11
Definition DocumentDelegatePresenter.hpp:16
Definition DocumentDelegateView.hpp:10
Interface between the DocumentModel and the DocumentView.
Definition DocumentPresenter.hpp:20
The SelectionDispatcher class.
Definition SelectionDispatcher.hpp:15
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:112
Definition ProcessesItemModel.hpp:32
Definition ProcessContext.hpp:12
Definition TimeValue.hpp:21
Definition DocumentContext.hpp:18