diff framework/MainWindowBase.cpp @ 196:944af6246560

* Start revamping the CSV import dialog so as to show a "purpose" for each column. These are estimated from the file now, but changing them does not actually do anything yet.
author Chris Cannam
date Fri, 16 Jul 2010 16:51:39 +0000
parents 302dae1f6016
children 143e1b56e81b 84422236db20
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Thu Jul 15 15:25:59 2010 +0000
+++ b/framework/MainWindowBase.cpp	Fri Jul 16 16:51:39 2010 +0000
@@ -1369,8 +1369,9 @@
                 (path, &midiDlg, getMainModel()->getSampleRate());
         
             if (!model) {
-                CSVFormatDialog *dialog = new CSVFormatDialog
-                    (this, CSVFormat(path), getMainModel()->getSampleRate());
+                CSVFormat format(path);
+                format.setSampleRate(getMainModel()->getSampleRate());
+                CSVFormatDialog *dialog = new CSVFormatDialog(this, format);
                 if (dialog->exec() == QDialog::Accepted) {
                     model = DataFileReaderFactory::loadCSV
                         (path, dialog->getFormat(),