Fix for NR gamma, NR Ldetail history message and History NR decimal values

This commit is contained in:
michael
2012-03-15 23:40:49 -04:00
parent b01fa83148
commit 3c95953725
3 changed files with 19 additions and 15 deletions

View File

@@ -383,6 +383,7 @@ HISTORY_MSG_163;RGB Curves - R
HISTORY_MSG_164;RGB Curves - G
HISTORY_MSG_165;RGB Curves - B
HISTORY_MSG_166;Neutral levels
HISTORY_MSG_166;NR - luminance detail
HISTORY_NEWSNAPSHOTAS;As...
HISTORY_NEWSNAPSHOT;Add
HISTORY_NEWSSDIALOGLABEL;Label of the snapshot:

View File

@@ -244,7 +244,7 @@ class WBParams {
double luma;
double Ldetail;
double chroma;
float gamma;
double gamma;
double expcomp;
};

View File

@@ -106,7 +106,7 @@ void DirPyrDenoise::setDefaults (const ProcParams* defParams, const ParamsEdited
luma->setDefault (defParams->dirpyrDenoise.luma);
Ldetail->setDefault (defParams->dirpyrDenoise.Ldetail);
chroma->setDefault (defParams->dirpyrDenoise.chroma);
gamma->setDefault (defParams->dirpyrDenoise.chroma);
gamma->setDefault (defParams->dirpyrDenoise.gamma);
if (pedited) {
luma->setDefaultEditedState (pedited->dirpyrDenoise.luma ? Edited : UnEdited);
@@ -124,16 +124,18 @@ void DirPyrDenoise::setDefaults (const ProcParams* defParams, const ParamsEdited
void DirPyrDenoise::adjusterChanged (Adjuster* a, double newval) {
if (listener && enabled->get_active()) {
Glib::ustring costr;
costr = Glib::ustring::format (std::setw(3), std::fixed, std::setprecision(2), a->getValue());
if (listener && enabled->get_active()) {
if (a==Ldetail)
listener->panelChanged (EvDPDNLdetail, Glib::ustring::format ((int)a->getValue()));
listener->panelChanged (EvDPDNLdetail, costr);
else if (a==luma)
listener->panelChanged (EvDPDNLuma, Glib::ustring::format ((int)a->getValue()));
listener->panelChanged (EvDPDNLuma, costr);
else if (a==chroma)
listener->panelChanged (EvDPDNChroma, Glib::ustring::format ((int)a->getValue()));
listener->panelChanged (EvDPDNChroma, costr);
else if (a==gamma)
listener->panelChanged (EvDPDNGamma, Glib::ustring::format (std::setw(2), std::fixed, std::setprecision(2), a->getValue()));
listener->panelChanged (EvDPDNGamma, costr);
}
}
@@ -166,6 +168,7 @@ void DirPyrDenoise::setBatchMode (bool batchMode) {
luma->showEditedCB ();
Ldetail->showEditedCB ();
chroma->showEditedCB ();
gamma->showEditedCB ();
}
void DirPyrDenoise::setAdjusterBehavior (bool chrolumaadd, bool gammaadd) {