Cleaining the "Clarity and Sharpening" tool's GUI
This commit is contained in:
parent
8fa4667ee3
commit
fe8d3d5abc
@ -32,49 +32,47 @@ using namespace rtengine::procparams;
|
|||||||
|
|
||||||
Clarity::Clarity () : Gtk::VBox(), FoldableToolPanel(this)
|
Clarity::Clarity () : Gtk::VBox(), FoldableToolPanel(this)
|
||||||
{
|
{
|
||||||
|
set_border_width(4);
|
||||||
|
set_spacing(4);
|
||||||
|
|
||||||
|
//******************************** SHARPEN
|
||||||
|
|
||||||
|
Gtk::Frame *sharpenFrame = Gtk::manage (new Gtk::Frame(M("TP_CLARITY_SHARPEN")));
|
||||||
|
Gtk::VBox *sharpenVBox = Gtk::manage (new Gtk::VBox());
|
||||||
|
sharpenVBox->set_spacing(2);
|
||||||
|
|
||||||
Gtk::HSeparator *hsep66aa = Gtk::manage (new Gtk::HSeparator());
|
|
||||||
pack_start(*hsep66aa, Gtk::PACK_SHRINK, 2);
|
|
||||||
hsep66aa->show ();
|
|
||||||
Gtk::Label* clsh = Gtk::manage (new Gtk::Label ());
|
|
||||||
clsh->set_alignment (0.0, 0.5);
|
|
||||||
clsh->set_markup (Glib::ustring("<b>") + M("TP_CLARITY_SHARPEN") + "</b>");
|
|
||||||
clsh->show ();
|
|
||||||
pack_start (*clsh);
|
|
||||||
enabled = Gtk::manage (new Gtk::CheckButton (M("GENERAL_ENABLED")));
|
enabled = Gtk::manage (new Gtk::CheckButton (M("GENERAL_ENABLED")));
|
||||||
enabled->set_active (true);
|
enabled->set_active (true);
|
||||||
pack_start(*enabled);
|
sharpenVBox->pack_start(*enabled, Gtk::PACK_SHRINK, 0);
|
||||||
enabled->show ();
|
|
||||||
|
|
||||||
Claritypasses = Gtk::manage(new Adjuster (M("TP_CLARITY_PASSES"),1,4,1,1));
|
Claritypasses = Gtk::manage(new Adjuster (M("TP_CLARITY_PASSES"),1,4,1,1));
|
||||||
Claritypasses->setAdjusterListener (this);
|
Claritypasses->setAdjusterListener (this);
|
||||||
if (Claritypasses->delay < 1000) Claritypasses->delay = 1000;
|
if (Claritypasses->delay < 1000) Claritypasses->delay = 1000;
|
||||||
Claritypasses->show();
|
|
||||||
Claritystrength = Gtk::manage(new Adjuster (M("TP_CLARITY_STRENGTH"),0,100,1,40));
|
Claritystrength = Gtk::manage(new Adjuster (M("TP_CLARITY_STRENGTH"),0,100,1,40));
|
||||||
Claritystrength->setAdjusterListener (this);
|
Claritystrength->setAdjusterListener (this);
|
||||||
if (Claritystrength->delay < 1000) Claritystrength->delay = 1000;
|
if (Claritystrength->delay < 1000) Claritystrength->delay = 1000;
|
||||||
Claritystrength->show();
|
|
||||||
|
|
||||||
Claritythreechannels = Gtk::manage(new Gtk::CheckButton((M("TP_CLARITY_THREE"))));// L + a + b
|
Claritythreechannels = Gtk::manage(new Gtk::CheckButton((M("TP_CLARITY_THREE"))));// L + a + b
|
||||||
Claritythreechannels->set_active (false);
|
Claritythreechannels->set_active (false);
|
||||||
pack_start( *Claritypasses, Gtk::PACK_SHRINK, 4);//passes
|
sharpenVBox->pack_start( *Claritypasses, Gtk::PACK_SHRINK, 0);//passes
|
||||||
pack_start( *Claritystrength, Gtk::PACK_SHRINK, 4);//strength
|
sharpenVBox->pack_start( *Claritystrength, Gtk::PACK_SHRINK, 0);//strength
|
||||||
pack_start( *Claritythreechannels, Gtk::PACK_SHRINK, 4);//one or 3 channels Lab
|
sharpenVBox->pack_start( *Claritythreechannels, Gtk::PACK_SHRINK, 0);//one or 3 channels Lab
|
||||||
Claritythreechannels->show();
|
|
||||||
Gtk::HSeparator *hsep67aa = Gtk::manage (new Gtk::HSeparator());
|
sharpenFrame->add (*sharpenVBox);
|
||||||
pack_start(*hsep67aa, Gtk::PACK_SHRINK, 2);
|
pack_start(*sharpenFrame, Gtk::PACK_SHRINK, 0);
|
||||||
hsep67aa->show ();
|
sharpenFrame->show ();
|
||||||
Gtk::Label* clmc = Gtk::manage (new Gtk::Label ());
|
|
||||||
clmc->set_alignment (0.0, 0.5);
|
//******************************** MICRO
|
||||||
clmc->set_markup (Glib::ustring("<b>") + M("TP_CLARITY_MICRO") + "</b>");
|
|
||||||
clmc->show ();
|
Gtk::Frame *microFrame = Gtk::manage (new Gtk::Frame(M("TP_CLARITY_MICRO")));
|
||||||
pack_start (*clmc);
|
Gtk::VBox *microVBox = Gtk::manage (new Gtk::VBox());
|
||||||
|
microVBox->set_spacing(2);
|
||||||
|
|
||||||
enabledtwo = Gtk::manage (new Gtk::CheckButton (M("GENERAL_ENABLED")));
|
enabledtwo = Gtk::manage (new Gtk::CheckButton (M("GENERAL_ENABLED")));
|
||||||
enabledtwo->set_active (true);
|
enabledtwo->set_active (true);
|
||||||
pack_start(*enabledtwo);
|
microVBox->pack_start(*enabledtwo, Gtk::PACK_SHRINK, 0);
|
||||||
enabledtwo->show ();
|
enabledtwo->show ();
|
||||||
|
|
||||||
|
|
||||||
MLmicrostrength= Gtk::manage(new Adjuster (M("TP_MLMICRO_STRENGTH"),0,100,1,25));
|
MLmicrostrength= Gtk::manage(new Adjuster (M("TP_MLMICRO_STRENGTH"),0,100,1,25));
|
||||||
MLmicrostrength->setAdjusterListener (this);
|
MLmicrostrength->setAdjusterListener (this);
|
||||||
if (MLmicrostrength->delay < 1000) MLmicrostrength->delay = 1000;
|
if (MLmicrostrength->delay < 1000) MLmicrostrength->delay = 1000;
|
||||||
@ -86,11 +84,15 @@ Clarity::Clarity () : Gtk::VBox(), FoldableToolPanel(this)
|
|||||||
uniformity->show();
|
uniformity->show();
|
||||||
MLmicromatrix = Gtk::manage (new Gtk::CheckButton (M("TP_CLARITY_MATRIX")));
|
MLmicromatrix = Gtk::manage (new Gtk::CheckButton (M("TP_CLARITY_MATRIX")));
|
||||||
MLmicromatrix->set_active (true);
|
MLmicromatrix->set_active (true);
|
||||||
pack_start(*MLmicromatrix);
|
microVBox->pack_start(*MLmicromatrix, Gtk::PACK_SHRINK, 0);
|
||||||
MLmicromatrix->show ();
|
MLmicromatrix->show ();
|
||||||
|
|
||||||
pack_start( *MLmicrostrength, Gtk::PACK_SHRINK, 4);//microcontraste strength
|
microVBox->pack_start( *MLmicrostrength, Gtk::PACK_SHRINK, 0);//microcontraste strength
|
||||||
pack_start( *uniformity, Gtk::PACK_SHRINK, 4);//uniformity
|
microVBox->pack_start( *uniformity, Gtk::PACK_SHRINK, 0);//uniformity
|
||||||
|
|
||||||
|
microFrame->add (*microVBox);
|
||||||
|
pack_start(*microFrame, Gtk::PACK_SHRINK, 0);
|
||||||
|
microFrame->show ();
|
||||||
|
|
||||||
enaconn = enabled->signal_toggled().connect( sigc::mem_fun(*this, &Clarity::enabled_toggled) );
|
enaconn = enabled->signal_toggled().connect( sigc::mem_fun(*this, &Clarity::enabled_toggled) );
|
||||||
chanthreeconn = Claritythreechannels->signal_toggled().connect( sigc::mem_fun(*this, &Clarity::chanthree_toggled) );
|
chanthreeconn = Claritythreechannels->signal_toggled().connect( sigc::mem_fun(*this, &Clarity::chanthree_toggled) );
|
||||||
@ -166,7 +168,6 @@ void Clarity::write( ProcParams* pp, ParamsEdited* pedited)
|
|||||||
pedited->clarity.uniformity = uniformity->getEditedState ();
|
pedited->clarity.uniformity = uniformity->getEditedState ();
|
||||||
pedited->clarity.enabledtwo = !enabledtwo->get_inconsistent();
|
pedited->clarity.enabledtwo = !enabledtwo->get_inconsistent();
|
||||||
pedited->clarity.MLmicromatrix = !MLmicromatrix->get_inconsistent();
|
pedited->clarity.MLmicromatrix = !MLmicromatrix->get_inconsistent();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user