Chris@885: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@885: Chris@885: /* Chris@885: Sonic Visualiser Chris@885: An audio file viewer and annotation editor. Chris@885: Centre for Digital Music, Queen Mary, University of London. Chris@885: Chris@885: This program is free software; you can redistribute it and/or Chris@885: modify it under the terms of the GNU General Public License as Chris@885: published by the Free Software Foundation; either version 2 of the Chris@885: License, or (at your option) any later version. See the file Chris@885: COPYING included with this distribution for more information. Chris@885: */ Chris@885: Chris@885: #ifndef UNIT_CONVERTER_H Chris@885: #define UNIT_CONVERTER_H Chris@885: Chris@885: #include Chris@885: Chris@885: class QSpinBox; Chris@885: class QDoubleSpinBox; Chris@885: class QComboBox; Chris@885: Chris@885: class UnitConverter : public QDialog Chris@885: { Chris@885: Q_OBJECT Chris@885: Chris@885: public: Chris@885: UnitConverter(QWidget *parent = 0); Chris@885: virtual ~UnitConverter(); Chris@885: Chris@885: private slots: Chris@885: void hzChanged(double); Chris@885: void midiChanged(int); Chris@885: void noteChanged(int); Chris@885: void octaveChanged(int); Chris@885: void centsChanged(double); Chris@885: void pianoChanged(int); Chris@885: Chris@885: private: Chris@885: QDoubleSpinBox *m_hz; Chris@885: QSpinBox *m_midi; Chris@885: QComboBox *m_note; Chris@885: QSpinBox *m_octave; Chris@885: QDoubleSpinBox *m_cents; Chris@885: QSpinBox *m_piano; Chris@885: Chris@885: void updateAllFromHz(); Chris@885: }; Chris@885: Chris@885: #endif