Mercurial > hg > svgui
diff layer/LogNumericalScale.h @ 1281:fc9d9f1103fa horizontal-scale
Provide linear horizontal scale in spectrum as well as log; fix bin positioning and colour scale property box updating; ensure proper background colour and visibility of peak lines
author | Chris Cannam |
---|---|
date | Thu, 03 May 2018 15:15:15 +0100 |
parents | b4cb11ca8233 |
children |
line wrap: on
line diff
--- a/layer/LogNumericalScale.h Wed May 02 14:27:17 2018 +0100 +++ b/layer/LogNumericalScale.h Thu May 03 15:15:15 2018 +0100 @@ -4,7 +4,7 @@ Sonic Visualiser An audio file viewer and annotation editor. Centre for Digital Music, Queen Mary, University of London. - This file copyright 2006-2013 Chris Cannam and QMUL. + This file copyright 2006-2018 Chris Cannam and QMUL. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -21,21 +21,15 @@ class QPainter; class LayerGeometryProvider; class VerticalScaleLayer; -class HorizontalScaleProvider; class LogNumericalScale { public: - int getWidth(LayerGeometryProvider *v, QPainter &paint, - bool horizontal = false); + int getWidth(LayerGeometryProvider *v, QPainter &paint); void paintVertical (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