Format with astyle 3. changed files
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#define MINGREEN0 0.8
|
||||
#define MAXGREEN0 1.2
|
||||
|
||||
#define MINLA0 0.01
|
||||
#define MAXLA0 16384
|
||||
#define MINLA0 0.01
|
||||
#define MAXLA0 16384
|
||||
#define CENTERLA0 500
|
||||
|
||||
using namespace rtengine;
|
||||
@@ -70,7 +70,7 @@ static double wbSlider2la (double sval)
|
||||
|
||||
if (sval <= 500) {
|
||||
// linear below center-temp
|
||||
la= MINLA0 + (sval / 500.0) * (CENTERLA0 - MINLA0);
|
||||
la = MINLA0 + (sval / 500.0) * (CENTERLA0 - MINLA0);
|
||||
} else {
|
||||
const double slope = (double) (CENTERLA0 - MINLA0) / (MAXLA0 - CENTERLA0);
|
||||
double x = (sval - 500) / 500; // x 0..1
|
||||
@@ -234,10 +234,10 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
degree->set_tooltip_markup (M ("TP_COLORAPP_DEGREE_TOOLTIP"));
|
||||
p1VBox->pack_start (*degree);
|
||||
|
||||
// surrsource = Gtk::manage (new Gtk::CheckButton (M ("TP_COLORAPP_SURSOURCE")));
|
||||
// surrsource->set_tooltip_markup (M ("TP_COLORAPP_SURSOURCE_TOOLTIP"));
|
||||
|
||||
|
||||
// surrsource = Gtk::manage (new Gtk::CheckButton (M ("TP_COLORAPP_SURSOURCE")));
|
||||
// surrsource->set_tooltip_markup (M ("TP_COLORAPP_SURSOURCE_TOOLTIP"));
|
||||
|
||||
|
||||
Gtk::HBox* surrHBox1 = Gtk::manage (new Gtk::HBox ());
|
||||
surrHBox1->set_spacing (2);
|
||||
surrHBox1->set_tooltip_markup (M ("TP_COLORAPP_SURROUND_TOOLTIP"));
|
||||
@@ -247,12 +247,12 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
surrsrc->append (M ("TP_COLORAPP_SURROUND_AVER"));
|
||||
surrsrc->append (M ("TP_COLORAPP_SURROUND_DIM"));
|
||||
surrsrc->append (M ("TP_COLORAPP_SURROUND_DARK"));
|
||||
surrsrc->append (M ("TP_COLORAPP_SURROUND_EXDARK"));
|
||||
surrsrc->append (M ("TP_COLORAPP_SURROUND_EXDARK"));
|
||||
surrsrc->set_active (0);
|
||||
surrHBox1->pack_start (*surrsrc);
|
||||
p1VBox->pack_start (*surrHBox1);
|
||||
|
||||
// p1VBox->pack_start (*surrsource, Gtk::PACK_SHRINK);
|
||||
|
||||
// p1VBox->pack_start (*surrsource, Gtk::PACK_SHRINK);
|
||||
|
||||
Gtk::HBox* wbmHBox = Gtk::manage (new Gtk::HBox ());
|
||||
wbmHBox->set_spacing (2);
|
||||
@@ -263,7 +263,7 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
wbmodel->append (M ("TP_COLORAPP_WBRT"));
|
||||
wbmodel->append (M ("TP_COLORAPP_WBCAM"));
|
||||
wbmodel->append (M ("TP_COLORAPP_FREE"));
|
||||
|
||||
|
||||
wbmodel->set_active (0);
|
||||
wbmHBox->pack_start (*wbmodel);
|
||||
p1VBox->pack_start (*wbmHBox);
|
||||
@@ -272,8 +272,8 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
Gtk::Image* itempR = Gtk::manage (new RTImage ("ajd-wb-temp2.png"));
|
||||
Gtk::Image* igreenL = Gtk::manage (new RTImage ("ajd-wb-green1.png"));
|
||||
Gtk::Image* igreenR = Gtk::manage (new RTImage ("ajd-wb-green2.png"));
|
||||
|
||||
|
||||
|
||||
|
||||
tempsc = Gtk::manage (new Adjuster (M ("TP_WBALANCE_TEMPERATURE"), MINTEMP0, MAXTEMP0, 5, CENTERTEMP0, itempL, itempR, &wbSlider2Temp, &wbTemp2Slider));
|
||||
greensc = Gtk::manage (new Adjuster (M ("TP_WBALANCE_GREEN"), MINGREEN0, MAXGREEN0, 0.001, 1.0, igreenL, igreenR));
|
||||
tempsc->set_tooltip_markup (M ("TP_COLORAPP_TEMP_TOOLTIP"));
|
||||
@@ -282,9 +282,9 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
greensc->show();
|
||||
p1VBox->pack_start (*tempsc);
|
||||
p1VBox->pack_start (*greensc);
|
||||
|
||||
|
||||
// adapscen = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTSCENE"), 0.01, 16384., 0.001, 2000.)); // EV -7 ==> EV 17
|
||||
|
||||
|
||||
// adapscen = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTSCENE"), 0.01, 16384., 0.001, 2000.)); // EV -7 ==> EV 17
|
||||
adapscen = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTSCENE"), MINLA0, MAXLA0, 0.01, 1997.4, NULL, NULL, &wbSlider2la, &wbla2Slider));
|
||||
|
||||
if (adapscen->delay < options.adjusterMaxDelay) {
|
||||
@@ -296,7 +296,7 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
adapscen->set_tooltip_markup (M ("TP_COLORAPP_ADAPTSCENE_TOOLTIP"));
|
||||
p1VBox->pack_start (*adapscen);
|
||||
|
||||
ybscen = Gtk::manage (new Adjuster (M ("TP_COLORAPP_YBSCENE"), 1, 90, 1, 18));
|
||||
ybscen = Gtk::manage (new Adjuster (M ("TP_COLORAPP_YBSCENE"), 1, 90, 1, 18));
|
||||
|
||||
if (ybscen->delay < options.adjusterMaxDelay) {
|
||||
ybscen->delay = options.adjusterMaxDelay;
|
||||
@@ -306,7 +306,7 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
ybscen->addAutoButton (M ("TP_COLORAPP_ADAP_AUTO_TOOLTIP"));
|
||||
ybscen->set_tooltip_markup (M ("TP_COLORAPP_YBSCENE_TOOLTIP"));
|
||||
p1VBox->pack_start (*ybscen);
|
||||
|
||||
|
||||
p1Frame->add (*p1VBox);
|
||||
pack_start (*p1Frame, Gtk::PACK_EXPAND_WIDGET, 4);
|
||||
|
||||
@@ -316,17 +316,17 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
|
||||
// Process 1 frame
|
||||
|
||||
expadjust = Gtk::manage(new MyExpander(false, M ("TP_COLORAPP_LABEL_CAM02")));
|
||||
expadjust = Gtk::manage (new MyExpander (false, M ("TP_COLORAPP_LABEL_CAM02")));
|
||||
setExpandAlignProperties (expadjust, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||
expadjust->signal_button_release_event().connect_notify ( sigc::bind ( sigc::mem_fun (this, &ColorAppearance::foldAllButMe), expadjust) );
|
||||
/*
|
||||
Gtk::Frame *p2Frame;
|
||||
// Vertical box container for the content of the Process 1 frame
|
||||
Gtk::VBox *p2VBox;
|
||||
/*
|
||||
Gtk::Frame *p2Frame;
|
||||
// Vertical box container for the content of the Process 1 frame
|
||||
Gtk::VBox *p2VBox;
|
||||
|
||||
p2Frame = Gtk::manage (new Gtk::Frame (M ("TP_COLORAPP_LABEL_CAM02")) );
|
||||
p2Frame->set_label_align (0.025, 0.5);
|
||||
*/
|
||||
p2Frame = Gtk::manage (new Gtk::Frame (M ("TP_COLORAPP_LABEL_CAM02")) );
|
||||
p2Frame->set_label_align (0.025, 0.5);
|
||||
*/
|
||||
Gtk::VBox *p2VBox;
|
||||
|
||||
p2VBox = Gtk::manage ( new Gtk::VBox());
|
||||
@@ -554,8 +554,8 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
|
||||
// p2Frame->add (*p2VBox);
|
||||
expadjust->add (*p2VBox, false);
|
||||
expadjust->setLevel(2);
|
||||
pack_start (*expadjust);
|
||||
expadjust->setLevel (2);
|
||||
pack_start (*expadjust);
|
||||
|
||||
// pack_start (*p2Frame, Gtk::PACK_EXPAND_WIDGET, 4);
|
||||
|
||||
@@ -574,12 +574,12 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
|
||||
p3VBox = Gtk::manage ( new Gtk::VBox());
|
||||
p3VBox->set_spacing (2);
|
||||
|
||||
|
||||
Gtk::Image* itempL1 = Gtk::manage (new RTImage ("ajd-wb-temp1.png"));
|
||||
Gtk::Image* itempR1 = Gtk::manage (new RTImage ("ajd-wb-temp2.png"));
|
||||
Gtk::Image* igreenL1 = Gtk::manage (new RTImage ("ajd-wb-green1.png"));
|
||||
Gtk::Image* igreenR1 = Gtk::manage (new RTImage ("ajd-wb-green2.png"));
|
||||
// adaplum = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTVIEWING"), 0.1, 16384., 0.1, 16.));
|
||||
// adaplum = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTVIEWING"), 0.1, 16384., 0.1, 16.));
|
||||
adaplum = Gtk::manage (new Adjuster (M ("TP_COLORAPP_ADAPTVIEWING"), MINLA0, MAXLA0, 0.01, 16, NULL, NULL, &wbSlider2la, &wbla2Slider));
|
||||
|
||||
if (adaplum->delay < options.adjusterMaxDelay) {
|
||||
@@ -603,12 +603,12 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
degreeout->addAutoButton (M ("TP_COLORAPP_DEGREE_AUTO_TOOLTIP"));
|
||||
degreeout->set_tooltip_markup (M ("TP_COLORAPP_DEGREE_TOOLTIP"));
|
||||
p3VBox->pack_start (*degreeout);
|
||||
/*
|
||||
Gtk::Image* itempL1 = Gtk::manage (new RTImage ("ajd-wb-temp1.png"));
|
||||
Gtk::Image* itempR1 = Gtk::manage (new RTImage ("ajd-wb-temp2.png"));
|
||||
Gtk::Image* igreenL1 = Gtk::manage (new RTImage ("ajd-wb-green1.png"));
|
||||
Gtk::Image* igreenR1 = Gtk::manage (new RTImage ("ajd-wb-green2.png"));
|
||||
*/
|
||||
/*
|
||||
Gtk::Image* itempL1 = Gtk::manage (new RTImage ("ajd-wb-temp1.png"));
|
||||
Gtk::Image* itempR1 = Gtk::manage (new RTImage ("ajd-wb-temp2.png"));
|
||||
Gtk::Image* igreenL1 = Gtk::manage (new RTImage ("ajd-wb-green1.png"));
|
||||
Gtk::Image* igreenR1 = Gtk::manage (new RTImage ("ajd-wb-green2.png"));
|
||||
*/
|
||||
tempout = Gtk::manage (new Adjuster (M ("TP_WBALANCE_TEMPERATURE"), MINTEMP0, MAXTEMP0, 5, CENTERTEMP0, itempR1, itempL1, &wbSlider2Temp, &wbTemp2Slider));
|
||||
greenout = Gtk::manage (new Adjuster (M ("TP_WBALANCE_GREEN"), MINGREEN0, MAXGREEN0, 0.001, 1.0, igreenR1, igreenL1));
|
||||
ybout = Gtk::manage (new Adjuster (M ("TP_COLORAPP_YB"), 5, 90, 1, 18));
|
||||
@@ -664,9 +664,9 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
badpixsl->throwOnButtonRelease();
|
||||
badpixsl->set_tooltip_markup (M ("TP_COLORAPP_BADPIXSL_TOOLTIP"));
|
||||
pack_start (*badpixsl, Gtk::PACK_SHRINK);
|
||||
|
||||
|
||||
//reset button
|
||||
|
||||
|
||||
//reset button
|
||||
neutral = Gtk::manage (new Gtk::Button (M ("TP_COLORAPP_NEUTRAL")));
|
||||
setExpandAlignProperties (neutral, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||
RTImage *resetImg = Gtk::manage (new RTImage ("gtk-undo-ltr-small.png", "gtk-undo-rtl-small.png"));
|
||||
@@ -677,13 +677,13 @@ ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance"
|
||||
neutral->show();
|
||||
|
||||
//-------------
|
||||
|
||||
|
||||
pack_start (*neutral);
|
||||
|
||||
// ------------------------ Listening events
|
||||
|
||||
|
||||
// surrconn = surrsource->signal_toggled().connect ( sigc::mem_fun (*this, &ColorAppearance::surrsource_toggled) );
|
||||
// surrconn = surrsource->signal_toggled().connect ( sigc::mem_fun (*this, &ColorAppearance::surrsource_toggled) );
|
||||
wbmodelconn = wbmodel->signal_changed().connect ( sigc::mem_fun (*this, &ColorAppearance::wbmodelChanged) );
|
||||
algoconn = algo->signal_changed().connect ( sigc::mem_fun (*this, &ColorAppearance::algoChanged) );
|
||||
surroundconn = surround->signal_changed().connect ( sigc::mem_fun (*this, &ColorAppearance::surroundChanged) );
|
||||
@@ -726,57 +726,57 @@ ColorAppearance::~ColorAppearance ()
|
||||
void ColorAppearance::foldAllButMe (GdkEventButton* event, MyExpander *expander)
|
||||
{
|
||||
if (event->button == 3) {
|
||||
expadjust->set_expanded(expadjust == expander);
|
||||
expadjust->set_expanded (expadjust == expander);
|
||||
}
|
||||
}
|
||||
|
||||
void ColorAppearance::writeOptions(std::vector<int> &tpOpen)
|
||||
void ColorAppearance::writeOptions (std::vector<int> &tpOpen)
|
||||
{
|
||||
tpOpen.push_back (expadjust->get_expanded ());
|
||||
}
|
||||
|
||||
void ColorAppearance::updateToolState(std::vector<int> &tpOpen)
|
||||
void ColorAppearance::updateToolState (std::vector<int> &tpOpen)
|
||||
{
|
||||
if(tpOpen.size() >= 1) {
|
||||
expadjust->set_expanded(tpOpen.at(0));
|
||||
if (tpOpen.size() >= 1) {
|
||||
expadjust->set_expanded (tpOpen.at (0));
|
||||
}
|
||||
}
|
||||
|
||||
void ColorAppearance::neutral_pressed ()
|
||||
{
|
||||
jlight->resetValue (false);
|
||||
qbright->resetValue (false);
|
||||
chroma->resetValue (false);
|
||||
schroma->resetValue (false);
|
||||
mchroma->resetValue (false);
|
||||
rstprotection->resetValue (false);
|
||||
contrast->resetValue (false);
|
||||
qcontrast->resetValue (false);
|
||||
colorh->resetValue (false);
|
||||
tempout->resetValue (false);
|
||||
greenout->resetValue (false);
|
||||
ybout->resetValue (false);
|
||||
tempsc->resetValue (false);
|
||||
greensc->resetValue (false);
|
||||
badpixsl->resetValue (false);
|
||||
wbmodel->set_active (0);
|
||||
toneCurveMode->set_active (0);
|
||||
toneCurveMode2->set_active (0);
|
||||
toneCurveMode3->set_active (0);
|
||||
shape->reset();
|
||||
shape2->reset();
|
||||
shape3->reset();
|
||||
gamutconn.block (true);
|
||||
gamut->set_active (true);
|
||||
gamutconn.block (false);
|
||||
degree->setAutoValue (true);
|
||||
degree->resetValue (false);
|
||||
adapscen->resetValue (false);
|
||||
adapscen->setAutoValue (true);
|
||||
degreeout->resetValue (false);
|
||||
degreeout->setAutoValue (true);
|
||||
ybscen->resetValue (false);
|
||||
ybscen->setAutoValue (true);
|
||||
jlight->resetValue (false);
|
||||
qbright->resetValue (false);
|
||||
chroma->resetValue (false);
|
||||
schroma->resetValue (false);
|
||||
mchroma->resetValue (false);
|
||||
rstprotection->resetValue (false);
|
||||
contrast->resetValue (false);
|
||||
qcontrast->resetValue (false);
|
||||
colorh->resetValue (false);
|
||||
tempout->resetValue (false);
|
||||
greenout->resetValue (false);
|
||||
ybout->resetValue (false);
|
||||
tempsc->resetValue (false);
|
||||
greensc->resetValue (false);
|
||||
badpixsl->resetValue (false);
|
||||
wbmodel->set_active (0);
|
||||
toneCurveMode->set_active (0);
|
||||
toneCurveMode2->set_active (0);
|
||||
toneCurveMode3->set_active (0);
|
||||
shape->reset();
|
||||
shape2->reset();
|
||||
shape3->reset();
|
||||
gamutconn.block (true);
|
||||
gamut->set_active (true);
|
||||
gamutconn.block (false);
|
||||
degree->setAutoValue (true);
|
||||
degree->resetValue (false);
|
||||
adapscen->resetValue (false);
|
||||
adapscen->setAutoValue (true);
|
||||
degreeout->resetValue (false);
|
||||
degreeout->setAutoValue (true);
|
||||
ybscen->resetValue (false);
|
||||
ybscen->setAutoValue (true);
|
||||
}
|
||||
|
||||
bool ColorAppearance::bgTTipQuery (int x, int y, bool keyboard_tooltip, const Glib::RefPtr<Gtk::Tooltip>& tooltip)
|
||||
@@ -876,8 +876,8 @@ void ColorAppearance::read (const ProcParams* pp, const ParamsEdited* pedited)
|
||||
surrsrcconn.block (false);
|
||||
// Have to be manually called to handle initial state update
|
||||
surrsrcChanged();
|
||||
|
||||
|
||||
|
||||
|
||||
surroundconn.block (true);
|
||||
|
||||
if (pedited && !pedited->colorappearance.surround) {
|
||||
@@ -896,8 +896,8 @@ void ColorAppearance::read (const ProcParams* pp, const ParamsEdited* pedited)
|
||||
// Have to be manually called to handle initial state update
|
||||
surroundChanged();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
wbmodelconn.block (true);
|
||||
|
||||
if (pedited && !pedited->colorappearance.wbmodel) {
|
||||
@@ -932,9 +932,9 @@ void ColorAppearance::read (const ProcParams* pp, const ParamsEdited* pedited)
|
||||
// Have to be manually called to handle initial state update
|
||||
algoChanged();
|
||||
|
||||
// surrconn.block (true);
|
||||
// surrsource->set_active (pp->colorappearance.surrsource);
|
||||
// surrconn.block (false);
|
||||
// surrconn.block (true);
|
||||
// surrsource->set_active (pp->colorappearance.surrsource);
|
||||
// surrconn.block (false);
|
||||
gamutconn.block (true);
|
||||
gamut->set_active (pp->colorappearance.gamut);
|
||||
gamutconn.block (false);
|
||||
@@ -951,7 +951,7 @@ void ColorAppearance::read (const ProcParams* pp, const ParamsEdited* pedited)
|
||||
// sharpcie->set_active (pp->colorappearance.sharpcie);
|
||||
// sharpcieconn.block (false);
|
||||
|
||||
// lastsurr = pp->colorappearance.surrsource;
|
||||
// lastsurr = pp->colorappearance.surrsource;
|
||||
lastgamut = pp->colorappearance.gamut;
|
||||
// lastbadpix=pp->colorappearance.badpix;
|
||||
lastdatacie = pp->colorappearance.datacie;
|
||||
@@ -1026,7 +1026,7 @@ void ColorAppearance::write (ProcParams* pp, ParamsEdited* pedited)
|
||||
pp->colorappearance.qcontrast = qcontrast->getValue ();
|
||||
pp->colorappearance.colorh = colorh->getValue ();
|
||||
pp->colorappearance.rstprotection = rstprotection->getValue ();
|
||||
// pp->colorappearance.surrsource = surrsource->get_active();
|
||||
// pp->colorappearance.surrsource = surrsource->get_active();
|
||||
pp->colorappearance.gamut = gamut->get_active();
|
||||
// pp->colorappearance.badpix = badpix->get_active();
|
||||
pp->colorappearance.datacie = datacie->get_active();
|
||||
@@ -1092,7 +1092,7 @@ void ColorAppearance::write (ProcParams* pp, ParamsEdited* pedited)
|
||||
pedited->colorappearance.surrsrc = surrsrc->get_active_text() != M ("GENERAL_UNCHANGED");
|
||||
pedited->colorappearance.wbmodel = wbmodel->get_active_text() != M ("GENERAL_UNCHANGED");
|
||||
pedited->colorappearance.algo = algo->get_active_text() != M ("GENERAL_UNCHANGED");
|
||||
// pedited->colorappearance.surrsource = !surrsource->get_inconsistent();
|
||||
// pedited->colorappearance.surrsource = !surrsource->get_inconsistent();
|
||||
pedited->colorappearance.gamut = !gamut->get_inconsistent();
|
||||
// pedited->colorappearance.badpix = !badpix->get_inconsistent();
|
||||
pedited->colorappearance.datacie = !datacie->get_inconsistent();
|
||||
@@ -1121,8 +1121,8 @@ void ColorAppearance::write (ProcParams* pp, ParamsEdited* pedited)
|
||||
} else if (surrsrc->get_active_row_number() == 3) {
|
||||
pp->colorappearance.surrsrc = "ExtremelyDark";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (surround->get_active_row_number() == 0) {
|
||||
pp->colorappearance.surround = "Average";
|
||||
} else if (surround->get_active_row_number() == 1) {
|
||||
@@ -1139,7 +1139,7 @@ void ColorAppearance::write (ProcParams* pp, ParamsEdited* pedited)
|
||||
pp->colorappearance.wbmodel = "RawTCAT02";
|
||||
} else if (wbmodel->get_active_row_number() == 2) {
|
||||
pp->colorappearance.wbmodel = "free";
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (algo->get_active_row_number() == 0) {
|
||||
@@ -1452,7 +1452,7 @@ void ColorAppearance::setDefaults (const ProcParams* defParams, const ParamsEdit
|
||||
void ColorAppearance::autoCamChanged (double ccam, double ccamout)
|
||||
{
|
||||
nextCcam = ccam;
|
||||
nextCcamout = ccamout;
|
||||
nextCcamout = ccamout;
|
||||
|
||||
const auto func = [] (gpointer data) -> gboolean {
|
||||
static_cast<ColorAppearance*> (data)->autoCamComputed_();
|
||||
@@ -1468,7 +1468,7 @@ bool ColorAppearance::autoCamComputed_ ()
|
||||
disableListener ();
|
||||
// degree->setEnabled (true);
|
||||
degree->setValue (nextCcam);
|
||||
degreeout->setValue (nextCcamout);
|
||||
degreeout->setValue (nextCcamout);
|
||||
enableListener ();
|
||||
|
||||
return false;
|
||||
@@ -1492,7 +1492,7 @@ bool ColorAppearance::adapCamComputed_ ()
|
||||
disableListener ();
|
||||
// degree->setEnabled (true);
|
||||
adapscen->setValue (nextCadap);
|
||||
// ybscen->setValue (nextYbscn);
|
||||
// ybscen->setValue (nextYbscn);
|
||||
enableListener ();
|
||||
|
||||
return false;
|
||||
@@ -1500,7 +1500,7 @@ bool ColorAppearance::adapCamComputed_ ()
|
||||
|
||||
void ColorAppearance::ybCamChanged (int ybsc)
|
||||
{
|
||||
nextYbscn = ybsc;
|
||||
nextYbscn = ybsc;
|
||||
|
||||
const auto func = [] (gpointer data) -> gboolean {
|
||||
static_cast<ColorAppearance*> (data)->ybCamComputed_();
|
||||
@@ -1516,7 +1516,7 @@ bool ColorAppearance::ybCamComputed_ ()
|
||||
disableListener ();
|
||||
// degree->setEnabled (true);
|
||||
// adapscen->setValue (nextCadap);
|
||||
ybscen->setValue (nextYbscn);
|
||||
ybscen->setValue (nextYbscn);
|
||||
enableListener ();
|
||||
|
||||
return false;
|
||||
@@ -1551,7 +1551,7 @@ void ColorAppearance::adjusterChanged (Adjuster* a, double newval)
|
||||
if (a == degree) {
|
||||
listener->panelChanged (EvCATDegree, a->getTextValue());
|
||||
} else if (a == degreeout) {
|
||||
listener->panelChanged (EvCATDegreeout, a->getTextValue());
|
||||
listener->panelChanged (EvCATDegreeout, a->getTextValue());
|
||||
} else if (a == adapscen) {
|
||||
listener->panelChanged (EvCATAdapscen, a->getTextValue());
|
||||
} else if (a == ybscen) {
|
||||
@@ -1615,7 +1615,7 @@ void ColorAppearance::adjusterAutoToggled (Adjuster* a, bool newval)
|
||||
}
|
||||
|
||||
lastAutoDegreeout = degreeout->getAutoValue();
|
||||
|
||||
|
||||
if (adapscen->getAutoInconsistent()) {
|
||||
adapscen->setAutoInconsistent (false);
|
||||
adapscen->setAutoValue (false);
|
||||
@@ -1633,7 +1633,7 @@ void ColorAppearance::adjusterAutoToggled (Adjuster* a, bool newval)
|
||||
}
|
||||
|
||||
lastAutoybscen = ybscen->getAutoValue();
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (listener && (multiImage || getEnabled()) ) {
|
||||
@@ -1647,7 +1647,7 @@ void ColorAppearance::adjusterAutoToggled (Adjuster* a, bool newval)
|
||||
listener->panelChanged (EvCATAutoDegree, M ("GENERAL_DISABLED"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (a == degreeout) {
|
||||
if (degreeout->getAutoInconsistent()) {
|
||||
listener->panelChanged (EvCATAutoDegreeout, M ("GENERAL_UNCHANGED"));
|
||||
@@ -1657,7 +1657,7 @@ void ColorAppearance::adjusterAutoToggled (Adjuster* a, bool newval)
|
||||
listener->panelChanged (EvCATAutoDegreeout, M ("GENERAL_DISABLED"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (a == adapscen) {
|
||||
if (adapscen->getAutoInconsistent()) {
|
||||
@@ -1678,7 +1678,7 @@ void ColorAppearance::adjusterAutoToggled (Adjuster* a, bool newval)
|
||||
listener->panelChanged (EvCATAutoyb, M ("GENERAL_DISABLED"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1718,13 +1718,14 @@ void ColorAppearance::surroundChanged ()
|
||||
void ColorAppearance::wbmodelChanged ()
|
||||
{
|
||||
if (wbmodel->get_active_row_number() == 0 || wbmodel->get_active_row_number() == 1) {
|
||||
tempsc->hide();
|
||||
greensc->hide();
|
||||
}
|
||||
if (wbmodel->get_active_row_number() == 2){
|
||||
tempsc->show();
|
||||
greensc->show();
|
||||
}
|
||||
tempsc->hide();
|
||||
greensc->hide();
|
||||
}
|
||||
|
||||
if (wbmodel->get_active_row_number() == 2) {
|
||||
tempsc->show();
|
||||
greensc->show();
|
||||
}
|
||||
|
||||
if (listener && (multiImage || getEnabled()) ) {
|
||||
listener->panelChanged (EvCATMethodWB, wbmodel->get_active_text ());
|
||||
|
@@ -117,7 +117,7 @@ private:
|
||||
Adjuster* greensc;
|
||||
|
||||
MyExpander* expadjust;
|
||||
|
||||
|
||||
MyComboBoxText* toneCurveMode;
|
||||
MyComboBoxText* toneCurveMode2;
|
||||
MyComboBoxText* toneCurveMode3;
|
||||
@@ -150,7 +150,7 @@ private:
|
||||
DiagonalCurveEditor* shape2;
|
||||
DiagonalCurveEditor* shape3;
|
||||
double nextCcam, nextCcamout, nextCadap;
|
||||
int nextYbscn;
|
||||
int nextYbscn;
|
||||
bool lastAutoDegree;
|
||||
bool lastAutoAdapscen;
|
||||
bool lastAutoDegreeout;
|
||||
|
@@ -1732,7 +1732,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (colorappearance.autodegreeout) {
|
||||
toEdit.colorappearance.autodegreeout = mods.colorappearance.autodegreeout;
|
||||
}
|
||||
|
||||
|
||||
if (colorappearance.surround) {
|
||||
toEdit.colorappearance.surround = mods.colorappearance.surround;
|
||||
}
|
||||
@@ -1740,7 +1740,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (colorappearance.surrsrc) {
|
||||
toEdit.colorappearance.surrsrc = mods.colorappearance.surrsrc;
|
||||
}
|
||||
|
||||
|
||||
if (colorappearance.autoadapscen) {
|
||||
toEdit.colorappearance.autoadapscen = mods.colorappearance.autoadapscen;
|
||||
}
|
||||
@@ -1756,7 +1756,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (colorappearance.ybscen) {
|
||||
toEdit.colorappearance.ybscen = mods.colorappearance.ybscen;
|
||||
}
|
||||
|
||||
|
||||
if (colorappearance.adaplum) {
|
||||
toEdit.colorappearance.adaplum = dontforceSet && options.baBehav[ADDSET_CAT_ADAPTVIEWING] ? toEdit.colorappearance.adaplum + mods.colorappearance.adaplum : mods.colorappearance.adaplum;
|
||||
}
|
||||
@@ -1788,7 +1788,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (colorappearance.greensc) {
|
||||
toEdit.colorappearance.greensc = mods.colorappearance.greensc;
|
||||
}
|
||||
|
||||
|
||||
if (colorappearance.ybout) {
|
||||
toEdit.colorappearance.ybout = mods.colorappearance.ybout;
|
||||
}
|
||||
|
Reference in New Issue
Block a user