mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-27 05:01:05 -04:00
feat(desktop): make the toolbar sequencing button run Sequence by Path
The click-each-part Manual Sequence tool stays under Plate > Sequence Parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
50f966913d
commit
ed9c1f9df6
2 files changed
+4
-4
No files matched your search
@@ -19,7 +19,7 @@ public class NestReportExportTests
|
||||
var toolbar = (ToolStrip)typeof(MainForm)
|
||||
.GetField("toolStrip1", BindingFlags.Instance | BindingFlags.NonPublic)!
|
||||
.GetValue(host)!;
|
||||
foreach (var name in new[] { "btnCutPlanner", "btnManualSequence", "btnPost" })
|
||||
foreach (var name in new[] { "btnCutPlanner", "btnSequenceByPath", "btnPost" })
|
||||
{
|
||||
var item = Assert.Single(toolbar.Items.Find(name, false));
|
||||
Assert.Equal(24, item.Image!.Width);
|
||||
@@ -32,7 +32,7 @@ public class NestReportExportTests
|
||||
Assert.Equal(menu.DropDownItems.Count, post.DropDownItems.Count);
|
||||
// Without a document these toolbar shortcuts must be harmless.
|
||||
((ToolStripButton)toolbar.Items["btnCutPlanner"]!).PerformClick();
|
||||
((ToolStripButton)toolbar.Items["btnManualSequence"]!).PerformClick();
|
||||
((ToolStripButton)toolbar.Items["btnSequenceByPath"]!).PerformClick();
|
||||
foreach (ToolStripMenuItem item in menu.DropDownItems)
|
||||
{
|
||||
var toolbarItem = Assert.Single(post.DropDownItems.OfType<ToolStripMenuItem>(),
|
||||
|
||||
@@ -111,8 +111,8 @@ namespace OpenNest.Forms
|
||||
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(CreateActionButton("btnSequenceByPath", "Sequence by Path",
|
||||
Resources.manual_sequence, SequenceByPath_Click));
|
||||
toolStrip1.Items.Add(postButton);
|
||||
storageModeMenu.Click += StorageMode_Click;
|
||||
exportNestMenu.Click += ExportNest_Click;
|
||||
|
||||
Reference in new issue
Block a user