Mercurial > hg > svgui
diff layer/LogNumericalScale.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 | 4fe7a09be0fe |
children | fc9d9f1103fa |
line wrap: on
line diff
--- a/layer/LogNumericalScale.h Thu Apr 26 15:06:41 2018 +0100 +++ b/layer/LogNumericalScale.h Tue May 01 16:14:22 2018 +0100 @@ -13,23 +13,29 @@ COPYING included with this distribution for more information. */ -#ifndef LOG_NUMERICAL_SCALE_H -#define LOG_NUMERICAL_SCALE_H +#ifndef SV_LOG_NUMERICAL_SCALE_H +#define SV_LOG_NUMERICAL_SCALE_H #include <QRect> class QPainter; class LayerGeometryProvider; class VerticalScaleLayer; +class HorizontalScaleProvider; class LogNumericalScale { 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 minlog, double maxlog); + (LayerGeometryProvider *v, const VerticalScaleLayer *layer, + QPainter &paint, int x0, double minlog, double maxlog); + + void paintHorizontal + (LayerGeometryProvider *v, const HorizontalScaleProvider *provider, + QPainter &paint, QRect r); }; #endif