299 lines
No EOL
13 KiB
C#
299 lines
No EOL
13 KiB
C#
using System.Runtime.CompilerServices;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Forms;
|
|
|
|
namespace UA_AtlasEditor
|
|
{
|
|
public class TransparentTextBox : System.Windows.Forms.TextBox
|
|
{
|
|
public TransparentTextBox()
|
|
{
|
|
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
|
|
}
|
|
}
|
|
|
|
partial class ItemForm
|
|
{
|
|
/// <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(ItemForm));
|
|
this.buttonOK = new System.Windows.Forms.Button();
|
|
this.buttonCancel = new System.Windows.Forms.Button();
|
|
this.labelLeft = new System.Windows.Forms.Label();
|
|
this.textBoxLeft = new System.Windows.Forms.TextBox();
|
|
this.labelTop = new System.Windows.Forms.Label();
|
|
this.textBoxTop = new System.Windows.Forms.TextBox();
|
|
this.labelWeight = new System.Windows.Forms.Label();
|
|
this.textBoxWeight = new System.Windows.Forms.TextBox();
|
|
this.textBoxDepth = new System.Windows.Forms.TextBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.txtOffsetX = new System.Windows.Forms.TextBox();
|
|
this.txtOffsetY = new System.Windows.Forms.TextBox();
|
|
this.labelDepth = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.btnColorPicker = new System.Windows.Forms.Button();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.txtOffsetSinus = new System.Windows.Forms.TextBox();
|
|
this.txtColor = new UA_AtlasEditor.TransparentTextBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// buttonOK
|
|
//
|
|
this.buttonOK.Location = new System.Drawing.Point(15, 358);
|
|
this.buttonOK.Name = "buttonOK";
|
|
this.buttonOK.Size = new System.Drawing.Size(77, 23);
|
|
this.buttonOK.TabIndex = 2;
|
|
this.buttonOK.Text = "Validate change";
|
|
this.buttonOK.UseVisualStyleBackColor = true;
|
|
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
|
|
//
|
|
// buttonCancel
|
|
//
|
|
this.buttonCancel.Location = new System.Drawing.Point(96, 358);
|
|
this.buttonCancel.Name = "buttonCancel";
|
|
this.buttonCancel.Size = new System.Drawing.Size(77, 23);
|
|
this.buttonCancel.TabIndex = 2;
|
|
this.buttonCancel.Text = "Cancel";
|
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
|
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
|
//
|
|
// labelLeft
|
|
//
|
|
this.labelLeft.AutoSize = true;
|
|
this.labelLeft.Location = new System.Drawing.Point(12, 14);
|
|
this.labelLeft.Name = "labelLeft";
|
|
this.labelLeft.Size = new System.Drawing.Size(14, 13);
|
|
this.labelLeft.TabIndex = 0;
|
|
this.labelLeft.Text = "X";
|
|
//
|
|
// textBoxLeft
|
|
//
|
|
this.textBoxLeft.AcceptsReturn = true;
|
|
this.textBoxLeft.Location = new System.Drawing.Point(101, 11);
|
|
this.textBoxLeft.Name = "textBoxLeft";
|
|
this.textBoxLeft.Size = new System.Drawing.Size(167, 20);
|
|
this.textBoxLeft.TabIndex = 1;
|
|
//
|
|
// labelTop
|
|
//
|
|
this.labelTop.AutoSize = true;
|
|
this.labelTop.Location = new System.Drawing.Point(12, 40);
|
|
this.labelTop.Name = "labelTop";
|
|
this.labelTop.Size = new System.Drawing.Size(14, 13);
|
|
this.labelTop.TabIndex = 0;
|
|
this.labelTop.Text = "Y";
|
|
//
|
|
// textBoxTop
|
|
//
|
|
this.textBoxTop.AcceptsReturn = true;
|
|
this.textBoxTop.Location = new System.Drawing.Point(101, 37);
|
|
this.textBoxTop.Name = "textBoxTop";
|
|
this.textBoxTop.Size = new System.Drawing.Size(167, 20);
|
|
this.textBoxTop.TabIndex = 1;
|
|
//
|
|
// labelWeight
|
|
//
|
|
this.labelWeight.AutoSize = true;
|
|
this.labelWeight.Location = new System.Drawing.Point(12, 75);
|
|
this.labelWeight.Name = "labelWeight";
|
|
this.labelWeight.Size = new System.Drawing.Size(41, 13);
|
|
this.labelWeight.TabIndex = 0;
|
|
this.labelWeight.Text = "Weight";
|
|
//
|
|
// textBoxWeight
|
|
//
|
|
this.textBoxWeight.AcceptsReturn = true;
|
|
this.textBoxWeight.Location = new System.Drawing.Point(101, 72);
|
|
this.textBoxWeight.Name = "textBoxWeight";
|
|
this.textBoxWeight.Size = new System.Drawing.Size(167, 20);
|
|
this.textBoxWeight.TabIndex = 1;
|
|
//
|
|
// textBoxDepth
|
|
//
|
|
this.textBoxDepth.AcceptsReturn = true;
|
|
this.textBoxDepth.Location = new System.Drawing.Point(101, 98);
|
|
this.textBoxDepth.Name = "textBoxDepth";
|
|
this.textBoxDepth.Size = new System.Drawing.Size(167, 20);
|
|
this.textBoxDepth.TabIndex = 1;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(12, 222);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(31, 13);
|
|
this.label1.TabIndex = 3;
|
|
this.label1.Text = "Color";
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.AutoSize = true;
|
|
this.panel1.Location = new System.Drawing.Point(15, 258);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(282, 94);
|
|
this.panel1.TabIndex = 5;
|
|
//
|
|
// txtOffsetX
|
|
//
|
|
this.txtOffsetX.AcceptsReturn = true;
|
|
this.txtOffsetX.Location = new System.Drawing.Point(101, 124);
|
|
this.txtOffsetX.Name = "txtOffsetX";
|
|
this.txtOffsetX.Size = new System.Drawing.Size(167, 20);
|
|
this.txtOffsetX.TabIndex = 6;
|
|
//
|
|
// txtOffsetY
|
|
//
|
|
this.txtOffsetY.AcceptsReturn = true;
|
|
this.txtOffsetY.Location = new System.Drawing.Point(101, 152);
|
|
this.txtOffsetY.Name = "txtOffsetY";
|
|
this.txtOffsetY.Size = new System.Drawing.Size(167, 20);
|
|
this.txtOffsetY.TabIndex = 7;
|
|
//
|
|
// labelDepth
|
|
//
|
|
this.labelDepth.AutoSize = true;
|
|
this.labelDepth.Location = new System.Drawing.Point(12, 101);
|
|
this.labelDepth.Name = "labelDepth";
|
|
this.labelDepth.Size = new System.Drawing.Size(83, 13);
|
|
this.labelDepth.TabIndex = 0;
|
|
this.labelDepth.Text = "Depth (Offset Z)";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(12, 127);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(45, 13);
|
|
this.label2.TabIndex = 8;
|
|
this.label2.Text = "Offset X";
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(12, 155);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(45, 13);
|
|
this.label3.TabIndex = 9;
|
|
this.label3.Text = "Offset Y";
|
|
//
|
|
// btnColorPicker
|
|
//
|
|
this.btnColorPicker.Location = new System.Drawing.Point(238, 216);
|
|
this.btnColorPicker.Name = "btnColorPicker";
|
|
this.btnColorPicker.Size = new System.Drawing.Size(45, 35);
|
|
this.btnColorPicker.TabIndex = 11;
|
|
this.btnColorPicker.Text = "Select Color";
|
|
this.btnColorPicker.UseVisualStyleBackColor = true;
|
|
this.btnColorPicker.Click += new System.EventHandler(this.btnColorPicker_Click);
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(12, 185);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(64, 13);
|
|
this.label4.TabIndex = 12;
|
|
this.label4.Text = "Offset Sinus";
|
|
//
|
|
// txtOffsetSinus
|
|
//
|
|
this.txtOffsetSinus.Location = new System.Drawing.Point(101, 182);
|
|
this.txtOffsetSinus.Name = "txtOffsetSinus";
|
|
this.txtOffsetSinus.Size = new System.Drawing.Size(166, 20);
|
|
this.txtOffsetSinus.TabIndex = 13;
|
|
//
|
|
// txtColor
|
|
//
|
|
this.txtColor.Location = new System.Drawing.Point(101, 219);
|
|
this.txtColor.Name = "txtColor";
|
|
this.txtColor.Size = new System.Drawing.Size(131, 20);
|
|
this.txtColor.TabIndex = 10;
|
|
this.txtColor.TextChanged += new System.EventHandler(this.txtColor_TextChanged);
|
|
//
|
|
// ItemForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
|
this.ClientSize = new System.Drawing.Size(321, 399);
|
|
this.Controls.Add(this.txtOffsetSinus);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.btnColorPicker);
|
|
this.Controls.Add(this.txtColor);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.txtOffsetY);
|
|
this.Controls.Add(this.txtOffsetX);
|
|
this.Controls.Add(this.panel1);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.buttonCancel);
|
|
this.Controls.Add(this.buttonOK);
|
|
this.Controls.Add(this.textBoxDepth);
|
|
this.Controls.Add(this.textBoxWeight);
|
|
this.Controls.Add(this.labelDepth);
|
|
this.Controls.Add(this.labelWeight);
|
|
this.Controls.Add(this.textBoxTop);
|
|
this.Controls.Add(this.labelTop);
|
|
this.Controls.Add(this.textBoxLeft);
|
|
this.Controls.Add(this.labelLeft);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.KeyPreview = true;
|
|
this.Name = "ItemForm";
|
|
this.Text = "Point parameters";
|
|
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ItemFor_KeyDown);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button buttonOK;
|
|
private System.Windows.Forms.Button buttonCancel;
|
|
private System.Windows.Forms.Label labelLeft;
|
|
private System.Windows.Forms.TextBox textBoxLeft;
|
|
private System.Windows.Forms.Label labelTop;
|
|
private System.Windows.Forms.TextBox textBoxTop;
|
|
private System.Windows.Forms.Label labelWeight;
|
|
private System.Windows.Forms.TextBox textBoxWeight;
|
|
private System.Windows.Forms.TextBox textBoxDepth;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.TextBox txtOffsetX;
|
|
private System.Windows.Forms.TextBox txtOffsetY;
|
|
private System.Windows.Forms.Label labelDepth;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Button btnColorPicker;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.TextBox txtOffsetSinus;
|
|
private TransparentTextBox txtColor;
|
|
}
|
|
} |