/[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 344 by capela, Tue Jan 18 13:53:04 2005 UTC revision 371 by capela, Fri Feb 11 15:36:06 2005 UTC
# Line 135  bool qsamplerChannelStrip::channelSetup Line 135  bool qsamplerChannelStrip::channelSetup
135  }  }
136    
137    
138    // Update the channel instrument name.
139    bool qsamplerChannelStrip::updateInstrumentName ( bool bForce )
140    {
141            if (m_pChannel == NULL)
142                    return false;
143    
144            // Do we refersh the actual name?
145            if (bForce)
146                    m_pChannel->updateInstrumentName();
147    
148            // Instrument name...
149            if (m_pChannel->instrumentName().isEmpty())
150                    InstrumentNameTextLabel->setText(' ' + tr("(No instrument)"));
151            else
152                    InstrumentNameTextLabel->setText(' ' + m_pChannel->instrumentName());
153    
154            return true;    
155    }
156    
157    
158  // Update whole channel info state.  // Update whole channel info state.
159  bool qsamplerChannelStrip::updateChannelInfo (void)  bool qsamplerChannelStrip::updateChannelInfo (void)
160  {  {
# Line 153  bool qsamplerChannelStrip::updateChannel Line 173  bool qsamplerChannelStrip::updateChannel
173      // Read actual channel information.      // Read actual channel information.
174      m_pChannel->updateChannelInfo();      m_pChannel->updateChannelInfo();
175    
     // Set some proper display values.  
     const QString sIndent = " ";  
   
176      // Engine name...      // Engine name...
177      if (m_pChannel->engineName().isEmpty())      if (m_pChannel->engineName().isEmpty())
178          EngineNameTextLabel->setText(sIndent + tr("(No engine)"));          EngineNameTextLabel->setText(' ' + tr("(No engine)"));
179      else      else
180          EngineNameTextLabel->setText(sIndent + m_pChannel->engineName());          EngineNameTextLabel->setText(' ' + m_pChannel->engineName());
181    
182      // Instrument name...          // Instrument name...
183      if (m_pChannel->instrumentName().isEmpty())          updateInstrumentName(false);
         InstrumentNameTextLabel->setText(sIndent + tr("(No instrument)"));  
     else  
         InstrumentNameTextLabel->setText(sIndent + m_pChannel->instrumentName());  
184    
185      // Instrument status...      // Instrument status...
186      int iInstrumentStatus = m_pChannel->instrumentStatus();      int iInstrumentStatus = m_pChannel->instrumentStatus();

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

  ViewVC Help
Powered by ViewVC