Mercurial > hg > svgui
comparison widgets/CSVAudioFormatDialog.h @ 1321:4616e1e89189 import-audio-data
Move out these bits which are now in CSVFormat
author | Chris Cannam |
---|---|
date | Fri, 07 Sep 2018 18:12:44 +0100 |
parents | 6440ba1ffc86 |
children |
comparison
equal
deleted
inserted
replaced
1320:6440ba1ffc86 | 1321:4616e1e89189 |
---|---|
31 public: | 31 public: |
32 CSVAudioFormatDialog(QWidget *parent, | 32 CSVAudioFormatDialog(QWidget *parent, |
33 CSVFormat initialFormat, | 33 CSVFormat initialFormat, |
34 int maxDisplayCols = 5); | 34 int maxDisplayCols = 5); |
35 ~CSVAudioFormatDialog(); | 35 ~CSVAudioFormatDialog(); |
36 | |
37 enum CSVSampleRange { | |
38 RangeSigned1 = 0, // -1 .. 1 | |
39 RangeUnsigned255, // 0 .. 255 | |
40 RangeSigned32767, // -32768 .. 32767 | |
41 RangeOther // Other/unknown: Normalise on load | |
42 }; | |
43 | 36 |
44 CSVFormat getFormat() const; | 37 CSVFormat getFormat() const; |
45 CSVSampleRange getSampleRange() const; | |
46 | 38 |
47 protected slots: | 39 protected slots: |
48 void sampleRateChanged(QString); | 40 void sampleRateChanged(QString); |
49 void sampleRangeChanged(int); | 41 void sampleRangeChanged(int); |
50 void columnPurposeChanged(int purpose); | 42 void columnPurposeChanged(int purpose); |
51 | 43 |
52 void updateFormatFromDialog(); | 44 void updateFormatFromDialog(); |
53 | 45 |
54 protected: | 46 protected: |
55 CSVFormat m_format; | 47 CSVFormat m_format; |
56 CSVSampleRange m_sampleRange; | |
57 int m_maxDisplayCols; | 48 int m_maxDisplayCols; |
58 | 49 |
59 QComboBox *m_sampleRateCombo; | 50 QComboBox *m_sampleRateCombo; |
60 QComboBox *m_sampleRangeCombo; | 51 QComboBox *m_sampleRangeCombo; |
61 | 52 |