From b88ad569c2cd53fe8a3cebfa2b1deac802dfce0f Mon Sep 17 00:00:00 2001 From: Daniel Gao Date: Sat, 9 Nov 2024 20:38:59 -0500 Subject: [PATCH] Tweak framing tool GUI * Set sensitivity of aspect ratio and orientation combo boxes * Sensitivity determined by absolute/relative sizing method * Show allow upscaling box for BBOX framing method --- rtgui/framing.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rtgui/framing.cc b/rtgui/framing.cc index cff506a46..677a63050 100644 --- a/rtgui/framing.cc +++ b/rtgui/framing.cc @@ -711,7 +711,7 @@ void Framing::updateFramingMethodGui() orientation->show(); width.show(); height.show(); - allowUpscaling->hide(); + allowUpscaling->show(); } else if (activeRow == INDEX_FIXED) { aspectRatioLabel->hide(); aspectRatio->hide(); @@ -735,6 +735,9 @@ void Framing::updateBorderSizeGui() minSizeFrame->show(); absWidth.hide(); absHeight.hide(); + + aspectRatio->set_sensitive(true); + orientation->set_sensitive(true); } else if (activeRow == INDEX_SIZE_ABSOLUTE) { basisLabel->hide(); basis->hide(); @@ -742,6 +745,9 @@ void Framing::updateBorderSizeGui() minSizeFrame->hide(); absWidth.show(); absHeight.show(); + + aspectRatio->set_sensitive(false); + orientation->set_sensitive(false); } minSizeFrameContent->set_sensitive(minSizeEnabled->get_active());