Minor UI improvement

This commit is contained in:
niksedk 2023-02-02 07:26:31 +01:00
parent 47e25a9d75
commit f372b9b803
4 changed files with 17 additions and 5 deletions

View File

@ -359,10 +359,11 @@
this.labelCpp.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelCpp.Location = new System.Drawing.Point(580, 9);
this.labelCpp.Name = "labelCpp";
this.labelCpp.Size = new System.Drawing.Size(117, 13);
this.labelCpp.Size = new System.Drawing.Size(117, 30);
this.labelCpp.TabIndex = 21;
this.labelCpp.Text = "CPP";
this.labelCpp.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.labelCpp.Click += new System.EventHandler(this.labelCpp_Click);
//
// labelElapsed
//
@ -383,7 +384,7 @@
this.toolStripSeparator1,
this.removeTemporaryFilesToolStripMenuItem});
this.contextMenuStripWhisperAdvanced.Name = "contextMenuStripWhisperAdvanced";
this.contextMenuStripWhisperAdvanced.Size = new System.Drawing.Size(231, 120);
this.contextMenuStripWhisperAdvanced.Size = new System.Drawing.Size(231, 98);
//
// whisperPhpOriginalToolStripMenuItem
//
@ -405,7 +406,7 @@
this.whisperXextraWADToolStripMenuItem.Size = new System.Drawing.Size(230, 22);
this.whisperXextraWADToolStripMenuItem.Text = "WhisperX (Forced Alignment)";
this.whisperXextraWADToolStripMenuItem.Visible = false;
this.whisperXextraWADToolStripMenuItem.Click += new System.EventHandler(this.whisperXextraWADToolStripMenuItem_Click);
this.whisperXextraWADToolStripMenuItem.Click += new System.EventHandler(this.whisperXExtraWADToolStripMenuItem_Click);
//
// toolStripSeparator1
//

View File

@ -1285,10 +1285,15 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
removeTemporaryFilesToolStripMenuItem.Checked = Configuration.Settings.Tools.WhisperDeleteTempFiles;
}
private void whisperXextraWADToolStripMenuItem_Click(object sender, EventArgs e)
private void whisperXExtraWADToolStripMenuItem_Click(object sender, EventArgs e)
{
Configuration.Settings.Tools.WhisperChoice = WhisperChoice.WhisperX;
Init();
}
private void labelCpp_Click(object sender, EventArgs e)
{
contextMenuStripWhisperAdvanced.Show(MousePosition);
}
}
}

View File

@ -290,10 +290,11 @@
this.labelCpp.ForeColor = System.Drawing.SystemColors.ControlDark;
this.labelCpp.Location = new System.Drawing.Point(589, 9);
this.labelCpp.Name = "labelCpp";
this.labelCpp.Size = new System.Drawing.Size(108, 13);
this.labelCpp.Size = new System.Drawing.Size(108, 30);
this.labelCpp.TabIndex = 22;
this.labelCpp.Text = "CPP";
this.labelCpp.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.labelCpp.Click += new System.EventHandler(this.labelCpp_Click);
//
// contextMenuStripWhisperAdvanced
//

View File

@ -469,5 +469,10 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
Configuration.Settings.Tools.WhisperDeleteTempFiles = !Configuration.Settings.Tools.WhisperDeleteTempFiles;
removeTemporaryFilesToolStripMenuItem.Checked = Configuration.Settings.Tools.WhisperDeleteTempFiles;
}
private void labelCpp_Click(object sender, EventArgs e)
{
contextMenuStripWhisperAdvanced.Show(MousePosition);
}
}
}