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 VERTICAL_SCALE_LAYER_H Chris@698: #define VERTICAL_SCALE_LAYER_H Chris@698: Chris@698: class VerticalScaleLayer Chris@698: { Chris@698: public: Chris@698: virtual void getScaleExtents(View *, float &min, float &max, bool &log) const = 0; Chris@698: virtual int getYForValue(View *, float value) const = 0; Chris@698: virtual float getValueForY(View *, int y) const = 0; Chris@698: virtual QString getScaleUnits() const = 0; Chris@698: }; Chris@698: Chris@698: #endif Chris@698: