Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/LinearNumericalScale.h Thu Apr 26 15:06:41 2018 +0100 +++ b/layer/LinearNumericalScale.h Tue May 01 16:14:22 2018 +0100 @@ -13,23 +13,29 @@ COPYING included with this distribution for more information. */ -#ifndef LINEAR_NUMERICAL_SCALE_H -#define LINEAR_NUMERICAL_SCALE_H +#ifndef SV_LINEAR_NUMERICAL_SCALE_H +#define SV_LINEAR_NUMERICAL_SCALE_H #include <QRect> class QPainter; class LayerGeometryProvider; class VerticalScaleLayer; +class HorizontalScaleProvider; class LinearNumericalScale { public: - int getWidth(LayerGeometryProvider *v, QPainter &paint); + int getWidth(LayerGeometryProvider *v, QPainter &paint, + bool horizontal = false); void paintVertical (LayerGeometryProvider *v, const VerticalScaleLayer *layer, QPainter &paint, int x0, double minf, double maxf); + + void paintHorizontal + (LayerGeometryProvider *v, const HorizontalScaleProvider *provider, + QPainter &paint, QRect r); }; #endif