From 9d736ae8db1f27cb9cfdaadd404da10973013858 Mon Sep 17 00:00:00 2001 From: Desmis Date: Thu, 15 Aug 2019 07:37:51 +0200 Subject: [PATCH] Small changes to GUI --- rtgui/controlspotpanel.cc | 2 +- rtgui/locallab.cc | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/rtgui/controlspotpanel.cc b/rtgui/controlspotpanel.cc index 7e597fdd3..c13d09953 100644 --- a/rtgui/controlspotpanel.cc +++ b/rtgui/controlspotpanel.cc @@ -62,7 +62,7 @@ ControlSpotPanel::ControlSpotPanel(): centerX_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_CENTER_X"), -1000, 1000, 1, 0))), centerY_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_CENTER_Y"), -1000, 1000, 1, 0))), circrad_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_CIRCRADIUS"), 2, 150, 1, 18))), - transit_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_TRANSITVALUE"), 5, 95, 1, 60))), + transit_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_TRANSITVALUE"), 5, 99, 1, 60))), thresh_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_THRESDELTAE"), 0.0, 10.0, 0.1, 2.0))), iter_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_PROXI"), 0.2, 10.0, 0.1, 2.0))), balan_(Gtk::manage(new Adjuster(M("TP_LOCALLAB_BALAN"), 0.2, 2.5, 0.1, 1.0, Gtk::manage(new RTImage("rawtherapee-logo-16.png")), Gtk::manage(new RTImage("circle-white-small.png"))))), diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 6ab9890c8..8b74a85a2 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -7623,6 +7623,15 @@ void Locallab::updateSpecificGUIState() pdeFrame->show(); } + if (softMethod->get_active_row_number() == 0) { + laplace->hide(); + ctboxsoftmethod->hide(); + } else if (softMethod->get_active_row_number() == 1) { + laplace->show(); + ctboxsoftmethod->show(); + } + + if (blMethod->get_active_row_number() == 0) { radius->show(); strength->show(); @@ -7649,7 +7658,7 @@ void Locallab::updateSpecificGUIState() activlum->hide(); } - // Update Retinex GUI according to inversret button state (to be compliant with inversretChanged function) +// Update Retinex GUI according to inversret button state (to be compliant with inversretChanged function) if (multiImage && inversret->get_inconsistent()) { sensih->show(); softradiusret->show(); @@ -7682,7 +7691,7 @@ void Locallab::updateSpecificGUIState() fftwlc->hide(); } - // Update Sharpening GUI according to inverssha button state (to be compliant with inversshaChanged function) +// Update Sharpening GUI according to inverssha button state (to be compliant with inversshaChanged function) sensisha->show(); }