mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Minor UI fixes
This commit is contained in:
parent
f643d84844
commit
73ffbd1797
8
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
8
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
@ -88,7 +88,7 @@
|
||||
this.buttonCancel.Location = new System.Drawing.Point(971, 528);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonCancel.TabIndex = 102;
|
||||
this.buttonCancel.TabIndex = 202;
|
||||
this.buttonCancel.Text = "C&ancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
||||
@ -99,7 +99,7 @@
|
||||
this.buttonOK.Location = new System.Drawing.Point(890, 528);
|
||||
this.buttonOK.Name = "buttonOK";
|
||||
this.buttonOK.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonOK.TabIndex = 101;
|
||||
this.buttonOK.TabIndex = 201;
|
||||
this.buttonOK.Text = "&OK";
|
||||
this.buttonOK.UseVisualStyleBackColor = true;
|
||||
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
|
||||
@ -257,7 +257,7 @@
|
||||
this.buttonStrategy.Location = new System.Drawing.Point(755, 528);
|
||||
this.buttonStrategy.Name = "buttonStrategy";
|
||||
this.buttonStrategy.Size = new System.Drawing.Size(129, 23);
|
||||
this.buttonStrategy.TabIndex = 100;
|
||||
this.buttonStrategy.TabIndex = 200;
|
||||
this.buttonStrategy.Text = "Advanced";
|
||||
this.buttonStrategy.UseVisualStyleBackColor = true;
|
||||
this.buttonStrategy.Click += new System.EventHandler(this.buttonStrategy_Click);
|
||||
@ -356,7 +356,7 @@
|
||||
this.nikseComboBoxUrl.SelectedItem = null;
|
||||
this.nikseComboBoxUrl.SelectedText = "";
|
||||
this.nikseComboBoxUrl.Size = new System.Drawing.Size(280, 23);
|
||||
this.nikseComboBoxUrl.TabIndex = 105;
|
||||
this.nikseComboBoxUrl.TabIndex = 99;
|
||||
this.nikseComboBoxUrl.TabStop = false;
|
||||
this.nikseComboBoxUrl.UsePopupWindow = false;
|
||||
this.nikseComboBoxUrl.SelectedIndexChanged += new System.EventHandler(this.nikseComboBoxUrl_SelectedIndexChanged);
|
||||
|
@ -60,7 +60,7 @@
|
||||
this.comboBoxParagraphHandling.SelectedItem = null;
|
||||
this.comboBoxParagraphHandling.SelectedText = "";
|
||||
this.comboBoxParagraphHandling.Size = new System.Drawing.Size(272, 21);
|
||||
this.comboBoxParagraphHandling.TabIndex = 92;
|
||||
this.comboBoxParagraphHandling.TabIndex = 10;
|
||||
this.comboBoxParagraphHandling.UsePopupWindow = false;
|
||||
//
|
||||
// labelParagraphHandling
|
||||
@ -109,7 +109,7 @@
|
||||
0});
|
||||
this.nikseUpDownMaxBytes.Name = "nikseUpDownMaxBytes";
|
||||
this.nikseUpDownMaxBytes.Size = new System.Drawing.Size(75, 23);
|
||||
this.nikseUpDownMaxBytes.TabIndex = 95;
|
||||
this.nikseUpDownMaxBytes.TabIndex = 30;
|
||||
this.nikseUpDownMaxBytes.TabStop = false;
|
||||
this.nikseUpDownMaxBytes.Text = "nikseUpDown1";
|
||||
this.nikseUpDownMaxBytes.ThousandsSeparator = false;
|
||||
@ -126,7 +126,7 @@
|
||||
this.buttonCancel.Location = new System.Drawing.Point(378, 232);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonCancel.TabIndex = 97;
|
||||
this.buttonCancel.TabIndex = 101;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
||||
@ -138,7 +138,7 @@
|
||||
this.buttonOk.Location = new System.Drawing.Point(297, 232);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonOk.TabIndex = 96;
|
||||
this.buttonOk.TabIndex = 100;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click);
|
||||
@ -162,7 +162,7 @@
|
||||
this.nikseTextBoxPrompt.Multiline = true;
|
||||
this.nikseTextBoxPrompt.Name = "nikseTextBoxPrompt";
|
||||
this.nikseTextBoxPrompt.Size = new System.Drawing.Size(431, 50);
|
||||
this.nikseTextBoxPrompt.TabIndex = 99;
|
||||
this.nikseTextBoxPrompt.TabIndex = 40;
|
||||
//
|
||||
// nikseUpDownDelay
|
||||
//
|
||||
@ -192,7 +192,7 @@
|
||||
0});
|
||||
this.nikseUpDownDelay.Name = "nikseUpDownDelay";
|
||||
this.nikseUpDownDelay.Size = new System.Drawing.Size(75, 23);
|
||||
this.nikseUpDownDelay.TabIndex = 100;
|
||||
this.nikseUpDownDelay.TabIndex = 20;
|
||||
this.nikseUpDownDelay.TabStop = false;
|
||||
this.nikseUpDownDelay.Text = "nikseUpDown2";
|
||||
this.nikseUpDownDelay.ThousandsSeparator = false;
|
||||
@ -235,6 +235,7 @@
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "AutoTranslateSettings";
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.AutoTranslateSettings_KeyDown);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -75,7 +75,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
comboBoxParagraphHandling.Items.Add(LanguageSettings.Current.GenerateVideoWithEmbeddedSubs.Default);
|
||||
comboBoxParagraphHandling.Items.Add("Translate each line separately");
|
||||
comboBoxParagraphHandling.SelectedIndex = 0;
|
||||
if (Enum.TryParse<TranslateStrategy>(Configuration.Settings.Tools.AutoTranslateStrategy, out var ts) &&
|
||||
if (Enum.TryParse<TranslateStrategy>(Configuration.Settings.Tools.AutoTranslateStrategy, out var ts) &&
|
||||
ts == TranslateStrategy.TranslateEachLineSeparately)
|
||||
{
|
||||
comboBoxParagraphHandling.SelectedIndex = 1;
|
||||
@ -122,11 +122,20 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
}
|
||||
|
||||
private void buttonCancel_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void AutoTranslateSettings_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
else if (e.KeyData == UiUtil.HelpKeys)
|
||||
{
|
||||
UiUtil.ShowHelp("#translation");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user