diff layer/Layer.h @ 607:5b72899d692b

Give a dedicated key to toggling the centre line, and move it out of the overlay level setting -- reducing number of overlay levels to 3. Introduce two distinct vertical scale types (so that we can hide the spectrogram colour scale part easily)
author Chris Cannam
date Mon, 30 Jan 2012 16:01:59 +0000
parents 4c484636d5ec
children 5c9dcec5f3e9 3437e0fad7ae
line wrap: on
line diff
--- a/layer/Layer.h	Mon Jan 30 13:24:55 2012 +0000
+++ b/layer/Layer.h	Mon Jan 30 16:01:59 2012 +0000
@@ -128,8 +128,11 @@
     virtual QString getLayerPresentationName() const;
     virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
 
-    virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
-    virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
+    virtual int getVerticalScaleWidth(View *, bool detailed,
+                                      QPainter &) const = 0;
+
+    virtual void paintVerticalScale(View *, bool detailed,
+                                    QPainter &, QRect) const { }
 
     virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,
                                      std::vector<QRect> &) const {