TAStudio - add hotkeys for Clear and Insert # Frames
This commit is contained in:
parent
514c3200d7
commit
43518a3a57
|
@ -60,6 +60,8 @@
|
||||||
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.pasteInsertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.truncateMovieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.truncateMovieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
@ -103,8 +105,6 @@
|
||||||
this.SelectionDisplay = new System.Windows.Forms.Label();
|
this.SelectionDisplay = new System.Windows.Forms.Label();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.pasteInsertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
this.contextMenuStrip1.SuspendLayout();
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
this.ControllersContext.SuspendLayout();
|
this.ControllersContext.SuspendLayout();
|
||||||
|
@ -247,6 +247,7 @@
|
||||||
// clearToolStripMenuItem2
|
// clearToolStripMenuItem2
|
||||||
//
|
//
|
||||||
this.clearToolStripMenuItem2.Name = "clearToolStripMenuItem2";
|
this.clearToolStripMenuItem2.Name = "clearToolStripMenuItem2";
|
||||||
|
this.clearToolStripMenuItem2.ShortcutKeyDisplayString = "Del";
|
||||||
this.clearToolStripMenuItem2.Size = new System.Drawing.Size(207, 22);
|
this.clearToolStripMenuItem2.Size = new System.Drawing.Size(207, 22);
|
||||||
this.clearToolStripMenuItem2.Text = "Clear";
|
this.clearToolStripMenuItem2.Text = "Clear";
|
||||||
this.clearToolStripMenuItem2.Click += new System.EventHandler(this.clearToolStripMenuItem2_Click);
|
this.clearToolStripMenuItem2.Click += new System.EventHandler(this.clearToolStripMenuItem2_Click);
|
||||||
|
@ -279,6 +280,7 @@
|
||||||
// insertNumFramesToolStripMenuItem
|
// insertNumFramesToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.insertNumFramesToolStripMenuItem.Name = "insertNumFramesToolStripMenuItem";
|
this.insertNumFramesToolStripMenuItem.Name = "insertNumFramesToolStripMenuItem";
|
||||||
|
this.insertNumFramesToolStripMenuItem.ShortcutKeyDisplayString = "Ins";
|
||||||
this.insertNumFramesToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
this.insertNumFramesToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
||||||
this.insertNumFramesToolStripMenuItem.Text = "Insert # of Frames";
|
this.insertNumFramesToolStripMenuItem.Text = "Insert # of Frames";
|
||||||
this.insertNumFramesToolStripMenuItem.Click += new System.EventHandler(this.insertNumFramesToolStripMenuItem_Click);
|
this.insertNumFramesToolStripMenuItem.Click += new System.EventHandler(this.insertNumFramesToolStripMenuItem_Click);
|
||||||
|
@ -304,6 +306,23 @@
|
||||||
this.pasteToolStripMenuItem.Text = "&Paste";
|
this.pasteToolStripMenuItem.Text = "&Paste";
|
||||||
this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
|
this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// pasteInsertToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.pasteInsertToolStripMenuItem.Name = "pasteInsertToolStripMenuItem";
|
||||||
|
this.pasteInsertToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
||||||
|
| System.Windows.Forms.Keys.V)));
|
||||||
|
this.pasteInsertToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
||||||
|
this.pasteInsertToolStripMenuItem.Text = "&Paste Insert";
|
||||||
|
this.pasteInsertToolStripMenuItem.Click += new System.EventHandler(this.pasteInsertToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// cutToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
|
||||||
|
this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
|
||||||
|
this.cutToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
||||||
|
this.cutToolStripMenuItem.Text = "&Cut";
|
||||||
|
this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// selectAllToolStripMenuItem
|
// selectAllToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
|
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
|
||||||
|
@ -629,6 +648,7 @@
|
||||||
this.TASView.SelectedIndexChanged += new System.EventHandler(this.TASView_SelectedIndexChanged);
|
this.TASView.SelectedIndexChanged += new System.EventHandler(this.TASView_SelectedIndexChanged);
|
||||||
this.TASView.Click += new System.EventHandler(this.TASView_Click);
|
this.TASView.Click += new System.EventHandler(this.TASView_Click);
|
||||||
this.TASView.DoubleClick += new System.EventHandler(this.TASView_DoubleClick);
|
this.TASView.DoubleClick += new System.EventHandler(this.TASView_DoubleClick);
|
||||||
|
this.TASView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TASView_KeyDown);
|
||||||
this.TASView.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseWheel);
|
this.TASView.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.TASView_MouseWheel);
|
||||||
//
|
//
|
||||||
// Frame
|
// Frame
|
||||||
|
@ -690,23 +710,6 @@
|
||||||
this.label1.TabIndex = 0;
|
this.label1.TabIndex = 0;
|
||||||
this.label1.Text = "Selection:";
|
this.label1.Text = "Selection:";
|
||||||
//
|
//
|
||||||
// pasteInsertToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.pasteInsertToolStripMenuItem.Name = "pasteInsertToolStripMenuItem";
|
|
||||||
this.pasteInsertToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
||||||
| System.Windows.Forms.Keys.V)));
|
|
||||||
this.pasteInsertToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
|
||||||
this.pasteInsertToolStripMenuItem.Text = "&Paste Insert";
|
|
||||||
this.pasteInsertToolStripMenuItem.Click += new System.EventHandler(this.pasteInsertToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// cutToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
|
|
||||||
this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
|
|
||||||
this.cutToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
|
|
||||||
this.cutToolStripMenuItem.Text = "&Cut";
|
|
||||||
this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// TAStudio
|
// TAStudio
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
|
|
@ -18,11 +18,10 @@ namespace BizHawk.MultiClient
|
||||||
//click & drag on list view should highlight rows
|
//click & drag on list view should highlight rows
|
||||||
//any event that changes highlighting of listview should update selection display
|
//any event that changes highlighting of listview should update selection display
|
||||||
//caret column and caret
|
//caret column and caret
|
||||||
//Ins/Del hotkeys for Clear and Insert # Frames (set up key listener)
|
|
||||||
//When closing tastudio, don't write the movie file? AskSave() is acceptable however
|
//When closing tastudio, don't write the movie file? AskSave() is acceptable however
|
||||||
//If null emulator do a base virtualpad so getmnemonic doesn't fail
|
//If null emulator do a base virtualpad so getmnemonic doesn't fail
|
||||||
//Right-click - Go to current frame
|
//Right-click - Go to current frame
|
||||||
//Clicking a frame should go there
|
//Clicking a frame should go there (currently set to double click)
|
||||||
//Multiple timeline system
|
//Multiple timeline system
|
||||||
//Macro listview
|
//Macro listview
|
||||||
// Double click brings up a macro editing window
|
// Double click brings up a macro editing window
|
||||||
|
@ -856,5 +855,18 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
CutSelection();
|
CutSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void TASView_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
switch (e.KeyCode)
|
||||||
|
{
|
||||||
|
case Keys.Delete:
|
||||||
|
DeleteFrames();
|
||||||
|
break;
|
||||||
|
case Keys.Insert:
|
||||||
|
InsertFrames();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue