diff --git a/Changelog.txt b/Changelog.txt index ab4d8f4cb..fbfd3ed2f 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -17,6 +17,7 @@ * Fix for Antrophic translate - thx venomousraid * Fix possible crash in teletext reading - thx yellobyte * Fix unwanted text boxes background color change - thx Leon + * Fix Whisper on selection in waveform in "translation mode" - thx rRobis 4.0.5 (13th April 2024) diff --git a/src/ui/Forms/Main.Designer.cs b/src/ui/Forms/Main.Designer.cs index 6592ca127..1e6d87231 100644 --- a/src/ui/Forms/Main.Designer.cs +++ b/src/ui/Forms/Main.Designer.cs @@ -41,9 +41,9 @@ namespace Nikse.SubtitleEdit.Forms { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main)); - Nikse.SubtitleEdit.Core.Common.TimeCode timeCode4 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); - Nikse.SubtitleEdit.Core.Common.TimeCode timeCode5 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); - Nikse.SubtitleEdit.Core.Common.TimeCode timeCode6 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); + Nikse.SubtitleEdit.Core.Common.TimeCode timeCode1 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); + Nikse.SubtitleEdit.Core.Common.TimeCode timeCode2 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); + Nikse.SubtitleEdit.Core.Common.TimeCode timeCode3 = new Nikse.SubtitleEdit.Core.Common.TimeCode(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.labelStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripSelected = new System.Windows.Forms.ToolStripStatusLabel(); @@ -3886,14 +3886,14 @@ namespace Nikse.SubtitleEdit.Forms this.timeUpDownVideoPosition.Size = new System.Drawing.Size(113, 23); this.timeUpDownVideoPosition.TabIndex = 12; this.timeUpDownVideoPosition.TabStop = false; - timeCode4.Hours = 0; - timeCode4.Milliseconds = 0; - timeCode4.Minutes = 0; - timeCode4.Seconds = 0; - timeCode4.TimeSpan = System.TimeSpan.Parse("00:00:00"); - timeCode4.TotalMilliseconds = 0D; - timeCode4.TotalSeconds = 0D; - this.timeUpDownVideoPosition.TimeCode = timeCode4; + timeCode1.Hours = 0; + timeCode1.Milliseconds = 0; + timeCode1.Minutes = 0; + timeCode1.Seconds = 0; + timeCode1.TimeSpan = System.TimeSpan.Parse("00:00:00"); + timeCode1.TotalMilliseconds = 0D; + timeCode1.TotalSeconds = 0D; + this.timeUpDownVideoPosition.TimeCode = timeCode1; this.timeUpDownVideoPosition.UseVideoOffset = false; // // buttonGotoSub @@ -4166,14 +4166,14 @@ namespace Nikse.SubtitleEdit.Forms this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(113, 23); this.timeUpDownVideoPositionAdjust.TabIndex = 13; this.timeUpDownVideoPositionAdjust.TabStop = false; - timeCode5.Hours = 0; - timeCode5.Milliseconds = 0; - timeCode5.Minutes = 0; - timeCode5.Seconds = 0; - timeCode5.TimeSpan = System.TimeSpan.Parse("00:00:00"); - timeCode5.TotalMilliseconds = 0D; - timeCode5.TotalSeconds = 0D; - this.timeUpDownVideoPositionAdjust.TimeCode = timeCode5; + timeCode2.Hours = 0; + timeCode2.Milliseconds = 0; + timeCode2.Minutes = 0; + timeCode2.Seconds = 0; + timeCode2.TimeSpan = System.TimeSpan.Parse("00:00:00"); + timeCode2.TotalMilliseconds = 0D; + timeCode2.TotalSeconds = 0D; + this.timeUpDownVideoPositionAdjust.TimeCode = timeCode2; this.timeUpDownVideoPositionAdjust.UseVideoOffset = false; // // buttonAdjustSetEndTime @@ -4455,7 +4455,6 @@ namespace Nikse.SubtitleEdit.Forms this.splitToolStripMenuItem1, this.mergeWithPreviousToolStripMenuItem, this.mergeWithNextToolStripMenuItem, - this.runWhiperOnParagraphToolStripMenuItem, this.toolStripSeparator11, this.extendToPreviousToolStripMenuItem, this.extendToNextToolStripMenuItem, @@ -4468,11 +4467,12 @@ namespace Nikse.SubtitleEdit.Forms this.toolStripSeparatorGuessTimeCodes, this.removeShotChangeToolStripMenuItem, this.addShotChangeToolStripMenuItem, + this.runWhiperOnParagraphToolStripMenuItem, this.guessTimeCodesToolStripMenuItem, this.seekSilenceToolStripMenuItem, this.insertSubtitleHereToolStripMenuItem}); this.contextMenuStripWaveform.Name = "contextMenuStripWaveform"; - this.contextMenuStripWaveform.Size = new System.Drawing.Size(275, 512); + this.contextMenuStripWaveform.Size = new System.Drawing.Size(275, 534); this.contextMenuStripWaveform.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.ContextMenuStripWaveformClosing); this.contextMenuStripWaveform.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripWaveformOpening); // @@ -5522,14 +5522,14 @@ namespace Nikse.SubtitleEdit.Forms this.timeUpDownStartTime.Size = new System.Drawing.Size(113, 23); this.timeUpDownStartTime.TabIndex = 0; this.timeUpDownStartTime.TabStop = false; - timeCode6.Hours = 0; - timeCode6.Milliseconds = 0; - timeCode6.Minutes = 0; - timeCode6.Seconds = 0; - timeCode6.TimeSpan = System.TimeSpan.Parse("00:00:00"); - timeCode6.TotalMilliseconds = 0D; - timeCode6.TotalSeconds = 0D; - this.timeUpDownStartTime.TimeCode = timeCode6; + timeCode3.Hours = 0; + timeCode3.Milliseconds = 0; + timeCode3.Minutes = 0; + timeCode3.Seconds = 0; + timeCode3.TimeSpan = System.TimeSpan.Parse("00:00:00"); + timeCode3.TotalMilliseconds = 0D; + timeCode3.TotalSeconds = 0D; + this.timeUpDownStartTime.TimeCode = timeCode3; this.timeUpDownStartTime.UseVideoOffset = false; // // numericUpDownDuration diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index e326db66e..39038fd31 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -36608,6 +36608,9 @@ namespace Nikse.SubtitleEdit.Forms _subtitleOriginal = new Subtitle(_subtitle, false); _subtitleOriginalFileName = _fileName; _fileName = null; + var oldHash = _changeOriginalSubtitleHash; + SetupOriginalEdit(); + _changeOriginalSubtitleHash = oldHash; foreach (var p in _subtitle.Paragraphs) { diff --git a/src/ui/Forms/Main.resx b/src/ui/Forms/Main.resx index 305143bee..d5979c470 100644 --- a/src/ui/Forms/Main.resx +++ b/src/ui/Forms/Main.resx @@ -687,9 +687,6 @@ 652, 56 - - 652, 56 - iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 @@ -772,12 +769,12 @@ 981, 56 - - 193, 17 - 668, 17 + + 193, 17 + 17, 95