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 LINEAR_NUMERICAL_SCALE_H Chris@696: #define LINEAR_NUMERICAL_SCALE_H Chris@696: Chris@696: #include Chris@696: Chris@696: class QPainter; Chris@916: class LayerGeometryProvider; Chris@696: class VerticalScaleLayer; Chris@696: Chris@696: class LinearNumericalScale Chris@696: { Chris@696: public: Chris@916: int getWidth(LayerGeometryProvider *v, QPainter &paint); Chris@696: Chris@696: void paintVertical Chris@916: (LayerGeometryProvider *v, const VerticalScaleLayer *layer, Chris@916: QPainter &paint, int x0, double minf, double maxf); Chris@696: }; Chris@696: Chris@696: #endif Chris@696: