mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Fixed context menu for "add waveform batch"
This commit is contained in:
parent
fdae704a9e
commit
a42a736134
52
src/Forms/AddWaveformBatch.Designer.cs
generated
52
src/Forms/AddWaveformBatch.Designer.cs
generated
@ -39,13 +39,13 @@
|
||||
this.columnHeaderSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderFormat = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderStatus = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.contextMenuStripFiles = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
||||
this.buttonRipWave = new System.Windows.Forms.Button();
|
||||
this.labelProgress = new System.Windows.Forms.Label();
|
||||
this.buttonDone = new System.Windows.Forms.Button();
|
||||
this.contextMenuStripFiles = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.labelInfo = new System.Windows.Forms.Label();
|
||||
@ -125,6 +125,7 @@
|
||||
this.columnHeaderSize,
|
||||
this.columnHeaderFormat,
|
||||
this.columnHeaderStatus});
|
||||
this.listViewInputFiles.ContextMenuStrip = this.contextMenuStripFiles;
|
||||
this.listViewInputFiles.FullRowSelect = true;
|
||||
this.listViewInputFiles.HideSelection = false;
|
||||
this.listViewInputFiles.Location = new System.Drawing.Point(6, 41);
|
||||
@ -154,6 +155,29 @@
|
||||
this.columnHeaderStatus.Text = "Status";
|
||||
this.columnHeaderStatus.Width = 289;
|
||||
//
|
||||
// contextMenuStripFiles
|
||||
//
|
||||
this.contextMenuStripFiles.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.removeToolStripMenuItem,
|
||||
this.removeAllToolStripMenuItem});
|
||||
this.contextMenuStripFiles.Name = "contextMenuStripStyles";
|
||||
this.contextMenuStripFiles.Size = new System.Drawing.Size(153, 70);
|
||||
this.contextMenuStripFiles.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStripFiles_Opening);
|
||||
//
|
||||
// removeToolStripMenuItem
|
||||
//
|
||||
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
|
||||
this.removeToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.removeToolStripMenuItem.Text = "Remove";
|
||||
this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click);
|
||||
//
|
||||
// removeAllToolStripMenuItem
|
||||
//
|
||||
this.removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
|
||||
this.removeAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.removeAllToolStripMenuItem.Text = "Remove all";
|
||||
this.removeAllToolStripMenuItem.Click += new System.EventHandler(this.removeAllToolStripMenuItem_Click);
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
@ -195,28 +219,6 @@
|
||||
this.buttonDone.UseVisualStyleBackColor = true;
|
||||
this.buttonDone.Click += new System.EventHandler(this.buttonDoneClick);
|
||||
//
|
||||
// contextMenuStripFiles
|
||||
//
|
||||
this.contextMenuStripFiles.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.removeToolStripMenuItem,
|
||||
this.removeAllToolStripMenuItem});
|
||||
this.contextMenuStripFiles.Name = "contextMenuStripStyles";
|
||||
this.contextMenuStripFiles.Size = new System.Drawing.Size(133, 48);
|
||||
//
|
||||
// removeToolStripMenuItem
|
||||
//
|
||||
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
|
||||
this.removeToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
|
||||
this.removeToolStripMenuItem.Text = "Remove";
|
||||
this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click);
|
||||
//
|
||||
// removeAllToolStripMenuItem
|
||||
//
|
||||
this.removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
|
||||
this.removeAllToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
|
||||
this.removeAllToolStripMenuItem.Text = "Remove all";
|
||||
this.removeAllToolStripMenuItem.Click += new System.EventHandler(this.removeAllToolStripMenuItem_Click);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.FileName = "openFileDialog1";
|
||||
|
@ -346,5 +346,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_abort = true;
|
||||
}
|
||||
|
||||
private void contextMenuStripFiles_Opening(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
if (listViewInputFiles.Items.Count == 0)
|
||||
e.Cancel = true;
|
||||
removeToolStripMenuItem.Visible = listViewInputFiles.SelectedItems.Count > 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user