diff --git a/OpenNest/Forms/NestProgressForm.Designer.cs b/OpenNest/Forms/NestProgressForm.Designer.cs index bd6c02e..b711d47 100644 --- a/OpenNest/Forms/NestProgressForm.Designer.cs +++ b/OpenNest/Forms/NestProgressForm.Designer.cs @@ -17,6 +17,11 @@ namespace OpenNest.Forms private void InitializeComponent() { + ColorScheme colorScheme1 = new ColorScheme(); + CutOffSettings cutOffSettings1 = new CutOffSettings(); + Plate plate1 = new Plate(); + Collections.ObservableList observableList_11 = new Collections.ObservableList(); + Collections.ObservableList observableList_12 = new Collections.ObservableList(); phaseStepper = new OpenNest.Controls.PhaseStepperControl(); resultsPanel = new System.Windows.Forms.Panel(); resultsTable = new System.Windows.Forms.TableLayoutPanel(); @@ -42,57 +47,23 @@ namespace OpenNest.Forms stopButton = new System.Windows.Forms.Button(); acceptButton = new System.Windows.Forms.Button(); splitContainer = new System.Windows.Forms.SplitContainer(); - statsPanel = new System.Windows.Forms.Panel(); previewPlateView = new OpenNest.Controls.PlateView(); - ((System.ComponentModel.ISupportInitialize)splitContainer).BeginInit(); - splitContainer.Panel1.SuspendLayout(); - splitContainer.Panel2.SuspendLayout(); - splitContainer.SuspendLayout(); - statsPanel.SuspendLayout(); + statsPanel = new System.Windows.Forms.Panel(); resultsPanel.SuspendLayout(); resultsTable.SuspendLayout(); densityPanel.SuspendLayout(); statusPanel.SuspendLayout(); statusTable.SuspendLayout(); buttonPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer).BeginInit(); + splitContainer.Panel1.SuspendLayout(); + splitContainer.Panel2.SuspendLayout(); + splitContainer.SuspendLayout(); + statsPanel.SuspendLayout(); SuspendLayout(); - // - // splitContainer - // - splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; - splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - splitContainer.Location = new System.Drawing.Point(0, 0); - splitContainer.Name = "splitContainer"; - splitContainer.Panel1.Controls.Add(previewPlateView); - splitContainer.Panel2.Controls.Add(statsPanel); - splitContainer.Size = new System.Drawing.Size(750, 420); - splitContainer.SplitterDistance = 480; - splitContainer.TabIndex = 0; - // - // previewPlateView - // - previewPlateView.AllowDrop = false; - previewPlateView.Dock = System.Windows.Forms.DockStyle.Fill; - previewPlateView.Location = new System.Drawing.Point(0, 0); - previewPlateView.Name = "previewPlateView"; - previewPlateView.Size = new System.Drawing.Size(480, 420); - previewPlateView.TabIndex = 0; - // - // statsPanel - // - statsPanel.AutoScroll = true; - statsPanel.Controls.Add(buttonPanel); - statsPanel.Controls.Add(statusPanel); - statsPanel.Controls.Add(resultsPanel); - statsPanel.Controls.Add(phaseStepper); - statsPanel.Dock = System.Windows.Forms.DockStyle.Fill; - statsPanel.Location = new System.Drawing.Point(0, 0); - statsPanel.Name = "statsPanel"; - statsPanel.Size = new System.Drawing.Size(266, 420); - statsPanel.TabIndex = 0; - // + // // phaseStepper - // + // phaseStepper.ActivePhase = null; phaseStepper.Dock = System.Windows.Forms.DockStyle.Top; phaseStepper.IsComplete = false; @@ -100,9 +71,9 @@ namespace OpenNest.Forms phaseStepper.Name = "phaseStepper"; phaseStepper.Size = new System.Drawing.Size(266, 60); phaseStepper.TabIndex = 0; - // + // // resultsPanel - // + // resultsPanel.BackColor = System.Drawing.Color.White; resultsPanel.Controls.Add(resultsTable); resultsPanel.Controls.Add(resultsHeader); @@ -113,9 +84,9 @@ namespace OpenNest.Forms resultsPanel.Padding = new System.Windows.Forms.Padding(14, 10, 14, 10); resultsPanel.Size = new System.Drawing.Size(266, 120); resultsPanel.TabIndex = 1; - // + // // resultsTable - // + // resultsTable.AutoSize = true; resultsTable.ColumnCount = 2; resultsTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 90F)); @@ -135,9 +106,9 @@ namespace OpenNest.Forms resultsTable.RowStyles.Add(new System.Windows.Forms.RowStyle()); resultsTable.Size = new System.Drawing.Size(238, 69); resultsTable.TabIndex = 1; - // + // // partsLabel - // + // partsLabel.AutoSize = true; partsLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); partsLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -147,20 +118,20 @@ namespace OpenNest.Forms partsLabel.Size = new System.Drawing.Size(43, 17); partsLabel.TabIndex = 0; partsLabel.Text = "Parts:"; - // + // // partsValue - // + // partsValue.AutoSize = true; partsValue.Font = new System.Drawing.Font("Consolas", 9.75F); partsValue.Location = new System.Drawing.Point(90, 3); partsValue.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); partsValue.Name = "partsValue"; - partsValue.Size = new System.Drawing.Size(13, 15); + partsValue.Size = new System.Drawing.Size(14, 15); partsValue.TabIndex = 1; - partsValue.Text = "\u2014"; - // + partsValue.Text = "—"; + // // densityLabel - // + // densityLabel.AutoSize = true; densityLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); densityLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -170,41 +141,41 @@ namespace OpenNest.Forms densityLabel.Size = new System.Drawing.Size(59, 17); densityLabel.TabIndex = 2; densityLabel.Text = "Density:"; - // + // // densityPanel - // + // densityPanel.AutoSize = true; densityPanel.Controls.Add(densityValue); densityPanel.Controls.Add(densityBar); densityPanel.Location = new System.Drawing.Point(90, 23); densityPanel.Margin = new System.Windows.Forms.Padding(0); densityPanel.Name = "densityPanel"; - densityPanel.Size = new System.Drawing.Size(148, 21); + densityPanel.Size = new System.Drawing.Size(149, 21); densityPanel.TabIndex = 3; densityPanel.WrapContents = false; - // + // // densityValue - // + // densityValue.AutoSize = true; densityValue.Font = new System.Drawing.Font("Consolas", 9.75F); densityValue.Location = new System.Drawing.Point(0, 3); densityValue.Margin = new System.Windows.Forms.Padding(0, 3, 8, 3); densityValue.Name = "densityValue"; - densityValue.Size = new System.Drawing.Size(13, 15); + densityValue.Size = new System.Drawing.Size(14, 15); densityValue.TabIndex = 0; - densityValue.Text = "\u2014"; - // + densityValue.Text = "—"; + // // densityBar - // - densityBar.Location = new System.Drawing.Point(21, 5); + // + densityBar.Location = new System.Drawing.Point(22, 5); densityBar.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); densityBar.Name = "densityBar"; densityBar.Size = new System.Drawing.Size(127, 8); densityBar.TabIndex = 1; densityBar.Value = 0D; - // + // // nestedAreaLabel - // + // nestedAreaLabel.AutoSize = true; nestedAreaLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); nestedAreaLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -214,20 +185,20 @@ namespace OpenNest.Forms nestedAreaLabel.Size = new System.Drawing.Size(55, 17); nestedAreaLabel.TabIndex = 4; nestedAreaLabel.Text = "Nested:"; - // + // // nestedAreaValue - // + // nestedAreaValue.AutoSize = true; nestedAreaValue.Font = new System.Drawing.Font("Consolas", 9.75F); nestedAreaValue.Location = new System.Drawing.Point(90, 49); nestedAreaValue.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); nestedAreaValue.Name = "nestedAreaValue"; - nestedAreaValue.Size = new System.Drawing.Size(13, 15); + nestedAreaValue.Size = new System.Drawing.Size(14, 15); nestedAreaValue.TabIndex = 5; - nestedAreaValue.Text = "\u2014"; - // + nestedAreaValue.Text = "—"; + // // resultsHeader - // + // resultsHeader.AutoSize = true; resultsHeader.Dock = System.Windows.Forms.DockStyle.Top; resultsHeader.Font = new System.Drawing.Font("Segoe UI", 10.5F, System.Drawing.FontStyle.Bold); @@ -238,9 +209,9 @@ namespace OpenNest.Forms resultsHeader.Size = new System.Drawing.Size(65, 23); resultsHeader.TabIndex = 0; resultsHeader.Text = "RESULTS"; - // + // // statusPanel - // + // statusPanel.BackColor = System.Drawing.Color.White; statusPanel.Controls.Add(statusTable); statusPanel.Controls.Add(statusHeader); @@ -250,9 +221,9 @@ namespace OpenNest.Forms statusPanel.Padding = new System.Windows.Forms.Padding(14, 10, 14, 10); statusPanel.Size = new System.Drawing.Size(266, 115); statusPanel.TabIndex = 2; - // + // // statusTable - // + // statusTable.AutoSize = true; statusTable.ColumnCount = 2; statusTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 90F)); @@ -272,9 +243,9 @@ namespace OpenNest.Forms statusTable.RowStyles.Add(new System.Windows.Forms.RowStyle()); statusTable.Size = new System.Drawing.Size(238, 69); statusTable.TabIndex = 1; - // + // // plateLabel - // + // plateLabel.AutoSize = true; plateLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); plateLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -284,20 +255,20 @@ namespace OpenNest.Forms plateLabel.Size = new System.Drawing.Size(43, 17); plateLabel.TabIndex = 0; plateLabel.Text = "Plate:"; - // + // // plateValue - // + // plateValue.AutoSize = true; plateValue.Font = new System.Drawing.Font("Consolas", 9.75F); plateValue.Location = new System.Drawing.Point(90, 3); plateValue.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); plateValue.Name = "plateValue"; - plateValue.Size = new System.Drawing.Size(13, 15); + plateValue.Size = new System.Drawing.Size(14, 15); plateValue.TabIndex = 1; - plateValue.Text = "\u2014"; - // + plateValue.Text = "—"; + // // elapsedLabel - // + // elapsedLabel.AutoSize = true; elapsedLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); elapsedLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -307,9 +278,9 @@ namespace OpenNest.Forms elapsedLabel.Size = new System.Drawing.Size(59, 17); elapsedLabel.TabIndex = 2; elapsedLabel.Text = "Elapsed:"; - // + // // elapsedValue - // + // elapsedValue.AutoSize = true; elapsedValue.Font = new System.Drawing.Font("Consolas", 9.75F); elapsedValue.Location = new System.Drawing.Point(90, 26); @@ -318,9 +289,9 @@ namespace OpenNest.Forms elapsedValue.Size = new System.Drawing.Size(35, 15); elapsedValue.TabIndex = 3; elapsedValue.Text = "0:00"; - // + // // descriptionLabel - // + // descriptionLabel.AutoSize = true; descriptionLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold); descriptionLabel.ForeColor = System.Drawing.Color.FromArgb(51, 51, 51); @@ -330,20 +301,20 @@ namespace OpenNest.Forms descriptionLabel.Size = new System.Drawing.Size(49, 17); descriptionLabel.TabIndex = 4; descriptionLabel.Text = "Detail:"; - // + // // descriptionValue - // + // descriptionValue.AutoSize = true; descriptionValue.Font = new System.Drawing.Font("Segoe UI", 9.75F); descriptionValue.Location = new System.Drawing.Point(90, 49); descriptionValue.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); descriptionValue.Name = "descriptionValue"; - descriptionValue.Size = new System.Drawing.Size(20, 17); + descriptionValue.Size = new System.Drawing.Size(21, 17); descriptionValue.TabIndex = 5; - descriptionValue.Text = "\u2014"; - // + descriptionValue.Text = "—"; + // // statusHeader - // + // statusHeader.AutoSize = true; statusHeader.Dock = System.Windows.Forms.DockStyle.Top; statusHeader.Font = new System.Drawing.Font("Segoe UI", 10.5F, System.Drawing.FontStyle.Bold); @@ -354,9 +325,9 @@ namespace OpenNest.Forms statusHeader.Size = new System.Drawing.Size(59, 23); statusHeader.TabIndex = 0; statusHeader.Text = "STATUS"; - // + // // buttonPanel - // + // buttonPanel.AutoSize = true; buttonPanel.Controls.Add(stopButton); buttonPanel.Controls.Add(acceptButton); @@ -367,9 +338,9 @@ namespace OpenNest.Forms buttonPanel.Padding = new System.Windows.Forms.Padding(9, 6, 9, 6); buttonPanel.Size = new System.Drawing.Size(266, 45); buttonPanel.TabIndex = 3; - // + // // stopButton - // + // stopButton.Enabled = false; stopButton.Font = new System.Drawing.Font("Segoe UI", 9.75F); stopButton.Location = new System.Drawing.Point(155, 9); @@ -380,12 +351,12 @@ namespace OpenNest.Forms stopButton.Text = "Stop"; stopButton.UseVisualStyleBackColor = true; stopButton.Click += StopButton_Click; - // + // // acceptButton - // + // acceptButton.Enabled = false; acceptButton.Font = new System.Drawing.Font("Segoe UI", 9.75F); - acceptButton.Location = new System.Drawing.Point(56, 9); + acceptButton.Location = new System.Drawing.Point(62, 9); acceptButton.Margin = new System.Windows.Forms.Padding(6, 3, 0, 3); acceptButton.Name = "acceptButton"; acceptButton.Size = new System.Drawing.Size(93, 27); @@ -393,12 +364,93 @@ namespace OpenNest.Forms acceptButton.Text = "Accept"; acceptButton.UseVisualStyleBackColor = true; acceptButton.Click += AcceptButton_Click; - // + // + // splitContainer + // + splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + splitContainer.Location = new System.Drawing.Point(0, 0); + splitContainer.Name = "splitContainer"; + // + // splitContainer.Panel1 + // + splitContainer.Panel1.Controls.Add(previewPlateView); + // + // splitContainer.Panel2 + // + splitContainer.Panel2.Controls.Add(statsPanel); + splitContainer.Size = new System.Drawing.Size(626, 341); + splitContainer.SplitterDistance = 356; + splitContainer.TabIndex = 0; + // + // previewPlateView + // + previewPlateView.ActiveWorkArea = null; + previewPlateView.AllowPan = true; + previewPlateView.AllowSelect = true; + previewPlateView.AllowZoom = true; + previewPlateView.BackColor = System.Drawing.Color.DarkGray; + colorScheme1.BackgroundColor = System.Drawing.Color.DarkGray; + colorScheme1.BoundingBoxColor = System.Drawing.Color.FromArgb(128, 128, 255); + colorScheme1.EdgeSpacingColor = System.Drawing.Color.FromArgb(180, 180, 180); + colorScheme1.LayoutFillColor = System.Drawing.Color.WhiteSmoke; + colorScheme1.LayoutOutlineColor = System.Drawing.Color.Gray; + colorScheme1.OriginColor = System.Drawing.Color.Gray; + colorScheme1.PreviewPartColor = System.Drawing.Color.FromArgb(255, 140, 0); + colorScheme1.RapidColor = System.Drawing.Color.DodgerBlue; + previewPlateView.ColorScheme = colorScheme1; + cutOffSettings1.CutDirection = CutDirection.AwayFromOrigin; + cutOffSettings1.MinSegmentLength = 0.05D; + cutOffSettings1.Overtravel = 0D; + cutOffSettings1.PartClearance = 0.02D; + previewPlateView.CutOffSettings = cutOffSettings1; + previewPlateView.DebugRemnantPriorities = null; + previewPlateView.DebugRemnants = null; + previewPlateView.Dock = System.Windows.Forms.DockStyle.Fill; + previewPlateView.DrawBounds = true; + previewPlateView.DrawCutDirection = false; + previewPlateView.DrawOffset = false; + previewPlateView.DrawOrigin = true; + previewPlateView.DrawPiercePoints = false; + previewPlateView.DrawRapid = false; + previewPlateView.FillParts = true; + previewPlateView.Location = new System.Drawing.Point(0, 0); + previewPlateView.Name = "previewPlateView"; + previewPlateView.OffsetIncrementDistance = 10D; + previewPlateView.OffsetTolerance = 0.001D; + plate1.CutOffs = observableList_11; + plate1.CuttingParameters = null; + plate1.GrainAngle = 0D; + plate1.Parts = observableList_12; + plate1.PartSpacing = 0D; + plate1.Quadrant = 1; + plate1.Quantity = 0; + previewPlateView.Plate = plate1; + previewPlateView.RotateIncrementAngle = 10D; + previewPlateView.SelectedCutOff = null; + previewPlateView.ShowBendLines = false; + previewPlateView.Size = new System.Drawing.Size(356, 341); + previewPlateView.Status = "Select"; + previewPlateView.TabIndex = 0; + // + // statsPanel + // + statsPanel.AutoScroll = true; + statsPanel.Controls.Add(buttonPanel); + statsPanel.Controls.Add(statusPanel); + statsPanel.Controls.Add(resultsPanel); + statsPanel.Controls.Add(phaseStepper); + statsPanel.Dock = System.Windows.Forms.DockStyle.Fill; + statsPanel.Location = new System.Drawing.Point(0, 0); + statsPanel.Name = "statsPanel"; + statsPanel.Size = new System.Drawing.Size(266, 341); + statsPanel.TabIndex = 0; + // // NestProgressForm - // + // AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - ClientSize = new System.Drawing.Size(750, 420); + ClientSize = new System.Drawing.Size(626, 341); Controls.Add(splitContainer); FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; MaximizeBox = false; @@ -408,12 +460,6 @@ namespace OpenNest.Forms ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Nesting Progress"; - splitContainer.Panel1.ResumeLayout(false); - splitContainer.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)splitContainer).EndInit(); - splitContainer.ResumeLayout(false); - statsPanel.ResumeLayout(false); - statsPanel.PerformLayout(); resultsPanel.ResumeLayout(false); resultsPanel.PerformLayout(); resultsTable.ResumeLayout(false); @@ -425,6 +471,12 @@ namespace OpenNest.Forms statusTable.ResumeLayout(false); statusTable.PerformLayout(); buttonPanel.ResumeLayout(false); + splitContainer.Panel1.ResumeLayout(false); + splitContainer.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer).EndInit(); + splitContainer.ResumeLayout(false); + statsPanel.ResumeLayout(false); + statsPanel.PerformLayout(); ResumeLayout(false); }