Debugger: Added toolbar
This commit is contained in:
parent
7cc7d54705
commit
77afd87815
3 changed files with 37 additions and 10 deletions
31
UI/Debugger/frmDebugger.Designer.cs
generated
31
UI/Debugger/frmDebugger.Designer.cs
generated
|
@ -63,6 +63,7 @@
|
||||||
this.ctrlWatch = new Mesen.GUI.Debugger.ctrlWatch();
|
this.ctrlWatch = new Mesen.GUI.Debugger.ctrlWatch();
|
||||||
this.grpBreakpoints = new System.Windows.Forms.GroupBox();
|
this.grpBreakpoints = new System.Windows.Forms.GroupBox();
|
||||||
this.ctrlBreakpoints = new Mesen.GUI.Debugger.Controls.ctrlBreakpoints();
|
this.ctrlBreakpoints = new Mesen.GUI.Debugger.Controls.ctrlBreakpoints();
|
||||||
|
this.tsToolbar = new Mesen.GUI.Controls.ctrlMesenToolStrip();
|
||||||
this.ctrlMesenMenuStrip1.SuspendLayout();
|
this.ctrlMesenMenuStrip1.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.ctrlSplitContainer)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.ctrlSplitContainer)).BeginInit();
|
||||||
this.ctrlSplitContainer.Panel1.SuspendLayout();
|
this.ctrlSplitContainer.Panel1.SuspendLayout();
|
||||||
|
@ -78,7 +79,7 @@
|
||||||
this.ctrlDisassemblyView.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.ctrlDisassemblyView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.ctrlDisassemblyView.Location = new System.Drawing.Point(0, 0);
|
this.ctrlDisassemblyView.Location = new System.Drawing.Point(0, 0);
|
||||||
this.ctrlDisassemblyView.Name = "ctrlDisassemblyView";
|
this.ctrlDisassemblyView.Name = "ctrlDisassemblyView";
|
||||||
this.ctrlDisassemblyView.Size = new System.Drawing.Size(484, 439);
|
this.ctrlDisassemblyView.Size = new System.Drawing.Size(484, 421);
|
||||||
this.ctrlDisassemblyView.TabIndex = 0;
|
this.ctrlDisassemblyView.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// ctrlMesenMenuStrip1
|
// ctrlMesenMenuStrip1
|
||||||
|
@ -270,7 +271,7 @@
|
||||||
//
|
//
|
||||||
this.ctrlSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.ctrlSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.ctrlSplitContainer.HidePanel2 = false;
|
this.ctrlSplitContainer.HidePanel2 = false;
|
||||||
this.ctrlSplitContainer.Location = new System.Drawing.Point(0, 24);
|
this.ctrlSplitContainer.Location = new System.Drawing.Point(0, 49);
|
||||||
this.ctrlSplitContainer.Name = "ctrlSplitContainer";
|
this.ctrlSplitContainer.Name = "ctrlSplitContainer";
|
||||||
this.ctrlSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
this.ctrlSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
//
|
//
|
||||||
|
@ -282,8 +283,8 @@
|
||||||
// ctrlSplitContainer.Panel2
|
// ctrlSplitContainer.Panel2
|
||||||
//
|
//
|
||||||
this.ctrlSplitContainer.Panel2.Controls.Add(this.tableLayoutPanel1);
|
this.ctrlSplitContainer.Panel2.Controls.Add(this.tableLayoutPanel1);
|
||||||
this.ctrlSplitContainer.Size = new System.Drawing.Size(832, 620);
|
this.ctrlSplitContainer.Size = new System.Drawing.Size(832, 595);
|
||||||
this.ctrlSplitContainer.SplitterDistance = 439;
|
this.ctrlSplitContainer.SplitterDistance = 421;
|
||||||
this.ctrlSplitContainer.TabIndex = 2;
|
this.ctrlSplitContainer.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// ctrlStatus
|
// ctrlStatus
|
||||||
|
@ -292,7 +293,7 @@
|
||||||
this.ctrlStatus.Location = new System.Drawing.Point(484, 0);
|
this.ctrlStatus.Location = new System.Drawing.Point(484, 0);
|
||||||
this.ctrlStatus.Name = "ctrlStatus";
|
this.ctrlStatus.Name = "ctrlStatus";
|
||||||
this.ctrlStatus.Padding = new System.Windows.Forms.Padding(3, 0, 3, 0);
|
this.ctrlStatus.Padding = new System.Windows.Forms.Padding(3, 0, 3, 0);
|
||||||
this.ctrlStatus.Size = new System.Drawing.Size(348, 439);
|
this.ctrlStatus.Size = new System.Drawing.Size(348, 421);
|
||||||
this.ctrlStatus.TabIndex = 1;
|
this.ctrlStatus.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// tableLayoutPanel1
|
// tableLayoutPanel1
|
||||||
|
@ -307,7 +308,7 @@
|
||||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||||
this.tableLayoutPanel1.RowCount = 1;
|
this.tableLayoutPanel1.RowCount = 1;
|
||||||
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(832, 177);
|
this.tableLayoutPanel1.Size = new System.Drawing.Size(832, 170);
|
||||||
this.tableLayoutPanel1.TabIndex = 0;
|
this.tableLayoutPanel1.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// grpWatch
|
// grpWatch
|
||||||
|
@ -316,7 +317,7 @@
|
||||||
this.grpWatch.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.grpWatch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.grpWatch.Location = new System.Drawing.Point(3, 3);
|
this.grpWatch.Location = new System.Drawing.Point(3, 3);
|
||||||
this.grpWatch.Name = "grpWatch";
|
this.grpWatch.Name = "grpWatch";
|
||||||
this.grpWatch.Size = new System.Drawing.Size(410, 171);
|
this.grpWatch.Size = new System.Drawing.Size(410, 164);
|
||||||
this.grpWatch.TabIndex = 1;
|
this.grpWatch.TabIndex = 1;
|
||||||
this.grpWatch.TabStop = false;
|
this.grpWatch.TabStop = false;
|
||||||
this.grpWatch.Text = "Watch";
|
this.grpWatch.Text = "Watch";
|
||||||
|
@ -326,7 +327,7 @@
|
||||||
this.ctrlWatch.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.ctrlWatch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.ctrlWatch.Location = new System.Drawing.Point(3, 16);
|
this.ctrlWatch.Location = new System.Drawing.Point(3, 16);
|
||||||
this.ctrlWatch.Name = "ctrlWatch";
|
this.ctrlWatch.Name = "ctrlWatch";
|
||||||
this.ctrlWatch.Size = new System.Drawing.Size(404, 152);
|
this.ctrlWatch.Size = new System.Drawing.Size(404, 145);
|
||||||
this.ctrlWatch.TabIndex = 0;
|
this.ctrlWatch.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// grpBreakpoints
|
// grpBreakpoints
|
||||||
|
@ -335,7 +336,7 @@
|
||||||
this.grpBreakpoints.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.grpBreakpoints.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.grpBreakpoints.Location = new System.Drawing.Point(419, 3);
|
this.grpBreakpoints.Location = new System.Drawing.Point(419, 3);
|
||||||
this.grpBreakpoints.Name = "grpBreakpoints";
|
this.grpBreakpoints.Name = "grpBreakpoints";
|
||||||
this.grpBreakpoints.Size = new System.Drawing.Size(410, 171);
|
this.grpBreakpoints.Size = new System.Drawing.Size(410, 164);
|
||||||
this.grpBreakpoints.TabIndex = 2;
|
this.grpBreakpoints.TabIndex = 2;
|
||||||
this.grpBreakpoints.TabStop = false;
|
this.grpBreakpoints.TabStop = false;
|
||||||
this.grpBreakpoints.Text = "Breakpoints";
|
this.grpBreakpoints.Text = "Breakpoints";
|
||||||
|
@ -345,15 +346,24 @@
|
||||||
this.ctrlBreakpoints.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.ctrlBreakpoints.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.ctrlBreakpoints.Location = new System.Drawing.Point(3, 16);
|
this.ctrlBreakpoints.Location = new System.Drawing.Point(3, 16);
|
||||||
this.ctrlBreakpoints.Name = "ctrlBreakpoints";
|
this.ctrlBreakpoints.Name = "ctrlBreakpoints";
|
||||||
this.ctrlBreakpoints.Size = new System.Drawing.Size(404, 152);
|
this.ctrlBreakpoints.Size = new System.Drawing.Size(404, 145);
|
||||||
this.ctrlBreakpoints.TabIndex = 0;
|
this.ctrlBreakpoints.TabIndex = 0;
|
||||||
//
|
//
|
||||||
|
// tsToolbar
|
||||||
|
//
|
||||||
|
this.tsToolbar.Location = new System.Drawing.Point(0, 24);
|
||||||
|
this.tsToolbar.Name = "tsToolbar";
|
||||||
|
this.tsToolbar.Size = new System.Drawing.Size(832, 25);
|
||||||
|
this.tsToolbar.TabIndex = 3;
|
||||||
|
this.tsToolbar.Text = "ctrlMesenToolStrip1";
|
||||||
|
//
|
||||||
// frmDebugger
|
// frmDebugger
|
||||||
//
|
//
|
||||||
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(832, 644);
|
this.ClientSize = new System.Drawing.Size(832, 644);
|
||||||
this.Controls.Add(this.ctrlSplitContainer);
|
this.Controls.Add(this.ctrlSplitContainer);
|
||||||
|
this.Controls.Add(this.tsToolbar);
|
||||||
this.Controls.Add(this.ctrlMesenMenuStrip1);
|
this.Controls.Add(this.ctrlMesenMenuStrip1);
|
||||||
this.Name = "frmDebugger";
|
this.Name = "frmDebugger";
|
||||||
this.Text = "Debugger";
|
this.Text = "Debugger";
|
||||||
|
@ -405,5 +415,6 @@
|
||||||
private Controls.ctrlBreakpoints ctrlBreakpoints;
|
private Controls.ctrlBreakpoints ctrlBreakpoints;
|
||||||
private Controls.ctrlConsoleStatus ctrlStatus;
|
private Controls.ctrlConsoleStatus ctrlStatus;
|
||||||
private System.Windows.Forms.ToolStripMenuItem mnuRun1000Cycles;
|
private System.Windows.Forms.ToolStripMenuItem mnuRun1000Cycles;
|
||||||
|
private GUI.Controls.ctrlMesenToolStrip tsToolbar;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -32,6 +32,7 @@ namespace Mesen.GUI.Debugger
|
||||||
_notifListener.OnNotification += OnNotificationReceived;
|
_notifListener.OnNotification += OnNotificationReceived;
|
||||||
|
|
||||||
InitShortcuts();
|
InitShortcuts();
|
||||||
|
InitToolbar();
|
||||||
|
|
||||||
DebugApi.Step(10000);
|
DebugApi.Step(10000);
|
||||||
}
|
}
|
||||||
|
@ -67,6 +68,18 @@ namespace Mesen.GUI.Debugger
|
||||||
mnuRunOneFrame.InitShortcut(this, nameof(DebuggerShortcutsConfig.RunPpuFrame));
|
mnuRunOneFrame.InitShortcut(this, nameof(DebuggerShortcutsConfig.RunPpuFrame));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitToolbar()
|
||||||
|
{
|
||||||
|
tsToolbar.AddItemsToToolbar(
|
||||||
|
mnuContinue, mnuBreak, null,
|
||||||
|
mnuStepInto, mnuStepOver, mnuStepOut, mnuStepBack, null,
|
||||||
|
mnuRunCpuCycle, null,
|
||||||
|
mnuRunPpuCycle, mnuRunScanline, mnuRunOneFrame, null,
|
||||||
|
mnuToggleBreakpoint, mnuDisableEnableBreakpoint, null,
|
||||||
|
mnuBreakIn, null, mnuBreakOn
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
private void OnNotificationReceived(NotificationEventArgs e)
|
private void OnNotificationReceived(NotificationEventArgs e)
|
||||||
{
|
{
|
||||||
switch(e.NotificationType) {
|
switch(e.NotificationType) {
|
||||||
|
|
|
@ -123,4 +123,7 @@
|
||||||
<metadata name="ctrlMesenMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="ctrlMesenMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>107, 17</value>
|
<value>107, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="tsToolbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>275, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Add table
Reference in a new issue