--- trunk/RomCheater/Main.Designer.cs 2012/05/09 06:28:44 16 +++ trunk/RomCheater/Main.Designer.cs 2012/05/11 11:27:43 138 @@ -29,22 +29,19 @@ private void InitializeComponent() { this.main_split = new System.Windows.Forms.SplitContainer(); + this.btnExapandCollapseLogWindow = new System.Windows.Forms.Button(); + this.logwriter = new RomCheater.Logging.LogWriter(); this.mainmnu = new System.Windows.Forms.MenuStrip(); this.mnuFile = new System.Windows.Forms.ToolStripMenuItem(); + this.mnuItemOpenProcess = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.mnuItemExit = new System.Windows.Forms.ToolStripMenuItem(); - this.txtLog = new System.Windows.Forms.RichTextBox(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.MainTab = new System.Windows.Forms.TabPage(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.Status_control_flow = new System.Windows.Forms.FlowLayoutPanel(); - this.btnCopyLogToClipboard = new System.Windows.Forms.Button(); + this.mnuTools = new System.Windows.Forms.ToolStripMenuItem(); + this.mnuItemConfig = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.main_split)).BeginInit(); - this.main_split.Panel1.SuspendLayout(); this.main_split.Panel2.SuspendLayout(); this.main_split.SuspendLayout(); this.mainmnu.SuspendLayout(); - this.tabControl1.SuspendLayout(); - this.Status_control_flow.SuspendLayout(); this.SuspendLayout(); // // main_split @@ -55,22 +52,45 @@ this.main_split.Name = "main_split"; this.main_split.Orientation = System.Windows.Forms.Orientation.Horizontal; // - // main_split.Panel1 - // - this.main_split.Panel1.Controls.Add(this.tabControl1); - // // main_split.Panel2 // - this.main_split.Panel2.Controls.Add(this.txtLog); - this.main_split.Panel2.Controls.Add(this.Status_control_flow); + this.main_split.Panel2.Controls.Add(this.btnExapandCollapseLogWindow); + this.main_split.Panel2.Controls.Add(this.logwriter); this.main_split.Size = new System.Drawing.Size(1229, 688); this.main_split.SplitterDistance = 534; this.main_split.TabIndex = 0; // + // btnExapandCollapseLogWindow + // + this.btnExapandCollapseLogWindow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExapandCollapseLogWindow.AutoSize = true; + this.btnExapandCollapseLogWindow.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.btnExapandCollapseLogWindow.Font = new System.Drawing.Font("Arial Black", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnExapandCollapseLogWindow.Location = new System.Drawing.Point(1143, 3); + this.btnExapandCollapseLogWindow.Name = "btnExapandCollapseLogWindow"; + this.btnExapandCollapseLogWindow.Size = new System.Drawing.Size(72, 28); + this.btnExapandCollapseLogWindow.TabIndex = 3; + this.btnExapandCollapseLogWindow.Text = "expand"; + this.btnExapandCollapseLogWindow.UseVisualStyleBackColor = true; + this.btnExapandCollapseLogWindow.Click += new System.EventHandler(this.btnExapandCollapseLogWindow_Click); + // + // logwriter + // + this.logwriter.AutoScroll = true; + this.logwriter.Dock = System.Windows.Forms.DockStyle.Fill; + this.logwriter.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.logwriter.Location = new System.Drawing.Point(0, 0); + this.logwriter.Margin = new System.Windows.Forms.Padding(0); + this.logwriter.Name = "logwriter"; + this.logwriter.RedirectConsoleOutput = true; + this.logwriter.Size = new System.Drawing.Size(1225, 146); + this.logwriter.TabIndex = 2; + // // mainmnu // this.mainmnu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.mnuFile}); + this.mnuFile, + this.mnuTools}); this.mainmnu.Location = new System.Drawing.Point(0, 0); this.mainmnu.Name = "mainmnu"; this.mainmnu.Size = new System.Drawing.Size(1229, 24); @@ -80,80 +100,46 @@ // mnuFile // this.mnuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.mnuItemOpenProcess, + this.toolStripSeparator1, this.mnuItemExit}); this.mnuFile.Name = "mnuFile"; this.mnuFile.Size = new System.Drawing.Size(37, 20); this.mnuFile.Text = "&File"; // + // mnuItemOpenProcess + // + this.mnuItemOpenProcess.Name = "mnuItemOpenProcess"; + this.mnuItemOpenProcess.Size = new System.Drawing.Size(146, 22); + this.mnuItemOpenProcess.Text = "&Open process"; + this.mnuItemOpenProcess.Click += new System.EventHandler(this.mnuItemOpenProcess_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(143, 6); + // // mnuItemExit // this.mnuItemExit.Name = "mnuItemExit"; - this.mnuItemExit.Size = new System.Drawing.Size(152, 22); + this.mnuItemExit.Size = new System.Drawing.Size(146, 22); this.mnuItemExit.Text = "&Exit"; this.mnuItemExit.Click += new System.EventHandler(this.mnuItemExit_Click); // - // txtLog + // mnuTools // - this.txtLog.BackColor = System.Drawing.SystemColors.ControlDark; - this.txtLog.Dock = System.Windows.Forms.DockStyle.Fill; - this.txtLog.Location = new System.Drawing.Point(0, 0); - this.txtLog.Name = "txtLog"; - this.txtLog.ReadOnly = true; - this.txtLog.Size = new System.Drawing.Size(1225, 118); - this.txtLog.TabIndex = 0; - this.txtLog.Text = ""; - // - // tabControl1 - // - this.tabControl1.Controls.Add(this.MainTab); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1225, 530); - this.tabControl1.TabIndex = 0; - // - // MainTab - // - this.MainTab.Location = new System.Drawing.Point(4, 22); - this.MainTab.Name = "MainTab"; - this.MainTab.Padding = new System.Windows.Forms.Padding(3); - this.MainTab.Size = new System.Drawing.Size(1217, 504); - this.MainTab.TabIndex = 0; - this.MainTab.Text = "tabPage1"; - this.MainTab.UseVisualStyleBackColor = true; - // - // tabPage2 - // - this.tabPage2.Location = new System.Drawing.Point(4, 22); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(192, 74); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "tabPage2"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // Status_control_flow - // - this.Status_control_flow.Controls.Add(this.btnCopyLogToClipboard); - this.Status_control_flow.Dock = System.Windows.Forms.DockStyle.Bottom; - this.Status_control_flow.Location = new System.Drawing.Point(0, 118); - this.Status_control_flow.Name = "Status_control_flow"; - this.Status_control_flow.Size = new System.Drawing.Size(1225, 28); - this.Status_control_flow.TabIndex = 1; - // - // btnCopyLogToClipboard - // - this.btnCopyLogToClipboard.AutoSize = true; - this.btnCopyLogToClipboard.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.btnCopyLogToClipboard.Location = new System.Drawing.Point(3, 3); - this.btnCopyLogToClipboard.Name = "btnCopyLogToClipboard"; - this.btnCopyLogToClipboard.Size = new System.Drawing.Size(125, 23); - this.btnCopyLogToClipboard.TabIndex = 0; - this.btnCopyLogToClipboard.Text = "Copy Log To Clipboard"; - this.btnCopyLogToClipboard.UseVisualStyleBackColor = true; - this.btnCopyLogToClipboard.Click += new System.EventHandler(this.btnCopyLogToClipboard_Click); + this.mnuTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.mnuItemConfig}); + this.mnuTools.Name = "mnuTools"; + this.mnuTools.Size = new System.Drawing.Size(48, 20); + this.mnuTools.Text = "&Tools"; + // + // mnuItemConfig + // + this.mnuItemConfig.Name = "mnuItemConfig"; + this.mnuItemConfig.Size = new System.Drawing.Size(110, 22); + this.mnuItemConfig.Text = "&Config"; + this.mnuItemConfig.Click += new System.EventHandler(this.mnuItemConfig_Click); // // Main // @@ -165,15 +151,13 @@ this.Controls.Add(this.mainmnu); this.Name = "Main"; this.Text = "Form1"; - this.main_split.Panel1.ResumeLayout(false); + this.Load += new System.EventHandler(this.Main_Load); this.main_split.Panel2.ResumeLayout(false); + this.main_split.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.main_split)).EndInit(); this.main_split.ResumeLayout(false); this.mainmnu.ResumeLayout(false); this.mainmnu.PerformLayout(); - this.tabControl1.ResumeLayout(false); - this.Status_control_flow.ResumeLayout(false); - this.Status_control_flow.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -185,12 +169,12 @@ private System.Windows.Forms.MenuStrip mainmnu; private System.Windows.Forms.ToolStripMenuItem mnuFile; private System.Windows.Forms.ToolStripMenuItem mnuItemExit; - private System.Windows.Forms.RichTextBox txtLog; - private System.Windows.Forms.TabControl tabControl1; - private System.Windows.Forms.TabPage MainTab; - private System.Windows.Forms.TabPage tabPage2; - private System.Windows.Forms.FlowLayoutPanel Status_control_flow; - private System.Windows.Forms.Button btnCopyLogToClipboard; + private RomCheater.Logging.LogWriter logwriter; + private System.Windows.Forms.ToolStripMenuItem mnuTools; + private System.Windows.Forms.ToolStripMenuItem mnuItemConfig; + private System.Windows.Forms.ToolStripMenuItem mnuItemOpenProcess; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.Button btnExapandCollapseLogWindow; } }