comparison widgets/UnitConverter.h @ 889:cd59f6e1aa26

hz -> freq, and some layout rearrangement
author Chris Cannam
date Tue, 09 Dec 2014 11:45:34 +0000
parents 6778a82d6b76
children 09b2940f483a
comparison
equal deleted inserted replaced
888:cb3a3e20634d 889:cd59f6e1aa26
28 public: 28 public:
29 UnitConverter(QWidget *parent = 0); 29 UnitConverter(QWidget *parent = 0);
30 virtual ~UnitConverter(); 30 virtual ~UnitConverter();
31 31
32 private slots: 32 private slots:
33 void hzChanged(double); 33 void freqChanged(double);
34 void midiChanged(int); 34 void midiChanged(int);
35 void noteChanged(int); 35 void noteChanged(int);
36 void octaveChanged(int); 36 void octaveChanged(int);
37 void centsChanged(double); 37 void centsChanged(double);
38 void pianoChanged(int); 38 void pianoChanged(int);
39
39 40
40 private: 41 private:
41 QDoubleSpinBox *m_hz; 42 QDoubleSpinBox *m_freq;
42 QSpinBox *m_midi; 43 QSpinBox *m_midi;
43 QComboBox *m_note; 44 QComboBox *m_note;
44 QSpinBox *m_octave; 45 QSpinBox *m_octave;
45 QDoubleSpinBox *m_cents; 46 QDoubleSpinBox *m_cents;
46 QSpinBox *m_piano; 47 QSpinBox *m_piano;
47 48
48 void updateAllFromHz(); 49 void updatePitchesFromFreq();
49 }; 50 };
50 51
51 #endif 52 #endif