This commit is contained in:
Nikolaj Olsson 2024-02-17 17:58:30 +01:00
parent 4c025cf2bf
commit 92d3e3d236
6 changed files with 134 additions and 45 deletions

View File

@ -2852,6 +2852,8 @@ Continue?</RestoreDefaultSettingsMsg>
<ExportAsHtml>Export as HTML...</ExportAsHtml> <ExportAsHtml>Export as HTML...</ExportAsHtml>
<SetNewActor>Set new actor/voice</SetNewActor> <SetNewActor>Set new actor/voice</SetNewActor>
<SetActorX>Set actor/voice {0}</SetActorX> <SetActorX>Set actor/voice {0}</SetActorX>
<Used>Used</Used>
<Unused>Unused</Unused>
</Settings> </Settings>
<SettingsMpv> <SettingsMpv>
<DownloadMpv>Download mpv lib</DownloadMpv> <DownloadMpv>Download mpv lib</DownloadMpv>

View File

@ -130,6 +130,8 @@
this.labelDefaultSubtitleFormat = new System.Windows.Forms.Label(); this.labelDefaultSubtitleFormat = new System.Windows.Forms.Label();
this.panelShortcuts = new System.Windows.Forms.Panel(); this.panelShortcuts = new System.Windows.Forms.Panel();
this.groupBoxShortcuts = new System.Windows.Forms.GroupBox(); this.groupBoxShortcuts = new System.Windows.Forms.GroupBox();
this.nikseComboBoxShortcutsFilter = new Nikse.SubtitleEdit.Controls.NikseComboBox();
this.labelShortcutsFilter = new System.Windows.Forms.Label();
this.buttonShortcutsClear = new System.Windows.Forms.Button(); this.buttonShortcutsClear = new System.Windows.Forms.Button();
this.labelShortcutsSearch = new System.Windows.Forms.Label(); this.labelShortcutsSearch = new System.Windows.Forms.Label();
this.textBoxShortcutSearch = new Nikse.SubtitleEdit.Controls.SETextBox(); this.textBoxShortcutSearch = new Nikse.SubtitleEdit.Controls.SETextBox();
@ -455,25 +457,25 @@
this.toolTipDialogStylePreview = new System.Windows.Forms.ToolTip(this.components); this.toolTipDialogStylePreview = new System.Windows.Forms.ToolTip(this.components);
this.panelAutoTranslate = new System.Windows.Forms.Panel(); this.panelAutoTranslate = new System.Windows.Forms.Panel();
this.groupBoxAutoTranslatePapago = new System.Windows.Forms.GroupBox(); this.groupBoxAutoTranslatePapago = new System.Windows.Forms.GroupBox();
this.nikseTextBoxPapagoClientId = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.nikseTextBoxPapagoClientSecret = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.nikseTextBoxPapagoClientSecret = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelSecretPapago = new System.Windows.Forms.Label(); this.labelSecretPapago = new System.Windows.Forms.Label();
this.nikseTextBoxPapagoClientId = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelApiKeyPapago = new System.Windows.Forms.Label(); this.labelApiKeyPapago = new System.Windows.Forms.Label();
this.linkLabelPapago = new System.Windows.Forms.LinkLabel(); this.linkLabelPapago = new System.Windows.Forms.LinkLabel();
this.label11 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label();
this.groupBoxAutoTranslateChatGpt = new System.Windows.Forms.GroupBox(); this.groupBoxAutoTranslateChatGpt = new System.Windows.Forms.GroupBox();
this.nikseTextBoxChatGptUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.nikseComboBoxChatGptDelay = new Nikse.SubtitleEdit.Controls.NikseComboBox(); this.nikseComboBoxChatGptDelay = new Nikse.SubtitleEdit.Controls.NikseComboBox();
this.labelChatGptDelay = new System.Windows.Forms.Label(); this.labelChatGptDelay = new System.Windows.Forms.Label();
this.nikseTextBoxChatGptApiKey = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.nikseTextBoxChatGptApiKey = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelApiKeyChatGpt = new System.Windows.Forms.Label(); this.labelApiKeyChatGpt = new System.Windows.Forms.Label();
this.nikseTextBoxChatGptUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelUrlChatGpt = new System.Windows.Forms.Label(); this.labelUrlChatGpt = new System.Windows.Forms.Label();
this.linkLabelMoreInfoChatGpt = new System.Windows.Forms.LinkLabel(); this.linkLabelMoreInfoChatGpt = new System.Windows.Forms.LinkLabel();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.groupBoxDeepL = new System.Windows.Forms.GroupBox(); this.groupBoxDeepL = new System.Windows.Forms.GroupBox();
this.nikseTextBoxDeepLUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.nikseTextBoxDeepLApiKey = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.nikseTextBoxDeepLApiKey = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelDeepLApiKey = new System.Windows.Forms.Label(); this.labelDeepLApiKey = new System.Windows.Forms.Label();
this.nikseTextBoxDeepLUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelDeepLUrl = new System.Windows.Forms.Label(); this.labelDeepLUrl = new System.Windows.Forms.Label();
this.linkLabelMoreInfoDeepl = new System.Windows.Forms.LinkLabel(); this.linkLabelMoreInfoDeepl = new System.Windows.Forms.LinkLabel();
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
@ -490,9 +492,9 @@
this.linkLabelLibreTranslateApi = new System.Windows.Forms.LinkLabel(); this.linkLabelLibreTranslateApi = new System.Windows.Forms.LinkLabel();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.groupBoxNllbServe = new System.Windows.Forms.GroupBox(); this.groupBoxNllbServe = new System.Windows.Forms.GroupBox();
this.nikseTextBoxNllbServeUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.nikseTextBoxNllbServeModel = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.nikseTextBoxNllbServeModel = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelNllbServeModel = new System.Windows.Forms.Label(); this.labelNllbServeModel = new System.Windows.Forms.Label();
this.nikseTextBoxNllbServeUrl = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.labelNllbServeUrl = new System.Windows.Forms.Label(); this.labelNllbServeUrl = new System.Windows.Forms.Label();
this.linkLabelNllbServe = new System.Windows.Forms.LinkLabel(); this.linkLabelNllbServe = new System.Windows.Forms.LinkLabel();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
@ -2173,6 +2175,8 @@
this.groupBoxShortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxShortcuts.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.groupBoxShortcuts.Controls.Add(this.nikseComboBoxShortcutsFilter);
this.groupBoxShortcuts.Controls.Add(this.labelShortcutsFilter);
this.groupBoxShortcuts.Controls.Add(this.buttonShortcutsClear); this.groupBoxShortcuts.Controls.Add(this.buttonShortcutsClear);
this.groupBoxShortcuts.Controls.Add(this.labelShortcutsSearch); this.groupBoxShortcuts.Controls.Add(this.labelShortcutsSearch);
this.groupBoxShortcuts.Controls.Add(this.textBoxShortcutSearch); this.groupBoxShortcuts.Controls.Add(this.textBoxShortcutSearch);
@ -2192,6 +2196,45 @@
this.groupBoxShortcuts.TabStop = false; this.groupBoxShortcuts.TabStop = false;
this.groupBoxShortcuts.Text = "Shortcuts"; this.groupBoxShortcuts.Text = "Shortcuts";
// //
// nikseComboBoxShortcutsFilter
//
this.nikseComboBoxShortcutsFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.nikseComboBoxShortcutsFilter.BackColor = System.Drawing.SystemColors.Window;
this.nikseComboBoxShortcutsFilter.BackColorDisabled = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.nikseComboBoxShortcutsFilter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(173)))), ((int)(((byte)(179)))));
this.nikseComboBoxShortcutsFilter.BorderColorDisabled = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
this.nikseComboBoxShortcutsFilter.ButtonForeColor = System.Drawing.SystemColors.ControlText;
this.nikseComboBoxShortcutsFilter.ButtonForeColorDown = System.Drawing.Color.Orange;
this.nikseComboBoxShortcutsFilter.ButtonForeColorOver = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseComboBoxShortcutsFilter.DropDownHeight = 400;
this.nikseComboBoxShortcutsFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.nikseComboBoxShortcutsFilter.DropDownWidth = 92;
this.nikseComboBoxShortcutsFilter.Enabled = false;
this.nikseComboBoxShortcutsFilter.FormattingEnabled = true;
this.nikseComboBoxShortcutsFilter.Items.AddRange(new object[] {
"All",
"Used",
"Unused"});
this.nikseComboBoxShortcutsFilter.Location = new System.Drawing.Point(449, 19);
this.nikseComboBoxShortcutsFilter.MaxLength = 32767;
this.nikseComboBoxShortcutsFilter.Name = "nikseComboBoxShortcutsFilter";
this.nikseComboBoxShortcutsFilter.SelectedIndex = -1;
this.nikseComboBoxShortcutsFilter.SelectedItem = null;
this.nikseComboBoxShortcutsFilter.SelectedText = "";
this.nikseComboBoxShortcutsFilter.Size = new System.Drawing.Size(199, 21);
this.nikseComboBoxShortcutsFilter.TabIndex = 2;
this.nikseComboBoxShortcutsFilter.UsePopupWindow = false;
this.nikseComboBoxShortcutsFilter.SelectedIndexChanged += new System.EventHandler(this.nikseComboBoxShortcutsFilter_SelectedIndexChanged);
//
// labelShortcutsFilter
//
this.labelShortcutsFilter.AutoSize = true;
this.labelShortcutsFilter.Location = new System.Drawing.Point(406, 22);
this.labelShortcutsFilter.Name = "labelShortcutsFilter";
this.labelShortcutsFilter.Size = new System.Drawing.Size(31, 13);
this.labelShortcutsFilter.TabIndex = 38;
this.labelShortcutsFilter.Text = "Filter";
//
// buttonShortcutsClear // buttonShortcutsClear
// //
this.buttonShortcutsClear.Enabled = false; this.buttonShortcutsClear.Enabled = false;
@ -2214,7 +2257,7 @@
// //
// textBoxShortcutSearch // textBoxShortcutSearch
// //
this.textBoxShortcutSearch.BackColor = System.Drawing.SystemColors.WindowFrame; this.textBoxShortcutSearch.BackColor = System.Drawing.SystemColors.Window;
this.textBoxShortcutSearch.CurrentLanguage = ""; this.textBoxShortcutSearch.CurrentLanguage = "";
this.textBoxShortcutSearch.CurrentLineIndex = 0; this.textBoxShortcutSearch.CurrentLineIndex = 0;
this.textBoxShortcutSearch.HideSelection = true; this.textBoxShortcutSearch.HideSelection = true;
@ -2246,7 +2289,7 @@
this.buttonClearShortcut.Location = new System.Drawing.Point(582, 492); this.buttonClearShortcut.Location = new System.Drawing.Point(582, 492);
this.buttonClearShortcut.Name = "buttonClearShortcut"; this.buttonClearShortcut.Name = "buttonClearShortcut";
this.buttonClearShortcut.Size = new System.Drawing.Size(111, 23); this.buttonClearShortcut.Size = new System.Drawing.Size(111, 23);
this.buttonClearShortcut.TabIndex = 8; this.buttonClearShortcut.TabIndex = 9;
this.buttonClearShortcut.Text = "&Clear"; this.buttonClearShortcut.Text = "&Clear";
this.buttonClearShortcut.UseVisualStyleBackColor = true; this.buttonClearShortcut.UseVisualStyleBackColor = true;
this.buttonClearShortcut.Click += new System.EventHandler(this.buttonClearShortcut_Click); this.buttonClearShortcut.Click += new System.EventHandler(this.buttonClearShortcut_Click);
@ -2409,7 +2452,7 @@
this.comboBoxShortcutKey.SelectedItem = null; this.comboBoxShortcutKey.SelectedItem = null;
this.comboBoxShortcutKey.SelectedText = ""; this.comboBoxShortcutKey.SelectedText = "";
this.comboBoxShortcutKey.Size = new System.Drawing.Size(92, 21); this.comboBoxShortcutKey.Size = new System.Drawing.Size(92, 21);
this.comboBoxShortcutKey.TabIndex = 6; this.comboBoxShortcutKey.TabIndex = 7;
this.comboBoxShortcutKey.UsePopupWindow = false; this.comboBoxShortcutKey.UsePopupWindow = false;
this.comboBoxShortcutKey.SelectedIndexChanged += new System.EventHandler(this.ValidateShortcut); this.comboBoxShortcutKey.SelectedIndexChanged += new System.EventHandler(this.ValidateShortcut);
this.comboBoxShortcutKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboBoxShortcutKey_KeyDown); this.comboBoxShortcutKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboBoxShortcutKey_KeyDown);
@ -2432,7 +2475,7 @@
this.checkBoxShortcutsShift.Location = new System.Drawing.Point(245, 494); this.checkBoxShortcutsShift.Location = new System.Drawing.Point(245, 494);
this.checkBoxShortcutsShift.Name = "checkBoxShortcutsShift"; this.checkBoxShortcutsShift.Name = "checkBoxShortcutsShift";
this.checkBoxShortcutsShift.Size = new System.Drawing.Size(48, 17); this.checkBoxShortcutsShift.Size = new System.Drawing.Size(48, 17);
this.checkBoxShortcutsShift.TabIndex = 5; this.checkBoxShortcutsShift.TabIndex = 6;
this.checkBoxShortcutsShift.Text = "Shift"; this.checkBoxShortcutsShift.Text = "Shift";
this.checkBoxShortcutsShift.UseVisualStyleBackColor = true; this.checkBoxShortcutsShift.UseVisualStyleBackColor = true;
this.checkBoxShortcutsShift.CheckedChanged += new System.EventHandler(this.ValidateShortcut); this.checkBoxShortcutsShift.CheckedChanged += new System.EventHandler(this.ValidateShortcut);
@ -2445,7 +2488,7 @@
this.checkBoxShortcutsAlt.Location = new System.Drawing.Point(176, 494); this.checkBoxShortcutsAlt.Location = new System.Drawing.Point(176, 494);
this.checkBoxShortcutsAlt.Name = "checkBoxShortcutsAlt"; this.checkBoxShortcutsAlt.Name = "checkBoxShortcutsAlt";
this.checkBoxShortcutsAlt.Size = new System.Drawing.Size(39, 17); this.checkBoxShortcutsAlt.Size = new System.Drawing.Size(39, 17);
this.checkBoxShortcutsAlt.TabIndex = 4; this.checkBoxShortcutsAlt.TabIndex = 5;
this.checkBoxShortcutsAlt.Text = "Alt"; this.checkBoxShortcutsAlt.Text = "Alt";
this.checkBoxShortcutsAlt.UseVisualStyleBackColor = true; this.checkBoxShortcutsAlt.UseVisualStyleBackColor = true;
this.checkBoxShortcutsAlt.CheckedChanged += new System.EventHandler(this.ValidateShortcut); this.checkBoxShortcutsAlt.CheckedChanged += new System.EventHandler(this.ValidateShortcut);
@ -2458,7 +2501,7 @@
this.checkBoxShortcutsControl.Location = new System.Drawing.Point(89, 494); this.checkBoxShortcutsControl.Location = new System.Drawing.Point(89, 494);
this.checkBoxShortcutsControl.Name = "checkBoxShortcutsControl"; this.checkBoxShortcutsControl.Name = "checkBoxShortcutsControl";
this.checkBoxShortcutsControl.Size = new System.Drawing.Size(61, 17); this.checkBoxShortcutsControl.Size = new System.Drawing.Size(61, 17);
this.checkBoxShortcutsControl.TabIndex = 3; this.checkBoxShortcutsControl.TabIndex = 4;
this.checkBoxShortcutsControl.Text = "Control"; this.checkBoxShortcutsControl.Text = "Control";
this.checkBoxShortcutsControl.UseVisualStyleBackColor = true; this.checkBoxShortcutsControl.UseVisualStyleBackColor = true;
this.checkBoxShortcutsControl.CheckedChanged += new System.EventHandler(this.ValidateShortcut); this.checkBoxShortcutsControl.CheckedChanged += new System.EventHandler(this.ValidateShortcut);
@ -2470,7 +2513,7 @@
this.buttonUpdateShortcut.Location = new System.Drawing.Point(465, 492); this.buttonUpdateShortcut.Location = new System.Drawing.Point(465, 492);
this.buttonUpdateShortcut.Name = "buttonUpdateShortcut"; this.buttonUpdateShortcut.Name = "buttonUpdateShortcut";
this.buttonUpdateShortcut.Size = new System.Drawing.Size(111, 23); this.buttonUpdateShortcut.Size = new System.Drawing.Size(111, 23);
this.buttonUpdateShortcut.TabIndex = 7; this.buttonUpdateShortcut.TabIndex = 8;
this.buttonUpdateShortcut.Text = "&Update"; this.buttonUpdateShortcut.Text = "&Update";
this.buttonUpdateShortcut.UseVisualStyleBackColor = true; this.buttonUpdateShortcut.UseVisualStyleBackColor = true;
this.buttonUpdateShortcut.Click += new System.EventHandler(this.buttonUpdateShortcut_Click); this.buttonUpdateShortcut.Click += new System.EventHandler(this.buttonUpdateShortcut_Click);
@ -2485,7 +2528,7 @@
this.treeViewShortcuts.Location = new System.Drawing.Point(16, 47); this.treeViewShortcuts.Location = new System.Drawing.Point(16, 47);
this.treeViewShortcuts.Name = "treeViewShortcuts"; this.treeViewShortcuts.Name = "treeViewShortcuts";
this.treeViewShortcuts.Size = new System.Drawing.Size(829, 439); this.treeViewShortcuts.Size = new System.Drawing.Size(829, 439);
this.treeViewShortcuts.TabIndex = 2; this.treeViewShortcuts.TabIndex = 3;
this.treeViewShortcuts.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewShortcuts_AfterSelect); this.treeViewShortcuts.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewShortcuts_AfterSelect);
// //
// contextMenuStripShortcuts // contextMenuStripShortcuts
@ -6462,6 +6505,14 @@
this.groupBoxAutoTranslatePapago.TabStop = false; this.groupBoxAutoTranslatePapago.TabStop = false;
this.groupBoxAutoTranslatePapago.Text = "Papago"; this.groupBoxAutoTranslatePapago.Text = "Papago";
// //
// nikseTextBoxPapagoClientId
//
this.nikseTextBoxPapagoClientId.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxPapagoClientId.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxPapagoClientId.Name = "nikseTextBoxPapagoClientId";
this.nikseTextBoxPapagoClientId.Size = new System.Drawing.Size(384, 21);
this.nikseTextBoxPapagoClientId.TabIndex = 34;
//
// nikseTextBoxPapagoClientSecret // nikseTextBoxPapagoClientSecret
// //
this.nikseTextBoxPapagoClientSecret.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215))))); this.nikseTextBoxPapagoClientSecret.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
@ -6479,14 +6530,6 @@
this.labelSecretPapago.TabIndex = 35; this.labelSecretPapago.TabIndex = 35;
this.labelSecretPapago.Text = "Client secret"; this.labelSecretPapago.Text = "Client secret";
// //
// nikseTextBoxPapagoClientId
//
this.nikseTextBoxPapagoClientId.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxPapagoClientId.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxPapagoClientId.Name = "nikseTextBoxPapagoClientId";
this.nikseTextBoxPapagoClientId.Size = new System.Drawing.Size(384, 21);
this.nikseTextBoxPapagoClientId.TabIndex = 34;
//
// labelApiKeyPapago // labelApiKeyPapago
// //
this.labelApiKeyPapago.AutoSize = true; this.labelApiKeyPapago.AutoSize = true;
@ -6534,6 +6577,14 @@
this.groupBoxAutoTranslateChatGpt.TabStop = false; this.groupBoxAutoTranslateChatGpt.TabStop = false;
this.groupBoxAutoTranslateChatGpt.Text = "ChatGPT API"; this.groupBoxAutoTranslateChatGpt.Text = "ChatGPT API";
// //
// nikseTextBoxChatGptUrl
//
this.nikseTextBoxChatGptUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxChatGptUrl.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxChatGptUrl.Name = "nikseTextBoxChatGptUrl";
this.nikseTextBoxChatGptUrl.Size = new System.Drawing.Size(384, 21);
this.nikseTextBoxChatGptUrl.TabIndex = 34;
//
// nikseComboBoxChatGptDelay // nikseComboBoxChatGptDelay
// //
this.nikseComboBoxChatGptDelay.BackColor = System.Drawing.SystemColors.Window; this.nikseComboBoxChatGptDelay.BackColor = System.Drawing.SystemColors.Window;
@ -6586,14 +6637,6 @@
this.labelApiKeyChatGpt.TabIndex = 35; this.labelApiKeyChatGpt.TabIndex = 35;
this.labelApiKeyChatGpt.Text = "API key"; this.labelApiKeyChatGpt.Text = "API key";
// //
// nikseTextBoxChatGptUrl
//
this.nikseTextBoxChatGptUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxChatGptUrl.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxChatGptUrl.Name = "nikseTextBoxChatGptUrl";
this.nikseTextBoxChatGptUrl.Size = new System.Drawing.Size(384, 21);
this.nikseTextBoxChatGptUrl.TabIndex = 34;
//
// labelUrlChatGpt // labelUrlChatGpt
// //
this.labelUrlChatGpt.AutoSize = true; this.labelUrlChatGpt.AutoSize = true;
@ -6639,6 +6682,14 @@
this.groupBoxDeepL.TabStop = false; this.groupBoxDeepL.TabStop = false;
this.groupBoxDeepL.Text = "DeepL"; this.groupBoxDeepL.Text = "DeepL";
// //
// nikseTextBoxDeepLUrl
//
this.nikseTextBoxDeepLUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxDeepLUrl.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxDeepLUrl.Name = "nikseTextBoxDeepLUrl";
this.nikseTextBoxDeepLUrl.Size = new System.Drawing.Size(376, 21);
this.nikseTextBoxDeepLUrl.TabIndex = 34;
//
// nikseTextBoxDeepLApiKey // nikseTextBoxDeepLApiKey
// //
this.nikseTextBoxDeepLApiKey.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215))))); this.nikseTextBoxDeepLApiKey.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
@ -6656,14 +6707,6 @@
this.labelDeepLApiKey.TabIndex = 35; this.labelDeepLApiKey.TabIndex = 35;
this.labelDeepLApiKey.Text = "API key"; this.labelDeepLApiKey.Text = "API key";
// //
// nikseTextBoxDeepLUrl
//
this.nikseTextBoxDeepLUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxDeepLUrl.Location = new System.Drawing.Point(8, 41);
this.nikseTextBoxDeepLUrl.Name = "nikseTextBoxDeepLUrl";
this.nikseTextBoxDeepLUrl.Size = new System.Drawing.Size(376, 21);
this.nikseTextBoxDeepLUrl.TabIndex = 34;
//
// labelDeepLUrl // labelDeepLUrl
// //
this.labelDeepLUrl.AutoSize = true; this.labelDeepLUrl.AutoSize = true;
@ -6833,6 +6876,14 @@
this.groupBoxNllbServe.TabStop = false; this.groupBoxNllbServe.TabStop = false;
this.groupBoxNllbServe.Text = "NLLM Serve"; this.groupBoxNllbServe.Text = "NLLM Serve";
// //
// nikseTextBoxNllbServeUrl
//
this.nikseTextBoxNllbServeUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxNllbServeUrl.Location = new System.Drawing.Point(8, 40);
this.nikseTextBoxNllbServeUrl.Name = "nikseTextBoxNllbServeUrl";
this.nikseTextBoxNllbServeUrl.Size = new System.Drawing.Size(376, 21);
this.nikseTextBoxNllbServeUrl.TabIndex = 34;
//
// nikseTextBoxNllbServeModel // nikseTextBoxNllbServeModel
// //
this.nikseTextBoxNllbServeModel.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215))))); this.nikseTextBoxNllbServeModel.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
@ -6850,14 +6901,6 @@
this.labelNllbServeModel.TabIndex = 36; this.labelNllbServeModel.TabIndex = 36;
this.labelNllbServeModel.Text = "Model"; this.labelNllbServeModel.Text = "Model";
// //
// nikseTextBoxNllbServeUrl
//
this.nikseTextBoxNllbServeUrl.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
this.nikseTextBoxNllbServeUrl.Location = new System.Drawing.Point(8, 40);
this.nikseTextBoxNllbServeUrl.Name = "nikseTextBoxNllbServeUrl";
this.nikseTextBoxNllbServeUrl.Size = new System.Drawing.Size(376, 21);
this.nikseTextBoxNllbServeUrl.TabIndex = 34;
//
// labelNllbServeUrl // labelNllbServeUrl
// //
this.labelNllbServeUrl.AutoSize = true; this.labelNllbServeUrl.AutoSize = true;
@ -6943,13 +6986,13 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1092, 574); this.ClientSize = new System.Drawing.Size(1092, 574);
this.Controls.Add(this.panelShortcuts);
this.Controls.Add(this.panelAutoTranslate); this.Controls.Add(this.panelAutoTranslate);
this.Controls.Add(this.panelVideoPlayer); this.Controls.Add(this.panelVideoPlayer);
this.Controls.Add(this.labelUpdateFileTypeAssociationsStatus); this.Controls.Add(this.labelUpdateFileTypeAssociationsStatus);
this.Controls.Add(this.panelGeneral); this.Controls.Add(this.panelGeneral);
this.Controls.Add(this.panelTools); this.Controls.Add(this.panelTools);
this.Controls.Add(this.panelNetwork); this.Controls.Add(this.panelNetwork);
this.Controls.Add(this.panelShortcuts);
this.Controls.Add(this.panelFont); this.Controls.Add(this.panelFont);
this.Controls.Add(this.panelSubtitleFormats); this.Controls.Add(this.panelSubtitleFormats);
this.Controls.Add(this.panelWaveform); this.Controls.Add(this.panelWaveform);
@ -7572,5 +7615,7 @@
private System.Windows.Forms.LinkLabel linkLabelMoreInfoChatGpt; private System.Windows.Forms.LinkLabel linkLabelMoreInfoChatGpt;
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
private Controls.NikseComboBox nikseComboBoxChatGptDelay; private Controls.NikseComboBox nikseComboBoxChatGptDelay;
private System.Windows.Forms.Label labelShortcutsFilter;
private Controls.NikseComboBox nikseComboBoxShortcutsFilter;
} }
} }

View File

@ -1220,6 +1220,15 @@ namespace Nikse.SubtitleEdit.Forms.Options
buttonShortcutsClear.Text = LanguageSettings.Current.DvdSubRip.Clear; buttonShortcutsClear.Text = LanguageSettings.Current.DvdSubRip.Clear;
textBoxShortcutSearch.Left = labelShortcutsSearch.Left + labelShortcutsSearch.Width + 5; textBoxShortcutSearch.Left = labelShortcutsSearch.Left + labelShortcutsSearch.Width + 5;
buttonShortcutsClear.Left = textBoxShortcutSearch.Left + textBoxShortcutSearch.Width + 5; buttonShortcutsClear.Left = textBoxShortcutSearch.Left + textBoxShortcutSearch.Width + 5;
labelShortcutsFilter.Text = LanguageSettings.Current.BatchConvert.Filter;
nikseComboBoxShortcutsFilter.Left = labelShortcutsFilter.Right + 5;
nikseComboBoxShortcutsFilter.SelectedIndex = 0;
nikseComboBoxShortcutsFilter.Enabled = true;
nikseComboBoxShortcutsFilter.Items[0] = LanguageSettings.Current.General.All;
nikseComboBoxShortcutsFilter.Items[1] = LanguageSettings.Current.Settings.Used;
nikseComboBoxShortcutsFilter.Items[2] = LanguageSettings.Current.Settings.Unused;
nikseComboBoxShortcutsFilter.DropDownStyle = ComboBoxStyle.DropDownList;
// Subtitle formats // Subtitle formats
groupBoxSubtitleFormats.Text = language.SubtitleFormats; groupBoxSubtitleFormats.Text = language.SubtitleFormats;
@ -1961,6 +1970,24 @@ namespace Nikse.SubtitleEdit.Forms.Options
private void AddNode(TreeNode parentNode, string text, ShortcutHelper shortcut) private void AddNode(TreeNode parentNode, string text, ShortcutHelper shortcut)
{ {
var emptyText = "[" + LanguageSettings.Current.General.None + "]";
if (nikseComboBoxShortcutsFilter.SelectedIndex == 1) // used
{
if (text.Contains(emptyText))
{
return;
}
}
if (nikseComboBoxShortcutsFilter.SelectedIndex == 2) // unused
{
if (!text.Contains(emptyText))
{
return;
}
}
var normalizeAmpersand = text.Replace("&&", "@_____@").Replace("&", string.Empty).Replace("@_____@", "&"); var normalizeAmpersand = text.Replace("&&", "@_____@").Replace("&", string.Empty).Replace("@_____@", "&");
if (textBoxShortcutSearch.Left < 2 || normalizeAmpersand.Contains(textBoxShortcutSearch.Text, StringComparison.OrdinalIgnoreCase)) if (textBoxShortcutSearch.Left < 2 || normalizeAmpersand.Contains(textBoxShortcutSearch.Text, StringComparison.OrdinalIgnoreCase))
{ {
@ -4023,5 +4050,10 @@ namespace Nikse.SubtitleEdit.Forms.Options
{ {
UiUtil.OpenUrl(new DeepLTranslate().Url); UiUtil.OpenUrl(new DeepLTranslate().Url);
} }
private void nikseComboBoxShortcutsFilter_SelectedIndexChanged(object sender, EventArgs e)
{
textBoxShortcutSearch_TextChanged(null, null);
}
} }
} }

View File

@ -3211,6 +3211,8 @@ can edit in same subtitle file (collaboration)",
ExportAsHtml = "Export as HTML...", ExportAsHtml = "Export as HTML...",
SetNewActor = "Set new actor/voice", SetNewActor = "Set new actor/voice",
SetActorX = "Set actor/voice {0}", SetActorX = "Set actor/voice {0}",
Used = "Used",
Unused = "Unused",
}; };
SettingsMpv = new LanguageStructure.SettingsMpv SettingsMpv = new LanguageStructure.SettingsMpv

View File

@ -7825,6 +7825,12 @@ namespace Nikse.SubtitleEdit.Logic
case "Settings/SetActorX": case "Settings/SetActorX":
language.Settings.SetActorX = reader.Value; language.Settings.SetActorX = reader.Value;
break; break;
case "Settings/Used":
language.Settings.Used = reader.Value;
break;
case "Settings/Unused":
language.Settings.Unused = reader.Value;
break;
case "SettingsMpv/DownloadMpv": case "SettingsMpv/DownloadMpv":
language.SettingsMpv.DownloadMpv = reader.Value; language.SettingsMpv.DownloadMpv = reader.Value;
break; break;

View File

@ -3022,6 +3022,8 @@
public string ExportAsHtml { get; set; } public string ExportAsHtml { get; set; }
public string SetNewActor { get; set; } public string SetNewActor { get; set; }
public string SetActorX { get; set; } public string SetActorX { get; set; }
public string Used { get; set; }
public string Unused { get; set; }
} }
public class SettingsMpv public class SettingsMpv