comparison layer/SpectrogramLayer.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 0dba6a391760
comparison
equal deleted inserted replaced
606:fbab21439115 607:5b72899d692b
58 virtual const ZoomConstraint *getZoomConstraint() const { return this; } 58 virtual const ZoomConstraint *getZoomConstraint() const { return this; }
59 virtual const Model *getModel() const { return m_model; } 59 virtual const Model *getModel() const { return m_model; }
60 virtual void paint(View *v, QPainter &paint, QRect rect) const; 60 virtual void paint(View *v, QPainter &paint, QRect rect) const;
61 virtual void setSynchronousPainting(bool synchronous); 61 virtual void setSynchronousPainting(bool synchronous);
62 62
63 virtual int getVerticalScaleWidth(View *v, QPainter &) const; 63 virtual int getVerticalScaleWidth(View *v, bool detailed, QPainter &) const;
64 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; 64 virtual void paintVerticalScale(View *v, bool detailed, QPainter &paint, QRect rect) const;
65 65
66 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, 66 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos,
67 std::vector<QRect> &extents) const; 67 std::vector<QRect> &extents) const;
68 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; 68 virtual void paintCrosshairs(View *, QPainter &, QPoint) const;
69 69