Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 373:024226dd9f51
Give these two functions different names, not just different arg lists
author | Chris Cannam |
---|---|
date | Thu, 19 Jun 2014 14:43:41 +0100 |
parents | f1cab64363d7 |
children | 534bd1def9ee |
comparison
equal
deleted
inserted
replaced
371:dfcc5b355f33 | 373:024226dd9f51 |
---|---|
1118 | 1118 |
1119 labeller.labelAll<SparseOneDimensionalModel::Point>(*sodm, &ms); | 1119 labeller.labelAll<SparseOneDimensionalModel::Point>(*sodm, &ms); |
1120 } | 1120 } |
1121 | 1121 |
1122 MainWindowBase::FileOpenStatus | 1122 MainWindowBase::FileOpenStatus |
1123 MainWindowBase::open(QString fileOrUrl, AudioFileOpenMode mode) | 1123 MainWindowBase::openPath(QString fileOrUrl, AudioFileOpenMode mode) |
1124 { | 1124 { |
1125 cerr << "MainWindowBase::openPath(" << fileOrUrl << ")" << endl; | |
1125 ProgressDialog dialog(tr("Opening file or URL..."), true, 2000, this); | 1126 ProgressDialog dialog(tr("Opening file or URL..."), true, 2000, this); |
1126 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); | 1127 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); |
1127 return open(FileSource(fileOrUrl, &dialog), mode); | 1128 return open(FileSource(fileOrUrl, &dialog), mode); |
1128 } | 1129 } |
1129 | 1130 |
1143 source.getExtension().toLower() == "n3" || | 1144 source.getExtension().toLower() == "n3" || |
1144 source.getExtension().toLower() == "ttl"); | 1145 source.getExtension().toLower() == "ttl"); |
1145 | 1146 |
1146 bool audio = AudioFileReaderFactory::getKnownExtensions().contains | 1147 bool audio = AudioFileReaderFactory::getKnownExtensions().contains |
1147 (source.getExtension().toLower()); | 1148 (source.getExtension().toLower()); |
1149 | |
1150 cerr << "MainWindowBase::open(" << source.getLocalFilename() << ": audio = " << audio << endl; | |
1148 | 1151 |
1149 bool rdfSession = false; | 1152 bool rdfSession = false; |
1150 if (rdf) { | 1153 if (rdf) { |
1151 RDFImporter::RDFDocumentType rdfType = | 1154 RDFImporter::RDFDocumentType rdfType = |
1152 RDFImporter::identifyDocumentType | 1155 RDFImporter::identifyDocumentType |
1202 | 1205 |
1203 MainWindowBase::FileOpenStatus | 1206 MainWindowBase::FileOpenStatus |
1204 MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, | 1207 MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, |
1205 QString templateName) | 1208 QString templateName) |
1206 { | 1209 { |
1207 // SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; | 1210 cerr << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; |
1208 | 1211 |
1209 if (templateName == "") { | 1212 if (templateName == "") { |
1210 templateName = getDefaultSessionTemplate(); | 1213 templateName = getDefaultSessionTemplate(); |
1211 } | 1214 } |
1212 | 1215 |
1670 | 1673 |
1671 return FileOpenSucceeded; | 1674 return FileOpenSucceeded; |
1672 } | 1675 } |
1673 | 1676 |
1674 MainWindowBase::FileOpenStatus | 1677 MainWindowBase::FileOpenStatus |
1675 MainWindowBase::openSessionFile(QString fileOrUrl) | 1678 MainWindowBase::openSessionPath(QString fileOrUrl) |
1676 { | 1679 { |
1677 ProgressDialog dialog(tr("Opening session..."), true, 2000, this); | 1680 ProgressDialog dialog(tr("Opening session..."), true, 2000, this); |
1678 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); | 1681 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); |
1679 return openSession(FileSource(fileOrUrl, &dialog)); | 1682 return openSession(FileSource(fileOrUrl, &dialog)); |
1680 } | 1683 } |