Mercurial > hg > svgui
diff widgets/UnitConverter.h @ 891:09b2940f483a
Update units when prefs change
author | Chris Cannam |
---|---|
date | Tue, 09 Dec 2014 12:17:04 +0000 |
parents | cd59f6e1aa26 |
children | af63372e9002 |
line wrap: on
line diff
--- a/widgets/UnitConverter.h Tue Dec 09 11:49:27 2014 +0000 +++ b/widgets/UnitConverter.h Tue Dec 09 12:17:04 2014 +0000 @@ -17,9 +17,12 @@ #include <QDialog> +#include "base/PropertyContainer.h" + class QSpinBox; class QDoubleSpinBox; class QComboBox; +class QLabel; class UnitConverter : public QDialog { @@ -37,6 +40,7 @@ void centsChanged(double); void pianoChanged(int); + void preferenceChanged(PropertyContainer::PropertyName); private: QDoubleSpinBox *m_freq; @@ -45,8 +49,13 @@ QSpinBox *m_octave; QDoubleSpinBox *m_cents; QSpinBox *m_piano; + QLabel *m_pitchPrefsLabel; + void updatePitchesFromFreq(); + void updatePitchPrefsLabel(); - void updatePitchesFromFreq(); + QDoubleSpinBox *m_samples; + + void updateTempiFromSamples(); }; #endif