473 |
|
|
474 |
// FIXME: the instrument file filters should be restricted, |
// FIXME: the instrument file filters should be restricted, |
475 |
// depending on the current engine. |
// depending on the current engine. |
476 |
|
QStringList filters; |
477 |
|
filters << tr("GIG Instrument files") + " (*.gig *.dls)"; |
478 |
|
filters << tr("SFZ Instrument files") + " (*.sfz)"; |
479 |
|
// filters << tr("SF2 Instrument files") + " (*.sf2)"; |
480 |
|
filters << tr("All files") + " (*.*)"; |
481 |
|
const QString& filter = filters.join(";;"); |
482 |
|
|
483 |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
484 |
QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. |
QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. |
485 |
pOptions->sInstrumentDir, // Start here. |
pOptions->sInstrumentDir, // Start here. |
486 |
tr("Instrument files") + " (*.gig *.dls)" // Filter (GIG and DLS files) |
filter // File filter. |
487 |
); |
); |
488 |
|
|
489 |
if (sInstrumentFile.isEmpty()) |
if (sInstrumentFile.isEmpty()) |