From 0191a758903099bdd39dddb2ef456333eee04fe3 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 27 Apr 2012 16:24:53 +0000 Subject: Added basic logic of UI. Still to add key overlay to image control. --- .../EmuKeyboardDesigner/ImageControl.Designer.cs | 181 +++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 Native/EmuKeyboardDesigner/ImageControl.Designer.cs (limited to 'Native/EmuKeyboardDesigner/ImageControl.Designer.cs') diff --git a/Native/EmuKeyboardDesigner/ImageControl.Designer.cs b/Native/EmuKeyboardDesigner/ImageControl.Designer.cs new file mode 100644 index 0000000..b181eb3 --- /dev/null +++ b/Native/EmuKeyboardDesigner/ImageControl.Designer.cs @@ -0,0 +1,181 @@ +namespace EmuKeyboardDesigner +{ + partial class ImageControl + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.xUpDown = new System.Windows.Forms.NumericUpDown(); + this.yUpDown = new System.Windows.Forms.NumericUpDown(); + this.heightUpDown = new System.Windows.Forms.NumericUpDown(); + this.widthUpDown = new System.Windows.Forms.NumericUpDown(); + this.label2 = new System.Windows.Forms.Label(); + this.imageBox = new System.Windows.Forms.PictureBox(); + this.loadButton = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.xUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.yUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.heightUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.widthUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.imageBox)).BeginInit(); + this.SuspendLayout(); + // + // label1 + // + this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label1.Location = new System.Drawing.Point(13, 224); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(35, 13); + this.label1.TabIndex = 0; + this.label1.Text = "X,Y:"; + // + // xUpDown + // + this.xUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.xUpDown.Location = new System.Drawing.Point(44, 224); + this.xUpDown.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.xUpDown.Name = "xUpDown"; + this.xUpDown.Size = new System.Drawing.Size(50, 20); + this.xUpDown.TabIndex = 1; + this.xUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.xUpDown.ValueChanged += new System.EventHandler(this.OnXChanged); + // + // yUpDown + // + this.yUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.yUpDown.Location = new System.Drawing.Point(100, 224); + this.yUpDown.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.yUpDown.Name = "yUpDown"; + this.yUpDown.Size = new System.Drawing.Size(50, 20); + this.yUpDown.TabIndex = 2; + this.yUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.yUpDown.ValueChanged += new System.EventHandler(this.OnYChanged); + // + // heightUpDown + // + this.heightUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.heightUpDown.Location = new System.Drawing.Point(243, 224); + this.heightUpDown.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.heightUpDown.Name = "heightUpDown"; + this.heightUpDown.Size = new System.Drawing.Size(50, 20); + this.heightUpDown.TabIndex = 5; + this.heightUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.heightUpDown.ValueChanged += new System.EventHandler(this.OnHeightChanged); + // + // widthUpDown + // + this.widthUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.widthUpDown.Location = new System.Drawing.Point(187, 224); + this.widthUpDown.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.widthUpDown.Name = "widthUpDown"; + this.widthUpDown.Size = new System.Drawing.Size(50, 20); + this.widthUpDown.TabIndex = 4; + this.widthUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.widthUpDown.ValueChanged += new System.EventHandler(this.OnWidthChanged); + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label2.Location = new System.Drawing.Point(156, 224); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(35, 13); + this.label2.TabIndex = 3; + this.label2.Text = "W, H:"; + // + // imageBox + // + this.imageBox.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.imageBox.Location = new System.Drawing.Point(0, 0); + this.imageBox.Name = "imageBox"; + this.imageBox.Size = new System.Drawing.Size(416, 212); + this.imageBox.TabIndex = 6; + this.imageBox.TabStop = false; + // + // loadButton + // + this.loadButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.loadButton.Location = new System.Drawing.Point(303, 222); + this.loadButton.Name = "loadButton"; + this.loadButton.Size = new System.Drawing.Size(111, 22); + this.loadButton.TabIndex = 7; + this.loadButton.Text = "Load Image"; + this.loadButton.UseVisualStyleBackColor = true; + this.loadButton.Click += new System.EventHandler(this.OnLoad); + // + // ImageControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.loadButton); + this.Controls.Add(this.imageBox); + this.Controls.Add(this.heightUpDown); + this.Controls.Add(this.widthUpDown); + this.Controls.Add(this.label2); + this.Controls.Add(this.yUpDown); + this.Controls.Add(this.xUpDown); + this.Controls.Add(this.label1); + this.MinimumSize = new System.Drawing.Size(417, 247); + this.Name = "ImageControl"; + this.Size = new System.Drawing.Size(417, 247); + ((System.ComponentModel.ISupportInitialize)(this.xUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.yUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.heightUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.widthUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.imageBox)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.NumericUpDown xUpDown; + private System.Windows.Forms.NumericUpDown yUpDown; + private System.Windows.Forms.NumericUpDown heightUpDown; + private System.Windows.Forms.NumericUpDown widthUpDown; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.PictureBox imageBox; + private System.Windows.Forms.Button loadButton; + } +} -- cgit v1.2.3