diff layer/WaveformLayer.h @ 274:b9380f679f70

* Fix centre line position * Fix failure to update overview when generating peaks from wav file * Provide y-coordinate scale values and differences for spectrum measurement mode, and fix values for waveform (inc dB for both) * Add Printer colour scheme (may be futile)
author Chris Cannam
date Mon, 02 Jul 2007 13:04:17 +0000
parents 4ed1446ad604
children 9dd432665059
line wrap: on
line diff
--- a/layer/WaveformLayer.h	Fri Jun 29 16:50:59 2007 +0000
+++ b/layer/WaveformLayer.h	Mon Jul 02 13:04:17 2007 +0000
@@ -181,6 +181,9 @@
 
     virtual bool getYScaleValue(const View *v, int y,
                                 float &value, QString &unit) const;
+    
+    virtual bool getYScaleDifference(const View *v, int y0, int y1,
+                                     float &diff, QString &unit) const;
 
     virtual QString toXmlString(QString indent = "",
 				QString extraAttributes = "") const;
@@ -200,11 +203,9 @@
     size_t getChannelArrangement(size_t &min, size_t &max,
                                  bool &merging, bool &mixing) const;
 
-    int getYForValue(const View *v, Scale scale, float value, size_t channel,
-                     size_t minChannel, size_t maxChannel) const;
+    int getYForValue(const View *v, float value, size_t channel) const;
 
-    float getValueForY(const View *v, Scale scale, int y,
-                       size_t minChannel, size_t maxChannel) const;
+    float getValueForY(const View *v, int y, size_t &channel) const;
 
     float        m_gain;
     bool         m_autoNormalize;