/[svn]/qsampler/trunk/src/qsamplerChannelForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelForm.ui.h

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

revision 344 by capela, Tue Jan 18 13:53:04 2005 UTC revision 400 by capela, Mon Feb 21 15:02:58 2005 UTC
# Line 110  void qsamplerChannelForm::setup ( qsampl Line 110  void qsamplerChannelForm::setup ( qsampl
110    
111      // Engine name...      // Engine name...
112      QString sEngineName = pChannel->engineName();      QString sEngineName = pChannel->engineName();
113      if (sEngineName.isEmpty() && bNew)      if (sEngineName.isEmpty() || bNew)
114          sEngineName = pOptions->sEngineName;          sEngineName = pOptions->sEngineName;
115      if (sEngineName.isEmpty())      if (sEngineName.isEmpty())
116          sEngineName = tr("(No engine)");          sEngineName = qsamplerChannel::noEngineName();
117      if (EngineNameComboBox->listBox()->findItem(sEngineName, Qt::ExactMatch) == NULL)      if (EngineNameComboBox->listBox()->findItem(sEngineName, Qt::ExactMatch) == NULL)
118          EngineNameComboBox->insertItem(sEngineName);          EngineNameComboBox->insertItem(sEngineName);
119      EngineNameComboBox->setCurrentText(sEngineName);      EngineNameComboBox->setCurrentText(sEngineName);
120      // Instrument filename and index...      // Instrument filename and index...
121      QString sInstrumentFile = pChannel->instrumentFile();      QString sInstrumentFile = pChannel->instrumentFile();
122      if (sInstrumentFile.isEmpty())      if (sInstrumentFile.isEmpty())
123          sInstrumentFile = tr("(No instrument)");          sInstrumentFile = qsamplerChannel::noInstrumentName();
124      InstrumentFileComboBox->setCurrentText(sInstrumentFile);      InstrumentFileComboBox->setCurrentText(sInstrumentFile);
125      InstrumentNrComboBox->clear();      InstrumentNrComboBox->clear();
126      InstrumentNrComboBox->insertStringList(      InstrumentNrComboBox->insertStringList(
# Line 153  void qsamplerChannelForm::setup ( qsampl Line 153  void qsamplerChannelForm::setup ( qsampl
153              AudioDriverComboBox->insertItem(sAudioDriver);              AudioDriverComboBox->insertItem(sAudioDriver);
154          AudioDriverComboBox->setCurrentText(sAudioDriver);          AudioDriverComboBox->setCurrentText(sAudioDriver);
155      }      }
156            // As convenient, make it ready on stabilizeForm() for
157            // prompt acceptance, if we got the minimum required...
158            if (sEngineName != qsamplerChannel::noEngineName() &&
159                    sInstrumentFile != qsamplerChannel::noInstrumentName())
160                    m_iDirtyCount++;
161      // Done.      // Done.
162      m_iDirtySetup--;      m_iDirtySetup--;
163      stabilizeForm();      stabilizeForm();

Legend:
Removed from v.344  
changed lines
  Added in v.400

  ViewVC Help
Powered by ViewVC