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
This commit is contained in:
Daniel Gao 2024-11-09 20:38:59 -05:00
parent 29945f4a35
commit b88ad569c2

View File

@ -711,7 +711,7 @@ void Framing::updateFramingMethodGui()
orientation->show(); orientation->show();
width.show(); width.show();
height.show(); height.show();
allowUpscaling->hide(); allowUpscaling->show();
} else if (activeRow == INDEX_FIXED) { } else if (activeRow == INDEX_FIXED) {
aspectRatioLabel->hide(); aspectRatioLabel->hide();
aspectRatio->hide(); aspectRatio->hide();
@ -735,6 +735,9 @@ void Framing::updateBorderSizeGui()
minSizeFrame->show(); minSizeFrame->show();
absWidth.hide(); absWidth.hide();
absHeight.hide(); absHeight.hide();
aspectRatio->set_sensitive(true);
orientation->set_sensitive(true);
} else if (activeRow == INDEX_SIZE_ABSOLUTE) { } else if (activeRow == INDEX_SIZE_ABSOLUTE) {
basisLabel->hide(); basisLabel->hide();
basis->hide(); basis->hide();
@ -742,6 +745,9 @@ void Framing::updateBorderSizeGui()
minSizeFrame->hide(); minSizeFrame->hide();
absWidth.show(); absWidth.show();
absHeight.show(); absHeight.show();
aspectRatio->set_sensitive(false);
orientation->set_sensitive(false);
} }
minSizeFrameContent->set_sensitive(minSizeEnabled->get_active()); minSizeFrameContent->set_sensitive(minSizeEnabled->get_active());