Mercurial > hg > svgui
comparison widgets/FileFinder.cpp @ 410:33b7f5e54d60
* Merge revisions 1041 to 1130 from sv-rdf-import branch
author | Chris Cannam |
---|---|
date | Thu, 18 Sep 2008 12:09:32 +0000 |
parents | 22b72f0f6a4e |
children | 035d62c4cddf |
comparison
equal
deleted
inserted
replaced
409:feeb48f7478a | 410:33b7f5e54d60 |
---|---|
15 | 15 |
16 #include "FileFinder.h" | 16 #include "FileFinder.h" |
17 #include "data/fileio/FileSource.h" | 17 #include "data/fileio/FileSource.h" |
18 #include "data/fileio/AudioFileReaderFactory.h" | 18 #include "data/fileio/AudioFileReaderFactory.h" |
19 #include "data/fileio/DataFileReaderFactory.h" | 19 #include "data/fileio/DataFileReaderFactory.h" |
20 #include "rdf/RDFImporter.h" | |
20 | 21 |
21 #include <QFileInfo> | 22 #include <QFileInfo> |
22 #include <QMessageBox> | 23 #include <QMessageBox> |
23 #include <QFileDialog> | 24 #include <QFileDialog> |
24 #include <QInputDialog> | 25 #include <QInputDialog> |
72 .arg(AudioFileReaderFactory::getKnownExtensions()); | 73 .arg(AudioFileReaderFactory::getKnownExtensions()); |
73 break; | 74 break; |
74 | 75 |
75 case LayerFile: | 76 case LayerFile: |
76 settingsKey = "layerpath"; | 77 settingsKey = "layerpath"; |
77 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()); | 78 filter = tr("All supported files (%1 %2)\nSonic Visualiser Layer XML files (*.svl)\nComma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nRDF files (%3)\nMIDI files (*.mid)\nText files (*.txt)\nAll files (*.*)").arg(DataFileReaderFactory::getKnownExtensions()).arg(RDFImporter::getKnownExtensions()).arg(RDFImporter::getKnownExtensions()); |
78 break; | 79 break; |
79 | 80 |
80 case LayerFileNoMidi: | 81 case LayerFileNoMidi: |
81 settingsKey = "layerpath"; | 82 settingsKey = "layerpath"; |
82 filter = tr("All supported files (%1)\nSonic Visualiser Layer XML files (*.svl)\nComma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nText files (*.txt)\nAll files (*.*)").arg(DataFileReaderFactory::getKnownExtensions()); | 83 filter = tr("All supported files (%1 %2)\nSonic Visualiser Layer XML files (*.svl)\nComma-separated data files (*.csv)\nSpace-separated .lab files (*.lab)\nRDF files (%3)\nText files (*.txt)\nAll files (*.*)").arg(DataFileReaderFactory::getKnownExtensions()).arg(RDFImporter::getKnownExtensions()).arg(RDFImporter::getKnownExtensions()); |
83 break; | 84 break; |
84 | 85 |
85 case SessionOrAudioFile: | 86 case SessionOrAudioFile: |
86 settingsKey = "lastpath"; | 87 settingsKey = "lastpath"; |
87 filter = tr("All supported files (*.sv %1)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nAll files (*.*)") | 88 filter = tr("All supported files (*.sv %1)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nAll files (*.*)") |
102 } | 103 } |
103 break; | 104 break; |
104 | 105 |
105 case AnyFile: | 106 case AnyFile: |
106 settingsKey = "lastpath"; | 107 settingsKey = "lastpath"; |
107 filter = tr("All supported files (*.sv %1 %2)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nLayer files (%2)\nAll files (*.*)") | 108 filter = tr("All supported files (*.sv %1 %2 %3)\nSonic Visualiser session files (*.sv)\nAudio files (%1)\nLayer files (%2)\nAll files (*.*)") |
108 .arg(AudioFileReaderFactory::getKnownExtensions()) | 109 .arg(AudioFileReaderFactory::getKnownExtensions()) |
109 .arg(DataFileReaderFactory::getKnownExtensions()); | 110 .arg(DataFileReaderFactory::getKnownExtensions()) |
111 .arg(RDFImporter::getKnownExtensions()); | |
110 break; | 112 break; |
111 }; | 113 }; |
112 | 114 |
113 if (lastPath == "") { | 115 if (lastPath == "") { |
114 char *home = getenv("HOME"); | 116 char *home = getenv("HOME"); |