/[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 519 by schoenebeck, Sun May 8 17:04:10 2005 UTC revision 586 by capela, Wed May 25 11:41:35 2005 UTC
# Line 117  void qsamplerChannelStrip::setup ( qsamp Line 117  void qsamplerChannelStrip::setup ( qsamp
117    
118      // Set the new one...      // Set the new one...
119      m_pChannel = pChannel;      m_pChannel = pChannel;
120        
121      // Stabilize this around.      // Stabilize this around.
122      updateChannelInfo();      updateChannelInfo();
123    
# Line 171  void qsamplerChannelStrip::setDisplayBac Line 171  void qsamplerChannelStrip::setDisplayBac
171              pLabel->setPaletteBackgroundPixmap(pm);              pLabel->setPaletteBackgroundPixmap(pm);
172          delete pList;          delete pList;
173      }      }
174        
175      // And this standalone too.      // And this standalone too.
176      StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm);      StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm);
177  }  }
# Line 281  bool qsamplerChannelStrip::updateChannel Line 281  bool qsamplerChannelStrip::updateChannel
281  {  {
282      if (m_pChannel == NULL)      if (m_pChannel == NULL)
283          return false;          return false;
284            
285          // Check for error limit/recycle...          // Check for error limit/recycle...
286          if (m_iErrorCount > QSAMPLER_ERROR_LIMIT)          if (m_iErrorCount > QSAMPLER_ERROR_LIMIT)
287                  return true;                  return true;
# Line 343  bool qsamplerChannelStrip::updateChannel Line 343  bool qsamplerChannelStrip::updateChannel
343          // This only makes sense on fully loaded channels...          // This only makes sense on fully loaded channels...
344          if (m_pChannel->instrumentStatus() < 100)          if (m_pChannel->instrumentStatus() < 100)
345              return false;              return false;
346                
347      // Get current channel voice count.      // Get current channel voice count.
348      int iVoiceCount  = ::lscp_get_channel_voice_count(m_pChannel->client(), m_pChannel->channelID());      int iVoiceCount  = ::lscp_get_channel_voice_count(m_pChannel->client(), m_pChannel->channelID());
349      // Get current stream count.      // Get current stream count.
# Line 356  bool qsamplerChannelStrip::updateChannel Line 356  bool qsamplerChannelStrip::updateChannel
356      // Update the GUI elements...      // Update the GUI elements...
357      StreamUsageProgressBar->setProgress(iStreamUsage);      StreamUsageProgressBar->setProgress(iStreamUsage);
358      StreamVoiceCountTextLabel->setText(QString("%1 / %2").arg(iStreamCount).arg(iVoiceCount));      StreamVoiceCountTextLabel->setText(QString("%1 / %2").arg(iStreamCount).arg(iVoiceCount));
359        
360      // We're clean.      // We're clean.
361      return true;      return true;
362  }  }
# Line 390  void qsamplerChannelStrip::contextMenuEv Line 390  void qsamplerChannelStrip::contextMenuEv
390  {  {
391      if (m_pChannel == NULL)      if (m_pChannel == NULL)
392          return;          return;
393            
394      // We'll just show up the main form's edit menu (thru qsamplerChannel).      // We'll just show up the main form's edit menu (thru qsamplerChannel).
395      m_pChannel->contextMenuEvent(pEvent);      m_pChannel->contextMenuEvent(pEvent);
396  }  }
397    
398    
399    // Error count hackish accessors.
400    void qsamplerChannelStrip::resetErrorCount (void)
401    {
402            m_iErrorCount = 0;
403    }
404    
405    
406  // end of qsamplerChannelStrip.ui.h  // end of qsamplerChannelStrip.ui.h

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

  ViewVC Help
Powered by ViewVC