Files
OpenNest/OpenNest/Forms/EditLibraryDrawingForm.Designer.cs
T
ajandClaude Opus 5.5 5a374aa3f4 feat(library): content-addressed packages and editable nesting settings
Schema v5 stores each distinct drawing package once in drawing_packages,
keyed by SHA-256; revisions point at it, so details, settings, archive and
restore revisions add no blob. The v4 drawing tables are replaced outright
(no production library existed); nest tables are untouched.

Nesting settings (cut first, priority, rotation constraints, color) become
structured record fields (DrawingLibraryRecord.Settings), returned on every
read, filterable by cutFirst, editable through the metadata endpoint and
applied by LibraryDrawingInsert. Canonical packages now leave every
record-owned field at its default, so renaming or changing settings never
changes the package hash. Saving a nest drawing to the library carries its
settings into the record.

The desktop library browser gains a Cut first column and an Edit Settings
dialog that saves notes and settings as a new revision with the same package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 22:47:18 -04:00

300 lines
14 KiB
C#

namespace OpenNest.Forms
{
partial class EditLibraryDrawingForm
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
layoutTable = new System.Windows.Forms.TableLayoutPanel();
cutFirstCheckBox = new System.Windows.Forms.CheckBox();
priorityLabel = new System.Windows.Forms.Label();
priorityBox = new System.Windows.Forms.NumericUpDown();
stepLabel = new System.Windows.Forms.Label();
stepBox = new System.Windows.Forms.NumericUpDown();
startLabel = new System.Windows.Forms.Label();
startBox = new System.Windows.Forms.NumericUpDown();
endLabel = new System.Windows.Forms.Label();
endBox = new System.Windows.Forms.NumericUpDown();
allow180CheckBox = new System.Windows.Forms.CheckBox();
colorLabel = new System.Windows.Forms.Label();
colorButton = new System.Windows.Forms.Button();
notesLabel = new System.Windows.Forms.Label();
notesBox = new System.Windows.Forms.TextBox();
statusLabel = new System.Windows.Forms.Label();
buttonPanel = new System.Windows.Forms.FlowLayoutPanel();
cancelButton = new System.Windows.Forms.Button();
saveButton = new System.Windows.Forms.Button();
layoutTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)priorityBox).BeginInit();
((System.ComponentModel.ISupportInitialize)stepBox).BeginInit();
((System.ComponentModel.ISupportInitialize)startBox).BeginInit();
((System.ComponentModel.ISupportInitialize)endBox).BeginInit();
buttonPanel.SuspendLayout();
SuspendLayout();
//
// layoutTable
//
layoutTable.ColumnCount = 2;
layoutTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
layoutTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
layoutTable.Controls.Add(cutFirstCheckBox, 1, 0);
layoutTable.Controls.Add(priorityLabel, 0, 1);
layoutTable.Controls.Add(priorityBox, 1, 1);
layoutTable.Controls.Add(stepLabel, 0, 2);
layoutTable.Controls.Add(stepBox, 1, 2);
layoutTable.Controls.Add(startLabel, 0, 3);
layoutTable.Controls.Add(startBox, 1, 3);
layoutTable.Controls.Add(endLabel, 0, 4);
layoutTable.Controls.Add(endBox, 1, 4);
layoutTable.Controls.Add(allow180CheckBox, 1, 5);
layoutTable.Controls.Add(colorLabel, 0, 6);
layoutTable.Controls.Add(colorButton, 1, 6);
layoutTable.Controls.Add(notesLabel, 0, 7);
layoutTable.Controls.Add(notesBox, 1, 7);
layoutTable.Controls.Add(statusLabel, 0, 8);
layoutTable.Controls.Add(buttonPanel, 0, 9);
layoutTable.SetColumnSpan(statusLabel, 2);
layoutTable.SetColumnSpan(buttonPanel, 2);
layoutTable.Dock = System.Windows.Forms.DockStyle.Fill;
layoutTable.Location = new System.Drawing.Point(0, 0);
layoutTable.Name = "layoutTable";
layoutTable.Padding = new System.Windows.Forms.Padding(8);
layoutTable.RowCount = 10;
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
layoutTable.Size = new System.Drawing.Size(464, 441);
layoutTable.TabIndex = 0;
//
// cutFirstCheckBox
//
cutFirstCheckBox.AutoSize = true;
cutFirstCheckBox.Name = "cutFirstCheckBox";
cutFirstCheckBox.TabIndex = 0;
cutFirstCheckBox.Text = "Cut first (sequence these parts before others)";
cutFirstCheckBox.UseVisualStyleBackColor = true;
cutFirstCheckBox.CheckedChanged += Value_Changed;
//
// priorityLabel
//
priorityLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
priorityLabel.AutoSize = true;
priorityLabel.Name = "priorityLabel";
priorityLabel.Text = "Priority:";
//
// priorityBox
//
priorityBox.Anchor = System.Windows.Forms.AnchorStyles.Left;
priorityBox.Maximum = int.MaxValue;
priorityBox.Minimum = int.MinValue;
priorityBox.Name = "priorityBox";
priorityBox.Size = new System.Drawing.Size(100, 25);
priorityBox.TabIndex = 1;
priorityBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
priorityBox.ValueChanged += Value_Changed;
//
// stepLabel
//
stepLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
stepLabel.AutoSize = true;
stepLabel.Name = "stepLabel";
stepLabel.Text = "Rotation step (°):";
//
// stepBox
//
stepBox.Anchor = System.Windows.Forms.AnchorStyles.Left;
stepBox.DecimalPlaces = 2;
stepBox.Maximum = new decimal(new int[] { 360, 0, 0, 0 });
stepBox.Name = "stepBox";
stepBox.Size = new System.Drawing.Size(100, 25);
stepBox.TabIndex = 2;
stepBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
stepBox.ValueChanged += Value_Changed;
//
// startLabel
//
startLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
startLabel.AutoSize = true;
startLabel.Name = "startLabel";
startLabel.Text = "Rotation start (°):";
//
// startBox
//
startBox.Anchor = System.Windows.Forms.AnchorStyles.Left;
startBox.DecimalPlaces = 2;
startBox.Maximum = new decimal(new int[] { 360, 0, 0, 0 });
startBox.Name = "startBox";
startBox.Size = new System.Drawing.Size(100, 25);
startBox.TabIndex = 3;
startBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
startBox.ValueChanged += Value_Changed;
//
// endLabel
//
endLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
endLabel.AutoSize = true;
endLabel.Name = "endLabel";
endLabel.Text = "Rotation end (°):";
//
// endBox
//
endBox.Anchor = System.Windows.Forms.AnchorStyles.Left;
endBox.DecimalPlaces = 2;
endBox.Maximum = new decimal(new int[] { 360, 0, 0, 0 });
endBox.Name = "endBox";
endBox.Size = new System.Drawing.Size(100, 25);
endBox.TabIndex = 4;
endBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
endBox.ValueChanged += Value_Changed;
//
// allow180CheckBox
//
allow180CheckBox.AutoSize = true;
allow180CheckBox.Name = "allow180CheckBox";
allow180CheckBox.TabIndex = 5;
allow180CheckBox.Text = "Allow 180° equivalent";
allow180CheckBox.UseVisualStyleBackColor = true;
allow180CheckBox.CheckedChanged += Value_Changed;
//
// colorLabel
//
colorLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
colorLabel.AutoSize = true;
colorLabel.Name = "colorLabel";
colorLabel.Text = "Color:";
//
// colorButton
//
colorButton.Anchor = System.Windows.Forms.AnchorStyles.Left;
colorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
colorButton.Name = "colorButton";
colorButton.Size = new System.Drawing.Size(60, 25);
colorButton.TabIndex = 6;
colorButton.Click += ColorButton_Click;
//
// notesLabel
//
notesLabel.AutoSize = true;
notesLabel.Margin = new System.Windows.Forms.Padding(3, 6, 3, 0);
notesLabel.Name = "notesLabel";
notesLabel.Text = "Notes:";
//
// notesBox
//
notesBox.AcceptsReturn = true;
notesBox.Dock = System.Windows.Forms.DockStyle.Fill;
notesBox.MaxLength = 4000;
notesBox.Multiline = true;
notesBox.Name = "notesBox";
notesBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
notesBox.TabIndex = 7;
notesBox.TextChanged += Value_Changed;
//
// statusLabel
//
statusLabel.AutoEllipsis = true;
statusLabel.Dock = System.Windows.Forms.DockStyle.Fill;
statusLabel.ForeColor = System.Drawing.Color.Firebrick;
statusLabel.Name = "statusLabel";
statusLabel.Size = new System.Drawing.Size(100, 20);
//
// buttonPanel
//
buttonPanel.AutoSize = true;
buttonPanel.Controls.Add(cancelButton);
buttonPanel.Controls.Add(saveButton);
buttonPanel.Dock = System.Windows.Forms.DockStyle.Fill;
buttonPanel.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
buttonPanel.Margin = new System.Windows.Forms.Padding(0, 6, 0, 0);
buttonPanel.Name = "buttonPanel";
buttonPanel.TabIndex = 8;
//
// cancelButton
//
cancelButton.AutoSize = true;
cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
cancelButton.Name = "cancelButton";
cancelButton.TabIndex = 1;
cancelButton.Text = "Cancel";
cancelButton.UseVisualStyleBackColor = true;
//
// saveButton
//
saveButton.AutoSize = true;
saveButton.Enabled = false;
saveButton.Name = "saveButton";
saveButton.TabIndex = 0;
saveButton.Text = "Save to Library";
saveButton.UseVisualStyleBackColor = true;
saveButton.Click += SaveButton_Click;
//
// EditLibraryDrawingForm
//
AcceptButton = saveButton;
AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
CancelButton = cancelButton;
ClientSize = new System.Drawing.Size(464, 441);
Controls.Add(layoutTable);
Font = new System.Drawing.Font("Segoe UI", 9.75F);
MaximizeBox = false;
MinimizeBox = false;
MinimumSize = new System.Drawing.Size(420, 400);
Name = "EditLibraryDrawingForm";
ShowIcon = false;
ShowInTaskbar = false;
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
Text = "Edit Library Drawing";
layoutTable.ResumeLayout(false);
layoutTable.PerformLayout();
((System.ComponentModel.ISupportInitialize)priorityBox).EndInit();
((System.ComponentModel.ISupportInitialize)stepBox).EndInit();
((System.ComponentModel.ISupportInitialize)startBox).EndInit();
((System.ComponentModel.ISupportInitialize)endBox).EndInit();
buttonPanel.ResumeLayout(false);
buttonPanel.PerformLayout();
ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel layoutTable;
private System.Windows.Forms.CheckBox cutFirstCheckBox;
private System.Windows.Forms.Label priorityLabel;
private System.Windows.Forms.NumericUpDown priorityBox;
private System.Windows.Forms.Label stepLabel;
private System.Windows.Forms.NumericUpDown stepBox;
private System.Windows.Forms.Label startLabel;
private System.Windows.Forms.NumericUpDown startBox;
private System.Windows.Forms.Label endLabel;
private System.Windows.Forms.NumericUpDown endBox;
private System.Windows.Forms.CheckBox allow180CheckBox;
private System.Windows.Forms.Label colorLabel;
private System.Windows.Forms.Button colorButton;
private System.Windows.Forms.Label notesLabel;
private System.Windows.Forms.TextBox notesBox;
private System.Windows.Forms.Label statusLabel;
private System.Windows.Forms.FlowLayoutPanel buttonPanel;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button saveButton;
}
}