comparison main/MainWindow.cpp @ 1989:0088a8f452ff import-audio-data

Use newly-introduced CSVAudioFormatDialog for audio import instead of CSVFormatDialog
author Chris Cannam
date Thu, 06 Sep 2018 13:58:45 +0100
parents fbf8ce45fcad
children 0cdf87d2f05b
comparison
equal deleted inserted replaced
1988:17c58d48acfe 1989:0088a8f452ff
57 #include "widgets/TransformFinder.h" 57 #include "widgets/TransformFinder.h"
58 #include "widgets/LabelCounterInputDialog.h" 58 #include "widgets/LabelCounterInputDialog.h"
59 #include "widgets/ActivityLog.h" 59 #include "widgets/ActivityLog.h"
60 #include "widgets/UnitConverter.h" 60 #include "widgets/UnitConverter.h"
61 #include "widgets/ProgressDialog.h" 61 #include "widgets/ProgressDialog.h"
62 #include "widgets/CSVFormatDialog.h" 62 #include "widgets/CSVAudioFormatDialog.h"
63 #include "audio/AudioCallbackPlaySource.h" 63 #include "audio/AudioCallbackPlaySource.h"
64 #include "audio/AudioCallbackRecordTarget.h" 64 #include "audio/AudioCallbackRecordTarget.h"
65 #include "audio/PlaySpeedRangeMapper.h" 65 #include "audio/PlaySpeedRangeMapper.h"
66 #include "data/fileio/DataFileReaderFactory.h" 66 #include "data/fileio/DataFileReaderFactory.h"
67 #include "data/fileio/PlaylistFileReader.h" 67 #include "data/fileio/PlaylistFileReader.h"
2903 format.setColumnPurpose(i, CSVFormat::ColumnValue); 2903 format.setColumnPurpose(i, CSVFormat::ColumnValue);
2904 } 2904 }
2905 } 2905 }
2906 2906
2907 { 2907 {
2908 CSVFormatDialog *dialog = new CSVFormatDialog(this, format); 2908 CSVAudioFormatDialog *dialog = new CSVAudioFormatDialog(this, format);
2909 if (dialog->exec() != QDialog::Accepted) { 2909 if (dialog->exec() != QDialog::Accepted) {
2910 delete dialog; 2910 delete dialog;
2911 return; 2911 return;
2912 } 2912 }
2913 format = dialog->getFormat(); 2913 format = dialog->getFormat();