2 #include <Scenario/Document/Minimap/Minimap.hpp>
3 #include <Scenario/Document/ScenarioDocument/ScenarioScene.hpp>
4 #include <Scenario/Document/TimeRuler/TimeRuler.hpp>
5 #include <Scenario/Document/TimeRuler/TimeRulerGraphicsView.hpp>
7 #include <score/graphics/ArrowDialog.hpp>
8 #include <score/graphics/GraphicsProxyObject.hpp>
9 #include <score/plugins/documentdelegate/DocumentDelegateView.hpp>
11 #include <QGraphicsView>
16 #include <score_plugin_scenario_export.h>
23 class ProcessGraphicsView;
31 class SceneGraduations;
35 struct DocumentContext;
36 struct GUIApplicationContext;
43 class IntervalDurations;
54 void scrollHorizontal(
double dx);
55 QRectF visibleRect()
const noexcept;
57 QPointer<score::ArrowDialog> currentPopup{};
61 bool timebarPlaying{};
62 bool timebarVisible{};
65 void drawForeground(QPainter* painter,
const QRectF& rect)
override;
66 void sizeChanged(
const QSize& arg_1)
67 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, sizeChanged, arg_1)
68 void scrolled(
int arg_1) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, scrolled, arg_1)
69 void focusedOut() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, focusedOut)
70 void horizontalZoom(QPointF pixDelta, QPointF pos)
71 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, horizontalZoom, pixDelta, pos)
72 void verticalZoom(QPointF pixDelta, QPointF pos)
73 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, verticalZoom, pixDelta, pos)
75 void visibleRectChanged(QRectF r)
76 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, visibleRectChanged, r)
77 void dropRequested(QPoint pos,
const QMimeData* mime)
78 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dropRequested, pos, mime)
79 void emptyContextMenuRequested(QPoint pos)
80 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, emptyContextMenuRequested, pos)
83 void resizeEvent(QResizeEvent* ev)
override;
84 void scrollContentsBy(
int dx,
int dy)
override;
85 void wheelEvent(QWheelEvent* event)
override;
86 void keyPressEvent(QKeyEvent* event)
override;
87 void keyReleaseEvent(QKeyEvent* event)
override;
88 void focusOutEvent(QFocusEvent* event)
override;
89 void leaveEvent(QEvent* event)
override;
90 void mousePressEvent(QMouseEvent* event)
override;
91 void mouseMoveEvent(QMouseEvent* event)
override;
92 void mouseReleaseEvent(QMouseEvent* event)
override;
93 void dragEnterEvent(QDragEnterEvent* event)
override;
94 void dragMoveEvent(QDragMoveEvent* event)
override;
95 void dragLeaveEvent(QDragLeaveEvent* event)
override;
96 void dropEvent(QDropEvent* event)
override;
97 void contextMenuEvent(QContextMenuEvent* event)
override;
98 bool event(QEvent*)
override;
100 void hoverEnterEvent(QHoverEvent* event);
101 void hoverMoveEvent(QHoverEvent* event);
102 void hoverLeaveEvent(QHoverEvent* event);
104 void checkAndRemoveCurrentDialog(QPoint pos);
109 std::chrono::steady_clock::time_point m_lastwheel;
110 bool m_opengl{
false};
122 QWidget* getWidget()
override;
130 qreal viewWidth()
const;
132 QGraphicsView& rulerView() {
return m_timeRulerView; }
136 Minimap& minimap() {
return m_minimap; }
138 QRectF viewportRect()
const;
139 QRectF visibleSceneRect()
const;
141 void showRulers(
bool);
142 void ready()
override;
145 void elementsScaleChanged(
double arg_1) W_SIGNAL(elementsScaleChanged, arg_1);
146 void setLargeView() W_SIGNAL(setLargeView);
147 void timeRulerChanged() W_SIGNAL(timeRulerChanged);
150 void timerEvent(QTimerEvent* event)
override;
157 QGraphicsScene m_timeRulerScene;
160 QGraphicsScene m_minimapScene;
168 Q_DECLARE_METATYPE(
const QMimeData*)
169 W_REGISTER_ARGTYPE(
const QMimeData*)
Definition: GraphicsProxyObject.hpp:8
Definition: IntervalDurations.hpp:23
Definition: IntervalView.hpp:34
Definition: TimeRulerGraphicsView.hpp:11
Definition: Minimap.hpp:16
Definition: ScenarioDocumentView.hpp:47
Definition: ScenarioDocumentView.hpp:115
Definition: ScenarioScene.hpp:9
Definition: TimeRuler.hpp:36
Definition: TimeRulerGraphicsView.hpp:6
Definition: DocumentDelegateView.hpp:10
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: DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15