Adding ADD/SET mechanism to Fattal HDR tool + PartialPaste dialog gui

+ range of Beta limited to 0.7 <> 1.3.

ADD/SET mechanism was missing for EPD tool too, so it's included in this
commit.

see #4168
This commit is contained in:
Hombre
2017-11-04 21:27:11 +01:00
parent 9db14cc521
commit b64707bea6
12 changed files with 60 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ FattalToneMapping::FattalToneMapping(): FoldableToolPanel(this, "fattal", M("TP_
// setEnabledTooltipMarkup(M("TP_EPD_TOOLTIP"));
alpha = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_ALPHA"), 0.0, 2.0, 0.01, 1.0));
beta = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_BETA"), 0.0, 2.0, 0.01, 1.0));
beta = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_BETA"), 0.7, 1.3, 0.01, 1.0));
alpha->setAdjusterListener(this);
beta->setAdjusterListener(this);
@@ -118,3 +118,9 @@ void FattalToneMapping::setBatchMode(bool batchMode)
beta->showEditedCB();
}
void FattalToneMapping::setAdjusterBehavior (bool alphaAdd, bool betaAdd)
{
alpha->setAddMode(alphaAdd);
beta->setAddMode(betaAdd);
}