comparison widgets/InteractiveFileFinder.cpp @ 1203:ff042979331b 3.0-integration

Merge from branch svg, and thus (in some subrepos) from levelpanwidget
author Chris Cannam
date Mon, 19 Dec 2016 16:34:38 +0000
parents 6828735468c9
children 34b941921ac8
comparison
equal deleted inserted replaced
1185:f32828ea63d9 1203:ff042979331b
132 } 132 }
133 filter = tr("Image files (%1)\nAll files (*.*)").arg(fmts.join(" ")); 133 filter = tr("Image files (%1)\nAll files (*.*)").arg(fmts.join(" "));
134 } 134 }
135 break; 135 break;
136 136
137 case SVGFile:
138 settingsKeyStub = "svg";
139 filter = tr("Scalable Vector Graphics files (*.svg)\nAll files (*.*)");
140 break;
141
137 case CSVFile: 142 case CSVFile:
138 settingsKeyStub = "layer"; 143 settingsKeyStub = "layer";
139 filter = tr("Comma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nText files (*.txt)\nAll files (*.*)"); 144 filter = tr("Comma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nText files (*.txt)\nAll files (*.*)");
140 break; 145 break;
141 146
280 settingsKeyStub = "saveimage"; 285 settingsKeyStub = "saveimage";
281 title = tr("Select a file to export to"); 286 title = tr("Select a file to export to");
282 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)"); 287 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)");
283 break; 288 break;
284 289
290 case SVGFile:
291 settingsKeyStub = "savesvg";
292 title = tr("Select a file to export to");
293 filter = tr("Scalable Vector Graphics files (*.svg)\nAll files (*.*)");
294 break;
295
285 case CSVFile: 296 case CSVFile:
286 settingsKeyStub = "savelayer"; 297 settingsKeyStub = "savelayer";
287 title = tr("Select a file to export to"); 298 title = tr("Select a file to export to");
288 filter = tr("Comma-separated data files (*.csv)\nText files (*.txt)\nAll files (*.*)"); 299 filter = tr("Comma-separated data files (*.csv)\nText files (*.txt)\nAll files (*.*)");
289 break; 300 break;
328 defaultSuffix = m_sessionExtension; 339 defaultSuffix = m_sessionExtension;
329 } else if (type == AudioFile) { 340 } else if (type == AudioFile) {
330 defaultSuffix = "wav"; 341 defaultSuffix = "wav";
331 } else if (type == ImageFile) { 342 } else if (type == ImageFile) {
332 defaultSuffix = "png"; 343 defaultSuffix = "png";
344 } else if (type == SVGFile) {
345 defaultSuffix = "svg";
333 } else if (type == CSVFile) { 346 } else if (type == CSVFile) {
334 defaultSuffix = "csv"; 347 defaultSuffix = "csv";
335 } 348 }
336 349
337 defaultSuffix = 350 defaultSuffix =
448 461
449 case ImageFile: 462 case ImageFile:
450 settingsKeyStub = "image"; 463 settingsKeyStub = "image";
451 break; 464 break;
452 465
466 case SVGFile:
467 settingsKeyStub = "svg";
468 break;
469
453 case CSVFile: 470 case CSVFile:
454 settingsKeyStub = "layer"; 471 settingsKeyStub = "layer";
455 break; 472 break;
456 473
457 case AnyFile: 474 case AnyFile: