diff --git a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.Designer.cs b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.Designer.cs index e44f6f65b1..48569a7278 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.Designer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.Designer.cs @@ -143,6 +143,7 @@ namespace BizHawk.Client.EmuHawk this.label1 = new BizHawk.WinForms.Controls.LocLabelEx(); this.label2 = new BizHawk.WinForms.Controls.LocLabelEx(); this.DisplayTypeDropdown = new System.Windows.Forms.ComboBox(); + this.SelectAllMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.SearchMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.ListViewContextMenu.SuspendLayout(); this.RamSearchMenu.SuspendLayout(); @@ -204,7 +205,7 @@ namespace BizHawk.Client.EmuHawk this.ContextMenuSeparator3, this.ClearPreviewContextMenuItem}); this.ListViewContextMenu.Name = "contextMenuStrip1"; - this.ListViewContextMenu.Size = new System.Drawing.Size(218, 220); + this.ListViewContextMenu.Size = new System.Drawing.Size(222, 220); this.ListViewContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.ListViewContextMenu_Opening); // // DoSearchContextMenuItem @@ -439,6 +440,7 @@ namespace BizHawk.Client.EmuHawk this.AddToRamWatchMenuItem, this.PokeAddressMenuItem, this.FreezeAddressMenuItem, + this.SelectAllMenuItem, this.toolStripSeparator13, this.ClearUndoMenuItem}); this.searchToolStripMenuItem.Text = "&Search"; @@ -544,6 +546,13 @@ namespace BizHawk.Client.EmuHawk this.UseUndoHistoryMenuItem.Text = "&Use Undo History"; this.UseUndoHistoryMenuItem.Click += new System.EventHandler(this.UseUndoHistoryMenuItem_Click); // + // SelectAllMenuItem + // + this.SelectAllMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); + this.SelectAllMenuItem.ShortcutKeyDisplayString = "Ctrl+A"; + this.SelectAllMenuItem.Text = "Select All"; + this.SelectAllMenuItem.Click += new System.EventHandler(this.SelectAllMenuItem_Click); + // // MemDomainLabel // this.MemDomainLabel.Location = new System.Drawing.Point(135, 49); @@ -1174,5 +1183,6 @@ namespace BizHawk.Client.EmuHawk private System.Windows.Forms.ToolStripButton ErrorIconButton; private BizHawk.WinForms.Controls.ToolStripMenuItemEx Previous_LastChangeMenuItem; private BizHawk.WinForms.Controls.ToolStripMenuItemEx AutoSearchAccountForLagMenuItem; + private ToolStripMenuItemEx SelectAllMenuItem; } } \ No newline at end of file diff --git a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index a45b54b638..4ba37bc8c5 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -944,6 +944,12 @@ namespace BizHawk.Client.EmuHawk } } + private void SelectAllAddresses() + { + if (SelectedIndices.Count() == WatchListView.RowCount) WatchListView.DeselectAll(); + else WatchListView.SelectAll(); + } + public class RamSearchSettings { public RamSearchSettings() @@ -1292,6 +1298,11 @@ namespace BizHawk.Client.EmuHawk UpdateUndoToolBarButtons(); } + private void SelectAllMenuItem_Click(object sender, EventArgs e) + { + SelectAllAddresses(); + } + private void SettingsSubMenu_DropDownOpened(object sender, EventArgs e) { ExcludeRamWatchMenuItem.Checked = Settings.AlwaysExcludeRamWatch;