LA exposure hide show sliders when expcomp different from zero (#6892)
This commit is contained in:
parent
330f99832e
commit
32aca270ec
@ -3056,6 +3056,23 @@ void LocallabExposure::read(const rtengine::procparams::ProcParams* pp, const Pa
|
|||||||
structexp->setValue(spot.structexp);
|
structexp->setValue(spot.structexp);
|
||||||
blurexpde->setValue(spot.blurexpde);
|
blurexpde->setValue(spot.blurexpde);
|
||||||
expcomp->setValue(spot.expcomp);
|
expcomp->setValue(spot.expcomp);
|
||||||
|
|
||||||
|
if(expcomp->getValue()== 0.) {
|
||||||
|
black->hide();
|
||||||
|
hlcompr->hide();
|
||||||
|
hlcomprthresh->hide();
|
||||||
|
shadex->hide();
|
||||||
|
shcompr->hide();
|
||||||
|
expchroma->hide();
|
||||||
|
} else {
|
||||||
|
black->show();
|
||||||
|
hlcompr->show();
|
||||||
|
hlcomprthresh->show();
|
||||||
|
shadex->show();
|
||||||
|
shcompr->show();
|
||||||
|
expchroma->show();
|
||||||
|
}
|
||||||
|
|
||||||
black->setValue(spot.black);
|
black->setValue(spot.black);
|
||||||
hlcompr->setValue(spot.hlcompr);
|
hlcompr->setValue(spot.hlcompr);
|
||||||
hlcomprthresh->setValue(spot.hlcomprthresh);
|
hlcomprthresh->setValue(spot.hlcomprthresh);
|
||||||
@ -3353,6 +3370,22 @@ void LocallabExposure::adjusterChanged(Adjuster* a, double newval)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (a == expcomp) {
|
if (a == expcomp) {
|
||||||
|
if(expcomp->getValue()== 0.) {
|
||||||
|
black->hide();
|
||||||
|
hlcompr->hide();
|
||||||
|
hlcomprthresh->hide();
|
||||||
|
shadex->hide();
|
||||||
|
shcompr->hide();
|
||||||
|
expchroma->hide();
|
||||||
|
} else {
|
||||||
|
black->show();
|
||||||
|
hlcompr->show();
|
||||||
|
hlcomprthresh->show();
|
||||||
|
shadex->show();
|
||||||
|
shcompr->show();
|
||||||
|
expchroma->show();
|
||||||
|
}
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
listener->panelChanged(Evlocallabexpcomp,
|
listener->panelChanged(Evlocallabexpcomp,
|
||||||
expcomp->getTextValue() + " (" + escapeHtmlChars(getSpotName()) + ")");
|
expcomp->getTextValue() + " (" + escapeHtmlChars(getSpotName()) + ")");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user