446 lines
21 KiB
C#

// Bellows - bellows fold pattern printer, based on US Patent No 6,054,194,
// Mathematically optimized family of ultra low distortion bellow fold patterns, Nathan R. Kane.
// Copyright (C) 2008, Frank Tkalcevic, www.franksworkshop.com
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace Bellows
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.cboInversions = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.cboShape = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.txtWidth = new System.Windows.Forms.TextBox();
this.txtHeight = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtLength = new System.Windows.Forms.TextBox();
this.chkAlternateFolds = new System.Windows.Forms.CheckBox();
this.label6 = new System.Windows.Forms.Label();
this.txtFoldWidth = new System.Windows.Forms.TextBox();
this.txtMountFolds = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.btnPrint = new System.Windows.Forms.Button();
this.btnPrintSetup = new System.Windows.Forms.Button();
this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.btnPageSetup = new System.Windows.Forms.Button();
this.cboConfig = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.btnNewConfig = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.lblPageWidth = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.lblPageHeight = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.btnGCode = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// cboInversions
//
this.cboInversions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboInversions.FormattingEnabled = true;
this.cboInversions.Location = new System.Drawing.Point(96, 44);
this.cboInversions.Name = "cboInversions";
this.cboInversions.Size = new System.Drawing.Size(55, 21);
this.cboInversions.TabIndex = 1;
this.cboInversions.SelectedIndexChanged += new System.EventHandler(this.cboInversions_SelectedIndexChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 47);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(55, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Inversions";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 20);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(38, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Shape";
//
// cboShape
//
this.cboShape.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboShape.FormattingEnabled = true;
this.cboShape.Location = new System.Drawing.Point(96, 17);
this.cboShape.Name = "cboShape";
this.cboShape.Size = new System.Drawing.Size(121, 21);
this.cboShape.TabIndex = 0;
this.cboShape.SelectedIndexChanged += new System.EventHandler(this.cboShape_SelectedIndexChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(263, 17);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(66, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Inside Width";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(263, 43);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(69, 13);
this.label4.TabIndex = 6;
this.label4.Text = "Inside Height";
//
// txtWidth
//
this.txtWidth.Location = new System.Drawing.Point(355, 14);
this.txtWidth.Name = "txtWidth";
this.txtWidth.Size = new System.Drawing.Size(100, 20);
this.txtWidth.TabIndex = 4;
this.txtWidth.Leave += new System.EventHandler(this.txtWidth_Leave);
//
// txtHeight
//
this.txtHeight.Location = new System.Drawing.Point(355, 40);
this.txtHeight.Name = "txtHeight";
this.txtHeight.Size = new System.Drawing.Size(100, 20);
this.txtHeight.TabIndex = 5;
this.txtHeight.Leave += new System.EventHandler(this.txtHeight_Leave);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(263, 69);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(89, 13);
this.label5.TabIndex = 9;
this.label5.Text = "Protected Length";
//
// txtLength
//
this.txtLength.Location = new System.Drawing.Point(355, 66);
this.txtLength.Name = "txtLength";
this.txtLength.Size = new System.Drawing.Size(100, 20);
this.txtLength.TabIndex = 6;
this.txtLength.Leave += new System.EventHandler(this.txtLength_Leave);
//
// chkAlternateFolds
//
this.chkAlternateFolds.AutoSize = true;
this.chkAlternateFolds.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.chkAlternateFolds.Location = new System.Drawing.Point(15, 94);
this.chkAlternateFolds.Name = "chkAlternateFolds";
this.chkAlternateFolds.Size = new System.Drawing.Size(96, 17);
this.chkAlternateFolds.TabIndex = 3;
this.chkAlternateFolds.Text = "Alternate Folds";
this.chkAlternateFolds.UseVisualStyleBackColor = true;
this.chkAlternateFolds.CheckedChanged += new System.EventHandler(this.chkAlternateFolds_CheckedChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(263, 95);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(58, 13);
this.label6.TabIndex = 12;
this.label6.Text = "Fold Width";
//
// txtFoldWidth
//
this.txtFoldWidth.Location = new System.Drawing.Point(355, 92);
this.txtFoldWidth.Name = "txtFoldWidth";
this.txtFoldWidth.Size = new System.Drawing.Size(100, 20);
this.txtFoldWidth.TabIndex = 7;
this.txtFoldWidth.Leave += new System.EventHandler(this.txtFoldWidth_Leave);
//
// txtMountFolds
//
this.txtMountFolds.Location = new System.Drawing.Point(96, 69);
this.txtMountFolds.Name = "txtMountFolds";
this.txtMountFolds.Size = new System.Drawing.Size(55, 20);
this.txtMountFolds.TabIndex = 2;
this.txtMountFolds.Leave += new System.EventHandler(this.txtMountFolds_Leave);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(12, 72);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(79, 13);
this.label7.TabIndex = 14;
this.label7.Text = "Mounting Folds";
//
// btnPrint
//
this.btnPrint.Location = new System.Drawing.Point(96, 120);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(94, 23);
this.btnPrint.TabIndex = 9;
this.btnPrint.Text = "Print Preview";
this.btnPrint.UseVisualStyleBackColor = true;
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// btnPrintSetup
//
this.btnPrintSetup.Location = new System.Drawing.Point(196, 120);
this.btnPrintSetup.Name = "btnPrintSetup";
this.btnPrintSetup.Size = new System.Drawing.Size(99, 23);
this.btnPrintSetup.TabIndex = 10;
this.btnPrintSetup.Text = "Print...";
this.btnPrintSetup.UseVisualStyleBackColor = true;
this.btnPrintSetup.Click += new System.EventHandler(this.btnPrintSetup_Click);
//
// printDialog1
//
this.printDialog1.UseEXDialog = true;
//
// printDocument1
//
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint);
//
// printPreviewDialog1
//
this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
this.printPreviewDialog1.Enabled = true;
this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false;
//
// btnPageSetup
//
this.btnPageSetup.Location = new System.Drawing.Point(15, 120);
this.btnPageSetup.Name = "btnPageSetup";
this.btnPageSetup.Size = new System.Drawing.Size(75, 23);
this.btnPageSetup.TabIndex = 8;
this.btnPageSetup.Text = "Page Setup";
this.btnPageSetup.UseVisualStyleBackColor = true;
this.btnPageSetup.Click += new System.EventHandler(this.btnPageSetup_Click);
//
// cboConfig
//
this.cboConfig.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboConfig.FormattingEnabled = true;
this.cboConfig.Location = new System.Drawing.Point(74, 14);
this.cboConfig.Name = "cboConfig";
this.cboConfig.Size = new System.Drawing.Size(121, 21);
this.cboConfig.TabIndex = 0;
this.cboConfig.SelectedIndexChanged += new System.EventHandler(this.cboConfig_SelectedIndexChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(15, 17);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(37, 13);
this.label8.TabIndex = 19;
this.label8.Text = "Config";
//
// btnNewConfig
//
this.btnNewConfig.Location = new System.Drawing.Point(213, 12);
this.btnNewConfig.Name = "btnNewConfig";
this.btnNewConfig.Size = new System.Drawing.Size(75, 23);
this.btnNewConfig.TabIndex = 1;
this.btnNewConfig.Text = "New";
this.btnNewConfig.UseVisualStyleBackColor = true;
this.btnNewConfig.Click += new System.EventHandler(this.btnNewConfig_Click);
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.btnGCode);
this.groupBox1.Controls.Add(this.panel1);
this.groupBox1.Controls.Add(this.cboShape);
this.groupBox1.Controls.Add(this.cboInversions);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.btnPageSetup);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.btnPrintSetup);
this.groupBox1.Controls.Add(this.lblPageWidth);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.lblPageHeight);
this.groupBox1.Controls.Add(this.btnPrint);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.txtMountFolds);
this.groupBox1.Controls.Add(this.txtWidth);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.txtHeight);
this.groupBox1.Controls.Add(this.txtFoldWidth);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.txtLength);
this.groupBox1.Controls.Add(this.chkAlternateFolds);
this.groupBox1.Location = new System.Drawing.Point(12, 41);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(674, 435);
this.groupBox1.TabIndex = 22;
this.groupBox1.TabStop = false;
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Location = new System.Drawing.Point(6, 150);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(662, 279);
this.panel1.TabIndex = 19;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// lblPageWidth
//
this.lblPageWidth.AutoSize = true;
this.lblPageWidth.Location = new System.Drawing.Point(559, 17);
this.lblPageWidth.Name = "lblPageWidth";
this.lblPageWidth.Size = new System.Drawing.Size(63, 13);
this.lblPageWidth.TabIndex = 5;
this.lblPageWidth.Text = "Page Width";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(490, 17);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(63, 13);
this.label10.TabIndex = 5;
this.label10.Text = "Page Width";
//
// lblPageHeight
//
this.lblPageHeight.AutoSize = true;
this.lblPageHeight.Location = new System.Drawing.Point(559, 43);
this.lblPageHeight.Name = "lblPageHeight";
this.lblPageHeight.Size = new System.Drawing.Size(66, 13);
this.lblPageHeight.TabIndex = 6;
this.lblPageHeight.Text = "Page Height";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(490, 43);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(66, 13);
this.label9.TabIndex = 6;
this.label9.Text = "Page Height";
//
// btnGCode
//
this.btnGCode.Location = new System.Drawing.Point(302, 120);
this.btnGCode.Name = "btnGCode";
this.btnGCode.Size = new System.Drawing.Size(99, 23);
this.btnGCode.TabIndex = 20;
this.btnGCode.Text = "Generate G Code";
this.btnGCode.UseVisualStyleBackColor = true;
this.btnGCode.Click += new System.EventHandler(this.btnGCode_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(698, 488);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnNewConfig);
this.Controls.Add(this.cboConfig);
this.Controls.Add(this.label8);
this.Name = "Form1";
this.Text = "Bellows Calculator";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ComboBox cboInversions;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox cboShape;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtWidth;
private System.Windows.Forms.TextBox txtHeight;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtLength;
private System.Windows.Forms.CheckBox chkAlternateFolds;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox txtFoldWidth;
private System.Windows.Forms.TextBox txtMountFolds;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.Button btnPrintSetup;
private System.Windows.Forms.PageSetupDialog pageSetupDialog1;
private System.Windows.Forms.PrintDialog printDialog1;
private System.Drawing.Printing.PrintDocument printDocument1;
private System.Windows.Forms.PrintPreviewDialog printPreviewDialog1;
private System.Windows.Forms.Button btnPageSetup;
private System.Windows.Forms.ComboBox cboConfig;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button btnNewConfig;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lblPageWidth;
private System.Windows.Forms.Label lblPageHeight;
private System.Windows.Forms.Button btnGCode;
}
}