/[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 586 by capela, Wed May 25 11:41:35 2005 UTC revision 751 by capela, Fri Aug 19 17:10:16 2005 UTC
# Line 195  bool qsamplerChannelStrip::channelSetup Line 195  bool qsamplerChannelStrip::channelSetup
195                                    
196          // Invoke the channel setup dialog.          // Invoke the channel setup dialog.
197          bool bResult = m_pChannel->channelSetup(this);          bool bResult = m_pChannel->channelSetup(this);
198          // Notify that thie channel has changed.          // Notify that this channel has changed.
199            if (bResult)
200                    emit channelChanged(this);
201    
202            return bResult;
203    }
204    
205    
206    // Channel mute slot.
207    bool qsamplerChannelStrip::channelMute ( bool bMute )
208    {
209            if (m_pChannel == NULL)
210                    return false;
211    
212            // Invoke the channel mute method.
213            bool bResult = m_pChannel->setChannelMute(bMute);
214            // Notify that this channel has changed.
215            if (bResult)
216                    emit channelChanged(this);
217    
218            return bResult;
219    }
220    
221    
222    // Channel solo slot.
223    bool qsamplerChannelStrip::channelSolo ( bool bSolo )
224    {
225            if (m_pChannel == NULL)
226                    return false;
227    
228            // Invoke the channel solo method.
229            bool bResult = m_pChannel->setChannelSolo(bSolo);
230            // Notify that this channel has changed.
231          if (bResult)          if (bResult)
232                  emit channelChanged(this);                  emit channelChanged(this);
233    
# Line 211  bool qsamplerChannelStrip::channelReset Line 243  bool qsamplerChannelStrip::channelReset
243    
244          // Invoke the channel reset method.          // Invoke the channel reset method.
245          bool bResult = m_pChannel->channelReset();          bool bResult = m_pChannel->channelReset();
246          // Notify that thie channel has changed.          // Notify that this channel has changed.
247          if (bResult)          if (bResult)
248                  emit channelChanged(this);                  emit channelChanged(this);
249    
# Line 225  bool qsamplerChannelStrip::updateInstrum Line 257  bool qsamplerChannelStrip::updateInstrum
257          if (m_pChannel == NULL)          if (m_pChannel == NULL)
258                  return false;                  return false;
259    
260          // Do we refersh the actual name?          // Do we refresh the actual name?
261          if (bForce)          if (bForce)
262                  m_pChannel->updateInstrumentName();                  m_pChannel->updateInstrumentName();
263    
# Line 326  bool qsamplerChannelStrip::updateChannel Line 358  bool qsamplerChannelStrip::updateChannel
358      InstrumentStatusTextLabel->setText(QString::number(iInstrumentStatus) + '%');      InstrumentStatusTextLabel->setText(QString::number(iInstrumentStatus) + '%');
359      m_iErrorCount = 0;      m_iErrorCount = 0;
360    
361    #ifdef CONFIG_MUTE_SOLO
362        // Mute/Solo button state coloring...
363        const QColor& rgbNormal = ChannelSetupPushButton->paletteBackgroundColor();
364        bool bMute = m_pChannel->channelMute();
365        ChannelMutePushButton->setPaletteBackgroundColor(bMute ? Qt::red : rgbNormal);
366        ChannelMutePushButton->setDown(bMute);
367        bool bSolo = m_pChannel->channelSolo();
368        ChannelSoloPushButton->setPaletteBackgroundColor(bSolo ? Qt::yellow : rgbNormal);
369        ChannelSoloPushButton->setDown(bSolo);
370    #else
371            ChannelMutePushButton->setEnabled(false);
372            ChannelSoloPushButton->setEnabled(false);
373    #endif
374    
375      // And update the both GUI volume elements;      // And update the both GUI volume elements;
376      // return success if, and only if, intrument is fully loaded...      // return success if, and only if, intrument is fully loaded...
377      return updateChannelVolume() && (iInstrumentStatus == 100);      return updateChannelVolume() && (iInstrumentStatus == 100);

Legend:
Removed from v.586  
changed lines
  Added in v.751

  ViewVC Help
Powered by ViewVC