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