From 3dfa03676887189fcf13970c42073f9a0cb6a43f Mon Sep 17 00:00:00 2001 From: Desmis Date: Mon, 23 Apr 2018 06:56:30 +0200 Subject: [PATCH] enhance GUI ICC V4 --- rtdata/languages/default | 2 +- rtgui/icmpanel.cc | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rtdata/languages/default b/rtdata/languages/default index 7d6adc397..860372bce 100644 --- a/rtdata/languages/default +++ b/rtdata/languages/default @@ -1627,7 +1627,7 @@ TP_GAMMA_TEMP_60;D60 TP_GAMMA_TEMP_65;D65 TP_GAMMA_TEMP_80;D80 TP_GAMMA_TEMP_INC;Incandescent 2856K -TP_GAMMA_TEMP_TOOLTIP;Only whith generate ICC V4, you can change the D illuminant +TP_GAMMA_TEMP_TOOLTIP;Only whith generate ICC V4, you can change the illuminant and Free primaries TP_GENERAL_11SCALE_TOOLTIP;The effects of this tool are only visible or only accurate at a preview scale of 1:1. TP_GRADIENT_CENTER;Center TP_GRADIENT_CENTER_X;Center X diff --git a/rtgui/icmpanel.cc b/rtgui/icmpanel.cc index e1d7f5942..b53b4fe76 100644 --- a/rtgui/icmpanel.cc +++ b/rtgui/icmpanel.cc @@ -706,6 +706,9 @@ void ICMPanel::read(const ProcParams* pp, const ParamsEdited* pedited) wprofile->set_active(2); } + + if(wprimari->get_active_row_number() == 10) wprofile->set_active(2); + gpChanged(); wprofileChanged(); wtempChanged(); @@ -1030,6 +1033,7 @@ void ICMPanel::wprimariChanged() { if(wprimari->get_active_row_number() == 10) prifreeVBox->set_sensitive(true); else prifreeVBox->set_sensitive(false); + if(wprimari->get_active_row_number() == 10) wprofile->set_active(2); if (listener) { listener->panelChanged(EvICMprimariMethod, wprimari->get_active_text()); @@ -1040,7 +1044,8 @@ void ICMPanel::wtempChanged() { if(wprofile->get_active_row_number() == 2){wtemp->set_sensitive(true);} else {wtemp->set_sensitive(false);} - + if(wtemp->get_active_row_number() != 0) wprofile->set_active(2); + if (listener) { listener->panelChanged(EvICMtempMethod, wtemp->get_active_text()); } @@ -1050,6 +1055,7 @@ void ICMPanel::wprofileChanged() { if(wprofile->get_active_row_number() == 2){wtemp->set_sensitive(true);} else {wtemp->set_sensitive(false);} + if(wtemp->get_active_row_number() != 0) wprofile->set_active(2); if (listener) { listener->panelChanged(EvICMprofileMethod, wprofile->get_active_text());