comparison data/fileio/FileFinder.cpp @ 290:92e8dbde73cd

* Revert revision 713. We do like QStrings after all.
author Chris Cannam
date Fri, 24 Aug 2007 11:41:48 +0000
parents 20028c634494
children 73537d900d4b
comparison
equal deleted inserted replaced
289:3020904de772 290:92e8dbde73cd
66 66
67 case AudioFile: 67 case AudioFile:
68 settingsKey = "audiopath"; 68 settingsKey = "audiopath";
69 title = "Select an audio file"; 69 title = "Select an audio file";
70 filter = tr("Audio files (%1)\nAll files (*.*)") 70 filter = tr("Audio files (%1)\nAll files (*.*)")
71 .arg(AudioFileReaderFactory::getKnownExtensions().c_str()); 71 .arg(AudioFileReaderFactory::getKnownExtensions());
72 break; 72 break;
73 73
74 case LayerFile: 74 case LayerFile:
75 settingsKey = "layerpath"; 75 settingsKey = "layerpath";
76 filter = tr("All supported files (%1)\nSonic Visualiser Layer XML files (*.svl)\nComma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nMIDI files (*.mid)\nText files (*.txt)\nAll files (*.*)").arg(DataFileReaderFactory::getKnownExtensions()); 76 filter = tr("All supported files (%1)\nSonic Visualiser Layer XML files (*.svl)\nComma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nMIDI files (*.mid)\nText files (*.txt)\nAll files (*.*)").arg(DataFileReaderFactory::getKnownExtensions());
77 break; 77 break;
78 78
79 case SessionOrAudioFile: 79 case SessionOrAudioFile:
80 settingsKey = "lastpath"; 80 settingsKey = "lastpath";
81 filter = tr("All supported files (*.sv %1)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nAll files (*.*)") 81 filter = tr("All supported files (*.sv %1)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nAll files (*.*)")
82 .arg(AudioFileReaderFactory::getKnownExtensions().c_str()); 82 .arg(AudioFileReaderFactory::getKnownExtensions());
83 break; 83 break;
84 84
85 case ImageFile: 85 case ImageFile:
86 settingsKey = "imagepath"; 86 settingsKey = "imagepath";
87 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)"); 87 filter = tr("Portable Network Graphics files (*.png)\nAll files (*.*)");
88 break; 88 break;
89 89
90 case AnyFile: 90 case AnyFile:
91 settingsKey = "lastpath"; 91 settingsKey = "lastpath";
92 filter = tr("All supported files (*.sv %1 %2)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nLayer files (%2)\nAll files (*.*)") 92 filter = tr("All supported files (*.sv %1 %2)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nLayer files (%2)\nAll files (*.*)")
93 .arg(AudioFileReaderFactory::getKnownExtensions().c_str()) 93 .arg(AudioFileReaderFactory::getKnownExtensions())
94 .arg(DataFileReaderFactory::getKnownExtensions()); 94 .arg(DataFileReaderFactory::getKnownExtensions());
95 break; 95 break;
96 }; 96 };
97 97
98 if (lastPath == "") { 98 if (lastPath == "") {