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>
12 #include <score/plugins/documentdelegate/DocumentDelegatePresenter.hpp>
13 #include <score/selection/Selection.hpp>
14 #include <score/selection/SelectionDispatcher.hpp>
16 #include <ossia/detail/variant.hpp>
29 class DocumentDelegateModel;
30 class DocumentDelegateView;
31 class DocumentPresenter;
40 class DisplayedElementsPresenter;
42 class ScenarioDocumentModel;
43 class ScenarioDocumentPresenter;
44 class ScenarioDocumentView;
45 class TimeRulerPresenter;
48 = ossia::slow_variant<ossia::monostate, CentralIntervalDisplay, CentralNodalDisplay>;
57 ,
public Nano::Observer
72 const CentralDisplay& display()
const noexcept;
80 ZoomRatio zoomRatio()
const noexcept;
86 void setZoomRatio(ZoomRatio newFactor);
87 void updateRect(
const QRectF& rect);
96 void focusFrontProcess();
106 bool isNodal()
const noexcept;
108 void setAutoScroll(
bool);
111 void pressed(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, pressed, arg_1)
112 void moved(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, moved, arg_1)
113 void released(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, released, arg_1)
114 void escPressed() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, escPressed)
116 void setFocusedPresenter(QPointer<Process::LayerPresenter> arg_1)
117 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, setFocusedPresenter, arg_1)
120 void on_windowSizeChanged(QSize);
121 W_SLOT(on_windowSizeChanged);
123 W_SLOT(on_viewReady);
126 void updateTimeBar();
127 void updateMinimap();
128 double computeReverseZoom(ZoomRatio r);
129 void switchMode(
bool nodal);
130 void recenterNodal();
138 void on_timeRulerChanged();
139 void on_horizontalZoom(QPointF, QPointF);
140 void on_verticalZoom(QPointF, QPointF);
141 void on_timeRulerScrollEvent(QPointF, QPointF);
142 void on_visibleRectChanged(
const QRectF& c);
143 void on_horizontalPositionChanged(
int dx);
144 void on_minimapChanged(
double l,
double r);
145 void on_executionTimer();
146 void on_timelineModeSwitch(
bool b);
147 ZoomRatio computeZoom(
double l,
double r);
153 CentralDisplay m_centralDisplay;
157 QPointer<IntervalModel> m_focusedInterval{};
161 ZoomRatio m_zoomRatio{-1};
162 QMetaObject::Connection m_intervalConnection, m_durationConnection;
165 QAction* m_timelineAction{};
166 QAction* m_musicalAction{};
168 std::vector<QMetaObject::Connection> m_processSelectionConnections;
170 int m_nonGLTimebarTimer{-1};
172 bool m_zooming{
false};
173 bool m_updatingMinimap{
false};
174 bool m_reloadingMinimap{
false};
175 bool m_updatingView{
false};
176 bool m_autoScroll{
false};
Definition: FocusDispatcher.hpp:17
The ObjectPath class.
Definition: ObjectPath.hpp:37
Definition: plugins/score-lib-process/Process/DocumentPlugin.hpp:12
Definition: LayerView.hpp:95
Definition: ProcessFocusManager.hpp:33
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
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:58
Definition: ScenarioDocumentView.hpp:115
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:1324
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: ProcessesItemModel.hpp:32
Definition: ProcessContext.hpp:12
Definition: Preset.hpp:32
Definition: DocumentContext.hpp:18