Debugger: Minor UI tweaks to Go To All

This commit is contained in:
Sour 2019-01-10 19:39:25 -05:00
parent 1256d90060
commit 278e786f40
3 changed files with 39 additions and 3 deletions

View file

@ -32,8 +32,11 @@
this.txtSearch = new System.Windows.Forms.TextBox(); this.txtSearch = new System.Windows.Forms.TextBox();
this.pnlResults = new System.Windows.Forms.Panel(); this.pnlResults = new System.Windows.Forms.Panel();
this.tlpResults = new System.Windows.Forms.TableLayoutPanel(); this.tlpResults = new System.Windows.Forms.TableLayoutPanel();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lblResultCount = new System.Windows.Forms.ToolStripStatusLabel();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.pnlResults.SuspendLayout(); this.pnlResults.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// tableLayoutPanel1 // tableLayoutPanel1
@ -50,7 +53,8 @@
this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(386, 421); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(386, 417);
this.tableLayoutPanel1.TabIndex = 0; this.tableLayoutPanel1.TabIndex = 0;
// //
// lblSearch // lblSearch
@ -82,7 +86,7 @@
this.pnlResults.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlResults.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlResults.Location = new System.Drawing.Point(3, 29); this.pnlResults.Location = new System.Drawing.Point(3, 29);
this.pnlResults.Name = "pnlResults"; this.pnlResults.Name = "pnlResults";
this.pnlResults.Size = new System.Drawing.Size(380, 389); this.pnlResults.Size = new System.Drawing.Size(380, 385);
this.pnlResults.TabIndex = 2; this.pnlResults.TabIndex = 2;
// //
// tlpResults // tlpResults
@ -97,12 +101,30 @@
this.tlpResults.Size = new System.Drawing.Size(361, 457); this.tlpResults.Size = new System.Drawing.Size(361, 457);
this.tlpResults.TabIndex = 0; this.tlpResults.TabIndex = 0;
// //
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lblResultCount});
this.statusStrip1.Location = new System.Drawing.Point(0, 417);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(386, 22);
this.statusStrip1.SizingGrip = false;
this.statusStrip1.TabIndex = 1;
this.statusStrip1.Text = "statusStrip1";
//
// lblResultCount
//
this.lblResultCount.Name = "lblResultCount";
this.lblResultCount.Size = new System.Drawing.Size(54, 17);
this.lblResultCount.Text = "xx results";
//
// frmGoToAll // frmGoToAll
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(386, 421); this.ClientSize = new System.Drawing.Size(386, 439);
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.statusStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "frmGoToAll"; this.Name = "frmGoToAll";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@ -110,7 +132,10 @@
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout(); this.tableLayoutPanel1.PerformLayout();
this.pnlResults.ResumeLayout(false); this.pnlResults.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
@ -121,5 +146,7 @@
private System.Windows.Forms.TextBox txtSearch; private System.Windows.Forms.TextBox txtSearch;
private System.Windows.Forms.Panel pnlResults; private System.Windows.Forms.Panel pnlResults;
private System.Windows.Forms.TableLayoutPanel tlpResults; private System.Windows.Forms.TableLayoutPanel tlpResults;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel lblResultCount;
} }
} }

View file

@ -30,6 +30,7 @@ namespace Mesen.GUI.Debugger
{ {
InitializeComponent(); InitializeComponent();
Icon = Properties.Resources.Find;
_symbolProvider = DebugWorkspaceManager.SymbolProvider; _symbolProvider = DebugWorkspaceManager.SymbolProvider;
_allowOutOfScope = allowOutOfScope; _allowOutOfScope = allowOutOfScope;
_showFilesAndConstants = showFilesAndConstants; _showFilesAndConstants = showFilesAndConstants;
@ -273,6 +274,11 @@ namespace Mesen.GUI.Debugger
pnlResults.BackColor = SystemColors.ControlDarkDark; pnlResults.BackColor = SystemColors.ControlDarkDark;
} }
lblResultCount.Text = searchResults.Count.ToString() + " results";
if(searchResults.Count > MaxResultCount) {
lblResultCount.Text += " (" + MaxResultCount.ToString() + " shown)";
}
if(Program.IsMono) { if(Program.IsMono) {
pnlResults.Visible = false; pnlResults.Visible = false;
} else { } else {

View file

@ -120,4 +120,7 @@
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
</root> </root>