comparison data/fileio/FileFinder.cpp @ 285:20028c634494

* change some QStrings to std::strings etc
author Chris Cannam
date Thu, 09 Aug 2007 16:29:29 +0000
parents 40db5491bcf8
children 92e8dbde73cd
comparison
equal deleted inserted replaced
284:41d64b873d87 285:20028c634494
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()); 71 .arg(AudioFileReaderFactory::getKnownExtensions().c_str());
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()); 82 .arg(AudioFileReaderFactory::getKnownExtensions().c_str());
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()) 93 .arg(AudioFileReaderFactory::getKnownExtensions().c_str())
94 .arg(DataFileReaderFactory::getKnownExtensions()); 94 .arg(DataFileReaderFactory::getKnownExtensions());
95 break; 95 break;
96 }; 96 };
97 97
98 if (lastPath == "") { 98 if (lastPath == "") {