Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LA exposure hide show sliders when expcomp different from zero #6892

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions rtgui/locallabtools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,23 @@ void LocallabExposure::read(const rtengine::procparams::ProcParams* pp, const Pa
structexp->setValue(spot.structexp);
blurexpde->setValue(spot.blurexpde);
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);
hlcompr->setValue(spot.hlcompr);
hlcomprthresh->setValue(spot.hlcomprthresh);
Expand Down Expand Up @@ -3353,6 +3370,22 @@ void LocallabExposure::adjusterChanged(Adjuster* a, double newval)
}

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) {
listener->panelChanged(Evlocallabexpcomp,
expcomp->getTextValue() + " (" + escapeHtmlChars(getSpotName()) + ")");
Expand Down