# HG changeset patch # User Chris Cannam # Date 1403185421 -3600 # Node ID 024226dd9f51bd101d817da561d336fcdd32c0b5 # Parent dfcc5b355f33005e177317d738031a8515812c4e Give these two functions different names, not just different arg lists diff -r dfcc5b355f33 -r 024226dd9f51 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Jun 18 13:51:38 2014 +0100 +++ b/framework/MainWindowBase.cpp Thu Jun 19 14:43:41 2014 +0100 @@ -1120,8 +1120,9 @@ } MainWindowBase::FileOpenStatus -MainWindowBase::open(QString fileOrUrl, AudioFileOpenMode mode) +MainWindowBase::openPath(QString fileOrUrl, AudioFileOpenMode mode) { + cerr << "MainWindowBase::openPath(" << fileOrUrl << ")" << endl; ProgressDialog dialog(tr("Opening file or URL..."), true, 2000, this); connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); return open(FileSource(fileOrUrl, &dialog), mode); @@ -1146,6 +1147,8 @@ bool audio = AudioFileReaderFactory::getKnownExtensions().contains (source.getExtension().toLower()); + cerr << "MainWindowBase::open(" << source.getLocalFilename() << ": audio = " << audio << endl; + bool rdfSession = false; if (rdf) { RDFImporter::RDFDocumentType rdfType = @@ -1204,7 +1207,7 @@ MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, QString templateName) { -// SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; + cerr << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; if (templateName == "") { templateName = getDefaultSessionTemplate(); @@ -1672,7 +1675,7 @@ } MainWindowBase::FileOpenStatus -MainWindowBase::openSessionFile(QString fileOrUrl) +MainWindowBase::openSessionPath(QString fileOrUrl) { ProgressDialog dialog(tr("Opening session..."), true, 2000, this); connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); diff -r dfcc5b355f33 -r 024226dd9f51 framework/MainWindowBase.h --- a/framework/MainWindowBase.h Wed Jun 18 13:51:38 2014 +0100 +++ b/framework/MainWindowBase.h Thu Jun 19 14:43:41 2014 +0100 @@ -93,16 +93,15 @@ FileOpenWrongMode // attempted to open layer when no main model present }; - virtual FileOpenStatus open(QString fileOrUrl, AudioFileOpenMode = AskUser); virtual FileOpenStatus open(FileSource source, AudioFileOpenMode = AskUser); - + virtual FileOpenStatus openPath(QString fileOrUrl, AudioFileOpenMode = AskUser); virtual FileOpenStatus openAudio(FileSource source, AudioFileOpenMode = AskUser, QString templateName = ""); virtual FileOpenStatus openPlaylist(FileSource source, AudioFileOpenMode = AskUser); virtual FileOpenStatus openLayer(FileSource source); virtual FileOpenStatus openImage(FileSource source); - virtual FileOpenStatus openSessionFile(QString fileOrUrl); virtual FileOpenStatus openSession(FileSource source); + virtual FileOpenStatus openSessionPath(QString fileOrUrl); virtual FileOpenStatus openSessionTemplate(QString templateName); virtual FileOpenStatus openSessionTemplate(FileSource source);