comparison widgets/CSVFormatDialog.h @ 1612:129c704566ff csv-import-headers

Support column headers, with user toggle; also distinguish visibly between tab and general whitespace delimiters
author Chris Cannam
date Thu, 18 Jun 2020 11:52:29 +0100
parents 0930a27ebea2
children
comparison
equal deleted inserted replaced
1611:a6e37c28d762 1612:129c704566ff
20 20
21 class QTableWidget; 21 class QTableWidget;
22 class QComboBox; 22 class QComboBox;
23 class QLabel; 23 class QLabel;
24 class QFrame; 24 class QFrame;
25 class QCheckBox;
25 26
26 #include <QDialog> 27 #include <QDialog>
27 28
28 class CSVFormatDialog : public QDialog 29 class CSVFormatDialog : public QDialog
29 { 30 {
42 ~CSVFormatDialog(); 43 ~CSVFormatDialog();
43 44
44 CSVFormat getFormat() const; 45 CSVFormat getFormat() const;
45 46
46 protected slots: 47 protected slots:
48 void headerChanged(bool);
47 void separatorChanged(QString); 49 void separatorChanged(QString);
48 void timingTypeChanged(int type); 50 void timingTypeChanged(int type);
49 void sampleRateChanged(QString); 51 void sampleRateChanged(QString);
50 void windowSizeChanged(QString); 52 void windowSizeChanged(QString);
51 void columnPurposeChanged(int purpose); 53 void columnPurposeChanged(int purpose);
73 void columnPurposeChangedForAnnotationType(QComboBox *, int purpose); 75 void columnPurposeChangedForAnnotationType(QComboBox *, int purpose);
74 void updateComboVisibility(); 76 void updateComboVisibility();
75 void applyStartTimePurpose(); 77 void applyStartTimePurpose();
76 void removeStartTimePurpose(); 78 void removeStartTimePurpose();
77 79
80 QString m_tabText;
81 QString m_whitespaceText;
82
78 QFrame *m_exampleFrame; 83 QFrame *m_exampleFrame;
79 int m_exampleFrameRow; 84 int m_exampleFrameRow;
80 85
86 QCheckBox *m_headerCheckBox;
81 QComboBox *m_separatorCombo; 87 QComboBox *m_separatorCombo;
82 QComboBox *m_timingTypeCombo; 88 QComboBox *m_timingTypeCombo;
83 QLabel *m_sampleRateLabel; 89 QLabel *m_sampleRateLabel;
84 QComboBox *m_sampleRateCombo; 90 QComboBox *m_sampleRateCombo;
85 QLabel *m_windowSizeLabel; 91 QLabel *m_windowSizeLabel;