Mercurial > hg > svgui
comparison widgets/UnitConverter.h @ 893:78ae34f388f6
Tidy up layout and ranges for unit conversion dialog, highlight in red any out-of-range values
author | Chris Cannam |
---|---|
date | Mon, 15 Dec 2014 16:08:26 +0000 |
parents | af63372e9002 |
children |
comparison
equal
deleted
inserted
replaced
892:af63372e9002 | 893:78ae34f388f6 |
---|---|
31 public: | 31 public: |
32 UnitConverter(QWidget *parent = 0); | 32 UnitConverter(QWidget *parent = 0); |
33 virtual ~UnitConverter(); | 33 virtual ~UnitConverter(); |
34 | 34 |
35 private slots: | 35 private slots: |
36 void freqChanged(double); | 36 void freqChanged(); |
37 void midiChanged(int); | 37 void midiChanged(); |
38 void noteChanged(int); | 38 void noteChanged(); |
39 void octaveChanged(int); | 39 void octaveChanged(); |
40 void centsChanged(double); | 40 void centsChanged(); |
41 | 41 |
42 void samplesChanged(double); | 42 void samplesChanged(); |
43 void periodChanged(double); | 43 void periodChanged(); |
44 void bpmChanged(double); | 44 void bpmChanged(); |
45 void tempofreqChanged(double); | 45 void tempofreqChanged(); |
46 void samplerateChanged(QString); | 46 void samplerateChanged(); |
47 | 47 |
48 void preferenceChanged(PropertyContainer::PropertyName); | 48 void preferenceChanged(PropertyContainer::PropertyName); |
49 | 49 |
50 private: | 50 private: |
51 QDoubleSpinBox *m_freq; | 51 QDoubleSpinBox *m_freq; |
63 QDoubleSpinBox *m_tempofreq; | 63 QDoubleSpinBox *m_tempofreq; |
64 QComboBox *m_samplerate; | 64 QComboBox *m_samplerate; |
65 void updateTempiFromSamples(); | 65 void updateTempiFromSamples(); |
66 | 66 |
67 double getSampleRate(); | 67 double getSampleRate(); |
68 | |
69 void setTo(QSpinBox *, int); | |
70 void setTo(QDoubleSpinBox *, double); | |
68 }; | 71 }; |
69 | 72 |
70 #endif | 73 #endif |