Gray-out Shadow Recovery slider when Black is set to 0 and enable automatically when Black slider is != 0 - issue 651
This commit is contained in:
@@ -127,6 +127,7 @@ void ToneCurve::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
|||||||
hlcompr->setValue (pp->toneCurve.hlcompr);
|
hlcompr->setValue (pp->toneCurve.hlcompr);
|
||||||
hlcomprthresh->setValue (pp->toneCurve.hlcomprthresh);
|
hlcomprthresh->setValue (pp->toneCurve.hlcomprthresh);
|
||||||
shcompr->setValue (pp->toneCurve.shcompr);
|
shcompr->setValue (pp->toneCurve.shcompr);
|
||||||
|
if (!blackAdd) shcompr->set_sensitive(!((int)black->getValue ()==0)); //at black=0 shcompr value has no effect
|
||||||
brightness->setValue (pp->toneCurve.brightness);
|
brightness->setValue (pp->toneCurve.brightness);
|
||||||
contrast->setValue (pp->toneCurve.contrast);
|
contrast->setValue (pp->toneCurve.contrast);
|
||||||
saturation->setValue (pp->toneCurve.saturation);
|
saturation->setValue (pp->toneCurve.saturation);
|
||||||
@@ -224,8 +225,10 @@ void ToneCurve::adjusterChanged (Adjuster* a, double newval) {
|
|||||||
listener->panelChanged (EvExpComp, costr);
|
listener->panelChanged (EvExpComp, costr);
|
||||||
else if (a==brightness)
|
else if (a==brightness)
|
||||||
listener->panelChanged (EvBrightness, costr);
|
listener->panelChanged (EvBrightness, costr);
|
||||||
else if (a==black)
|
else if (a==black){
|
||||||
listener->panelChanged (EvBlack, costr);
|
listener->panelChanged (EvBlack, costr);
|
||||||
|
if (!blackAdd) shcompr->set_sensitive(!((int)black->getValue ()==0)); //at black=0 shcompr value has no effect
|
||||||
|
}
|
||||||
else if (a==contrast)
|
else if (a==contrast)
|
||||||
listener->panelChanged (EvContrast, costr);
|
listener->panelChanged (EvContrast, costr);
|
||||||
else if (a==saturation)
|
else if (a==saturation)
|
||||||
@@ -256,6 +259,7 @@ void ToneCurve::autolevels_toggled () {
|
|||||||
if (!batchMode && autolevels->get_active() && listener) {
|
if (!batchMode && autolevels->get_active() && listener) {
|
||||||
listener->panelChanged (EvAutoExp, M("GENERAL_ENABLED"));
|
listener->panelChanged (EvAutoExp, M("GENERAL_ENABLED"));
|
||||||
waitForAutoExp ();
|
waitForAutoExp ();
|
||||||
|
if (!blackAdd) shcompr->set_sensitive(!((int)black->getValue ()==0)); //at black=0 shcompr value has no effect
|
||||||
}
|
}
|
||||||
|
|
||||||
if (batchMode) {
|
if (batchMode) {
|
||||||
@@ -337,6 +341,7 @@ bool ToneCurve::autoExpComputed_ () {
|
|||||||
enableAll ();
|
enableAll ();
|
||||||
expcomp->setValue (nextBr);
|
expcomp->setValue (nextBr);
|
||||||
black->setValue (nextBl);
|
black->setValue (nextBl);
|
||||||
|
if (!blackAdd) shcompr->set_sensitive(!((int)black->getValue ()==0)); //at black=0 shcompr value has no effect
|
||||||
enableListener ();
|
enableListener ();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user