annotate widgets/LabelCounterInputDialog.h @ 1551:e79731086b0f

Fixes to NoteLayer, particularly to calculation of vertical scale when model unit is not Hz. To avoid inconsistency we now behave as if the unit is always Hz from the point of view of the external API and display, converting at the point where we obtain values from the events themselves. Also various fixes to editing.
author Chris Cannam
date Thu, 21 Nov 2019 14:02:57 +0000
parents 05d614f6e46d
children
rev   line source
Chris@311 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@311 2
Chris@311 3 /*
Chris@311 4 Sonic Visualiser
Chris@311 5 An audio file viewer and annotation editor.
Chris@311 6 Centre for Digital Music, Queen Mary, University of London.
Chris@311 7 This file copyright 2007 QMUL.
Chris@311 8
Chris@311 9 This program is free software; you can redistribute it and/or
Chris@311 10 modify it under the terms of the GNU General Public License as
Chris@311 11 published by the Free Software Foundation; either version 2 of the
Chris@311 12 License, or (at your option) any later version. See the file
Chris@311 13 COPYING included with this distribution for more information.
Chris@311 14 */
Chris@311 15
Chris@1407 16 #ifndef SV_LABEL_COUNTER_INPUT_DIALOG_H
Chris@1407 17 #define SV_LABEL_COUNTER_INPUT_DIALOG_H
Chris@311 18
Chris@311 19 #include <QDialog>
Chris@311 20 #include "data/model/Labeller.h"
Chris@311 21
Chris@311 22 class LabelCounterInputDialog : public QDialog
Chris@311 23 {
Chris@311 24 Q_OBJECT
Chris@311 25
Chris@311 26 public:
Chris@311 27 LabelCounterInputDialog(Labeller *labeller, QWidget *parent);
Chris@311 28 virtual ~LabelCounterInputDialog();
Chris@311 29
Chris@311 30 protected slots:
Chris@311 31 void counterChanged(int);
Chris@311 32 void secondCounterChanged(int);
Chris@311 33 void cancelClicked();
Chris@311 34
Chris@311 35 protected:
Chris@311 36 Labeller *m_labeller;
Chris@311 37 int m_origCounter;
Chris@311 38 int m_origSecondCounter;
Chris@311 39 };
Chris@311 40
Chris@311 41 #endif