diff 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
line wrap: on
line diff
--- a/widgets/CSVFormatDialog.h	Tue Mar 08 11:30:39 2011 +0000
+++ b/widgets/CSVFormatDialog.h	Mon Apr 04 15:34:34 2011 +0100
@@ -29,7 +29,8 @@
     Q_OBJECT
     
 public:
-    CSVFormatDialog(QWidget *parent, CSVFormat initialFormat);
+    CSVFormatDialog(QWidget *parent, CSVFormat initialFormat,
+                    int maxDisplayCols = 5);
     ~CSVFormatDialog();
 
     CSVFormat getFormat() const;
@@ -43,6 +44,7 @@
 
 protected:
     CSVFormat m_format;
+    int m_maxDisplayCols;
     
     QComboBox *m_timingTypeCombo;
     QLabel *m_sampleRateLabel;
@@ -52,6 +54,7 @@
     QLabel *m_modelLabel;
 
     QList<QComboBox *> m_columnPurposeCombos;
+    int m_fuzzyColumn;
 };
 
 #endif