comparison layer/LinearNumericalScale.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 e0f08e108064
children b4cb11ca8233
comparison
equal deleted inserted replaced
915:f6d9f28f37cb 916:94e4952a6774
17 #define LINEAR_NUMERICAL_SCALE_H 17 #define LINEAR_NUMERICAL_SCALE_H
18 18
19 #include <QRect> 19 #include <QRect>
20 20
21 class QPainter; 21 class QPainter;
22 class View; 22 class LayerGeometryProvider;
23 class VerticalScaleLayer; 23 class VerticalScaleLayer;
24 24
25 class LinearNumericalScale 25 class LinearNumericalScale
26 { 26 {
27 public: 27 public:
28 int getWidth(View *v, QPainter &paint); 28 int getWidth(LayerGeometryProvider *v, QPainter &paint);
29 29
30 void paintVertical 30 void paintVertical
31 (View *v, const VerticalScaleLayer *layer, QPainter &paint, int x0, 31 (LayerGeometryProvider *v, const VerticalScaleLayer *layer,
32 double minf, double maxf); 32 QPainter &paint, int x0, double minf, double maxf);
33 }; 33 };
34 34
35 #endif 35 #endif
36 36