/[svn]/qsampler/trunk/src/qsamplerInstrumentForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrumentForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2109 by capela, Thu Jul 15 17:01:35 2010 UTC revision 2110 by capela, Sat Jul 17 12:21:01 2010 UTC
# Line 258  void InstrumentForm::openInstrumentFile Line 258  void InstrumentForm::openInstrumentFile
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            const QString& sEngineName = m_ui.EngineNameComboBox->currentText().toUpper();
262          QStringList filters;          QStringList filters;
263          filters << tr("GIG Instrument files") + " (*.gig *.dls)";          if (sEngineName.contains("GIG"))
264          filters << tr("SFZ Instrument files") + " (*.sfz)";                  filters << tr("GIG Instrument files") + " (*.gig *.dls)";
265          filters << tr("SF2 Instrument files") + " (*.sf2)";          if (sEngineName.contains("SFZ"))
266          filters << tr("All files") + " (*.*)";                  filters << tr("SFZ Instrument files") + " (*.sfz)";
267            if (sEngineName.contains("SF2"))
268                    filters << tr("SF2 Instrument files") + " (*.sf2)";
269          const QString& filter = filters.join(";;");          const QString& filter = filters.join(";;");
270    
271          QString sInstrumentFile = QFileDialog::getOpenFileName(this,          QString sInstrumentFile = QFileDialog::getOpenFileName(this,

Legend:
Removed from v.2109  
changed lines
  Added in v.2110

  ViewVC Help
Powered by ViewVC