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

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

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

revision 182 by capela, Tue Jul 6 21:11:40 2004 UTC revision 261 by capela, Wed Sep 29 07:43:26 2004 UTC
# Line 380  void qsamplerChannelStrip::updateChannel Line 380  void qsamplerChannelStrip::updateChannel
380      }      }
381    
382      // Set some proper display values.      // Set some proper display values.
383        const QString sIndent = " ";
384    
385      // Engine name...      // Engine name...
386      if (m_sEngineName.isEmpty())      if (m_sEngineName.isEmpty())
387          EngineNameTextLabel->setText(tr("(No engine)"));          EngineNameTextLabel->setText(sIndent + tr("(No engine)"));
388      else      else
389          EngineNameTextLabel->setText(m_sEngineName);          EngineNameTextLabel->setText(sIndent + m_sEngineName);
390    
391      // Instrument name...      // Instrument name...
392      if (m_sInstrumentFile.isEmpty())      if (m_sInstrumentFile.isEmpty())
393          InstrumentNameTextLabel->setText(tr("(No instrument)"));          InstrumentNameTextLabel->setText(sIndent + tr("(No instrument)"));
394      else      else
395          InstrumentNameTextLabel->setText(QString("%1 [%2]")          InstrumentNameTextLabel->setText(sIndent + QString("%1 [%2]")
396              .arg(QFileInfo(m_sInstrumentFile).fileName()).arg(m_iInstrumentNr));              .arg(QFileInfo(m_sInstrumentFile).fileName()).arg(m_iInstrumentNr));
397    
398      // Instrument status...      // Instrument status...
# Line 404  void qsamplerChannelStrip::updateChannel Line 405  void qsamplerChannelStrip::updateChannel
405      }      }
406    
407      // MIDI Port/Channel...      // MIDI Port/Channel...
408      MidiPortChannelTextLabel->setText(QString("%1 / %2")      if (m_iMidiChannel > 0)
409          .arg(m_iMidiPort).arg(m_iMidiChannel));          MidiPortChannelTextLabel->setText(QString("%1 / %2").arg(m_iMidiPort).arg(m_iMidiChannel));
410                else
411            MidiPortChannelTextLabel->setText(QString("%1 / *").arg(m_iMidiPort));
412    
413      // And update the both GUI volume elements.      // And update the both GUI volume elements.
414      updateChannelVolume();      updateChannelVolume();
415  }  }

Legend:
Removed from v.182  
changed lines
  Added in v.261

  ViewVC Help
Powered by ViewVC