diff layer/WaveformLayer.h @ 267:4ed1446ad604

* more on measurement tool -- pull out some logic from pane to layer &c still more to do
author Chris Cannam
date Thu, 21 Jun 2007 16:12:00 +0000
parents 11021509c4eb
children b9380f679f70
line wrap: on
line diff
--- a/layer/WaveformLayer.h	Thu Jun 21 14:05:23 2007 +0000
+++ b/layer/WaveformLayer.h	Thu Jun 21 16:12:00 2007 +0000
@@ -179,7 +179,7 @@
     virtual bool getValueExtents(float &min, float &max,
                                  bool &log, QString &unit) const;
 
-    virtual bool getYScaleValue(View *v, int y,
+    virtual bool getYScaleValue(const View *v, int y,
                                 float &value, QString &unit) const;
 
     virtual QString toXmlString(QString indent = "",
@@ -200,10 +200,10 @@
     size_t getChannelArrangement(size_t &min, size_t &max,
                                  bool &merging, bool &mixing) const;
 
-    int getYForValue(View *v, Scale scale, float value, size_t channel,
+    int getYForValue(const View *v, Scale scale, float value, size_t channel,
                      size_t minChannel, size_t maxChannel) const;
 
-    float getValueForY(View *v, Scale scale, int y,
+    float getValueForY(const View *v, Scale scale, int y,
                        size_t minChannel, size_t maxChannel) const;
 
     float        m_gain;