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

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

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

revision 662 by capela, Sat Jun 18 10:46:57 2005 UTC revision 680 by capela, Thu Jun 23 22:54:14 2005 UTC
# Line 387  void qsamplerMainForm::customEvent ( QCu Line 387  void qsamplerMainForm::customEvent ( QCu
387      // For the time being, just pump it to messages.      // For the time being, just pump it to messages.
388      if (pCustomEvent->type() == QSAMPLER_CUSTOM_EVENT) {      if (pCustomEvent->type() == QSAMPLER_CUSTOM_EVENT) {
389          qsamplerCustomEvent *pEvent = (qsamplerCustomEvent *) pCustomEvent;          qsamplerCustomEvent *pEvent = (qsamplerCustomEvent *) pCustomEvent;
         appendMessagesColor(tr("Notify event: %1 data: %2")  
             .arg(::lscp_event_to_text(pEvent->event()))  
             .arg(pEvent->data()), "#996699");  
390                  if (pEvent->event() == LSCP_EVENT_CHANNEL_INFO) {                  if (pEvent->event() == LSCP_EVENT_CHANNEL_INFO) {
391                          int iChannelID = pEvent->data().toInt();                          int iChannelID = pEvent->data().toInt();
392                          qsamplerChannelStrip *pChannelStrip = channelStrip(iChannelID);                          qsamplerChannelStrip *pChannelStrip = channelStrip(iChannelID);
393                          if (pChannelStrip)                          if (pChannelStrip)
394                                  channelStripChanged(pChannelStrip);                                  channelStripChanged(pChannelStrip);
395                    } else {
396                            appendMessagesColor(tr("Notify event: %1 data: %2")
397                                    .arg(::lscp_event_to_text(pEvent->event()))
398                                    .arg(pEvent->data()), "#996699");
399                  }                  }
400      }      }
401  }  }
# Line 1823  void qsamplerMainForm::timerSlot (void) Line 1824  void qsamplerMainForm::timerSlot (void)
1824          }          }
1825      }      }
1826    
1827          // Refresh each channel usage, on each period...          if (m_pClient) {
1828          if (m_pClient && (m_changedStrips.count() > 0 || m_pOptions->bAutoRefresh)) {                  // Update the channel information for each pending strip...
1829                  m_iTimerSlot += QSAMPLER_TIMER_MSECS;                  if (m_changedStrips.count() > 0) {
                 if (m_iTimerSlot >= m_pOptions->iAutoRefreshTime && m_pWorkspace->isUpdatesEnabled())  {  
                         m_iTimerSlot = 0;  
                         // Update the channel information for each pending strip...  
1830                          for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first();                          for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first();
1831                                          pChannelStrip;                                          pChannelStrip; pChannelStrip = m_changedStrips.next()) {
                                                 pChannelStrip = m_changedStrips.next()) {  
1832                                  // If successfull, remove from pending list...                                  // If successfull, remove from pending list...
1833                                  if (pChannelStrip->updateChannelInfo())                                  if (pChannelStrip->updateChannelInfo())
1834                                          m_changedStrips.remove(pChannelStrip);                                          m_changedStrips.remove(pChannelStrip);
1835                          }                          }
1836                          // Update the channel stream usage for each strip...                  }
1837                          QWidgetList wlist = m_pWorkspace->windowList();                  // Refresh each channel usage, on each period...
1838                          for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {                  if (m_pOptions->bAutoRefresh) {
1839                                  qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel);                          m_iTimerSlot += QSAMPLER_TIMER_MSECS;
1840                                  if (pChannelStrip && pChannelStrip->isVisible())                          if (m_iTimerSlot >= m_pOptions->iAutoRefreshTime)  {
1841                                          pChannelStrip->updateChannelUsage();                                  m_iTimerSlot = 0;
1842                                    // Update the channel stream usage for each strip...
1843                                    QWidgetList wlist = m_pWorkspace->windowList();
1844                                    for (int iChannel = 0;
1845                                                    iChannel < (int) wlist.count(); iChannel++) {
1846                                            qsamplerChannelStrip *pChannelStrip
1847                                                    = (qsamplerChannelStrip *) wlist.at(iChannel);
1848                                            if (pChannelStrip && pChannelStrip->isVisible())
1849                                                    pChannelStrip->updateChannelUsage();
1850                                    }
1851                          }                          }
1852                  }                  }
1853          }          }

Legend:
Removed from v.662  
changed lines
  Added in v.680

  ViewVC Help
Powered by ViewVC