Mercurial > hg > svgui
diff view/LayerGeometryProvider.h @ 918:4fe7a09be0fe osx-retina
Many fixes for the previous stuff
author | Chris Cannam |
---|---|
date | Tue, 17 Mar 2015 16:56:03 +0000 |
parents | 94e4952a6774 |
children | a5488775f880 |
line wrap: on
line diff
--- a/view/LayerGeometryProvider.h Tue Mar 17 16:33:51 2015 +0000 +++ b/view/LayerGeometryProvider.h Tue Mar 17 16:56:03 2015 +0000 @@ -18,6 +18,7 @@ #include "base/BaseTypes.h" class ViewManager; +class View; class Layer; class LayerGeometryProvider @@ -76,6 +77,11 @@ virtual double getFrequencyForY(int y, double minFreq, double maxFreq, bool logarithmic) const = 0; + virtual int getTextLabelHeight(const Layer *layer, QPainter &) const = 0; + + virtual bool getValueExtents(QString unit, double &min, double &max, + bool &log) const = 0; + /** * Return the zoom level, i.e. the number of frames per pixel */ @@ -113,7 +119,8 @@ virtual void drawMeasurementRect(QPainter &p, const Layer *, QRect rect, bool focus) const = 0; - virtual QWidget *getWidget() const = 0; + virtual View *getView() = 0; + virtual const View *getView() const = 0; }; #endif