Mercurial > hg > svgui
comparison layer/LinearNumericalScale.h @ 1276:b4cb11ca8233 horizontal-scale
Branch toward adding horizontal numerical scales to things
author | Chris Cannam |
---|---|
date | Tue, 01 May 2018 16:14:22 +0100 |
parents | 94e4952a6774 |
children | fc9d9f1103fa |
comparison
equal
deleted
inserted
replaced
1275:3ca1be2e2c91 | 1276:b4cb11ca8233 |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef LINEAR_NUMERICAL_SCALE_H | 16 #ifndef SV_LINEAR_NUMERICAL_SCALE_H |
17 #define LINEAR_NUMERICAL_SCALE_H | 17 #define SV_LINEAR_NUMERICAL_SCALE_H |
18 | 18 |
19 #include <QRect> | 19 #include <QRect> |
20 | 20 |
21 class QPainter; | 21 class QPainter; |
22 class LayerGeometryProvider; | 22 class LayerGeometryProvider; |
23 class VerticalScaleLayer; | 23 class VerticalScaleLayer; |
24 class HorizontalScaleProvider; | |
24 | 25 |
25 class LinearNumericalScale | 26 class LinearNumericalScale |
26 { | 27 { |
27 public: | 28 public: |
28 int getWidth(LayerGeometryProvider *v, QPainter &paint); | 29 int getWidth(LayerGeometryProvider *v, QPainter &paint, |
30 bool horizontal = false); | |
29 | 31 |
30 void paintVertical | 32 void paintVertical |
31 (LayerGeometryProvider *v, const VerticalScaleLayer *layer, | 33 (LayerGeometryProvider *v, const VerticalScaleLayer *layer, |
32 QPainter &paint, int x0, double minf, double maxf); | 34 QPainter &paint, int x0, double minf, double maxf); |
35 | |
36 void paintHorizontal | |
37 (LayerGeometryProvider *v, const HorizontalScaleProvider *provider, | |
38 QPainter &paint, QRect r); | |
33 }; | 39 }; |
34 | 40 |
35 #endif | 41 #endif |
36 | 42 |