1823 |
} |
} |
1824 |
} |
} |
1825 |
|
|
1826 |
// Refresh each channel usage, on each period... |
if (m_pClient) { |
1827 |
if (m_pClient && (m_changedStrips.count() > 0 || m_pOptions->bAutoRefresh)) { |
// Update the channel information for each pending strip... |
1828 |
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... |
|
1829 |
for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first(); |
for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first(); |
1830 |
pChannelStrip; |
pChannelStrip; pChannelStrip = m_changedStrips.next()) { |
|
pChannelStrip = m_changedStrips.next()) { |
|
1831 |
// If successfull, remove from pending list... |
// If successfull, remove from pending list... |
1832 |
if (pChannelStrip->updateChannelInfo()) |
if (pChannelStrip->updateChannelInfo()) |
1833 |
m_changedStrips.remove(pChannelStrip); |
m_changedStrips.remove(pChannelStrip); |
1834 |
} |
} |
1835 |
// Update the channel stream usage for each strip... |
} |
1836 |
QWidgetList wlist = m_pWorkspace->windowList(); |
// Refresh each channel usage, on each period... |
1837 |
for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { |
if (m_pOptions->bAutoRefresh) { |
1838 |
qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel); |
m_iTimerSlot += QSAMPLER_TIMER_MSECS; |
1839 |
if (pChannelStrip && pChannelStrip->isVisible()) |
if (m_iTimerSlot >= m_pOptions->iAutoRefreshTime) { |
1840 |
pChannelStrip->updateChannelUsage(); |
m_iTimerSlot = 0; |
1841 |
|
// Update the channel stream usage for each strip... |
1842 |
|
QWidgetList wlist = m_pWorkspace->windowList(); |
1843 |
|
for (int iChannel = 0; |
1844 |
|
iChannel < (int) wlist.count(); iChannel++) { |
1845 |
|
qsamplerChannelStrip *pChannelStrip |
1846 |
|
= (qsamplerChannelStrip *) wlist.at(iChannel); |
1847 |
|
if (pChannelStrip && pChannelStrip->isVisible()) |
1848 |
|
pChannelStrip->updateChannelUsage(); |
1849 |
|
} |
1850 |
} |
} |
1851 |
} |
} |
1852 |
} |
} |