comparison 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
comparison
equal deleted inserted replaced
606:fbab21439115 607:5b72899d692b
126 virtual void setPresentationName(QString name); 126 virtual void setPresentationName(QString name);
127 127
128 virtual QString getLayerPresentationName() const; 128 virtual QString getLayerPresentationName() const;
129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); } 129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
130 130
131 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 131 virtual int getVerticalScaleWidth(View *, bool detailed,
132 virtual void paintVerticalScale(View *, QPainter &, QRect) const { } 132 QPainter &) const = 0;
133
134 virtual void paintVerticalScale(View *, bool detailed,
135 QPainter &, QRect) const { }
133 136
134 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */, 137 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,
135 std::vector<QRect> &) const { 138 std::vector<QRect> &) const {
136 return false; 139 return false;
137 } 140 }