Mercurial > hg > svgui
comparison widgets/CSVFormatDialog.h @ 581:c9d6cf9c51c8 sv_v1.8
* Cut off column dialog if there are many columns -- allow user to ignore or take values from all columns past a certain number.
This sort-of fixes #39, but it's problematic if some of the extraneous columns don't contain value data. We really want to handle the case where the final column is a label, at least.
author | Chris Cannam |
---|---|
date | Mon, 04 Apr 2011 15:34:34 +0100 |
parents | aced8ec09bc8 |
children | 2633a1d73e39 |
comparison
equal
deleted
inserted
replaced
580:89f70e0bfa4b | 581:c9d6cf9c51c8 |
---|---|
27 class CSVFormatDialog : public QDialog | 27 class CSVFormatDialog : public QDialog |
28 { | 28 { |
29 Q_OBJECT | 29 Q_OBJECT |
30 | 30 |
31 public: | 31 public: |
32 CSVFormatDialog(QWidget *parent, CSVFormat initialFormat); | 32 CSVFormatDialog(QWidget *parent, CSVFormat initialFormat, |
33 int maxDisplayCols = 5); | |
33 ~CSVFormatDialog(); | 34 ~CSVFormatDialog(); |
34 | 35 |
35 CSVFormat getFormat() const; | 36 CSVFormat getFormat() const; |
36 | 37 |
37 protected slots: | 38 protected slots: |
41 void columnPurposeChanged(int purpose); | 42 void columnPurposeChanged(int purpose); |
42 void updateModelLabel(); | 43 void updateModelLabel(); |
43 | 44 |
44 protected: | 45 protected: |
45 CSVFormat m_format; | 46 CSVFormat m_format; |
47 int m_maxDisplayCols; | |
46 | 48 |
47 QComboBox *m_timingTypeCombo; | 49 QComboBox *m_timingTypeCombo; |
48 QLabel *m_sampleRateLabel; | 50 QLabel *m_sampleRateLabel; |
49 QComboBox *m_sampleRateCombo; | 51 QComboBox *m_sampleRateCombo; |
50 QLabel *m_windowSizeLabel; | 52 QLabel *m_windowSizeLabel; |
51 QComboBox *m_windowSizeCombo; | 53 QComboBox *m_windowSizeCombo; |
52 QLabel *m_modelLabel; | 54 QLabel *m_modelLabel; |
53 | 55 |
54 QList<QComboBox *> m_columnPurposeCombos; | 56 QList<QComboBox *> m_columnPurposeCombos; |
57 int m_fuzzyColumn; | |
55 }; | 58 }; |
56 | 59 |
57 #endif | 60 #endif |