Mercurial > hg > svapp
changeset 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 | d9c21e7bff21 |
children | f8b4040c3056 |
files | framework/MainWindowBase.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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(),