diff layer/WaveformLayer.cpp @ 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 dae479593572
children b9380f679f70
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp	Thu Jun 21 14:05:23 2007 +0000
+++ b/layer/WaveformLayer.cpp	Thu Jun 21 16:12:00 2007 +0000
@@ -995,7 +995,7 @@
 }
 
 int
-WaveformLayer::getYForValue(View *v, Scale scale, float value, size_t channel,
+WaveformLayer::getYForValue(const View *v, Scale scale, float value, size_t channel,
                             size_t minChannel, size_t maxChannel) const
 {
     if (maxChannel < minChannel || channel < minChannel) return 0;
@@ -1033,7 +1033,7 @@
 }
 
 float
-WaveformLayer::getValueForY(View *v, Scale scale, int y,
+WaveformLayer::getValueForY(const View *v, Scale scale, int y,
                             size_t minChannel, size_t maxChannel) const
 {
     if (maxChannel < minChannel) return 0;
@@ -1085,7 +1085,7 @@
 }
 
 bool
-WaveformLayer::getYScaleValue(View *v, int y,
+WaveformLayer::getYScaleValue(const View *v, int y,
                               float &value, QString &unit) const
 {
     size_t channels = 0, minChannel = 0, maxChannel = 0;