258 |
|
|
259 |
// FIXME: the instrument file filters should be restricted, |
// FIXME: the instrument file filters should be restricted, |
260 |
// depending on the current engine. |
// depending on the current engine. |
261 |
|
QStringList filters; |
262 |
|
filters << tr("GIG Instrument files") + " (*.gig *.dls)"; |
263 |
|
filters << tr("SFZ Instrument files") + " (*.sfz)"; |
264 |
|
// filters << tr("SF2 Instrument files") + " (*.sf2)"; |
265 |
|
filters << tr("All files") + " (*.*)"; |
266 |
|
const QString& filter = filters.join(";;"); |
267 |
|
|
268 |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
269 |
QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. |
QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. |
270 |
pOptions->sInstrumentDir, // Start here. |
pOptions->sInstrumentDir, // Start here. |
271 |
tr("Instrument files") + " (*.gig *.dls)" // Filter (GIG and DLS files) |
filter // File filter. |
272 |
); |
); |
273 |
|
|
274 |
if (sInstrumentFile.isEmpty()) |
if (sInstrumentFile.isEmpty()) |