comparison layer/SpectrogramLayer.h @ 916:94e4952a6774 osx-retina

Start trying to introduce LayerGeometryProvider as proxyable interface for View methods that the Layer wants to use
author Chris Cannam
date Tue, 17 Mar 2015 15:05:25 +0000
parents 28d05ae8741c
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
55 SpectrogramLayer(Configuration = FullRangeDb); 55 SpectrogramLayer(Configuration = FullRangeDb);
56 ~SpectrogramLayer(); 56 ~SpectrogramLayer();
57 57
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(LayerGeometryProvider *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, bool detailed, QPainter &) const; 63 virtual int getVerticalScaleWidth(View *v, bool detailed, QPainter &) const;
64 virtual void paintVerticalScale(View *v, bool detailed, QPainter &paint, QRect rect) const; 64 virtual void paintVerticalScale(View *v, bool detailed, QPainter &paint, QRect rect) const;
65 65