From b9a387b517e89d35cbc7780017a16fc43517426c Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Tue, 13 Oct 2026 20:55:24 -0400 Subject: [PATCH] feat(desktop): choose cutting-planner cut-off settings in the automatic cut-off dialog --- .../Forms/AutomaticCutOffFormTests.cs | 42 ++++++++ .../Forms/CuttingInspectionPanelTests.cs | 62 ++++++++++++ OpenNest/Forms/AutomaticCutOffForm.cs | 65 +++++++++++-- OpenNest/Forms/CuttingInspectionPanel.cs | 96 +++++++++++++++++-- docs/cutting-planner.md | 12 ++- 5 files changed, 259 insertions(+), 18 deletions(-) diff --git a/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs b/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs index b5c32fc..f9f1376 100644 --- a/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs +++ b/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs @@ -96,6 +96,48 @@ public class AutomaticCutOffFormTests }); } + [Fact] + public void SettingsMode_SeedsTheGivenOptionsAndOkReturnsThemWithoutAddingCutoffs() + { + RunSta(() => + { + using var view = CreateView(); + var initial = new AutomaticCutOffOptions { Spacing = 30, MinimumStripLength = 20, MinimumTailLength = 8 }; + using var form = AutomaticCutOffForm.ForSettings(view, Units.Inches, null, initial); + Assert.Equal("&Use These Settings", Control