@@ -207,6 +207,26 @@ void OptionsWidget::fillMarginsToggled(const bool checked) {
207207void OptionsWidget::fillOffcutToggled (const bool checked) {
208208 ColorCommonOptions colorCommonOptions (m_colorParams.colorCommonOptions ());
209209 colorCommonOptions.setFillOffcut (checked);
210+ if (checked) {
211+ colorCommonOptions.setFillOutsidePageBox (false );
212+ fillOutsidePageBoxCB->blockSignals (true );
213+ fillOutsidePageBoxCB->setChecked (false );
214+ fillOutsidePageBoxCB->blockSignals (false );
215+ }
216+ m_colorParams.setColorCommonOptions (colorCommonOptions);
217+ m_settings->setColorParams (m_pageId, m_colorParams);
218+ emit reloadRequested ();
219+ }
220+
221+ void OptionsWidget::fillOutsidePageBoxToggled (const bool checked) {
222+ ColorCommonOptions colorCommonOptions (m_colorParams.colorCommonOptions ());
223+ colorCommonOptions.setFillOutsidePageBox (checked);
224+ if (checked) {
225+ colorCommonOptions.setFillOffcut (false );
226+ fillOffcutCB->blockSignals (true );
227+ fillOffcutCB->setChecked (false );
228+ fillOffcutCB->blockSignals (false );
229+ }
210230 m_colorParams.setColorCommonOptions (colorCommonOptions);
211231 m_settings->setColorParams (m_pageId, m_colorParams);
212232 emit reloadRequested ();
@@ -595,6 +615,8 @@ void OptionsWidget::updateColorsDisplay() {
595615 fillMarginsCB->setVisible (true );
596616 fillOffcutCB->setChecked (colorCommonOptions.fillOffcut ());
597617 fillOffcutCB->setVisible (true );
618+ fillOutsidePageBoxCB->setChecked (colorCommonOptions.fillOutsidePageBox ());
619+ fillOutsidePageBoxCB->setVisible (true );
598620 equalizeIlluminationCB->setChecked (blackWhiteOptions.normalizeIllumination ());
599621 equalizeIlluminationCB->setVisible (colorMode != COLOR_GRAYSCALE );
600622 equalizeIlluminationColorCB->setChecked (colorCommonOptions.normalizeIllumination ());
@@ -951,6 +973,7 @@ void OptionsWidget::setupUiConnections() {
951973
952974 CONNECT (fillMarginsCB, SIGNAL (clicked (bool )), this , SLOT (fillMarginsToggled (bool )));
953975 CONNECT (fillOffcutCB, SIGNAL (clicked (bool )), this , SLOT (fillOffcutToggled (bool )));
976+ CONNECT (fillOutsidePageBoxCB, SIGNAL (clicked (bool )), this , SLOT (fillOutsidePageBoxToggled (bool )));
954977 CONNECT (equalizeIlluminationCB, SIGNAL (clicked (bool )), this , SLOT (equalizeIlluminationToggled (bool )));
955978 CONNECT (equalizeIlluminationColorCB, SIGNAL (clicked (bool )), this , SLOT (equalizeIlluminationColorToggled (bool )));
956979 CONNECT (savitzkyGolaySmoothingCB, SIGNAL (clicked (bool )), this , SLOT (savitzkyGolaySmoothingToggled (bool )));
0 commit comments