Mercurial > hg > svgui
comparison view/View.h @ 1146:74f2706995b7 3.0-integration
Merge work on unified spectrogram and colour 3d plot caching renderer
author | Chris Cannam |
---|---|
date | Fri, 05 Aug 2016 15:05:02 +0100 |
parents | 179ea8a2f650 |
children | 57d192e26331 6828735468c9 |
comparison
equal
deleted
inserted
replaced
1056:b4fd6c67fce5 | 1146:74f2706995b7 |
---|---|
17 #define _VIEW_H_ | 17 #define _VIEW_H_ |
18 | 18 |
19 #include <QFrame> | 19 #include <QFrame> |
20 #include <QProgressBar> | 20 #include <QProgressBar> |
21 | 21 |
22 #include "LayerGeometryProvider.h" | 22 #include "layer/LayerGeometryProvider.h" |
23 | 23 |
24 #include "base/ZoomConstraint.h" | 24 #include "base/ZoomConstraint.h" |
25 #include "base/PropertyContainer.h" | 25 #include "base/PropertyContainer.h" |
26 #include "ViewManager.h" | 26 #include "ViewManager.h" |
27 #include "base/XmlExportable.h" | 27 #include "base/XmlExportable.h" |
142 * Return the closest frequency to the given pixel y-coordinate, | 142 * Return the closest frequency to the given pixel y-coordinate, |
143 * if the frequency range is as specified. | 143 * if the frequency range is as specified. |
144 * | 144 * |
145 * Not thread-safe in logarithmic mode. Call only from GUI thread. | 145 * Not thread-safe in logarithmic mode. Call only from GUI thread. |
146 */ | 146 */ |
147 double getFrequencyForY(int y, double minFreq, double maxFreq, | 147 double getFrequencyForY(double y, double minFreq, double maxFreq, |
148 bool logarithmic) const; | 148 bool logarithmic) const; |
149 | 149 |
150 /** | 150 /** |
151 * Return the zoom level, i.e. the number of frames per pixel | 151 * Return the zoom level, i.e. the number of frames per pixel |
152 */ | 152 */ |
153 int getZoomLevel() const; | 153 int getZoomLevel() const; |
263 virtual bool getFollowGlobalZoom() const { return m_followZoom; } | 263 virtual bool getFollowGlobalZoom() const { return m_followZoom; } |
264 | 264 |
265 virtual bool hasLightBackground() const; | 265 virtual bool hasLightBackground() const; |
266 virtual QColor getForeground() const; | 266 virtual QColor getForeground() const; |
267 virtual QColor getBackground() const; | 267 virtual QColor getBackground() const; |
268 | |
269 virtual void drawVisibleText(QPainter &p, int x, int y, | |
270 QString text, TextStyle style) const; | |
271 | 268 |
272 virtual void drawMeasurementRect(QPainter &p, const Layer *, | 269 virtual void drawMeasurementRect(QPainter &p, const Layer *, |
273 QRect rect, bool focus) const; | 270 QRect rect, bool focus) const; |
274 | 271 |
275 virtual bool shouldShowFeatureLabels() const { | 272 virtual bool shouldShowFeatureLabels() const { |