Mercurial > hg > svgui
comparison widgets/InteractiveFileFinder.cpp @ 1216:dc2af6616c83
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Fri, 13 Jan 2017 10:29:50 +0000 |
parents | 6828735468c9 |
children | 34b941921ac8 |
comparison
equal
deleted
inserted
replaced
1048:e8102ff5573b | 1216:dc2af6616c83 |
---|---|
35 InteractiveFileFinder::InteractiveFileFinder() : | 35 InteractiveFileFinder::InteractiveFileFinder() : |
36 m_sessionExtension("sv"), | 36 m_sessionExtension("sv"), |
37 m_lastLocatedLocation(""), | 37 m_lastLocatedLocation(""), |
38 m_parent(0) | 38 m_parent(0) |
39 { | 39 { |
40 SVDEBUG << "Registering interactive file finder" << endl; | |
41 FileFinder::registerFileFinder(this); | 40 FileFinder::registerFileFinder(this); |
42 } | 41 } |
43 | 42 |
44 InteractiveFileFinder::~InteractiveFileFinder() | 43 InteractiveFileFinder::~InteractiveFileFinder() |
45 { | 44 { |
133 } | 132 } |
134 filter = tr("Image files (%1)\nAll files (*.*)").arg(fmts.join(" ")); | 133 filter = tr("Image files (%1)\nAll files (*.*)").arg(fmts.join(" ")); |
135 } | 134 } |
136 break; | 135 break; |
137 | 136 |
137 case SVGFile: | |
138 settingsKeyStub = "svg"; | |
139 filter = tr("Scalable Vector Graphics files (*.svg)\nAll files (*.*)"); | |
140 break; | |
141 | |
138 case CSVFile: | 142 case CSVFile: |
139 settingsKeyStub = "layer"; | 143 settingsKeyStub = "layer"; |
140 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 (*.*)"); |
141 break; | 145 break; |
142 | 146 |
281 settingsKeyStub = "saveimage"; | 285 settingsKeyStub = "saveimage"; |
282 title = tr("Select a file to export to"); | 286 title = tr("Select a file to export to"); |
283 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)"); | 287 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)"); |
284 break; | 288 break; |
285 | 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 | |
286 case CSVFile: | 296 case CSVFile: |
287 settingsKeyStub = "savelayer"; | 297 settingsKeyStub = "savelayer"; |
288 title = tr("Select a file to export to"); | 298 title = tr("Select a file to export to"); |
289 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 (*.*)"); |
290 break; | 300 break; |
329 defaultSuffix = m_sessionExtension; | 339 defaultSuffix = m_sessionExtension; |
330 } else if (type == AudioFile) { | 340 } else if (type == AudioFile) { |
331 defaultSuffix = "wav"; | 341 defaultSuffix = "wav"; |
332 } else if (type == ImageFile) { | 342 } else if (type == ImageFile) { |
333 defaultSuffix = "png"; | 343 defaultSuffix = "png"; |
344 } else if (type == SVGFile) { | |
345 defaultSuffix = "svg"; | |
334 } else if (type == CSVFile) { | 346 } else if (type == CSVFile) { |
335 defaultSuffix = "csv"; | 347 defaultSuffix = "csv"; |
336 } | 348 } |
337 | 349 |
338 defaultSuffix = | 350 defaultSuffix = |
449 | 461 |
450 case ImageFile: | 462 case ImageFile: |
451 settingsKeyStub = "image"; | 463 settingsKeyStub = "image"; |
452 break; | 464 break; |
453 | 465 |
466 case SVGFile: | |
467 settingsKeyStub = "svg"; | |
468 break; | |
469 | |
454 case CSVFile: | 470 case CSVFile: |
455 settingsKeyStub = "layer"; | 471 settingsKeyStub = "layer"; |
456 break; | 472 break; |
457 | 473 |
458 case AnyFile: | 474 case AnyFile: |