Tastudio - wire an instance of tastudio into Bookmark control

This commit is contained in:
adelikat 2015-07-18 16:13:38 -04:00
parent 2c7fd7edea
commit bf3587bd5b
3 changed files with 12 additions and 9 deletions

View File

@ -11,6 +11,8 @@ namespace BizHawk.Client.EmuHawk
{
public partial class BookmarksBranchesBox : UserControl
{
public TAStudio Tastudio { get; set; }
public BookmarksBranchesBox()
{
InitializeComponent();

View File

@ -171,7 +171,7 @@ namespace BizHawk.Client.EmuHawk
this.StartFromNowSeparator = new System.Windows.Forms.ToolStripSeparator();
this.StartNewProjectFromNowMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.bookmarksBranchesBox1 = new BizHawk.Client.EmuHawk.BookmarksBranchesBox();
this.BookMarkControl = new BizHawk.Client.EmuHawk.BookmarksBranchesBox();
this.TASMenu.SuspendLayout();
this.TasStatusStrip.SuspendLayout();
this.MarkerContextMenu.SuspendLayout();
@ -1347,13 +1347,13 @@ namespace BizHawk.Client.EmuHawk
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Markers";
//
// bookmarksBranchesBox1
// BookMarkControl
//
this.bookmarksBranchesBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.bookmarksBranchesBox1.Location = new System.Drawing.Point(302, 120);
this.bookmarksBranchesBox1.Name = "bookmarksBranchesBox1";
this.bookmarksBranchesBox1.Size = new System.Drawing.Size(204, 205);
this.bookmarksBranchesBox1.TabIndex = 8;
this.BookMarkControl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BookMarkControl.Location = new System.Drawing.Point(302, 120);
this.BookMarkControl.Name = "BookMarkControl";
this.BookMarkControl.Size = new System.Drawing.Size(204, 205);
this.BookMarkControl.TabIndex = 8;
//
// TAStudio
//
@ -1361,7 +1361,7 @@ namespace BizHawk.Client.EmuHawk
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(506, 576);
this.Controls.Add(this.bookmarksBranchesBox1);
this.Controls.Add(this.BookMarkControl);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.TasPlaybackBox);
this.Controls.Add(this.TasStatusStrip);
@ -1533,6 +1533,6 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripMenuItem ScrollToMarkerToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem applyPatternToPaintedInputToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem onlyOnAutoFireColumnsToolStripMenuItem;
private BookmarksBranchesBox bookmarksBranchesBox1;
private BookmarksBranchesBox BookMarkControl;
}
}

View File

@ -77,6 +77,7 @@ namespace BizHawk.Client.EmuHawk
WantsToControlStopMovie = true;
TasPlaybackBox.Tastudio = this;
MarkerControl.Tastudio = this;
BookMarkControl.Tastudio = this;
MarkerControl.Emulator = this.Emulator;
TasView.QueryItemText += TasView_QueryItemText;
TasView.QueryItemBkColor += TasView_QueryItemBkColor;