comparison widgets/InteractiveFileFinder.cpp @ 1051:c02c51ae5238 3.0-plus-imaf

Merge branches 3.0-integration and imaf_enc to 3.0-plus-imaf
author Chris Cannam
date Wed, 20 Apr 2016 12:06:28 +0100
parents 831188672987 282f4be8f058
children
comparison
equal deleted inserted replaced
1050:3691af49291c 1051:c02c51ae5238
138 case CSVFile: 138 case CSVFile:
139 settingsKeyStub = "layer"; 139 settingsKeyStub = "layer";
140 filter = tr("Comma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nText files (*.txt)\nAll files (*.*)"); 140 filter = tr("Comma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nText files (*.txt)\nAll files (*.*)");
141 break; 141 break;
142 142
143 case IMAFile:
144 settingsKeyStub = "imaf";
145 title = "Select an IMAF file";
146 filter = tr("IMAF files (*.ima)\nAll files (*.*)");
147 break;
148
143 case AnyFile: 149 case AnyFile:
144 settingsKeyStub = "last"; 150 settingsKeyStub = "last";
145 filter = tr("All supported files (*.sv %1 %2 %3)\n%4 session files (*.%5)\nAudio files (%1)\nLayer files (%2)\nRDF files (%3)\nAll files (*.*)") 151 filter = tr("All supported files (*.sv %1 %2 %3)\n%4 session files (*.%5)\nAudio files (%1)\nLayer files (%2)\nRDF files (%3)\nAll files (*.*)")
146 .arg(AudioFileReaderFactory::getKnownExtensions()) 152 .arg(AudioFileReaderFactory::getKnownExtensions())
147 .arg(DataFileReaderFactory::getKnownExtensions()) 153 .arg(DataFileReaderFactory::getKnownExtensions())
286 case CSVFile: 292 case CSVFile:
287 settingsKeyStub = "savelayer"; 293 settingsKeyStub = "savelayer";
288 title = tr("Select a file to export to"); 294 title = tr("Select a file to export to");
289 filter = tr("Comma-separated data files (*.csv)\nText files (*.txt)\nAll files (*.*)"); 295 filter = tr("Comma-separated data files (*.csv)\nText files (*.txt)\nAll files (*.*)");
290 break; 296 break;
297
298 case IMAFile:
299 cerr << "ERROR: Internal error: InteractiveFileFinder::getSaveFileName: IMAFile cannot be used here" << endl;
300 abort();
291 301
292 case AnyFile: 302 case AnyFile:
293 cerr << "ERROR: Internal error: InteractiveFileFinder::getSaveFileName: AnyFile cannot be used here" << endl; 303 cerr << "ERROR: Internal error: InteractiveFileFinder::getSaveFileName: AnyFile cannot be used here" << endl;
294 abort(); 304 abort();
295 }; 305 };
453 463
454 case CSVFile: 464 case CSVFile:
455 settingsKeyStub = "layer"; 465 settingsKeyStub = "layer";
456 break; 466 break;
457 467
468 case IMAFile:
469 settingsKeyStub = "imaf";
470 break;
471
458 case AnyFile: 472 case AnyFile:
459 settingsKeyStub = "last"; 473 settingsKeyStub = "last";
460 break; 474 break;
461 } 475 }
462 476