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;
144 void zoom(
double zx,
double zy);
145 void scroll(
double dx,
double dy);
148 void elementsScaleChanged(
double arg_1) W_SIGNAL(elementsScaleChanged, arg_1);
149 void setLargeView() W_SIGNAL(setLargeView);
150 void timeRulerChanged() W_SIGNAL(timeRulerChanged);
153 void timerEvent(QTimerEvent* event)
override;
160 QGraphicsScene m_timeRulerScene;
163 QGraphicsScene m_minimapScene;
Definition DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15