Mercurial > hg > svapp
diff framework/SVFileReader.cpp @ 109:2dd30a7cd21a
* More work to abstract out interactive components used in the data library,
so that it does not need to depend on QtGui.
author | Chris Cannam |
---|---|
date | Fri, 14 Mar 2008 17:14:21 +0000 |
parents | b9faa1418d29 |
children | c82913d31a53 |
line wrap: on
line diff
--- a/framework/SVFileReader.cpp Thu Mar 13 14:06:03 2008 +0000 +++ b/framework/SVFileReader.cpp Fri Mar 14 17:14:21 2008 +0000 @@ -21,9 +21,10 @@ #include "base/PlayParameterRepository.h" #include "data/fileio/AudioFileReaderFactory.h" -#include "data/fileio/FileFinder.h" #include "data/fileio/FileSource.h" +#include "widgets/FileFinder.h" + #include "data/model/WaveFileModel.h" #include "data/model/EditableDenseThreeDimensionalModel.h" #include "data/model/SparseOneDimensionalModel.h" @@ -36,6 +37,8 @@ #include "view/Pane.h" +#include "widgets/ProgressDialog.h" + #include "Document.h" #include <QString> @@ -441,7 +444,8 @@ QString path = ff->find(FileFinder::AudioFile, originalPath, m_location); - FileSource file(path, FileSource::ProgressDialog); + ProgressDialog dialog(tr("Opening file or URL..."), true, 2000); + FileSource file(path, &dialog); file.waitForStatus(); if (!file.isOK()) {