From ed02a2e951f2817fa2610ee7ce7c7620f0468922 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Wed, 11 Jan 2012 02:29:50 +0000 Subject: [PATCH] Lua Console - another round of dialog fix ups --- BizHawk.MultiClient/tools/Cheats.Designer.cs | 2 +- .../tools/LuaConsole.Designer.cs | 429 ++++++++++++------ BizHawk.MultiClient/tools/LuaConsole.cs | 96 +++- BizHawk.MultiClient/tools/LuaConsole.resx | 47 ++ 4 files changed, 432 insertions(+), 142 deletions(-) diff --git a/BizHawk.MultiClient/tools/Cheats.Designer.cs b/BizHawk.MultiClient/tools/Cheats.Designer.cs index e72ce71e3e..46b5d4723d 100644 --- a/BizHawk.MultiClient/tools/Cheats.Designer.cs +++ b/BizHawk.MultiClient/tools/Cheats.Designer.cs @@ -473,7 +473,7 @@ this.toolStripButtonMoveUp.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonMoveUp.Name = "toolStripButtonMoveUp"; this.toolStripButtonMoveUp.Size = new System.Drawing.Size(23, 22); - this.toolStripButtonMoveUp.Text = "toolStripButton1"; + this.toolStripButtonMoveUp.Text = "Move Up"; this.toolStripButtonMoveUp.Click += new System.EventHandler(this.toolStripButtonMoveUp_Click); // // toolStripButtonMoveDown diff --git a/BizHawk.MultiClient/tools/LuaConsole.Designer.cs b/BizHawk.MultiClient/tools/LuaConsole.Designer.cs index da504b14ef..70246d818e 100644 --- a/BizHawk.MultiClient/tools/LuaConsole.Designer.cs +++ b/BizHawk.MultiClient/tools/LuaConsole.Designer.cs @@ -33,6 +33,13 @@ this.LuaListView = new BizHawk.VirtualListView(); this.Script = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.PathName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toggleScriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editScriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.removeScriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.insertSeperatorToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); + this.stopAllScriptsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -46,16 +53,16 @@ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.scriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toggleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.removeScriptToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.insertSeparatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.turnOffAllScriptsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.insertSeperatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); + this.turnOffAllScriptsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveWindowPositionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.autoloadConsoleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -64,21 +71,26 @@ this.OutputBox = new System.Windows.Forms.RichTextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.NumberOfScripts = new System.Windows.Forms.Label(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.removeScriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.insertSeperatorToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.stopAllScriptsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStrip1 = new ToolStripEx(); + this.newToolStripButton = new System.Windows.Forms.ToolStripButton(); + this.openToolStripButton = new System.Windows.Forms.ToolStripButton(); + this.saveToolStripButton = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.cutToolStripButton = new System.Windows.Forms.ToolStripButton(); + this.copyToolStripButton = new System.Windows.Forms.ToolStripButton(); + this.toolStripButtonSeparator = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonMoveUp = new System.Windows.Forms.ToolStripButton(); + this.toolStripButtonMoveDown = new System.Windows.Forms.ToolStripButton(); + this.EditToolstripButton = new System.Windows.Forms.ToolStripButton(); + this.contextMenuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.groupBox1.SuspendLayout(); - this.contextMenuStrip1.SuspendLayout(); + this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // LuaListView // - this.LuaListView.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.LuaListView.CheckBoxes = true; this.LuaListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Script, @@ -88,10 +100,10 @@ this.LuaListView.GridLines = true; this.LuaListView.HideSelection = false; this.LuaListView.ItemCount = 0; - this.LuaListView.Location = new System.Drawing.Point(12, 51); + this.LuaListView.Location = new System.Drawing.Point(13, 71); this.LuaListView.Name = "LuaListView"; this.LuaListView.selectedItem = -1; - this.LuaListView.Size = new System.Drawing.Size(291, 278); + this.LuaListView.Size = new System.Drawing.Size(291, 280); this.LuaListView.TabIndex = 0; this.LuaListView.UseCompatibleStateImageBehavior = false; this.LuaListView.View = System.Windows.Forms.View.Details; @@ -109,12 +121,68 @@ this.PathName.Text = "Path"; this.PathName.Width = 195; // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toggleScriptToolStripMenuItem, + this.editScriptToolStripMenuItem, + this.removeScriptToolStripMenuItem, + this.insertSeperatorToolStripMenuItem1, + this.toolStripSeparator4, + this.stopAllScriptsToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(176, 120); + // + // toggleScriptToolStripMenuItem + // + this.toggleScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Refresh1; + this.toggleScriptToolStripMenuItem.Name = "toggleScriptToolStripMenuItem"; + this.toggleScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22); + this.toggleScriptToolStripMenuItem.Text = "&Toggle"; + this.toggleScriptToolStripMenuItem.Click += new System.EventHandler(this.toggleScriptToolStripMenuItem_Click); + // + // editScriptToolStripMenuItem + // + this.editScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS; + this.editScriptToolStripMenuItem.Name = "editScriptToolStripMenuItem"; + this.editScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22); + this.editScriptToolStripMenuItem.Text = "&Edit"; + this.editScriptToolStripMenuItem.Click += new System.EventHandler(this.editScriptToolStripMenuItem_Click); + // + // removeScriptToolStripMenuItem + // + this.removeScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Close; + this.removeScriptToolStripMenuItem.Name = "removeScriptToolStripMenuItem"; + this.removeScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22); + this.removeScriptToolStripMenuItem.Text = "&Remove"; + this.removeScriptToolStripMenuItem.Click += new System.EventHandler(this.removeScriptToolStripMenuItem_Click); + // + // insertSeperatorToolStripMenuItem1 + // + this.insertSeperatorToolStripMenuItem1.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; + this.insertSeperatorToolStripMenuItem1.Name = "insertSeperatorToolStripMenuItem1"; + this.insertSeperatorToolStripMenuItem1.Size = new System.Drawing.Size(175, 22); + this.insertSeperatorToolStripMenuItem1.Text = "Insert Seperator"; + this.insertSeperatorToolStripMenuItem1.Click += new System.EventHandler(this.insertSeperatorToolStripMenuItem1_Click); + // + // toolStripSeparator4 + // + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(172, 6); + // + // stopAllScriptsToolStripMenuItem + // + this.stopAllScriptsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop; + this.stopAllScriptsToolStripMenuItem.Name = "stopAllScriptsToolStripMenuItem"; + this.stopAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); + this.stopAllScriptsToolStripMenuItem.Text = "Turn Off All Scripts"; + this.stopAllScriptsToolStripMenuItem.Click += new System.EventHandler(this.stopAllScriptsToolStripMenuItem_Click); + // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.scriptToolStripMenuItem, - this.viewToolStripMenuItem, this.optionsToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; @@ -169,7 +237,7 @@ this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.S))); this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(204, 22); - this.saveAsToolStripMenuItem.Text = "&Save As..."; + this.saveAsToolStripMenuItem.Text = "Save &As..."; this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click); // // recentToolStripMenuItem @@ -187,18 +255,18 @@ // noneToolStripMenuItem // this.noneToolStripMenuItem.Name = "noneToolStripMenuItem"; - this.noneToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.noneToolStripMenuItem.Size = new System.Drawing.Size(110, 22); this.noneToolStripMenuItem.Text = "None"; // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6); + this.toolStripSeparator3.Size = new System.Drawing.Size(107, 6); // // clearToolStripMenuItem // this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; - this.clearToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.clearToolStripMenuItem.Size = new System.Drawing.Size(110, 22); this.clearToolStripMenuItem.Text = "Clear"; // // toolStripSeparator1 @@ -217,92 +285,97 @@ // scriptToolStripMenuItem // this.scriptToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.editToolStripMenuItem, this.toggleToolStripMenuItem, + this.editToolStripMenuItem, + this.removeScriptToolStripMenuItem1, this.insertSeparatorToolStripMenuItem, + this.toolStripSeparator7, + this.moveUpToolStripMenuItem, + this.moveDownToolStripMenuItem, + this.selectAllToolStripMenuItem, + this.toolStripSeparator6, this.turnOffAllScriptsToolStripMenuItem}); this.scriptToolStripMenuItem.Name = "scriptToolStripMenuItem"; this.scriptToolStripMenuItem.Size = new System.Drawing.Size(46, 20); this.scriptToolStripMenuItem.Text = "&Script"; // - // editToolStripMenuItem - // - this.editToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS; - this.editToolStripMenuItem.Name = "editToolStripMenuItem"; - this.editToolStripMenuItem.Size = new System.Drawing.Size(175, 22); - this.editToolStripMenuItem.Text = "Edit"; - // // toggleToolStripMenuItem // this.toggleToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Refresh1; this.toggleToolStripMenuItem.Name = "toggleToolStripMenuItem"; - this.toggleToolStripMenuItem.Size = new System.Drawing.Size(175, 22); - this.toggleToolStripMenuItem.Text = "Toggle"; + this.toggleToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); + this.toggleToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.toggleToolStripMenuItem.Text = "&Toggle"; this.toggleToolStripMenuItem.Click += new System.EventHandler(this.toggleToolStripMenuItem_Click); // + // editToolStripMenuItem + // + this.editToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS; + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E))); + this.editToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.editToolStripMenuItem.Text = "&Edit Script"; + this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); + // + // removeScriptToolStripMenuItem1 + // + this.removeScriptToolStripMenuItem1.Image = global::BizHawk.MultiClient.Properties.Resources.Delete; + this.removeScriptToolStripMenuItem1.Name = "removeScriptToolStripMenuItem1"; + this.removeScriptToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R))); + this.removeScriptToolStripMenuItem1.Size = new System.Drawing.Size(201, 22); + this.removeScriptToolStripMenuItem1.Text = "&Remove Watch"; + this.removeScriptToolStripMenuItem1.Click += new System.EventHandler(this.removeScriptToolStripMenuItem_Click); + // // insertSeparatorToolStripMenuItem // this.insertSeparatorToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; this.insertSeparatorToolStripMenuItem.Name = "insertSeparatorToolStripMenuItem"; - this.insertSeparatorToolStripMenuItem.Size = new System.Drawing.Size(175, 22); + this.insertSeparatorToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I))); + this.insertSeparatorToolStripMenuItem.Size = new System.Drawing.Size(201, 22); this.insertSeparatorToolStripMenuItem.Text = "Insert Separator"; + this.insertSeparatorToolStripMenuItem.Click += new System.EventHandler(this.insertSeperatorToolStripMenuItem_Click); // - // turnOffAllScriptsToolStripMenuItem + // toolStripSeparator7 // - this.turnOffAllScriptsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop; - this.turnOffAllScriptsToolStripMenuItem.Name = "turnOffAllScriptsToolStripMenuItem"; - this.turnOffAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); - this.turnOffAllScriptsToolStripMenuItem.Text = "Turn Off All Scripts"; - this.turnOffAllScriptsToolStripMenuItem.Click += new System.EventHandler(this.turnOffAllScriptsToolStripMenuItem_Click); - // - // viewToolStripMenuItem - // - this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.removeToolStripMenuItem, - this.insertSeperatorToolStripMenuItem, - this.toolStripSeparator2, - this.moveUpToolStripMenuItem, - this.moveDownToolStripMenuItem}); - this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; - this.viewToolStripMenuItem.Size = new System.Drawing.Size(41, 20); - this.viewToolStripMenuItem.Text = "&View"; - // - // removeToolStripMenuItem - // - this.removeToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Delete; - this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; - this.removeToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.removeToolStripMenuItem.Text = "Remove"; - this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click); - // - // insertSeperatorToolStripMenuItem - // - this.insertSeperatorToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; - this.insertSeperatorToolStripMenuItem.Name = "insertSeperatorToolStripMenuItem"; - this.insertSeperatorToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.insertSeperatorToolStripMenuItem.Text = "Insert Seperator"; - this.insertSeperatorToolStripMenuItem.Click += new System.EventHandler(this.insertSeperatorToolStripMenuItem_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(162, 6); + this.toolStripSeparator7.Name = "toolStripSeparator7"; + this.toolStripSeparator7.Size = new System.Drawing.Size(198, 6); // // moveUpToolStripMenuItem // this.moveUpToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveUp; this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; - this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.moveUpToolStripMenuItem.Text = "Move Up"; - this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.moveUpToolStripMenuItem_Click); + this.moveUpToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U))); + this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.moveUpToolStripMenuItem.Text = "Move &Up"; // // moveDownToolStripMenuItem // this.moveDownToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveDown; this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; - this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.moveDownToolStripMenuItem.Text = "Move Down"; - this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.moveDownToolStripMenuItem_Click); + this.moveDownToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); + this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.moveDownToolStripMenuItem.Text = "Move &Down"; + // + // selectAllToolStripMenuItem + // + this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; + this.selectAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.selectAllToolStripMenuItem.Text = "Select &All"; + this.selectAllToolStripMenuItem.Click += new System.EventHandler(this.selectAllToolStripMenuItem_Click); + // + // toolStripSeparator6 + // + this.toolStripSeparator6.Name = "toolStripSeparator6"; + this.toolStripSeparator6.Size = new System.Drawing.Size(198, 6); + // + // turnOffAllScriptsToolStripMenuItem + // + this.turnOffAllScriptsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop; + this.turnOffAllScriptsToolStripMenuItem.Name = "turnOffAllScriptsToolStripMenuItem"; + this.turnOffAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(201, 22); + this.turnOffAllScriptsToolStripMenuItem.Text = "Turn Off All Scripts"; + this.turnOffAllScriptsToolStripMenuItem.Click += new System.EventHandler(this.turnOffAllScriptsToolStripMenuItem_Click); // // optionsToolStripMenuItem // @@ -319,27 +392,27 @@ // saveWindowPositionToolStripMenuItem // this.saveWindowPositionToolStripMenuItem.Name = "saveWindowPositionToolStripMenuItem"; - this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(190, 22); + this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(203, 22); this.saveWindowPositionToolStripMenuItem.Text = "Save Window Position"; this.saveWindowPositionToolStripMenuItem.Click += new System.EventHandler(this.saveWindowPositionToolStripMenuItem_Click); // // autoloadConsoleToolStripMenuItem // this.autoloadConsoleToolStripMenuItem.Name = "autoloadConsoleToolStripMenuItem"; - this.autoloadConsoleToolStripMenuItem.Size = new System.Drawing.Size(190, 22); + this.autoloadConsoleToolStripMenuItem.Size = new System.Drawing.Size(203, 22); this.autoloadConsoleToolStripMenuItem.Text = "Autoload Console"; this.autoloadConsoleToolStripMenuItem.Click += new System.EventHandler(this.autoloadConsoleToolStripMenuItem_Click); // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(187, 6); + this.toolStripSeparator5.Size = new System.Drawing.Size(200, 6); // // restoreWindowSizeToolStripMenuItem // this.restoreWindowSizeToolStripMenuItem.Name = "restoreWindowSizeToolStripMenuItem"; - this.restoreWindowSizeToolStripMenuItem.Size = new System.Drawing.Size(190, 22); - this.restoreWindowSizeToolStripMenuItem.Text = "Restore Window Size"; + this.restoreWindowSizeToolStripMenuItem.Size = new System.Drawing.Size(203, 22); + this.restoreWindowSizeToolStripMenuItem.Text = "Restore Default Settings"; this.restoreWindowSizeToolStripMenuItem.Click += new System.EventHandler(this.restoreWindowSizeToolStripMenuItem_Click); // // OutputBox @@ -347,18 +420,17 @@ this.OutputBox.Location = new System.Drawing.Point(6, 17); this.OutputBox.Name = "OutputBox"; this.OutputBox.ReadOnly = true; - this.OutputBox.Size = new System.Drawing.Size(246, 253); + this.OutputBox.Size = new System.Drawing.Size(246, 259); this.OutputBox.TabIndex = 2; this.OutputBox.Text = ""; // // groupBox1 // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.OutputBox); - this.groupBox1.Location = new System.Drawing.Point(312, 51); + this.groupBox1.Location = new System.Drawing.Point(310, 71); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(258, 278); + this.groupBox1.Size = new System.Drawing.Size(258, 280); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; this.groupBox1.Text = "Output"; @@ -366,61 +438,142 @@ // NumberOfScripts // this.NumberOfScripts.AutoSize = true; - this.NumberOfScripts.Location = new System.Drawing.Point(12, 29); + this.NumberOfScripts.Location = new System.Drawing.Point(10, 53); this.NumberOfScripts.Name = "NumberOfScripts"; this.NumberOfScripts.Size = new System.Drawing.Size(66, 13); this.NumberOfScripts.TabIndex = 4; this.NumberOfScripts.Text = " 0 Scripts "; // - // contextMenuStrip1 + // toolStrip1 // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.removeScriptToolStripMenuItem, - this.insertSeperatorToolStripMenuItem1, - this.toolStripSeparator4, - this.stopAllScriptsToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(176, 76); + this.toolStrip1.ClickThrough = true; + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripButton, + this.openToolStripButton, + this.saveToolStripButton, + this.toolStripSeparator, + this.copyToolStripButton, + this.EditToolstripButton, + this.cutToolStripButton, + this.toolStripButtonSeparator, + this.toolStripSeparator2, + this.toolStripButtonMoveUp, + this.toolStripButtonMoveDown}); + this.toolStrip1.Location = new System.Drawing.Point(0, 24); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(584, 25); + this.toolStrip1.TabIndex = 5; + this.toolStrip1.Text = "toolStrip1"; // - // removeScriptToolStripMenuItem + // newToolStripButton // - this.removeScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Close; - this.removeScriptToolStripMenuItem.Name = "removeScriptToolStripMenuItem"; - this.removeScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22); - this.removeScriptToolStripMenuItem.Text = "Remove script"; - this.removeScriptToolStripMenuItem.Click += new System.EventHandler(this.removeScriptToolStripMenuItem_Click); + this.newToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image"))); + this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.newToolStripButton.Name = "newToolStripButton"; + this.newToolStripButton.Size = new System.Drawing.Size(23, 22); + this.newToolStripButton.Text = "&New"; // - // insertSeperatorToolStripMenuItem1 + // openToolStripButton // - this.insertSeperatorToolStripMenuItem1.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; - this.insertSeperatorToolStripMenuItem1.Name = "insertSeperatorToolStripMenuItem1"; - this.insertSeperatorToolStripMenuItem1.Size = new System.Drawing.Size(175, 22); - this.insertSeperatorToolStripMenuItem1.Text = "Insert Seperator"; - this.insertSeperatorToolStripMenuItem1.Click += new System.EventHandler(this.insertSeperatorToolStripMenuItem1_Click); + this.openToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image"))); + this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.openToolStripButton.Name = "openToolStripButton"; + this.openToolStripButton.Size = new System.Drawing.Size(23, 22); + this.openToolStripButton.Text = "&Open"; + this.openToolStripButton.Click += new System.EventHandler(this.openToolStripButton_Click); // - // toolStripSeparator4 + // saveToolStripButton // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(172, 6); + this.saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image"))); + this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.saveToolStripButton.Name = "saveToolStripButton"; + this.saveToolStripButton.Size = new System.Drawing.Size(23, 22); + this.saveToolStripButton.Text = "&Save"; // - // stopAllScriptsToolStripMenuItem + // toolStripSeparator // - this.stopAllScriptsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop; - this.stopAllScriptsToolStripMenuItem.Name = "stopAllScriptsToolStripMenuItem"; - this.stopAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(175, 22); - this.stopAllScriptsToolStripMenuItem.Text = "Turn Off All Scripts"; - this.stopAllScriptsToolStripMenuItem.Click += new System.EventHandler(this.stopAllScriptsToolStripMenuItem_Click); + this.toolStripSeparator.Name = "toolStripSeparator"; + this.toolStripSeparator.Size = new System.Drawing.Size(6, 25); + // + // cutToolStripButton + // + this.cutToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.cutToolStripButton.Image = global::BizHawk.MultiClient.Properties.Resources.Delete; + this.cutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.cutToolStripButton.Name = "cutToolStripButton"; + this.cutToolStripButton.Size = new System.Drawing.Size(23, 22); + this.cutToolStripButton.Text = "Remove Script"; + this.cutToolStripButton.Click += new System.EventHandler(this.cutToolStripButton_Click); + // + // copyToolStripButton + // + this.copyToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.copyToolStripButton.Image = global::BizHawk.MultiClient.Properties.Resources.Refresh1; + this.copyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.copyToolStripButton.Name = "copyToolStripButton"; + this.copyToolStripButton.Size = new System.Drawing.Size(23, 22); + this.copyToolStripButton.Text = "Toggle Script"; + this.copyToolStripButton.Click += new System.EventHandler(this.copyToolStripButton_Click); + // + // toolStripButtonSeparator + // + this.toolStripButtonSeparator.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonSeparator.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; + this.toolStripButtonSeparator.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonSeparator.Name = "toolStripButtonSeparator"; + this.toolStripButtonSeparator.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonSeparator.Text = "Insert Separator"; + this.toolStripButtonSeparator.Click += new System.EventHandler(this.toolStripButtonSeparator_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); + // + // toolStripButtonMoveUp + // + this.toolStripButtonMoveUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonMoveUp.Image = global::BizHawk.MultiClient.Properties.Resources.MoveUp; + this.toolStripButtonMoveUp.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonMoveUp.Name = "toolStripButtonMoveUp"; + this.toolStripButtonMoveUp.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonMoveUp.Text = "Move Up"; + this.toolStripButtonMoveUp.Click += new System.EventHandler(this.toolStripButtonMoveUp_Click); + // + // toolStripButtonMoveDown + // + this.toolStripButtonMoveDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonMoveDown.Image = global::BizHawk.MultiClient.Properties.Resources.MoveDown; + this.toolStripButtonMoveDown.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonMoveDown.Name = "toolStripButtonMoveDown"; + this.toolStripButtonMoveDown.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonMoveDown.Text = "Move Down"; + this.toolStripButtonMoveDown.Click += new System.EventHandler(this.toolStripButtonMoveDown_Click); + // + // EditToolstripButton + // + this.EditToolstripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.EditToolstripButton.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS; + this.EditToolstripButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.EditToolstripButton.Name = "EditToolstripButton"; + this.EditToolstripButton.Size = new System.Drawing.Size(23, 22); + this.EditToolstripButton.Text = "Edit Script"; + this.EditToolstripButton.Click += new System.EventHandler(this.EditToolstripButton_Click); // // LuaConsole // this.AllowDrop = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(584, 342); - this.Controls.Add(this.NumberOfScripts); + this.ClientSize = new System.Drawing.Size(584, 366); + this.Controls.Add(this.toolStrip1); this.Controls.Add(this.groupBox1); - this.Controls.Add(this.LuaListView); + this.Controls.Add(this.NumberOfScripts); this.Controls.Add(this.menuStrip1); + this.Controls.Add(this.LuaListView); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.MinimumSize = new System.Drawing.Size(356, 132); @@ -429,10 +582,12 @@ this.Load += new System.EventHandler(this.LuaConsole_Load); this.DragDrop += new System.Windows.Forms.DragEventHandler(this.LuaConsole_DragDrop); this.DragEnter += new System.Windows.Forms.DragEventHandler(this.LuaConsole_DragEnter); + this.contextMenuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.groupBox1.ResumeLayout(false); - this.contextMenuStrip1.ResumeLayout(false); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -451,16 +606,11 @@ private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem scriptToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem toggleToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem moveUpToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem moveDownToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toggleToolStripMenuItem; public System.Windows.Forms.ColumnHeader Script; private System.Windows.Forms.RichTextBox OutputBox; private System.Windows.Forms.GroupBox groupBox1; - private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem saveWindowPositionToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem restoreWindowSizeToolStripMenuItem; @@ -475,9 +625,28 @@ private System.Windows.Forms.ToolStripMenuItem stopAllScriptsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem autoloadConsoleToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem removeScriptToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem insertSeperatorToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem insertSeperatorToolStripMenuItem1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; + private System.Windows.Forms.ToolStripMenuItem editScriptToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toggleScriptToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem removeScriptToolStripMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; + private System.Windows.Forms.ToolStripMenuItem moveUpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem moveDownToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; + private ToolStripEx toolStrip1; + private System.Windows.Forms.ToolStripButton newToolStripButton; + private System.Windows.Forms.ToolStripButton openToolStripButton; + private System.Windows.Forms.ToolStripButton saveToolStripButton; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator; + private System.Windows.Forms.ToolStripButton cutToolStripButton; + private System.Windows.Forms.ToolStripButton copyToolStripButton; + private System.Windows.Forms.ToolStripButton toolStripButtonSeparator; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripButton toolStripButtonMoveUp; + private System.Windows.Forms.ToolStripButton toolStripButtonMoveDown; + private System.Windows.Forms.ToolStripButton EditToolstripButton; } } \ No newline at end of file diff --git a/BizHawk.MultiClient/tools/LuaConsole.cs b/BizHawk.MultiClient/tools/LuaConsole.cs index 0e9858a287..0e0e05bafb 100644 --- a/BizHawk.MultiClient/tools/LuaConsole.cs +++ b/BizHawk.MultiClient/tools/LuaConsole.cs @@ -14,8 +14,11 @@ namespace BizHawk.MultiClient public partial class LuaConsole : Form { //TODO: remember column widths + //TODO: restore column width on restore default settings //TODO: load from recent menu - //TODO: drag & drop for .lua files + //TODO: editScript() + //TODO: run lua script! + //TODO: context menu & main menu - Edit is grayed out if seperator is highlighted int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired @@ -56,12 +59,15 @@ namespace BizHawk.MultiClient private void LuaListView_QueryItemBkColor(int index, int column, ref Color color) { - if (luaList[index].IsSeparator) - color = Color.DarkGray; - else if (luaList[index].Enabled) - color = Color.Cyan; - else - color = this.BackColor; + if (column == 0) + { + if (luaList[index].IsSeparator) + color = this.BackColor; + else if (luaList[index].Enabled) + color = Color.LightCyan; + else + color = this.BackColor; + } } private void LuaListView_QueryItemText(int index, int column, out string text) @@ -454,11 +460,79 @@ namespace BizHawk.MultiClient } else if (e.KeyCode == Keys.A && e.Control && !e.Alt && !e.Shift) //Select All { - for (int x = 0; x < luaList.Count; x++) - { - LuaListView.SelectItem(x, true); - } + SelectAll(); } } + + private void editScriptToolStripMenuItem_Click(object sender, EventArgs e) + { + EditScript(); + } + + private void editToolStripMenuItem_Click(object sender, EventArgs e) + { + EditScript(); + } + + private void EditScript() + { + ListView.SelectedIndexCollection indexes = LuaListView.SelectedIndices; + if (indexes.Count == 0) + return; + System.Diagnostics.Process.Start(luaList[indexes[0]].Path); + } + + private void toggleScriptToolStripMenuItem_Click(object sender, EventArgs e) + { + Toggle(); + } + + private void selectAllToolStripMenuItem_Click(object sender, EventArgs e) + { + SelectAll(); + } + + private void SelectAll() + { + for (int x = 0; x < luaList.Count; x++) + { + LuaListView.SelectItem(x, true); + } + } + + private void toolStripButtonMoveDown_Click(object sender, EventArgs e) + { + MoveDown(); + } + + private void toolStripButtonMoveUp_Click(object sender, EventArgs e) + { + MoveUp(); + } + + private void toolStripButtonSeparator_Click(object sender, EventArgs e) + { + InsertSeparator(); + } + + private void copyToolStripButton_Click(object sender, EventArgs e) + { + Toggle(); + } + + private void EditToolstripButton_Click(object sender, EventArgs e) + { + EditScript(); + } + + private void cutToolStripButton_Click(object sender, EventArgs e) + { + RemoveScript(); + } + + private void openToolStripButton_Click(object sender, EventArgs e) + { + OpenLuaFile(); + } } } diff --git a/BizHawk.MultiClient/tools/LuaConsole.resx b/BizHawk.MultiClient/tools/LuaConsole.resx index a860d0afe0..d4c888e57d 100644 --- a/BizHawk.MultiClient/tools/LuaConsole.resx +++ b/BizHawk.MultiClient/tools/LuaConsole.resx @@ -123,7 +123,54 @@ 17, 17 + + 228, 17 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQ9JREFUOE+t09lq + wkAUBmBfyr5DfY32jaReSOmFCyKCgkKLFrVUBZeKiEbshqRuaNw1xiXmLxMJBJ0Zc+GBw9zMfDPnHMZm + u1ZE35s4zXCqjmC8Al+sgHLjD9y7yGFWPIbecOO45yORtMAEHnxxJHL1IyKI9JeEXqtMwOl50Q8bSS0l + 8PzBBPbqAQQxICrgjeapgKZpkJUdBmNZB+y3d/QSnsIZKrDdqZjMFYj9OR9wB1NngHrQsJC36EkrfIkT + PuDyJ84AZbOHNF2j1Z2h9i3xAVKfOUjjZssN2oMFmq0xSkLfOmBu3E97iurnENlKxzpgbpzwO0Kh1kOy + KFoDjHmzVuYYjRmTDZfyWh9Yd/4B2Mz2w1z7EGUAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAlpJREFUOE+tk21I + k1EYhif0oyA0sqIQCix/+GcQFFH9CCmiUBTLLEjShJofVBgL2fxoU9Pp5ubUlS5rU9f8rCyjsA+pUCRC + TR1ppmVFUSlmhq78unrnQF1KGHTg/nEOz30993PO+7qJFrmUeiv2n+Mij+XLRLLYULdF2pxlEVIDcw0p + AsyxD5fmI/rQ94pqi26eOlsfuZj+7BgSm01QdA4ih7m73Yx9qGpavwatjPebqCzOprPt8YKQgzFagqL0 + BEjyEFWVaBkdLHMxT34uYNwWR9nVTEoL0zHlp2DMSeaSRk6eKt4VWm5WM/rVPNN5SjDTLQebZEHNA1wr + UvHjk3E6tsNcV62e1r3KLGqtKm6WplNpSsVqVFJsOM8VfSKFWjkGtcyZptSYzvC7XByx3zQoqCnTMvlG + CX1prnornPUmQJcUXsbSVhGK5bIOkcmQyveeTHiv4VZ5Nk33Nc6iuSO8CIfmECYa/bE/8ON1iRipJNh5 + F0V6Bd86lfQ1JlFj1TDVq4COKCegLVIwHmGiKRB7/V6G7+5koHozymgfYRy5E1CgTWKgXcZ1i5qWp0KS + rjgBcAJawph6FszYk/2M1O1isGYLX8p9ab6wgqP+3rMvYciS01GfzA1LFvQkQ6sQ9/khxhoCGHnox1Dt + NvorxXw0b8Km8UQh2cip6GOzgNyMeKqKM7HdjqFZJ5pRk2YJ9aql3EnxoCJxNaZ4Ly6e3UDY3O6OEXRp + 59ApTpIhiyDh9GHORAZyPHQPB/ZtZ/cOMVvFPvh6e7F+3SrWrHRnraf7Xz/xf/rJ/kvxb84I3U1y+9/W + AAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAixJREFUOE+tk91L + k3EUx/cvdN9N0EW3NTWGa7EaPOUcyqphWBG9PZEv5dJlmqhYmUYtXyBb4dJJy+kknFT4BqZIjaFMJUsz + V7TEoabYRDD49ju/6Pm1Mi+iH5zLz+c855zvo1L9j/fsaRRUvvZltHmX8Ni9gMaGCO47ZlBb8wn22yHc + KJ9CackECgteIy93FBfOB6H0JrC3B6ipXsVGb2V1Dca0XhxOe8JLEXhbF7mgsuLLX3mCIwsr2G1+DrVa + huWQRwjcj+a5oLTk87qCn/D78CLiTD4UXJ7GAXOTEDjrZ7ngku3dH4Jf4ZHJCLZJXlhzxpGa4hSCurth + LsjOGo0R/A4PBsPYrHdDlgMwmRxCUF31kQvkMwFFsB7c4/+ATYkNOHL0BZKSaoXgZuU0urvATgkcP/kK + lmMDfNu0MJqZPps6/4D7cNDSCUmyC8HVskl0+MAyADS5vrG7f0X59Tm+VFoYzZyZEVTg5NR2GAwVQnCl + cByeZuChc40FJwpjek5MmU/YkH6uiHdOTmHwfg/0+jIhsOWNMRiouhPlnUnAQoI4rYSht7MYm5qDnHsN + e41tHNbucUGnKxICiqXjHpTPJgHBZ/Nv4U1oHqGZJVwstiNe72JwI+J3PYA2MV8IMjOG2dzLfOatBg+2 + 7JDQ0tEPX9cguvv8GHg5hH0mC9S6eiQweLumDhqNVQgo06dP9fN4UsIoJHRnOhVtmxZGM1NXKoJ3JmTH + Cv71r/4OTrQ4xWMwWlcAAAAASUVORK5CYII= + + AAABAAgAICAQAAAAAADoAgAAhgAAABAQEAAAAAAAKAEAAG4DAAAwMAAAAQAIAKgOAACWBAAAICAAAAEA