Tastudio - implement Copy menu item, and show rows selected and clipboard count in status bar

This commit is contained in:
adelikat 2013-12-19 03:45:11 +00:00
parent 3e389a93b0
commit f81fe9898f
2 changed files with 161 additions and 100 deletions

View File

@ -53,18 +53,18 @@ namespace BizHawk.Client.EmuHawk
this.DeselectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DeselectMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.SelectBetweenMarkersMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SelectBetweenMarkersMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.reselectClipboardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ReselectClipboardMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CopyMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.PasteMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pasteInsertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.PasteInsertMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CutMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
this.clearToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.ClearMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteFramesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DeleteFramesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.cloneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CloneMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.insertFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.InsertFrameMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.insertNumFramesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.InsertNumFramesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.TruncateMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TruncateMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ConfigSubMenu = new System.Windows.Forms.ToolStripMenuItem(); this.ConfigSubMenu = new System.Windows.Forms.ToolStripMenuItem();
@ -104,9 +104,9 @@ namespace BizHawk.Client.EmuHawk
this.Log = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.Log = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.TasStatusStrip = new System.Windows.Forms.StatusStrip(); this.TasStatusStrip = new System.Windows.Forms.StatusStrip();
this.MessageStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.MessageStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.SplicerStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.TasPlaybackBox = new BizHawk.Client.EmuHawk.PlaybackBox(); this.TasPlaybackBox = new BizHawk.Client.EmuHawk.PlaybackBox();
this.TasBookmarksBranchesBox = new BizHawk.Client.EmuHawk.BookmarksBranchesBox(); this.TasBookmarksBranchesBox = new BizHawk.Client.EmuHawk.BookmarksBranchesBox();
this.SplicerStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.TASMenu.SuspendLayout(); this.TASMenu.SuspendLayout();
this.TasStatusStrip.SuspendLayout(); this.TasStatusStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -235,18 +235,18 @@ namespace BizHawk.Client.EmuHawk
this.DeselectMenuItem, this.DeselectMenuItem,
this.selectAllToolStripMenuItem, this.selectAllToolStripMenuItem,
this.SelectBetweenMarkersMenuItem, this.SelectBetweenMarkersMenuItem,
this.reselectClipboardToolStripMenuItem, this.ReselectClipboardMenuItem,
this.toolStripSeparator7, this.toolStripSeparator7,
this.copyToolStripMenuItem, this.CopyMenuItem,
this.pasteToolStripMenuItem, this.PasteMenuItem,
this.pasteInsertToolStripMenuItem, this.PasteInsertMenuItem,
this.cutToolStripMenuItem, this.CutMenuItem,
this.toolStripSeparator8, this.toolStripSeparator8,
this.clearToolStripMenuItem2, this.ClearMenuItem,
this.deleteFramesToolStripMenuItem, this.DeleteFramesMenuItem,
this.cloneToolStripMenuItem, this.CloneMenuItem,
this.insertFrameToolStripMenuItem, this.InsertFrameMenuItem,
this.insertNumFramesToolStripMenuItem, this.InsertNumFramesMenuItem,
this.toolStripSeparator6, this.toolStripSeparator6,
this.TruncateMenuItem}); this.TruncateMenuItem});
this.editToolStripMenuItem.Name = "editToolStripMenuItem"; this.editToolStripMenuItem.Name = "editToolStripMenuItem";
@ -312,97 +312,97 @@ namespace BizHawk.Client.EmuHawk
this.SelectBetweenMarkersMenuItem.Size = new System.Drawing.Size(240, 22); this.SelectBetweenMarkersMenuItem.Size = new System.Drawing.Size(240, 22);
this.SelectBetweenMarkersMenuItem.Text = "Select between Markers"; this.SelectBetweenMarkersMenuItem.Text = "Select between Markers";
// //
// reselectClipboardToolStripMenuItem // ReselectClipboardMenuItem
// //
this.reselectClipboardToolStripMenuItem.Enabled = false; this.ReselectClipboardMenuItem.Enabled = false;
this.reselectClipboardToolStripMenuItem.Name = "reselectClipboardToolStripMenuItem"; this.ReselectClipboardMenuItem.Name = "ReselectClipboardMenuItem";
this.reselectClipboardToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B))); this.ReselectClipboardMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B)));
this.reselectClipboardToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.ReselectClipboardMenuItem.Size = new System.Drawing.Size(240, 22);
this.reselectClipboardToolStripMenuItem.Text = "Reselect Clipboard"; this.ReselectClipboardMenuItem.Text = "Reselect Clipboard";
// //
// toolStripSeparator7 // toolStripSeparator7
// //
this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(237, 6); this.toolStripSeparator7.Size = new System.Drawing.Size(237, 6);
// //
// copyToolStripMenuItem // CopyMenuItem
// //
this.copyToolStripMenuItem.Enabled = false; this.CopyMenuItem.Name = "CopyMenuItem";
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.CopyMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); this.CopyMenuItem.Size = new System.Drawing.Size(240, 22);
this.copyToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.CopyMenuItem.Text = "Copy";
this.copyToolStripMenuItem.Text = "Copy"; this.CopyMenuItem.Click += new System.EventHandler(this.CopyMenuItem_Click);
// //
// pasteToolStripMenuItem // PasteMenuItem
// //
this.pasteToolStripMenuItem.Enabled = false; this.PasteMenuItem.Enabled = false;
this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; this.PasteMenuItem.Name = "PasteMenuItem";
this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); this.PasteMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.pasteToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.PasteMenuItem.Size = new System.Drawing.Size(240, 22);
this.pasteToolStripMenuItem.Text = "&Paste"; this.PasteMenuItem.Text = "&Paste";
// //
// pasteInsertToolStripMenuItem // PasteInsertMenuItem
// //
this.pasteInsertToolStripMenuItem.Enabled = false; this.PasteInsertMenuItem.Enabled = false;
this.pasteInsertToolStripMenuItem.Name = "pasteInsertToolStripMenuItem"; this.PasteInsertMenuItem.Name = "PasteInsertMenuItem";
this.pasteInsertToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.PasteInsertMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.V))); | System.Windows.Forms.Keys.V)));
this.pasteInsertToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.PasteInsertMenuItem.Size = new System.Drawing.Size(240, 22);
this.pasteInsertToolStripMenuItem.Text = "&Paste Insert"; this.PasteInsertMenuItem.Text = "&Paste Insert";
// //
// cutToolStripMenuItem // CutMenuItem
// //
this.cutToolStripMenuItem.Enabled = false; this.CutMenuItem.Enabled = false;
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; this.CutMenuItem.Name = "CutMenuItem";
this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); this.CutMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.cutToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.CutMenuItem.Size = new System.Drawing.Size(240, 22);
this.cutToolStripMenuItem.Text = "&Cut"; this.CutMenuItem.Text = "&Cut";
// //
// toolStripSeparator8 // toolStripSeparator8
// //
this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Name = "toolStripSeparator8";
this.toolStripSeparator8.Size = new System.Drawing.Size(237, 6); this.toolStripSeparator8.Size = new System.Drawing.Size(237, 6);
// //
// clearToolStripMenuItem2 // ClearMenuItem
// //
this.clearToolStripMenuItem2.Enabled = false; this.ClearMenuItem.Enabled = false;
this.clearToolStripMenuItem2.Name = "clearToolStripMenuItem2"; this.ClearMenuItem.Name = "ClearMenuItem";
this.clearToolStripMenuItem2.ShortcutKeyDisplayString = "Del"; this.ClearMenuItem.ShortcutKeyDisplayString = "Del";
this.clearToolStripMenuItem2.Size = new System.Drawing.Size(240, 22); this.ClearMenuItem.Size = new System.Drawing.Size(240, 22);
this.clearToolStripMenuItem2.Text = "Clear"; this.ClearMenuItem.Text = "Clear";
// //
// deleteFramesToolStripMenuItem // DeleteFramesMenuItem
// //
this.deleteFramesToolStripMenuItem.Enabled = false; this.DeleteFramesMenuItem.Enabled = false;
this.deleteFramesToolStripMenuItem.Name = "deleteFramesToolStripMenuItem"; this.DeleteFramesMenuItem.Name = "DeleteFramesMenuItem";
this.deleteFramesToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete))); this.DeleteFramesMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)));
this.deleteFramesToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.DeleteFramesMenuItem.Size = new System.Drawing.Size(240, 22);
this.deleteFramesToolStripMenuItem.Text = "&Delete"; this.DeleteFramesMenuItem.Text = "&Delete";
// //
// cloneToolStripMenuItem // CloneMenuItem
// //
this.cloneToolStripMenuItem.Enabled = false; this.CloneMenuItem.Enabled = false;
this.cloneToolStripMenuItem.Name = "cloneToolStripMenuItem"; this.CloneMenuItem.Name = "CloneMenuItem";
this.cloneToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Insert))); this.CloneMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Insert)));
this.cloneToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.CloneMenuItem.Size = new System.Drawing.Size(240, 22);
this.cloneToolStripMenuItem.Text = "&Clone"; this.CloneMenuItem.Text = "&Clone";
// //
// insertFrameToolStripMenuItem // InsertFrameMenuItem
// //
this.insertFrameToolStripMenuItem.Enabled = false; this.InsertFrameMenuItem.Enabled = false;
this.insertFrameToolStripMenuItem.Name = "insertFrameToolStripMenuItem"; this.InsertFrameMenuItem.Name = "InsertFrameMenuItem";
this.insertFrameToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.InsertFrameMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.Insert))); | System.Windows.Forms.Keys.Insert)));
this.insertFrameToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.InsertFrameMenuItem.Size = new System.Drawing.Size(240, 22);
this.insertFrameToolStripMenuItem.Text = "&Insert"; this.InsertFrameMenuItem.Text = "&Insert";
// //
// insertNumFramesToolStripMenuItem // InsertNumFramesMenuItem
// //
this.insertNumFramesToolStripMenuItem.Enabled = false; this.InsertNumFramesMenuItem.Enabled = false;
this.insertNumFramesToolStripMenuItem.Name = "insertNumFramesToolStripMenuItem"; this.InsertNumFramesMenuItem.Name = "InsertNumFramesMenuItem";
this.insertNumFramesToolStripMenuItem.ShortcutKeyDisplayString = "Ins"; this.InsertNumFramesMenuItem.ShortcutKeyDisplayString = "Ins";
this.insertNumFramesToolStripMenuItem.Size = new System.Drawing.Size(240, 22); this.InsertNumFramesMenuItem.Size = new System.Drawing.Size(240, 22);
this.insertNumFramesToolStripMenuItem.Text = "Insert # of Frames"; this.InsertNumFramesMenuItem.Text = "Insert # of Frames";
// //
// toolStripSeparator6 // toolStripSeparator6
// //
@ -677,6 +677,7 @@ namespace BizHawk.Client.EmuHawk
this.TASView.TabIndex = 1; this.TASView.TabIndex = 1;
this.TASView.UseCompatibleStateImageBehavior = false; this.TASView.UseCompatibleStateImageBehavior = false;
this.TASView.View = System.Windows.Forms.View.Details; this.TASView.View = System.Windows.Forms.View.Details;
this.TASView.SelectedIndexChanged += new System.EventHandler(this.TASView_SelectedIndexChanged);
this.TASView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseDown); this.TASView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseDown);
this.TASView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseUp); this.TASView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseUp);
// //
@ -706,6 +707,13 @@ namespace BizHawk.Client.EmuHawk
this.MessageStatusLabel.Size = new System.Drawing.Size(105, 17); this.MessageStatusLabel.Size = new System.Drawing.Size(105, 17);
this.MessageStatusLabel.Text = "TAStudio engaged"; this.MessageStatusLabel.Text = "TAStudio engaged";
// //
// SplicerStatusLabel
//
this.SplicerStatusLabel.Name = "SplicerStatusLabel";
this.SplicerStatusLabel.Padding = new System.Windows.Forms.Padding(20, 0, 0, 0);
this.SplicerStatusLabel.Size = new System.Drawing.Size(175, 17);
this.SplicerStatusLabel.Text = "0 selected, clipboard: empty";
//
// TasPlaybackBox // TasPlaybackBox
// //
this.TasPlaybackBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.TasPlaybackBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@ -722,13 +730,6 @@ namespace BizHawk.Client.EmuHawk
this.TasBookmarksBranchesBox.Size = new System.Drawing.Size(204, 343); this.TasBookmarksBranchesBox.Size = new System.Drawing.Size(204, 343);
this.TasBookmarksBranchesBox.TabIndex = 7; this.TasBookmarksBranchesBox.TabIndex = 7;
// //
// SplicerStatusLabel
//
this.SplicerStatusLabel.Name = "SplicerStatusLabel";
this.SplicerStatusLabel.Padding = new System.Windows.Forms.Padding(20, 0, 0, 0);
this.SplicerStatusLabel.Size = new System.Drawing.Size(175, 17);
this.SplicerStatusLabel.Text = "0 selected, clipboard: empty";
//
// TAStudio // TAStudio
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -774,20 +775,20 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ColumnHeader Frame; private System.Windows.Forms.ColumnHeader Frame;
private System.Windows.Forms.ToolStripMenuItem insertFrameToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem InsertFrameMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem cloneToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem CloneMenuItem;
private System.Windows.Forms.ToolStripMenuItem deleteFramesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem DeleteFramesMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearToolStripMenuItem2; private System.Windows.Forms.ToolStripMenuItem ClearMenuItem;
private System.Windows.Forms.ToolStripMenuItem insertNumFramesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem InsertNumFramesMenuItem;
private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
private System.Windows.Forms.ToolStripMenuItem TruncateMenuItem; private System.Windows.Forms.ToolStripMenuItem TruncateMenuItem;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem CopyMenuItem;
private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem PasteMenuItem;
private System.Windows.Forms.ToolStripMenuItem pasteInsertToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem PasteInsertMenuItem;
private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem CutMenuItem;
private System.Windows.Forms.ToolStripMenuItem ExportMenuItem; private System.Windows.Forms.ToolStripMenuItem ExportMenuItem;
private System.Windows.Forms.ToolStripMenuItem UndoMenuItem; private System.Windows.Forms.ToolStripMenuItem UndoMenuItem;
private System.Windows.Forms.ToolStripMenuItem RedoMenuItem; private System.Windows.Forms.ToolStripMenuItem RedoMenuItem;
@ -796,7 +797,7 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripMenuItem DeselectMenuItem; private System.Windows.Forms.ToolStripMenuItem DeselectMenuItem;
private System.Windows.Forms.ToolStripMenuItem SelectBetweenMarkersMenuItem; private System.Windows.Forms.ToolStripMenuItem SelectBetweenMarkersMenuItem;
private System.Windows.Forms.ToolStripMenuItem reselectClipboardToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ReselectClipboardMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem ProjectOptionsMenuItem; private System.Windows.Forms.ToolStripMenuItem ProjectOptionsMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;

View File

@ -21,6 +21,7 @@ namespace BizHawk.Client.EmuHawk
private TasMovie _tas; private TasMovie _tas;
private MarkerList _markers = new MarkerList(); private MarkerList _markers = new MarkerList();
private List<TasClipboardEntry> TasClipboard = new List<TasClipboardEntry>();
// Input Painting // Input Painting
private string StartDrawColumn = String.Empty; private string StartDrawColumn = String.Empty;
@ -313,6 +314,27 @@ namespace BizHawk.Client.EmuHawk
} }
} }
private void SetSplicer()
{
// TODO: columns selected
// TODO: clipboard
ListView.SelectedIndexCollection list = TASView.SelectedIndices;
string message = String.Empty;
if (list.Count > 0)
{
message = list.Count.ToString() + " rows, 0 col, clipboard: ";
}
else
{
message = list.Count.ToString() + " selected: none, clipboard: ";
}
message += TasClipboard.Any() ? TasClipboard.Count.ToString() : "empty";
SplicerStatusLabel.Text = message;
}
#region Events #region Events
#region File Menu #region File Menu
@ -396,6 +418,18 @@ namespace BizHawk.Client.EmuHawk
TASView.InputPaintingMode = Global.Config.TAStudioDrawInput ^= true; TASView.InputPaintingMode = Global.Config.TAStudioDrawInput ^= true;
} }
private void CopyMenuItem_Click(object sender, EventArgs e)
{
TasClipboard.Clear();
ListView.SelectedIndexCollection list = TASView.SelectedIndices;
for (int i = 0; i < list.Count; i++)
{
TasClipboard.Add(new TasClipboardEntry(list[i], _tas[i].Buttons));
}
SetSplicer();
}
#endregion #endregion
#region Settings Menu #region Settings Menu
@ -499,11 +533,37 @@ namespace BizHawk.Client.EmuHawk
} }
} }
private void TASView_SelectedIndexChanged(object sender, EventArgs e)
{
SetSplicer();
}
#endregion #endregion
private void PreviousMarkerFromFrameControl_Load(object sender, EventArgs e) #endregion
{
#region Classes
public class TasClipboardEntry
{
private readonly Dictionary<string, bool> _buttons;
private int _frame;
public TasClipboardEntry(int frame, Dictionary<string, bool> buttons)
{
_frame = frame;
_buttons = buttons;
}
public int Frame
{
get { return _frame; }
}
public Dictionary<string, bool> Buttons
{
get { return _buttons; }
}
} }
#endregion #endregion