New Ram Search - some GUI polishing
This commit is contained in:
parent
99fb7def4c
commit
1f21f271ac
|
@ -97,6 +97,8 @@
|
||||||
this.clearUndoHistoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.clearUndoHistoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.PreviewModeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.PreviewModeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.AutoSearchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.ExcludeRamWatchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.ExcludeRamWatchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.useUndoHistoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.useUndoHistoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
|
@ -140,8 +142,6 @@
|
||||||
this.GreaterThanRadio = new System.Windows.Forms.RadioButton();
|
this.GreaterThanRadio = new System.Windows.Forms.RadioButton();
|
||||||
this.LessThanRadio = new System.Windows.Forms.RadioButton();
|
this.LessThanRadio = new System.Windows.Forms.RadioButton();
|
||||||
this.SpecificValueBox = new BizHawk.MultiClient.WatchValueBox();
|
this.SpecificValueBox = new BizHawk.MultiClient.WatchValueBox();
|
||||||
this.AutoSearchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
|
|
||||||
SearchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
SearchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.contextMenuStrip1.SuspendLayout();
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
|
@ -730,6 +730,18 @@
|
||||||
this.PreviewModeMenuItem.Text = "Preview Mode";
|
this.PreviewModeMenuItem.Text = "Preview Mode";
|
||||||
this.PreviewModeMenuItem.Click += new System.EventHandler(this.PreviewModeMenuItem_Click);
|
this.PreviewModeMenuItem.Click += new System.EventHandler(this.PreviewModeMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// AutoSearchMenuItem
|
||||||
|
//
|
||||||
|
this.AutoSearchMenuItem.Name = "AutoSearchMenuItem";
|
||||||
|
this.AutoSearchMenuItem.Size = new System.Drawing.Size(240, 22);
|
||||||
|
this.AutoSearchMenuItem.Text = "Auto-Search";
|
||||||
|
this.AutoSearchMenuItem.Click += new System.EventHandler(this.AutoSearchMenuItem_Click);
|
||||||
|
//
|
||||||
|
// toolStripSeparator9
|
||||||
|
//
|
||||||
|
this.toolStripSeparator9.Name = "toolStripSeparator9";
|
||||||
|
this.toolStripSeparator9.Size = new System.Drawing.Size(237, 6);
|
||||||
|
//
|
||||||
// ExcludeRamWatchMenuItem
|
// ExcludeRamWatchMenuItem
|
||||||
//
|
//
|
||||||
this.ExcludeRamWatchMenuItem.Name = "ExcludeRamWatchMenuItem";
|
this.ExcludeRamWatchMenuItem.Name = "ExcludeRamWatchMenuItem";
|
||||||
|
@ -930,8 +942,8 @@
|
||||||
this.toolStripSeparator15,
|
this.toolStripSeparator15,
|
||||||
this.CopyValueToPrevToolBarItem,
|
this.CopyValueToPrevToolBarItem,
|
||||||
this.ClearChangeCountsToolBarItem,
|
this.ClearChangeCountsToolBarItem,
|
||||||
this.RemoveToolBarItem,
|
|
||||||
this.toolStripSeparator16,
|
this.toolStripSeparator16,
|
||||||
|
this.RemoveToolBarItem,
|
||||||
this.AddToRamWatchToolBarItem,
|
this.AddToRamWatchToolBarItem,
|
||||||
this.PokeAddressToolBarItem,
|
this.PokeAddressToolBarItem,
|
||||||
this.FreezeAddressToolBarItem});
|
this.FreezeAddressToolBarItem});
|
||||||
|
@ -943,6 +955,7 @@
|
||||||
//
|
//
|
||||||
// DoSearchToolButton
|
// DoSearchToolButton
|
||||||
//
|
//
|
||||||
|
this.DoSearchToolButton.Enabled = false;
|
||||||
this.DoSearchToolButton.Image = ((System.Drawing.Image)(resources.GetObject("DoSearchToolButton.Image")));
|
this.DoSearchToolButton.Image = ((System.Drawing.Image)(resources.GetObject("DoSearchToolButton.Image")));
|
||||||
this.DoSearchToolButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
this.DoSearchToolButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
this.DoSearchToolButton.Name = "DoSearchToolButton";
|
this.DoSearchToolButton.Name = "DoSearchToolButton";
|
||||||
|
@ -957,12 +970,11 @@
|
||||||
//
|
//
|
||||||
// NewSearchToolButton
|
// NewSearchToolButton
|
||||||
//
|
//
|
||||||
this.NewSearchToolButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
||||||
this.NewSearchToolButton.Image = global::BizHawk.MultiClient.Properties.Resources.restart;
|
this.NewSearchToolButton.Image = global::BizHawk.MultiClient.Properties.Resources.restart;
|
||||||
this.NewSearchToolButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
this.NewSearchToolButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
this.NewSearchToolButton.Name = "NewSearchToolButton";
|
this.NewSearchToolButton.Name = "NewSearchToolButton";
|
||||||
this.NewSearchToolButton.Size = new System.Drawing.Size(23, 22);
|
this.NewSearchToolButton.Size = new System.Drawing.Size(51, 22);
|
||||||
this.NewSearchToolButton.Text = "Start new search";
|
this.NewSearchToolButton.Text = "New";
|
||||||
this.NewSearchToolButton.Click += new System.EventHandler(this.NewSearchMenuMenuItem_Click);
|
this.NewSearchToolButton.Click += new System.EventHandler(this.NewSearchMenuMenuItem_Click);
|
||||||
//
|
//
|
||||||
// toolStripSeparator15
|
// toolStripSeparator15
|
||||||
|
@ -973,6 +985,7 @@
|
||||||
// CopyValueToPrevToolBarItem
|
// CopyValueToPrevToolBarItem
|
||||||
//
|
//
|
||||||
this.CopyValueToPrevToolBarItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
this.CopyValueToPrevToolBarItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||||
|
this.CopyValueToPrevToolBarItem.Enabled = false;
|
||||||
this.CopyValueToPrevToolBarItem.Image = global::BizHawk.MultiClient.Properties.Resources.Previous;
|
this.CopyValueToPrevToolBarItem.Image = global::BizHawk.MultiClient.Properties.Resources.Previous;
|
||||||
this.CopyValueToPrevToolBarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
this.CopyValueToPrevToolBarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
this.CopyValueToPrevToolBarItem.Name = "CopyValueToPrevToolBarItem";
|
this.CopyValueToPrevToolBarItem.Name = "CopyValueToPrevToolBarItem";
|
||||||
|
@ -1162,18 +1175,6 @@
|
||||||
this.SpecificValueBox.Type = BizHawk.MultiClient.Watch.DisplayType.Hex;
|
this.SpecificValueBox.Type = BizHawk.MultiClient.Watch.DisplayType.Hex;
|
||||||
this.SpecificValueBox.TextChanged += new System.EventHandler(this.CompareToValue_TextChanged);
|
this.SpecificValueBox.TextChanged += new System.EventHandler(this.CompareToValue_TextChanged);
|
||||||
//
|
//
|
||||||
// AutoSearchMenuItem
|
|
||||||
//
|
|
||||||
this.AutoSearchMenuItem.Name = "AutoSearchMenuItem";
|
|
||||||
this.AutoSearchMenuItem.Size = new System.Drawing.Size(240, 22);
|
|
||||||
this.AutoSearchMenuItem.Text = "Auto-Search";
|
|
||||||
this.AutoSearchMenuItem.Click += new System.EventHandler(this.AutoSearchMenuItem_Click);
|
|
||||||
//
|
|
||||||
// toolStripSeparator9
|
|
||||||
//
|
|
||||||
this.toolStripSeparator9.Name = "toolStripSeparator9";
|
|
||||||
this.toolStripSeparator9.Size = new System.Drawing.Size(237, 6);
|
|
||||||
//
|
|
||||||
// NewRamSearch
|
// NewRamSearch
|
||||||
//
|
//
|
||||||
this.AllowDrop = true;
|
this.AllowDrop = true;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace BizHawk.MultiClient
|
||||||
public const string DIFF = "DiffColumn";
|
public const string DIFF = "DiffColumn";
|
||||||
|
|
||||||
private readonly Dictionary<string, int> DefaultColumnWidths = new Dictionary<string, int>
|
private readonly Dictionary<string, int> DefaultColumnWidths = new Dictionary<string, int>
|
||||||
{
|
{
|
||||||
{ ADDRESS, 60 },
|
{ ADDRESS, 60 },
|
||||||
{ VALUE, 59 },
|
{ VALUE, 59 },
|
||||||
{ PREV, 59 },
|
{ PREV, 59 },
|
||||||
|
@ -208,6 +208,14 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
SetTotal();
|
SetTotal();
|
||||||
WatchListView.ItemCount = Searches.Count;
|
WatchListView.ItemCount = Searches.Count;
|
||||||
|
ToggleSearchDependentToolBarItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ToggleSearchDependentToolBarItems()
|
||||||
|
{
|
||||||
|
DoSearchToolButton.Enabled =
|
||||||
|
CopyValueToPrevToolBarItem.Enabled =
|
||||||
|
Searches.Count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DoSearch()
|
private void DoSearch()
|
||||||
|
@ -216,6 +224,7 @@ namespace BizHawk.MultiClient
|
||||||
SetTotal();
|
SetTotal();
|
||||||
WatchListView.ItemCount = Searches.Count;
|
WatchListView.ItemCount = Searches.Count;
|
||||||
SetRemovedMessage(removed);
|
SetRemovedMessage(removed);
|
||||||
|
ToggleSearchDependentToolBarItems();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue