Play Movie - add an Edit context menu item

This commit is contained in:
adelikat 2014-04-22 00:59:21 +00:00
parent c74019a54d
commit 0456639816
3 changed files with 304 additions and 269 deletions

View File

@ -28,286 +28,307 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayMovie)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayMovie));
this.Cancel = new System.Windows.Forms.Button(); this.Cancel = new System.Windows.Forms.Button();
this.OK = new System.Windows.Forms.Button(); this.OK = new System.Windows.Forms.Button();
this.BrowseMovies = new System.Windows.Forms.Button(); this.BrowseMovies = new System.Windows.Forms.Button();
this.DetailsView = new System.Windows.Forms.ListView(); this.DetailsView = new System.Windows.Forms.ListView();
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.SubtitlesBtn = new System.Windows.Forms.Button(); this.SubtitlesBtn = new System.Windows.Forms.Button();
this.CommentsBtn = new System.Windows.Forms.Button(); this.CommentsBtn = new System.Windows.Forms.Button();
this.MovieCount = new System.Windows.Forms.Label(); this.MovieCount = new System.Windows.Forms.Label();
this.ReadOnlyCheckBox = new System.Windows.Forms.CheckBox(); this.ReadOnlyCheckBox = new System.Windows.Forms.CheckBox();
this.IncludeSubDirectories = new System.Windows.Forms.CheckBox(); this.IncludeSubDirectories = new System.Windows.Forms.CheckBox();
this.ShowStateFiles = new System.Windows.Forms.CheckBox(); this.ShowStateFiles = new System.Windows.Forms.CheckBox();
this.Scan = new System.Windows.Forms.Button(); this.Scan = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.MatchGameNameCheckBox = new System.Windows.Forms.CheckBox(); this.MatchGameNameCheckBox = new System.Windows.Forms.CheckBox();
this.MovieView = new BizHawk.Client.EmuHawk.VirtualListView(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.MovieView = new BizHawk.Client.EmuHawk.VirtualListView();
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.groupBox1.SuspendLayout(); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.SuspendLayout(); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
// this.groupBox1.SuspendLayout();
// Cancel this.contextMenuStrip1.SuspendLayout();
// this.SuspendLayout();
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); //
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; // Cancel
this.Cancel.Location = new System.Drawing.Point(687, 352); //
this.Cancel.Name = "Cancel"; this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.Cancel.Size = new System.Drawing.Size(75, 23); this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Cancel.TabIndex = 55; this.Cancel.Location = new System.Drawing.Point(687, 352);
this.Cancel.Text = "&Cancel"; this.Cancel.Name = "Cancel";
this.Cancel.UseVisualStyleBackColor = true; this.Cancel.Size = new System.Drawing.Size(75, 23);
this.Cancel.Click += new System.EventHandler(this.Cancel_Click); this.Cancel.TabIndex = 55;
// this.Cancel.Text = "&Cancel";
// OK this.Cancel.UseVisualStyleBackColor = true;
// this.Cancel.Click += new System.EventHandler(this.Cancel_Click);
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); //
this.OK.Location = new System.Drawing.Point(606, 352); // OK
this.OK.Name = "OK"; //
this.OK.Size = new System.Drawing.Size(75, 23); this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.OK.TabIndex = 50; this.OK.Location = new System.Drawing.Point(606, 352);
this.OK.Text = "&Ok"; this.OK.Name = "OK";
this.toolTip1.SetToolTip(this.OK, "Load selected movie"); this.OK.Size = new System.Drawing.Size(75, 23);
this.OK.UseVisualStyleBackColor = true; this.OK.TabIndex = 50;
this.OK.Click += new System.EventHandler(this.Ok_Click); this.OK.Text = "&Ok";
// this.toolTip1.SetToolTip(this.OK, "Load selected movie");
// BrowseMovies this.OK.UseVisualStyleBackColor = true;
// this.OK.Click += new System.EventHandler(this.Ok_Click);
this.BrowseMovies.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); //
this.BrowseMovies.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.OpenFile; // BrowseMovies
this.BrowseMovies.Location = new System.Drawing.Point(12, 337); //
this.BrowseMovies.Name = "BrowseMovies"; this.BrowseMovies.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.BrowseMovies.Size = new System.Drawing.Size(31, 23); this.BrowseMovies.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.OpenFile;
this.BrowseMovies.TabIndex = 25; this.BrowseMovies.Location = new System.Drawing.Point(12, 337);
this.toolTip1.SetToolTip(this.BrowseMovies, "Browse for additional movie files"); this.BrowseMovies.Name = "BrowseMovies";
this.BrowseMovies.UseVisualStyleBackColor = true; this.BrowseMovies.Size = new System.Drawing.Size(31, 23);
this.BrowseMovies.Click += new System.EventHandler(this.BrowseMovies_Click); this.BrowseMovies.TabIndex = 25;
// this.toolTip1.SetToolTip(this.BrowseMovies, "Browse for additional movie files");
// DetailsView this.BrowseMovies.UseVisualStyleBackColor = true;
// this.BrowseMovies.Click += new System.EventHandler(this.BrowseMovies_Click);
this.DetailsView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
// DetailsView
//
this.DetailsView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.DetailsView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.DetailsView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader5, this.columnHeader5,
this.columnHeader6}); this.columnHeader6});
this.DetailsView.FullRowSelect = true; this.DetailsView.FullRowSelect = true;
this.DetailsView.GridLines = true; this.DetailsView.GridLines = true;
this.DetailsView.HideSelection = false; this.DetailsView.HideSelection = false;
this.DetailsView.Location = new System.Drawing.Point(15, 19); this.DetailsView.Location = new System.Drawing.Point(15, 19);
this.DetailsView.Name = "DetailsView"; this.DetailsView.Name = "DetailsView";
this.DetailsView.Size = new System.Drawing.Size(228, 242); this.DetailsView.Size = new System.Drawing.Size(228, 242);
this.DetailsView.TabIndex = 10; this.DetailsView.TabIndex = 10;
this.toolTip1.SetToolTip(this.DetailsView, "Contains the header information for the selected movie"); this.toolTip1.SetToolTip(this.DetailsView, "Contains the header information for the selected movie");
this.DetailsView.UseCompatibleStateImageBehavior = false; this.DetailsView.UseCompatibleStateImageBehavior = false;
this.DetailsView.View = System.Windows.Forms.View.Details; this.DetailsView.View = System.Windows.Forms.View.Details;
this.DetailsView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.DetailsView_ColumnClick); this.DetailsView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.DetailsView_ColumnClick);
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Header"; this.columnHeader5.Text = "Header";
this.columnHeader5.Width = 102; this.columnHeader5.Width = 102;
// //
// columnHeader6 // columnHeader6
// //
this.columnHeader6.Text = "Value"; this.columnHeader6.Text = "Value";
this.columnHeader6.Width = 121; this.columnHeader6.Width = 121;
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.SubtitlesBtn); this.groupBox1.Controls.Add(this.SubtitlesBtn);
this.groupBox1.Controls.Add(this.CommentsBtn); this.groupBox1.Controls.Add(this.CommentsBtn);
this.groupBox1.Controls.Add(this.DetailsView); this.groupBox1.Controls.Add(this.DetailsView);
this.groupBox1.Location = new System.Drawing.Point(503, 28); this.groupBox1.Location = new System.Drawing.Point(503, 28);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(259, 303); this.groupBox1.Size = new System.Drawing.Size(259, 303);
this.groupBox1.TabIndex = 6; this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Details"; this.groupBox1.Text = "Details";
// //
// SubtitlesBtn // SubtitlesBtn
// //
this.SubtitlesBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.SubtitlesBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.SubtitlesBtn.Enabled = false; this.SubtitlesBtn.Enabled = false;
this.SubtitlesBtn.Location = new System.Drawing.Point(125, 267); this.SubtitlesBtn.Location = new System.Drawing.Point(125, 267);
this.SubtitlesBtn.Name = "SubtitlesBtn"; this.SubtitlesBtn.Name = "SubtitlesBtn";
this.SubtitlesBtn.Size = new System.Drawing.Size(75, 23); this.SubtitlesBtn.Size = new System.Drawing.Size(75, 23);
this.SubtitlesBtn.TabIndex = 20; this.SubtitlesBtn.TabIndex = 20;
this.SubtitlesBtn.Text = "Subtitles"; this.SubtitlesBtn.Text = "Subtitles";
this.SubtitlesBtn.UseVisualStyleBackColor = true; this.SubtitlesBtn.UseVisualStyleBackColor = true;
this.SubtitlesBtn.Click += new System.EventHandler(this.SubtitlesBtn_Click); this.SubtitlesBtn.Click += new System.EventHandler(this.SubtitlesBtn_Click);
// //
// CommentsBtn // CommentsBtn
// //
this.CommentsBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.CommentsBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.CommentsBtn.Enabled = false; this.CommentsBtn.Enabled = false;
this.CommentsBtn.Location = new System.Drawing.Point(15, 267); this.CommentsBtn.Location = new System.Drawing.Point(15, 267);
this.CommentsBtn.Name = "CommentsBtn"; this.CommentsBtn.Name = "CommentsBtn";
this.CommentsBtn.Size = new System.Drawing.Size(75, 23); this.CommentsBtn.Size = new System.Drawing.Size(75, 23);
this.CommentsBtn.TabIndex = 15; this.CommentsBtn.TabIndex = 15;
this.CommentsBtn.Text = "Comments"; this.CommentsBtn.Text = "Comments";
this.CommentsBtn.UseVisualStyleBackColor = true; this.CommentsBtn.UseVisualStyleBackColor = true;
this.CommentsBtn.Click += new System.EventHandler(this.CommentsBtn_Click); this.CommentsBtn.Click += new System.EventHandler(this.CommentsBtn_Click);
// //
// MovieCount // MovieCount
// //
this.MovieCount.AutoSize = true; this.MovieCount.AutoSize = true;
this.MovieCount.Location = new System.Drawing.Point(12, 9); this.MovieCount.Location = new System.Drawing.Point(12, 9);
this.MovieCount.Name = "MovieCount"; this.MovieCount.Name = "MovieCount";
this.MovieCount.Size = new System.Drawing.Size(31, 13); this.MovieCount.Size = new System.Drawing.Size(31, 13);
this.MovieCount.TabIndex = 7; this.MovieCount.TabIndex = 7;
this.MovieCount.Text = " "; this.MovieCount.Text = " ";
// //
// ReadOnlyCheckBox // ReadOnlyCheckBox
// //
this.ReadOnlyCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.ReadOnlyCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.ReadOnlyCheckBox.AutoSize = true; this.ReadOnlyCheckBox.AutoSize = true;
this.ReadOnlyCheckBox.Checked = true; this.ReadOnlyCheckBox.Checked = true;
this.ReadOnlyCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.ReadOnlyCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.ReadOnlyCheckBox.Location = new System.Drawing.Point(503, 356); this.ReadOnlyCheckBox.Location = new System.Drawing.Point(503, 356);
this.ReadOnlyCheckBox.Name = "ReadOnlyCheckBox"; this.ReadOnlyCheckBox.Name = "ReadOnlyCheckBox";
this.ReadOnlyCheckBox.Size = new System.Drawing.Size(74, 17); this.ReadOnlyCheckBox.Size = new System.Drawing.Size(74, 17);
this.ReadOnlyCheckBox.TabIndex = 45; this.ReadOnlyCheckBox.TabIndex = 45;
this.ReadOnlyCheckBox.Text = "Read only"; this.ReadOnlyCheckBox.Text = "Read only";
this.ReadOnlyCheckBox.UseVisualStyleBackColor = true; this.ReadOnlyCheckBox.UseVisualStyleBackColor = true;
// //
// IncludeSubDirectories // IncludeSubDirectories
// //
this.IncludeSubDirectories.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.IncludeSubDirectories.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.IncludeSubDirectories.AutoSize = true; this.IncludeSubDirectories.AutoSize = true;
this.IncludeSubDirectories.Location = new System.Drawing.Point(123, 337); this.IncludeSubDirectories.Location = new System.Drawing.Point(123, 337);
this.IncludeSubDirectories.Name = "IncludeSubDirectories"; this.IncludeSubDirectories.Name = "IncludeSubDirectories";
this.IncludeSubDirectories.Size = new System.Drawing.Size(131, 17); this.IncludeSubDirectories.Size = new System.Drawing.Size(131, 17);
this.IncludeSubDirectories.TabIndex = 35; this.IncludeSubDirectories.TabIndex = 35;
this.IncludeSubDirectories.Text = "Include Subdirectories"; this.IncludeSubDirectories.Text = "Include Subdirectories";
this.IncludeSubDirectories.UseVisualStyleBackColor = true; this.IncludeSubDirectories.UseVisualStyleBackColor = true;
this.IncludeSubDirectories.CheckedChanged += new System.EventHandler(this.IncludeSubDirectories_CheckedChanged); this.IncludeSubDirectories.CheckedChanged += new System.EventHandler(this.IncludeSubDirectories_CheckedChanged);
// //
// ShowStateFiles // ShowStateFiles
// //
this.ShowStateFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.ShowStateFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ShowStateFiles.AutoSize = true; this.ShowStateFiles.AutoSize = true;
this.ShowStateFiles.Location = new System.Drawing.Point(123, 358); this.ShowStateFiles.Location = new System.Drawing.Point(123, 358);
this.ShowStateFiles.Name = "ShowStateFiles"; this.ShowStateFiles.Name = "ShowStateFiles";
this.ShowStateFiles.Size = new System.Drawing.Size(128, 17); this.ShowStateFiles.Size = new System.Drawing.Size(128, 17);
this.ShowStateFiles.TabIndex = 40; this.ShowStateFiles.TabIndex = 40;
this.ShowStateFiles.Text = "Show valid .state files"; this.ShowStateFiles.Text = "Show valid .state files";
this.ShowStateFiles.UseVisualStyleBackColor = true; this.ShowStateFiles.UseVisualStyleBackColor = true;
this.ShowStateFiles.CheckedChanged += new System.EventHandler(this.ShowStateFiles_CheckedChanged); this.ShowStateFiles.CheckedChanged += new System.EventHandler(this.ShowStateFiles_CheckedChanged);
// //
// Scan // Scan
// //
this.Scan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.Scan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.Scan.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Scan; this.Scan.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Scan;
this.Scan.Location = new System.Drawing.Point(49, 337); this.Scan.Location = new System.Drawing.Point(49, 337);
this.Scan.Name = "Scan"; this.Scan.Name = "Scan";
this.Scan.Size = new System.Drawing.Size(27, 23); this.Scan.Size = new System.Drawing.Size(27, 23);
this.Scan.TabIndex = 30; this.Scan.TabIndex = 30;
this.toolTip1.SetToolTip(this.Scan, "Rescan Movie folder for movie files"); this.toolTip1.SetToolTip(this.Scan, "Rescan Movie folder for movie files");
this.Scan.UseVisualStyleBackColor = true; this.Scan.UseVisualStyleBackColor = true;
this.Scan.Click += new System.EventHandler(this.Scan_Click); this.Scan.Click += new System.EventHandler(this.Scan_Click);
// //
// MatchGameNameCheckBox // MatchGameNameCheckBox
// //
this.MatchGameNameCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.MatchGameNameCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.MatchGameNameCheckBox.AutoSize = true; this.MatchGameNameCheckBox.AutoSize = true;
this.MatchGameNameCheckBox.Location = new System.Drawing.Point(260, 337); this.MatchGameNameCheckBox.Location = new System.Drawing.Point(260, 337);
this.MatchGameNameCheckBox.Name = "MatchGameNameCheckBox"; this.MatchGameNameCheckBox.Name = "MatchGameNameCheckBox";
this.MatchGameNameCheckBox.Size = new System.Drawing.Size(150, 17); this.MatchGameNameCheckBox.Size = new System.Drawing.Size(150, 17);
this.MatchGameNameCheckBox.TabIndex = 56; this.MatchGameNameCheckBox.TabIndex = 56;
this.MatchGameNameCheckBox.Text = "Match current game name"; this.MatchGameNameCheckBox.Text = "Match current game name";
this.MatchGameNameCheckBox.UseVisualStyleBackColor = true; this.MatchGameNameCheckBox.UseVisualStyleBackColor = true;
this.MatchGameNameCheckBox.CheckedChanged += new System.EventHandler(this.MatchGameNameCheckBox_CheckedChanged); this.MatchGameNameCheckBox.CheckedChanged += new System.EventHandler(this.MatchGameNameCheckBox_CheckedChanged);
// //
// MovieView // contextMenuStrip1
// //
this.MovieView.AllowDrop = true; this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.MovieView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.editToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48);
//
// editToolStripMenuItem
//
this.editToolStripMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.CutHS;
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
this.editToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.editToolStripMenuItem.Text = "&Edit";
this.editToolStripMenuItem.Click += new System.EventHandler(this.EditMenuItem_Click);
//
// MovieView
//
this.MovieView.AllowDrop = true;
this.MovieView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.MovieView.BlazingFast = false; this.MovieView.BlazingFast = false;
this.MovieView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.MovieView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1, this.columnHeader1,
this.columnHeader2, this.columnHeader2,
this.columnHeader3, this.columnHeader3,
this.columnHeader4}); this.columnHeader4});
this.MovieView.FullRowSelect = true; this.MovieView.ContextMenuStrip = this.contextMenuStrip1;
this.MovieView.GridLines = true; this.MovieView.FullRowSelect = true;
this.MovieView.HideSelection = false; this.MovieView.GridLines = true;
this.MovieView.ItemCount = 0; this.MovieView.HideSelection = false;
this.MovieView.Location = new System.Drawing.Point(12, 28); this.MovieView.ItemCount = 0;
this.MovieView.MultiSelect = false; this.MovieView.Location = new System.Drawing.Point(12, 28);
this.MovieView.Name = "MovieView"; this.MovieView.MultiSelect = false;
this.MovieView.selectedItem = -1; this.MovieView.Name = "MovieView";
this.MovieView.Size = new System.Drawing.Size(480, 303); this.MovieView.SelectAllInProgress = false;
this.MovieView.TabIndex = 5; this.MovieView.selectedItem = -1;
this.MovieView.UseCompatibleStateImageBehavior = false; this.MovieView.Size = new System.Drawing.Size(480, 303);
this.MovieView.View = System.Windows.Forms.View.Details; this.MovieView.TabIndex = 5;
this.MovieView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.MovieView_ColumnClick); this.MovieView.UseCompatibleStateImageBehavior = false;
this.MovieView.SelectedIndexChanged += new System.EventHandler(this.MovieView_SelectedIndexChanged); this.MovieView.View = System.Windows.Forms.View.Details;
this.MovieView.DragDrop += new System.Windows.Forms.DragEventHandler(this.MovieView_DragDrop); this.MovieView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.MovieView_ColumnClick);
this.MovieView.DragEnter += new System.Windows.Forms.DragEventHandler(this.MovieView_DragEnter); this.MovieView.SelectedIndexChanged += new System.EventHandler(this.MovieView_SelectedIndexChanged);
this.MovieView.DoubleClick += new System.EventHandler(this.MovieView_DoubleClick); this.MovieView.DragDrop += new System.Windows.Forms.DragEventHandler(this.MovieView_DragDrop);
this.MovieView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MovieView_KeyDown); this.MovieView.DragEnter += new System.Windows.Forms.DragEventHandler(this.MovieView_DragEnter);
// this.MovieView.DoubleClick += new System.EventHandler(this.MovieView_DoubleClick);
// columnHeader1 this.MovieView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MovieView_KeyDown);
// //
this.columnHeader1.Text = "File"; // columnHeader1
this.columnHeader1.Width = 221; //
// this.columnHeader1.Text = "File";
// columnHeader2 this.columnHeader1.Width = 221;
// //
this.columnHeader2.Text = "SysID"; // columnHeader2
this.columnHeader2.Width = 43; //
// this.columnHeader2.Text = "SysID";
// columnHeader3 this.columnHeader2.Width = 43;
// //
this.columnHeader3.Text = "Game"; // columnHeader3
this.columnHeader3.Width = 129; //
// this.columnHeader3.Text = "Game";
// columnHeader4 this.columnHeader3.Width = 129;
// //
this.columnHeader4.Text = "Length (est.)"; // columnHeader4
this.columnHeader4.Width = 82; //
// this.columnHeader4.Text = "Length (est.)";
// PlayMovie this.columnHeader4.Width = 82;
// //
this.AcceptButton = this.OK; // PlayMovie
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AcceptButton = this.OK;
this.CancelButton = this.Cancel; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.ClientSize = new System.Drawing.Size(774, 387); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.MatchGameNameCheckBox); this.CancelButton = this.Cancel;
this.Controls.Add(this.Scan); this.ClientSize = new System.Drawing.Size(774, 387);
this.Controls.Add(this.ShowStateFiles); this.Controls.Add(this.MatchGameNameCheckBox);
this.Controls.Add(this.IncludeSubDirectories); this.Controls.Add(this.Scan);
this.Controls.Add(this.ReadOnlyCheckBox); this.Controls.Add(this.ShowStateFiles);
this.Controls.Add(this.MovieCount); this.Controls.Add(this.IncludeSubDirectories);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.ReadOnlyCheckBox);
this.Controls.Add(this.MovieView); this.Controls.Add(this.MovieCount);
this.Controls.Add(this.BrowseMovies); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.OK); this.Controls.Add(this.MovieView);
this.Controls.Add(this.Cancel); this.Controls.Add(this.BrowseMovies);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Controls.Add(this.OK);
this.MaximizeBox = false; this.Controls.Add(this.Cancel);
this.MinimizeBox = false; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(547, 228); this.MaximizeBox = false;
this.Name = "PlayMovie"; this.MinimizeBox = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.MinimumSize = new System.Drawing.Size(547, 228);
this.Text = "Play Movie"; this.Name = "PlayMovie";
this.Load += new System.EventHandler(this.PlayMovie_Load); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.groupBox1.ResumeLayout(false); this.Text = "Play Movie";
this.ResumeLayout(false); this.Load += new System.EventHandler(this.PlayMovie_Load);
this.PerformLayout(); this.groupBox1.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
} }
@ -334,5 +355,7 @@
private System.Windows.Forms.Button Scan; private System.Windows.Forms.Button Scan;
private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.CheckBox MatchGameNameCheckBox; private System.Windows.Forms.CheckBox MatchGameNameCheckBox;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
} }
} }

View File

@ -484,6 +484,15 @@ namespace BizHawk.Client.EmuHawk
SubtitlesBtn.Enabled = _movieList[firstIndex].Header.Subtitles.Any(); SubtitlesBtn.Enabled = _movieList[firstIndex].Header.Subtitles.Any();
} }
private void EditMenuItem_Click(object sender, EventArgs e)
{
MovieView.SelectedIndices
.Cast<int>()
.Select(index => _movieList[index])
.ToList()
.ForEach(movie => System.Diagnostics.Process.Start(movie.Filename));
}
#endregion #endregion
#region Details #region Details

View File

@ -120,6 +120,9 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>114, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>