Mercurial > hg > svgui
comparison view/Pane.h @ 908:4a578a360011 cxx11
More type fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 13:22:10 +0000 |
parents | 43256b925e15 |
children | 6828735468c9 |
comparison
equal
deleted
inserted
replaced
907:28d05ae8741c | 908:4a578a360011 |
---|---|
46 bool &closeToRight) const; | 46 bool &closeToRight) const; |
47 | 47 |
48 void setCentreLineVisible(bool visible); | 48 void setCentreLineVisible(bool visible); |
49 bool getCentreLineVisible() const { return m_centreLineVisible; } | 49 bool getCentreLineVisible() const { return m_centreLineVisible; } |
50 | 50 |
51 virtual int getFirstVisibleFrame() const; | 51 virtual sv_frame_t getFirstVisibleFrame() const; |
52 | 52 |
53 virtual int getVerticalScaleWidth() const; | 53 virtual int getVerticalScaleWidth() const; |
54 | 54 |
55 virtual QImage *toNewImage(int f0, int f1); | 55 virtual QImage *toNewImage(sv_frame_t f0, sv_frame_t f1); |
56 virtual QImage *toNewImage() { return View::toNewImage(); } | 56 virtual QImage *toNewImage() { return View::toNewImage(); } |
57 virtual QSize getImageSize(int f0, int f1); | 57 virtual QSize getImageSize(sv_frame_t f0, sv_frame_t f1); |
58 virtual QSize getImageSize() { return View::getImageSize(); } | 58 virtual QSize getImageSize() { return View::getImageSize(); } |
59 | 59 |
60 virtual void toXml(QTextStream &stream, QString indent = "", | 60 virtual void toXml(QTextStream &stream, QString indent = "", |
61 QString extraAttributes = "") const; | 61 QString extraAttributes = "") const; |
62 | 62 |
71 signals: | 71 signals: |
72 void paneInteractedWith(); | 72 void paneInteractedWith(); |
73 void rightButtonMenuRequested(QPoint position); | 73 void rightButtonMenuRequested(QPoint position); |
74 void dropAccepted(QStringList uriList); | 74 void dropAccepted(QStringList uriList); |
75 void dropAccepted(QString text); | 75 void dropAccepted(QString text); |
76 void doubleClickSelectInvoked(int frame); | 76 void doubleClickSelectInvoked(sv_frame_t frame); |
77 void regionOutlined(QRect rect); | 77 void regionOutlined(QRect rect); |
78 | 78 |
79 public slots: | 79 public slots: |
80 virtual void toolModeChanged(); | 80 virtual void toolModeChanged(); |
81 virtual void zoomWheelsEnabledChanged(); | 81 virtual void zoomWheelsEnabledChanged(); |
117 void wheelHorizontal(int sign, Qt::KeyboardModifiers); | 117 void wheelHorizontal(int sign, Qt::KeyboardModifiers); |
118 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers); | 118 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers); |
119 | 119 |
120 void drawVerticalScale(QRect r, Layer *, QPainter &); | 120 void drawVerticalScale(QRect r, Layer *, QPainter &); |
121 void drawFeatureDescription(Layer *, QPainter &); | 121 void drawFeatureDescription(Layer *, QPainter &); |
122 void drawCentreLine(int, QPainter &, bool omitLine); | 122 void drawCentreLine(sv_samplerate_t, QPainter &, bool omitLine); |
123 void drawModelTimeExtents(QRect, QPainter &, const Model *); | 123 void drawModelTimeExtents(QRect, QPainter &, const Model *); |
124 void drawDurationAndRate(QRect, const Model *, int, QPainter &); | 124 void drawDurationAndRate(QRect, const Model *, sv_samplerate_t, QPainter &); |
125 void drawWorkTitle(QRect, QPainter &, const Model *); | 125 void drawWorkTitle(QRect, QPainter &, const Model *); |
126 void drawLayerNames(QRect, QPainter &); | 126 void drawLayerNames(QRect, QPainter &); |
127 void drawEditingSelection(QPainter &); | 127 void drawEditingSelection(QPainter &); |
128 void drawAlignmentStatus(QRect, QPainter &, const Model *, bool down); | 128 void drawAlignmentStatus(QRect, QPainter &, const Model *, bool down); |
129 | 129 |
130 virtual bool render(QPainter &paint, int x0, int f0, int f1); | 130 virtual bool render(QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1); |
131 | 131 |
132 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const; | 132 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const; |
133 | 133 |
134 bool editSelectionStart(QMouseEvent *e); | 134 bool editSelectionStart(QMouseEvent *e); |
135 bool editSelectionDrag(QMouseEvent *e); | 135 bool editSelectionDrag(QMouseEvent *e); |
138 | 138 |
139 void updateHeadsUpDisplay(); | 139 void updateHeadsUpDisplay(); |
140 void updateVerticalPanner(); | 140 void updateVerticalPanner(); |
141 | 141 |
142 bool canTopLayerMoveVertical(); | 142 bool canTopLayerMoveVertical(); |
143 bool getTopLayerDisplayExtents(float &valueMin, float &valueMax, | 143 bool getTopLayerDisplayExtents(double &valueMin, double &valueMax, |
144 float &displayMin, float &displayMax, | 144 double &displayMin, double &displayMax, |
145 QString *unit = 0); | 145 QString *unit = 0); |
146 bool setTopLayerDisplayExtents(float displayMin, float displayMax); | 146 bool setTopLayerDisplayExtents(double displayMin, double displayMax); |
147 | 147 |
148 void dragTopLayer(QMouseEvent *e); | 148 void dragTopLayer(QMouseEvent *e); |
149 void dragExtendSelection(QMouseEvent *e); | 149 void dragExtendSelection(QMouseEvent *e); |
150 void updateContextHelp(const QPoint *pos); | 150 void updateContextHelp(const QPoint *pos); |
151 void edgeScrollMaybe(int x); | 151 void edgeScrollMaybe(int x); |
152 | 152 |
153 Layer *getTopFlexiNoteLayer(); | 153 Layer *getTopFlexiNoteLayer(); |
154 | 154 |
155 void schedulePlaybackFrameMove(int frame); | 155 void schedulePlaybackFrameMove(sv_frame_t frame); |
156 | 156 |
157 bool m_identifyFeatures; | 157 bool m_identifyFeatures; |
158 QPoint m_identifyPoint; | 158 QPoint m_identifyPoint; |
159 QPoint m_clickPos; | 159 QPoint m_clickPos; |
160 QPoint m_mousePos; | 160 QPoint m_mousePos; |
165 | 165 |
166 bool m_navigating; | 166 bool m_navigating; |
167 bool m_resizing; | 167 bool m_resizing; |
168 bool m_editing; | 168 bool m_editing; |
169 bool m_releasing; | 169 bool m_releasing; |
170 int m_dragCentreFrame; | 170 sv_frame_t m_dragCentreFrame; |
171 float m_dragStartMinValue; | 171 double m_dragStartMinValue; |
172 bool m_centreLineVisible; | 172 bool m_centreLineVisible; |
173 int m_selectionStartFrame; | 173 sv_frame_t m_selectionStartFrame; |
174 Selection m_editingSelection; | 174 Selection m_editingSelection; |
175 int m_editingSelectionEdge; | 175 int m_editingSelectionEdge; |
176 mutable int m_scaleWidth; | 176 mutable int m_scaleWidth; |
177 | 177 |
178 int m_pendingWheelAngle; | 178 int m_pendingWheelAngle; |
200 NotifyingPushButton *m_reset; | 200 NotifyingPushButton *m_reset; |
201 | 201 |
202 bool m_mouseInWidget; | 202 bool m_mouseInWidget; |
203 | 203 |
204 bool m_playbackFrameMoveScheduled; | 204 bool m_playbackFrameMoveScheduled; |
205 int m_playbackFrameMoveTo; | 205 sv_frame_t m_playbackFrameMoveTo; |
206 | 206 |
207 static QCursor *m_measureCursor1; | 207 static QCursor *m_measureCursor1; |
208 static QCursor *m_measureCursor2; | 208 static QCursor *m_measureCursor2; |
209 }; | 209 }; |
210 | 210 |