From d548ba4e6f94251fcbc3611e0a1d0f1709cfd3c2 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 18 Oct 2026 20:15:41 -0400 Subject: [PATCH] feat(ui): add a Simulate Cutting toolbar button Restore the toolbar shortcut for Plate > Simulate Cutting next to Plan Cutting, using the cut_simulate icon. Co-Authored-By: Claude Opus 5.5 --- OpenNest/Forms/MainForm.cs | 2 ++ OpenNest/Properties/Resources.Designer.cs | 10 ++++++++++ OpenNest/Properties/Resources.resx | 3 +++ OpenNest/Resources/cut_simulate.png | Bin 0 -> 940 bytes 4 files changed, 15 insertions(+) create mode 100644 OpenNest/Resources/cut_simulate.png diff --git a/OpenNest/Forms/MainForm.cs b/OpenNest/Forms/MainForm.cs index d6b22321..76c56364 100644 --- a/OpenNest/Forms/MainForm.cs +++ b/OpenNest/Forms/MainForm.cs @@ -109,6 +109,8 @@ namespace OpenNest.Forms plateIndexStatusLabel, plateSizeStatusLabel, plateQtyStatusLabel, plateUtilStatusLabel); toolStrip1.Items.Add(CreateActionButton("btnCutPlanner", "Plan Cutting", Resources.cut_planner, PlatePlanCutting_Click)); + toolStrip1.Items.Add(CreateActionButton("btnSimulateCutting", "Simulate Cutting", + Resources.cut_simulate, SimulateCutting_Click)); toolStrip1.Items.Add(CreateActionButton("btnManualSequence", "Manual Sequence", Resources.manual_sequence, ManualSequenceParts_Click)); toolStrip1.Items.Add(postButton); diff --git a/OpenNest/Properties/Resources.Designer.cs b/OpenNest/Properties/Resources.Designer.cs index bf015739..2e20b932 100644 --- a/OpenNest/Properties/Resources.Designer.cs +++ b/OpenNest/Properties/Resources.Designer.cs @@ -70,6 +70,16 @@ namespace OpenNest.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap cut_simulate { + get { + object obj = ResourceManager.GetObject("cut_simulate", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/OpenNest/Properties/Resources.resx b/OpenNest/Properties/Resources.resx index 51e96bc5..24c4d4cc 100644 --- a/OpenNest/Properties/Resources.resx +++ b/OpenNest/Properties/Resources.resx @@ -190,6 +190,9 @@ ..\Resources\shapes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\cut_simulate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\cut_planner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/OpenNest/Resources/cut_simulate.png b/OpenNest/Resources/cut_simulate.png new file mode 100644 index 0000000000000000000000000000000000000000..616cbfe3c6f911c281653e1184c91800d8f2fd14 GIT binary patch literal 940 zcmV;d15^BoP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D13^hdK~zXf&6QnD z6jv0-M-zE8h9{et`lOX@_s-lqJG;!iJ2N~W@+rzb`9Pv+jL`~FV~hliSQ{UFFpW?6 zL9x(85HThiCBBJPMQ!~+SOz6VMNq+IA+=p#xu>}U5xrVKC8odRpL6Hj|2a4Fm7^&C z1LjPjxw3i2=(;`+Y36PmusT&jT|YKmKc=oK9U_z3k-(Yd{*UR59Bu*Ut!~vE7K6S8>2fsD%DAF6Kp%LzuRxnC+75 zW{l5p79wK)gbn-3+joEny)>Sq`+bJ7P_FwZ5TW~s;k-}@eX0`r#1p1ZiQ&8y2gv?U zLM60{81@4dvnaweiVgcA!t~?6oc{vpEUX6|Acg}Z=y;#3pQQU`-)Dh{d5{=(w-D0I zo$~&yfC#-WUb38@HGIgdPebX4<@~2HKc1>6PbRg9r`iErU=m}6;^V1`5>H*0nX!+p zv+jPA!V2W_DVbaL>dcC|(O6FHU@W_4FqU0A7%QxN6gzwTz=M<3hq}Z%@3-MstYj0c z?$uyXc}MnJjhqYgFG_CAgk5_?0El(m=|wR+`V)`#Zc^+ z%b~6_!H-81{MQN9wEe|v?hWu?I>valJLauVw2$&gSt-wQeY{W{&==y75fch;WdP1H zn-yixyTd4DXJ6Iw^8iI>l91b&guKQi