void KnobGuiColor::setPickingEnabledInternal(bool enabled) { KnobColorPtr knob = _knob.lock(); if ( knob->getHolder()->getApp() ) { if (enabled) { getKnobGui()->getGui()->registerNewColorPicker( knob, getView() ); } else { getKnobGui()->getGui()->removeColorPicker( knob, getView() ); } } }
void KnobGuiColor::onColorLabelPickingEnabled(bool enabled) { KnobColorPtr knob = _knob.lock(); KnobGuiPtr knobUI = getKnobGui(); if ( knob->getHolder()->getApp() ) { if (enabled) { knobUI->getGui()->registerNewColorPicker( _knob.lock(), getView() ); } else { knobUI->getGui()->removeColorPicker( _knob.lock(), getView()); } } }