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

Diff of /qsampler/trunk/src/qsamplerChannelForm.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 474  void ChannelForm::openInstrumentFile (vo Line 474  void ChannelForm::openInstrumentFile (vo
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    

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

  ViewVC Help
Powered by ViewVC