tastudio: use VisibleRows instead of SeekingCutoffInterval.

allow SelectedIndexChanged again, just not use it in tasview. can we comment out in designers like that?
This commit is contained in:
feos 2016-04-17 21:02:21 +03:00
parent d7217df311
commit dc18535b88
4 changed files with 6 additions and 4 deletions
BizHawk.Client.EmuHawk

View File

@ -1646,7 +1646,7 @@ namespace BizHawk.Client.EmuHawk
if (SelectedIndexChanged != null)
{
//SelectedIndexChanged(this, new EventArgs());
SelectedIndexChanged(this, new EventArgs());
}
}
}

View File

@ -647,6 +647,7 @@ namespace BizHawk.Client.EmuHawk
this.SetSeekingCutoffIntervalMenuItem.Name = "SetSeekingCutoffIntervalMenuItem";
this.SetSeekingCutoffIntervalMenuItem.Size = new System.Drawing.Size(253, 22);
this.SetSeekingCutoffIntervalMenuItem.Text = "Set Seeking Cutoff Interval";
this.SetSeekingCutoffIntervalMenuItem.Visible = false;
this.SetSeekingCutoffIntervalMenuItem.Click += new System.EventHandler(this.SetSeekingCutoffIntervalMenuItem_Click);
//
// toolStripSeparator9
@ -1149,11 +1150,12 @@ namespace BizHawk.Client.EmuHawk
this.TasView.Name = "TasView";
this.TasView.RowCount = 0;
this.TasView.ScrollSpeed = 1;
this.TasView.SeekingCutoffInterval = 0;
this.TasView.Size = new System.Drawing.Size(289, 528);
this.TasView.TabIndex = 1;
this.TasView.ColumnClick += new BizHawk.Client.EmuHawk.InputRoll.ColumnClickEventHandler(this.TasView_ColumnClick);
this.TasView.ColumnRightClick += new BizHawk.Client.EmuHawk.InputRoll.ColumnClickEventHandler(this.TasView_ColumnRightClick);
this.TasView.SelectedIndexChanged += new System.EventHandler(this.TasView_SelectedIndexChanged);
//this.TasView.SelectedIndexChanged += new System.EventHandler(this.TasView_SelectedIndexChanged);
this.TasView.RightMouseScrolled += new BizHawk.Client.EmuHawk.InputRoll.RightMouseScrollEventHandler(this.TasView_MouseWheel);
this.TasView.ColumnReordered += new BizHawk.Client.EmuHawk.InputRoll.ColumnReorderedEventHandler(this.TasView_ColumnReordered);
this.TasView.CellDropped += new BizHawk.Client.EmuHawk.InputRoll.CellDroppedEvent(this.TasView_CellDropped);

View File

@ -77,7 +77,7 @@ namespace BizHawk.Client.EmuHawk
else
GlobalWin.MainForm.UnpauseEmulator();
if (!_seekBackgroundWorker.IsBusy && diff.Value > TasView.SeekingCutoffInterval)
if (!_seekBackgroundWorker.IsBusy && diff.Value > TasView.VisibleRows)
_seekBackgroundWorker.RunWorkerAsync();
}

View File

@ -65,7 +65,7 @@ namespace BizHawk.Client.EmuHawk
FollowCursorAlwaysScroll = false;
FollowCursorScrollMethod = "near";
BranchCellHoverInterval = 1;
SeekingCutoffInterval = 2;
SeekingCutoffInterval = 2; // unused, relying on VisibleRows is smarter
// default to taseditor fashion
denoteStatesWithIcons = false;
denoteStatesWithBGColor = true;