Chris@696: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@696: 
Chris@696: /*
Chris@696:     Sonic Visualiser
Chris@696:     An audio file viewer and annotation editor.
Chris@696:     Centre for Digital Music, Queen Mary, University of London.
Chris@696:     This file copyright 2006-2013 Chris Cannam and QMUL.
Chris@696:     
Chris@696:     This program is free software; you can redistribute it and/or
Chris@696:     modify it under the terms of the GNU General Public License as
Chris@696:     published by the Free Software Foundation; either version 2 of the
Chris@696:     License, or (at your option) any later version.  See the file
Chris@696:     COPYING included with this distribution for more information.
Chris@696: */
Chris@696: 
Chris@696: #ifndef LOG_NUMERICAL_SCALE_H
Chris@696: #define LOG_NUMERICAL_SCALE_H
Chris@696: 
Chris@696: #include <QRect>
Chris@696: 
Chris@696: class QPainter;
Chris@918: class LayerGeometryProvider;
Chris@696: class VerticalScaleLayer;
Chris@696: 
Chris@696: class LogNumericalScale
Chris@696: {
Chris@696: public:
Chris@917:     int getWidth(LayerGeometryProvider *v, QPainter &paint);
Chris@696: 
Chris@696:     void paintVertical
Chris@917:     (LayerGeometryProvider *v, const VerticalScaleLayer *layer, QPainter &paint, int x0,
Chris@904:      double minlog, double maxlog);
Chris@696: };
Chris@696: 
Chris@696: #endif
Chris@696: