comparison widgets/CSVFormatDialog.h @ 561:aced8ec09bc8

* Complete the overhaul of CSV file import; now you can pick the purpose for each column in the file, and SV should do the rest. The most significant practical improvement here is that we can now handle files in which time and duration do not necessarily appear in known columns.
author Chris Cannam
date Mon, 19 Jul 2010 17:08:56 +0000
parents e15afed2bfeb
children c9d6cf9c51c8
comparison
equal deleted inserted replaced
560:e15afed2bfeb 561:aced8ec09bc8
33 ~CSVFormatDialog(); 33 ~CSVFormatDialog();
34 34
35 CSVFormat getFormat() const; 35 CSVFormat getFormat() const;
36 36
37 protected slots: 37 protected slots:
38 void modelTypeChanged(int type);
39 void timingTypeChanged(int type); 38 void timingTypeChanged(int type);
40 void sampleRateChanged(QString); 39 void sampleRateChanged(QString);
41 void windowSizeChanged(QString); 40 void windowSizeChanged(QString);
42 void columnPurposeChanged(int purpose); 41 void columnPurposeChanged(int purpose);
42 void updateModelLabel();
43 43
44 protected: 44 protected:
45 CSVFormat m_format; 45 CSVFormat m_format;
46 46
47 QComboBox *m_modelTypeCombo;
48 QComboBox *m_timingTypeCombo; 47 QComboBox *m_timingTypeCombo;
49 QLabel *m_sampleRateLabel; 48 QLabel *m_sampleRateLabel;
50 QComboBox *m_sampleRateCombo; 49 QComboBox *m_sampleRateCombo;
51 QLabel *m_windowSizeLabel; 50 QLabel *m_windowSizeLabel;
52 QComboBox *m_windowSizeCombo; 51 QComboBox *m_windowSizeCombo;
52 QLabel *m_modelLabel;
53 53
54 QList<QComboBox *> m_columnPurposeCombos; 54 QList<QComboBox *> m_columnPurposeCombos;
55 }; 55 };
56 56
57 #endif 57 #endif