fix: adjust arrow size and color, designer reformat
This commit is contained in:
189
OpenNest/Controls/ProgramEditorControl.Designer.cs
generated
189
OpenNest/Controls/ProgramEditorControl.Designer.cs
generated
@@ -15,54 +15,56 @@ namespace OpenNest.Controls
|
|||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
components = new System.ComponentModel.Container();
|
||||||
mainSplit = new System.Windows.Forms.SplitContainer();
|
mainSplit = new System.Windows.Forms.SplitContainer();
|
||||||
contourList = new System.Windows.Forms.ListBox();
|
|
||||||
reverseButton = new System.Windows.Forms.Button();
|
|
||||||
contourPanel = new System.Windows.Forms.Panel();
|
contourPanel = new System.Windows.Forms.Panel();
|
||||||
|
contourList = new System.Windows.Forms.ListBox();
|
||||||
|
contourMenu = new System.Windows.Forms.ContextMenuStrip(components);
|
||||||
|
menuReverse = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
reverseButton = new System.Windows.Forms.Button();
|
||||||
rightSplit = new System.Windows.Forms.SplitContainer();
|
rightSplit = new System.Windows.Forms.SplitContainer();
|
||||||
preview = new OpenNest.Controls.EntityView();
|
preview = new EntityView();
|
||||||
editorPanel = new System.Windows.Forms.Panel();
|
editorPanel = new System.Windows.Forms.Panel();
|
||||||
gcodeEditor = new System.Windows.Forms.TextBox();
|
gcodeEditor = new System.Windows.Forms.TextBox();
|
||||||
editorToolbar = new System.Windows.Forms.Panel();
|
editorToolbar = new System.Windows.Forms.Panel();
|
||||||
applyButton = new System.Windows.Forms.Button();
|
applyButton = new System.Windows.Forms.Button();
|
||||||
lblGcode = new System.Windows.Forms.Label();
|
lblGcode = new System.Windows.Forms.Label();
|
||||||
contourMenu = new System.Windows.Forms.ContextMenuStrip();
|
|
||||||
menuReverse = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
((System.ComponentModel.ISupportInitialize)mainSplit).BeginInit();
|
((System.ComponentModel.ISupportInitialize)mainSplit).BeginInit();
|
||||||
mainSplit.Panel1.SuspendLayout();
|
mainSplit.Panel1.SuspendLayout();
|
||||||
mainSplit.Panel2.SuspendLayout();
|
mainSplit.Panel2.SuspendLayout();
|
||||||
mainSplit.SuspendLayout();
|
mainSplit.SuspendLayout();
|
||||||
|
contourPanel.SuspendLayout();
|
||||||
|
contourMenu.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)rightSplit).BeginInit();
|
((System.ComponentModel.ISupportInitialize)rightSplit).BeginInit();
|
||||||
rightSplit.Panel1.SuspendLayout();
|
rightSplit.Panel1.SuspendLayout();
|
||||||
rightSplit.Panel2.SuspendLayout();
|
rightSplit.Panel2.SuspendLayout();
|
||||||
rightSplit.SuspendLayout();
|
rightSplit.SuspendLayout();
|
||||||
contourPanel.SuspendLayout();
|
|
||||||
editorPanel.SuspendLayout();
|
editorPanel.SuspendLayout();
|
||||||
editorToolbar.SuspendLayout();
|
editorToolbar.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// mainSplit
|
// mainSplit
|
||||||
//
|
//
|
||||||
mainSplit.Dock = System.Windows.Forms.DockStyle.Fill;
|
mainSplit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
mainSplit.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
mainSplit.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
mainSplit.Location = new System.Drawing.Point(0, 0);
|
mainSplit.Location = new System.Drawing.Point(0, 0);
|
||||||
mainSplit.Name = "mainSplit";
|
mainSplit.Name = "mainSplit";
|
||||||
//
|
//
|
||||||
// mainSplit.Panel1 — contour list panel
|
// mainSplit.Panel1
|
||||||
//
|
//
|
||||||
mainSplit.Panel1.Controls.Add(contourPanel);
|
mainSplit.Panel1.Controls.Add(contourPanel);
|
||||||
mainSplit.Panel1MinSize = 150;
|
mainSplit.Panel1MinSize = 150;
|
||||||
//
|
//
|
||||||
// mainSplit.Panel2 — preview + editor
|
// mainSplit.Panel2
|
||||||
//
|
//
|
||||||
mainSplit.Panel2.Controls.Add(rightSplit);
|
mainSplit.Panel2.Controls.Add(rightSplit);
|
||||||
mainSplit.Size = new System.Drawing.Size(800, 500);
|
mainSplit.Size = new System.Drawing.Size(800, 500);
|
||||||
mainSplit.SplitterDistance = 180;
|
mainSplit.SplitterDistance = 180;
|
||||||
mainSplit.SplitterWidth = 5;
|
mainSplit.SplitterWidth = 5;
|
||||||
mainSplit.TabIndex = 0;
|
mainSplit.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// contourPanel
|
// contourPanel
|
||||||
//
|
//
|
||||||
contourPanel.Controls.Add(contourList);
|
contourPanel.Controls.Add(contourList);
|
||||||
contourPanel.Controls.Add(reverseButton);
|
contourPanel.Controls.Add(reverseButton);
|
||||||
contourPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
contourPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -70,11 +72,12 @@ namespace OpenNest.Controls
|
|||||||
contourPanel.Name = "contourPanel";
|
contourPanel.Name = "contourPanel";
|
||||||
contourPanel.Size = new System.Drawing.Size(180, 500);
|
contourPanel.Size = new System.Drawing.Size(180, 500);
|
||||||
contourPanel.TabIndex = 0;
|
contourPanel.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// contourList
|
// contourList
|
||||||
//
|
//
|
||||||
contourList.BackColor = System.Drawing.Color.White;
|
contourList.BackColor = System.Drawing.Color.White;
|
||||||
contourList.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
contourList.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
contourList.ContextMenuStrip = contourMenu;
|
||||||
contourList.Dock = System.Windows.Forms.DockStyle.Fill;
|
contourList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
contourList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
|
contourList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
|
||||||
contourList.Font = new System.Drawing.Font("Segoe UI", 9F);
|
contourList.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
@@ -84,10 +87,21 @@ namespace OpenNest.Controls
|
|||||||
contourList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
contourList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
||||||
contourList.Size = new System.Drawing.Size(180, 462);
|
contourList.Size = new System.Drawing.Size(180, 462);
|
||||||
contourList.TabIndex = 0;
|
contourList.TabIndex = 0;
|
||||||
contourList.ContextMenuStrip = contourMenu;
|
//
|
||||||
//
|
// contourMenu
|
||||||
|
//
|
||||||
|
contourMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { menuReverse });
|
||||||
|
contourMenu.Name = "contourMenu";
|
||||||
|
contourMenu.Size = new System.Drawing.Size(166, 26);
|
||||||
|
//
|
||||||
|
// menuReverse
|
||||||
|
//
|
||||||
|
menuReverse.Name = "menuReverse";
|
||||||
|
menuReverse.Size = new System.Drawing.Size(165, 22);
|
||||||
|
menuReverse.Text = "Reverse Direction";
|
||||||
|
//
|
||||||
// reverseButton
|
// reverseButton
|
||||||
//
|
//
|
||||||
reverseButton.Dock = System.Windows.Forms.DockStyle.Bottom;
|
reverseButton.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
reverseButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
reverseButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
reverseButton.Font = new System.Drawing.Font("Segoe UI", 9F);
|
reverseButton.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
@@ -95,86 +109,56 @@ namespace OpenNest.Controls
|
|||||||
reverseButton.Name = "reverseButton";
|
reverseButton.Name = "reverseButton";
|
||||||
reverseButton.Size = new System.Drawing.Size(180, 38);
|
reverseButton.Size = new System.Drawing.Size(180, 38);
|
||||||
reverseButton.TabIndex = 1;
|
reverseButton.TabIndex = 1;
|
||||||
reverseButton.Text = "\u21C5 Reverse Direction";
|
reverseButton.Text = "⇅ Reverse Direction";
|
||||||
//
|
//
|
||||||
// rightSplit
|
// rightSplit
|
||||||
//
|
//
|
||||||
rightSplit.Dock = System.Windows.Forms.DockStyle.Fill;
|
rightSplit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
rightSplit.Location = new System.Drawing.Point(0, 0);
|
rightSplit.Location = new System.Drawing.Point(0, 0);
|
||||||
rightSplit.Name = "rightSplit";
|
rightSplit.Name = "rightSplit";
|
||||||
//
|
//
|
||||||
// rightSplit.Panel1 — preview
|
// rightSplit.Panel1
|
||||||
//
|
//
|
||||||
rightSplit.Panel1.Controls.Add(preview);
|
rightSplit.Panel1.Controls.Add(preview);
|
||||||
//
|
//
|
||||||
// rightSplit.Panel2 — gcode editor
|
// rightSplit.Panel2
|
||||||
//
|
//
|
||||||
rightSplit.Panel2.Controls.Add(editorPanel);
|
rightSplit.Panel2.Controls.Add(editorPanel);
|
||||||
rightSplit.Size = new System.Drawing.Size(615, 500);
|
rightSplit.Size = new System.Drawing.Size(615, 500);
|
||||||
rightSplit.SplitterDistance = 350;
|
rightSplit.SplitterDistance = 350;
|
||||||
rightSplit.SplitterWidth = 5;
|
rightSplit.SplitterWidth = 5;
|
||||||
rightSplit.TabIndex = 0;
|
rightSplit.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// preview
|
// preview
|
||||||
//
|
//
|
||||||
preview.BackColor = System.Drawing.Color.FromArgb(33, 40, 48);
|
preview.BackColor = System.Drawing.Color.FromArgb(33, 40, 48);
|
||||||
preview.Cursor = System.Windows.Forms.Cursors.Cross;
|
preview.Cursor = System.Windows.Forms.Cursors.Cross;
|
||||||
preview.Dock = System.Windows.Forms.DockStyle.Fill;
|
preview.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
preview.IsPickingBendLine = false;
|
preview.IsPickingBendLine = false;
|
||||||
preview.Location = new System.Drawing.Point(0, 0);
|
preview.Location = new System.Drawing.Point(0, 0);
|
||||||
preview.Name = "preview";
|
preview.Name = "preview";
|
||||||
|
preview.OriginalEntities = null;
|
||||||
|
preview.PaintOverlay = null;
|
||||||
preview.ShowEntityLabels = false;
|
preview.ShowEntityLabels = false;
|
||||||
preview.Size = new System.Drawing.Size(615, 300);
|
preview.SimplifierHighlight = null;
|
||||||
|
preview.SimplifierPreview = null;
|
||||||
|
preview.SimplifierToleranceLeft = null;
|
||||||
|
preview.SimplifierToleranceRight = null;
|
||||||
|
preview.Size = new System.Drawing.Size(350, 500);
|
||||||
preview.TabIndex = 0;
|
preview.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// editorPanel
|
// editorPanel
|
||||||
//
|
//
|
||||||
editorPanel.Controls.Add(gcodeEditor);
|
editorPanel.Controls.Add(gcodeEditor);
|
||||||
editorPanel.Controls.Add(editorToolbar);
|
editorPanel.Controls.Add(editorToolbar);
|
||||||
editorPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
editorPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
editorPanel.Location = new System.Drawing.Point(0, 0);
|
editorPanel.Location = new System.Drawing.Point(0, 0);
|
||||||
editorPanel.Name = "editorPanel";
|
editorPanel.Name = "editorPanel";
|
||||||
editorPanel.Size = new System.Drawing.Size(615, 195);
|
editorPanel.Size = new System.Drawing.Size(260, 500);
|
||||||
editorPanel.TabIndex = 0;
|
editorPanel.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// editorToolbar
|
|
||||||
//
|
|
||||||
editorToolbar.BackColor = System.Drawing.Color.FromArgb(245, 245, 245);
|
|
||||||
editorToolbar.Controls.Add(applyButton);
|
|
||||||
editorToolbar.Controls.Add(lblGcode);
|
|
||||||
editorToolbar.Dock = System.Windows.Forms.DockStyle.Top;
|
|
||||||
editorToolbar.Location = new System.Drawing.Point(0, 0);
|
|
||||||
editorToolbar.Name = "editorToolbar";
|
|
||||||
editorToolbar.Padding = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
||||||
editorToolbar.Size = new System.Drawing.Size(615, 30);
|
|
||||||
editorToolbar.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// lblGcode
|
|
||||||
//
|
|
||||||
lblGcode.AutoSize = true;
|
|
||||||
lblGcode.Dock = System.Windows.Forms.DockStyle.Left;
|
|
||||||
lblGcode.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
||||||
lblGcode.ForeColor = System.Drawing.Color.Gray;
|
|
||||||
lblGcode.Location = new System.Drawing.Point(6, 4);
|
|
||||||
lblGcode.Name = "lblGcode";
|
|
||||||
lblGcode.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
|
||||||
lblGcode.Size = new System.Drawing.Size(50, 18);
|
|
||||||
lblGcode.TabIndex = 0;
|
|
||||||
lblGcode.Text = "G-Code";
|
|
||||||
//
|
|
||||||
// applyButton
|
|
||||||
//
|
|
||||||
applyButton.Dock = System.Windows.Forms.DockStyle.Right;
|
|
||||||
applyButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
||||||
applyButton.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
||||||
applyButton.Location = new System.Drawing.Point(539, 4);
|
|
||||||
applyButton.Name = "applyButton";
|
|
||||||
applyButton.Size = new System.Drawing.Size(70, 22);
|
|
||||||
applyButton.TabIndex = 1;
|
|
||||||
applyButton.Text = "Apply";
|
|
||||||
//
|
|
||||||
// gcodeEditor
|
// gcodeEditor
|
||||||
//
|
//
|
||||||
gcodeEditor.BackColor = System.Drawing.Color.FromArgb(30, 30, 45);
|
gcodeEditor.BackColor = System.Drawing.Color.FromArgb(30, 30, 45);
|
||||||
gcodeEditor.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
gcodeEditor.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
gcodeEditor.Dock = System.Windows.Forms.DockStyle.Fill;
|
gcodeEditor.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -184,24 +168,48 @@ namespace OpenNest.Controls
|
|||||||
gcodeEditor.Multiline = true;
|
gcodeEditor.Multiline = true;
|
||||||
gcodeEditor.Name = "gcodeEditor";
|
gcodeEditor.Name = "gcodeEditor";
|
||||||
gcodeEditor.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
gcodeEditor.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||||
gcodeEditor.Size = new System.Drawing.Size(615, 165);
|
gcodeEditor.Size = new System.Drawing.Size(260, 470);
|
||||||
gcodeEditor.TabIndex = 1;
|
gcodeEditor.TabIndex = 1;
|
||||||
gcodeEditor.WordWrap = false;
|
gcodeEditor.WordWrap = false;
|
||||||
//
|
//
|
||||||
// contourMenu
|
// editorToolbar
|
||||||
//
|
//
|
||||||
contourMenu.Items.Add(menuReverse);
|
editorToolbar.BackColor = System.Drawing.Color.FromArgb(245, 245, 245);
|
||||||
contourMenu.Name = "contourMenu";
|
editorToolbar.Controls.Add(applyButton);
|
||||||
contourMenu.Size = new System.Drawing.Size(180, 26);
|
editorToolbar.Controls.Add(lblGcode);
|
||||||
//
|
editorToolbar.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
// menuReverse
|
editorToolbar.Location = new System.Drawing.Point(0, 0);
|
||||||
//
|
editorToolbar.Name = "editorToolbar";
|
||||||
menuReverse.Name = "menuReverse";
|
editorToolbar.Padding = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
||||||
menuReverse.Size = new System.Drawing.Size(179, 22);
|
editorToolbar.Size = new System.Drawing.Size(260, 30);
|
||||||
menuReverse.Text = "Reverse Direction";
|
editorToolbar.TabIndex = 0;
|
||||||
//
|
//
|
||||||
|
// applyButton
|
||||||
|
//
|
||||||
|
applyButton.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
applyButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
applyButton.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
applyButton.Location = new System.Drawing.Point(184, 4);
|
||||||
|
applyButton.Name = "applyButton";
|
||||||
|
applyButton.Size = new System.Drawing.Size(70, 22);
|
||||||
|
applyButton.TabIndex = 1;
|
||||||
|
applyButton.Text = "Apply";
|
||||||
|
//
|
||||||
|
// lblGcode
|
||||||
|
//
|
||||||
|
lblGcode.AutoSize = true;
|
||||||
|
lblGcode.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
lblGcode.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
lblGcode.ForeColor = System.Drawing.Color.Gray;
|
||||||
|
lblGcode.Location = new System.Drawing.Point(6, 4);
|
||||||
|
lblGcode.Name = "lblGcode";
|
||||||
|
lblGcode.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
||||||
|
lblGcode.Size = new System.Drawing.Size(48, 18);
|
||||||
|
lblGcode.TabIndex = 0;
|
||||||
|
lblGcode.Text = "G-Code";
|
||||||
|
//
|
||||||
// ProgramEditorControl
|
// ProgramEditorControl
|
||||||
//
|
//
|
||||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
Controls.Add(mainSplit);
|
Controls.Add(mainSplit);
|
||||||
Name = "ProgramEditorControl";
|
Name = "ProgramEditorControl";
|
||||||
@@ -210,11 +218,12 @@ namespace OpenNest.Controls
|
|||||||
mainSplit.Panel2.ResumeLayout(false);
|
mainSplit.Panel2.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)mainSplit).EndInit();
|
((System.ComponentModel.ISupportInitialize)mainSplit).EndInit();
|
||||||
mainSplit.ResumeLayout(false);
|
mainSplit.ResumeLayout(false);
|
||||||
|
contourPanel.ResumeLayout(false);
|
||||||
|
contourMenu.ResumeLayout(false);
|
||||||
rightSplit.Panel1.ResumeLayout(false);
|
rightSplit.Panel1.ResumeLayout(false);
|
||||||
rightSplit.Panel2.ResumeLayout(false);
|
rightSplit.Panel2.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)rightSplit).EndInit();
|
((System.ComponentModel.ISupportInitialize)rightSplit).EndInit();
|
||||||
rightSplit.ResumeLayout(false);
|
rightSplit.ResumeLayout(false);
|
||||||
contourPanel.ResumeLayout(false);
|
|
||||||
editorPanel.ResumeLayout(false);
|
editorPanel.ResumeLayout(false);
|
||||||
editorPanel.PerformLayout();
|
editorPanel.PerformLayout();
|
||||||
editorToolbar.ResumeLayout(false);
|
editorToolbar.ResumeLayout(false);
|
||||||
|
|||||||
@@ -263,9 +263,9 @@ namespace OpenNest.Controls
|
|||||||
if (contours.Count == 0) return;
|
if (contours.Count == 0) return;
|
||||||
|
|
||||||
var spacing = preview.LengthGuiToWorld(60f);
|
var spacing = preview.LengthGuiToWorld(60f);
|
||||||
var arrowSize = 5f;
|
var arrowSize = 8f;
|
||||||
|
|
||||||
using var pen = new Pen(Color.FromArgb(60, 60, 60), 1.5f);
|
using var pen = new Pen(Color.LightGray, 1.5f);
|
||||||
|
|
||||||
for (var i = 0; i < contours.Count; i++)
|
for (var i = 0; i < contours.Count; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user