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