void VCMatrix::slotModeChanged(Doc::Mode mode) { if (mode == Doc::Operate) enableWidgetUI(true); else enableWidgetUI(false); VCWidget::slotModeChanged(mode); }
void VCSlider::slotModeChanged(Doc::Mode mode) { if (mode == Doc::Operate) { enableWidgetUI(true); if (m_sliderMode == Level || m_sliderMode == Playback) m_doc->masterTimer()->registerDMXSource(this, "Slider"); } else { enableWidgetUI(false); if (m_sliderMode == Level || m_sliderMode == Playback) m_doc->masterTimer()->unregisterDMXSource(this); } VCWidget::slotModeChanged(mode); }
void VCSlider::slotModeChanged(Doc::Mode mode) { if (mode == Doc::Operate) { enableWidgetUI(true); if (sliderMode() == Playback) { /* Follow playback function running/stopped status in case the function is started from another control. */ Function* function = m_doc->function(playbackFunction()); if (function != NULL) { connect(function, SIGNAL(running(quint32)), this, SLOT(slotPlaybackFunctionRunning(quint32))); connect(function, SIGNAL(stopped(quint32)), this, SLOT(slotPlaybackFunctionStopped(quint32))); connect(function, SIGNAL(attributeChanged(int, qreal)), this, SLOT(slotPlaybackFunctionIntensityChanged(int, qreal))); }