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; |
QStringList filters; |
477 |
filters << tr("GIG Instrument files") + " (*.gig *.dls)"; |
const QString& sEngineName = m_ui.EngineNameComboBox->currentText().toUpper(); |
478 |
filters << tr("SFZ Instrument files") + " (*.sfz)"; |
if (sEngineName.contains("GIG")) |
479 |
filters << tr("SF2 Instrument files") + " (*.sf2)"; |
filters << tr("GIG Instrument files") + " (*.gig *.dls)"; |
480 |
|
if (sEngineName.contains("SFZ")) |
481 |
|
filters << tr("SFZ Instrument files") + " (*.sfz)"; |
482 |
|
if (sEngineName.contains("SF2")) |
483 |
|
filters << tr("SF2 Instrument files") + " (*.sf2)"; |
484 |
filters << tr("All files") + " (*.*)"; |
filters << tr("All files") + " (*.*)"; |
485 |
const QString& filter = filters.join(";;"); |
const QString& filter = filters.join(";;"); |
486 |
|
|