annotate layer/HorizontalFrequencyScale.h @ 1447:8afea53332f3 single-point

Add option to make pane sizes auto-resize-only (i.e. remove user control via a splitter); also place alignment views above panes instead of below, meaning the extra bit of space that we currently have for the pane without one at least goes to the primary pane
author Chris Cannam
date Tue, 30 Apr 2019 15:53:21 +0100
parents fc9d9f1103fa
children
rev   line source
Chris@1281 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1281 2
Chris@1281 3 /*
Chris@1281 4 Sonic Visualiser
Chris@1281 5 An audio file viewer and annotation editor.
Chris@1281 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1281 7 This file copyright 2006-2018 Chris Cannam and QMUL.
Chris@1281 8
Chris@1281 9 This program is free software; you can redistribute it and/or
Chris@1281 10 modify it under the terms of the GNU General Public License as
Chris@1281 11 published by the Free Software Foundation; either version 2 of the
Chris@1281 12 License, or (at your option) any later version. See the file
Chris@1281 13 COPYING included with this distribution for more information.
Chris@1281 14 */
Chris@1281 15
Chris@1281 16 #ifndef SV_HORIZONTAL_FREQUENCY_SCALE_H
Chris@1281 17 #define SV_HORIZONTAL_FREQUENCY_SCALE_H
Chris@1281 18
Chris@1281 19 #include <QRect>
Chris@1281 20
Chris@1281 21 class QPainter;
Chris@1281 22 class LayerGeometryProvider;
Chris@1281 23 class HorizontalScaleProvider;
Chris@1281 24
Chris@1281 25 class HorizontalFrequencyScale
Chris@1281 26 {
Chris@1281 27 public:
Chris@1281 28 int getHeight(LayerGeometryProvider *v, QPainter &paint);
Chris@1281 29
Chris@1281 30 void paintScale
Chris@1281 31 (LayerGeometryProvider *v, const HorizontalScaleProvider *provider,
Chris@1281 32 QPainter &paint, QRect r, bool logarithmic);
Chris@1281 33 };
Chris@1281 34
Chris@1281 35 #endif