diff --git a/src/Forms/Main.Designer.cs b/src/Forms/Main.Designer.cs
index 5b601d14c..7e01bc533 100644
--- a/src/Forms/Main.Designer.cs
+++ b/src/Forms/Main.Designer.cs
@@ -159,7 +159,6 @@
this.panelSingleLine = new System.Windows.Forms.Panel();
this.labelTextLineTotal = new System.Windows.Forms.Label();
this.buttonUnBreak = new System.Windows.Forms.Button();
- this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.buttonUndoListViewChanges = new System.Windows.Forms.Button();
this.labelStartTimeWarning = new System.Windows.Forms.Label();
this.labelDurationWarning = new System.Windows.Forms.Label();
@@ -186,7 +185,6 @@
this.underlineToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.colorToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.fontNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.contextMenuStripListview = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripMenuItemDelete = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemInsertBefore = new System.Windows.Forms.ToolStripMenuItem();
@@ -236,7 +234,7 @@
this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButtonWaveFormPause = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonWaveFormPlay = new System.Windows.Forms.ToolStripButton();
- this.AudioWaveForm = new Nikse.SubtitleEdit.Controls.WaveForm();
+ this.toolStripButtonLockCenter = new System.Windows.Forms.ToolStripButton();
this.tabControlButtons = new System.Windows.Forms.TabControl();
this.tabPageTranslate = new System.Windows.Forms.TabPage();
this.labelTranslateTip = new System.Windows.Forms.Label();
@@ -275,7 +273,6 @@
this.numericUpDownSec1 = new System.Windows.Forms.NumericUpDown();
this.labelVideoPosition = new System.Windows.Forms.Label();
this.buttonSecBack1 = new System.Windows.Forms.Button();
- this.timeUpDownVideoPosition = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.tabPageAdjust = new System.Windows.Forms.TabPage();
this.buttonAdjustSetEndTime = new System.Windows.Forms.Button();
this.buttonSetEndAndGoToNext = new System.Windows.Forms.Button();
@@ -295,10 +292,8 @@
this.labelVideoPosition2 = new System.Windows.Forms.Label();
this.buttonAdjustGoToPosAndPause = new System.Windows.Forms.Button();
this.buttonAdjustPlayBefore = new System.Windows.Forms.Button();
- this.timeUpDownVideoPositionAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.panelVideoPlayer = new System.Windows.Forms.Panel();
this.labelSubtitle = new System.Windows.Forms.Label();
- this.mediaPlayer = new Nikse.SubtitleEdit.Controls.VideoPlayerContainer();
this.videoTimer = new System.Windows.Forms.Timer(this.components);
this.timerAutoDuration = new System.Windows.Forms.Timer(this.components);
this.timerAutoContinue = new System.Windows.Forms.Timer(this.components);
@@ -314,6 +309,12 @@
this.toolStripMenuItemWaveFormPlaySelection = new System.Windows.Forms.ToolStripMenuItem();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainerMain = new System.Windows.Forms.SplitContainer();
+ this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.TimeUpDown();
+ this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
+ this.mediaPlayer = new Nikse.SubtitleEdit.Controls.VideoPlayerContainer();
+ this.AudioWaveForm = new Nikse.SubtitleEdit.Controls.WaveForm();
+ this.timeUpDownVideoPosition = new Nikse.SubtitleEdit.Controls.TimeUpDown();
+ this.timeUpDownVideoPositionAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.statusStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
@@ -1509,16 +1510,6 @@
this.buttonUnBreak.UseVisualStyleBackColor = true;
this.buttonUnBreak.Click += new System.EventHandler(this.ButtonUnBreakClick);
//
- // timeUpDownStartTime
- //
- this.timeUpDownStartTime.AutoSize = true;
- this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.timeUpDownStartTime.Location = new System.Drawing.Point(9, 27);
- this.timeUpDownStartTime.Margin = new System.Windows.Forms.Padding(4);
- this.timeUpDownStartTime.Name = "timeUpDownStartTime";
- this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25);
- this.timeUpDownStartTime.TabIndex = 0;
- //
// buttonUndoListViewChanges
//
this.buttonUndoListViewChanges.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -1768,31 +1759,6 @@
this.fontNameToolStripMenuItem.Text = "Font name...";
this.fontNameToolStripMenuItem.Click += new System.EventHandler(this.fontNameToolStripMenuItem_Click);
//
- // SubtitleListview1
- //
- this.SubtitleListview1.AllowDrop = true;
- this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.SubtitleListview1.ContextMenuStrip = this.contextMenuStripListview;
- this.SubtitleListview1.FirstVisibleIndex = -1;
- this.SubtitleListview1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.SubtitleListview1.FullRowSelect = true;
- this.SubtitleListview1.GridLines = true;
- this.SubtitleListview1.HideSelection = false;
- this.SubtitleListview1.Location = new System.Drawing.Point(1, 3);
- this.SubtitleListview1.Name = "SubtitleListview1";
- this.SubtitleListview1.Size = new System.Drawing.Size(932, 146);
- this.SubtitleListview1.SmallImageList = this.imageList1;
- this.SubtitleListview1.TabIndex = 0;
- this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
- this.SubtitleListview1.View = System.Windows.Forms.View.Details;
- this.SubtitleListview1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListview1_SelectedIndexChanged);
- this.SubtitleListview1.DragDrop += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragDrop);
- this.SubtitleListview1.DragEnter += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragEnter);
- this.SubtitleListview1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubtitleListview1_KeyDown);
- this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick);
- //
// contextMenuStripListview
//
this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -2105,10 +2071,10 @@
this.trackBarWaveFormPosition.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackBarWaveFormPosition.AutoSize = false;
- this.trackBarWaveFormPosition.Location = new System.Drawing.Point(645, 264);
+ this.trackBarWaveFormPosition.Location = new System.Drawing.Point(638, 264);
this.trackBarWaveFormPosition.Maximum = 1000;
this.trackBarWaveFormPosition.Name = "trackBarWaveFormPosition";
- this.trackBarWaveFormPosition.Size = new System.Drawing.Size(592, 20);
+ this.trackBarWaveFormPosition.Size = new System.Drawing.Size(599, 20);
this.trackBarWaveFormPosition.TabIndex = 11;
this.trackBarWaveFormPosition.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackBarWaveFormPosition.ValueChanged += new System.EventHandler(this.trackBarWaveFormPosition_ValueChanged);
@@ -2119,7 +2085,7 @@
this.panelWaveFormControls.Controls.Add(this.toolStrip2);
this.panelWaveFormControls.Location = new System.Drawing.Point(478, 269);
this.panelWaveFormControls.Name = "panelWaveFormControls";
- this.panelWaveFormControls.Size = new System.Drawing.Size(161, 29);
+ this.panelWaveFormControls.Size = new System.Drawing.Size(174, 29);
this.panelWaveFormControls.TabIndex = 10;
//
// toolStrip2
@@ -2133,10 +2099,11 @@
this.toolStripButtonWaveFormZoomIn,
this.toolStripSeparator16,
this.toolStripButtonWaveFormPause,
- this.toolStripButtonWaveFormPlay});
+ this.toolStripButtonWaveFormPlay,
+ this.toolStripButtonLockCenter});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
- this.toolStrip2.Size = new System.Drawing.Size(135, 25);
+ this.toolStrip2.Size = new System.Drawing.Size(158, 25);
this.toolStrip2.TabIndex = 0;
this.toolStrip2.Text = "toolStrip2";
//
@@ -2195,33 +2162,15 @@
this.toolStripButtonWaveFormPlay.Visible = false;
this.toolStripButtonWaveFormPlay.Click += new System.EventHandler(this.toolStripButtonWaveFormPlay_Click);
//
- // AudioWaveForm
+ // toolStripButtonLockCenter
//
- this.AudioWaveForm.AllowDrop = true;
- this.AudioWaveForm.AllowNewSelection = true;
- this.AudioWaveForm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.AudioWaveForm.BackColor = System.Drawing.Color.Black;
- this.AudioWaveForm.BackgroundColor = System.Drawing.Color.Black;
- this.AudioWaveForm.Color = System.Drawing.Color.GreenYellow;
- this.AudioWaveForm.DrawGridLines = true;
- this.AudioWaveForm.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(18)))));
- this.AudioWaveForm.Location = new System.Drawing.Point(475, 30);
- this.AudioWaveForm.Margin = new System.Windows.Forms.Padding(0);
- this.AudioWaveForm.Name = "AudioWaveForm";
- this.AudioWaveForm.NewSelectionParagraph = null;
- this.AudioWaveForm.SelectedColor = System.Drawing.Color.Red;
- this.AudioWaveForm.Size = new System.Drawing.Size(762, 228);
- this.AudioWaveForm.StartPositionSeconds = 0D;
- this.AudioWaveForm.TabIndex = 6;
- this.AudioWaveForm.TextColor = System.Drawing.Color.Gray;
- this.AudioWaveForm.WaveFormNotLoadedText = "Click to add wave form";
- this.AudioWaveForm.WavePeaks = null;
- this.AudioWaveForm.ZoomFactor = 1D;
- this.AudioWaveForm.Click += new System.EventHandler(this.AudioWaveForm_Click);
- this.AudioWaveForm.DragDrop += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragDrop);
- this.AudioWaveForm.DragEnter += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragEnter);
+ this.toolStripButtonLockCenter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.toolStripButtonLockCenter.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonLockCenter.Image")));
+ this.toolStripButtonLockCenter.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.toolStripButtonLockCenter.Name = "toolStripButtonLockCenter";
+ this.toolStripButtonLockCenter.Size = new System.Drawing.Size(23, 22);
+ this.toolStripButtonLockCenter.Text = "Center";
+ this.toolStripButtonLockCenter.Click += new System.EventHandler(this.toolStripButtonLockCenter_Click_1);
//
// tabControlButtons
//
@@ -2693,16 +2642,6 @@
this.buttonSecBack1.UseVisualStyleBackColor = true;
this.buttonSecBack1.Click += new System.EventHandler(this.buttonSecBack1_Click);
//
- // timeUpDownVideoPosition
- //
- this.timeUpDownVideoPosition.AutoSize = true;
- this.timeUpDownVideoPosition.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.timeUpDownVideoPosition.Location = new System.Drawing.Point(86, 192);
- this.timeUpDownVideoPosition.Margin = new System.Windows.Forms.Padding(4);
- this.timeUpDownVideoPosition.Name = "timeUpDownVideoPosition";
- this.timeUpDownVideoPosition.Size = new System.Drawing.Size(92, 25);
- this.timeUpDownVideoPosition.TabIndex = 12;
- //
// tabPageAdjust
//
this.tabPageAdjust.Controls.Add(this.buttonAdjustSetEndTime);
@@ -2936,16 +2875,6 @@
this.buttonAdjustPlayBefore.UseVisualStyleBackColor = true;
this.buttonAdjustPlayBefore.Click += new System.EventHandler(this.buttonBeforeText_Click);
//
- // timeUpDownVideoPositionAdjust
- //
- this.timeUpDownVideoPositionAdjust.AutoSize = true;
- this.timeUpDownVideoPositionAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.timeUpDownVideoPositionAdjust.Location = new System.Drawing.Point(87, 214);
- this.timeUpDownVideoPositionAdjust.Margin = new System.Windows.Forms.Padding(4);
- this.timeUpDownVideoPositionAdjust.Name = "timeUpDownVideoPositionAdjust";
- this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(92, 25);
- this.timeUpDownVideoPositionAdjust.TabIndex = 13;
- //
// panelVideoPlayer
//
this.panelVideoPlayer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -2972,24 +2901,6 @@
this.labelSubtitle.Text = "labelSubtitle";
this.labelSubtitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
- // mediaPlayer
- //
- this.mediaPlayer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.mediaPlayer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(18)))), ((int)(((byte)(18)))));
- this.mediaPlayer.CurrentPosition = 0D;
- this.mediaPlayer.Location = new System.Drawing.Point(0, 0);
- this.mediaPlayer.Margin = new System.Windows.Forms.Padding(0);
- this.mediaPlayer.Name = "mediaPlayer";
- this.mediaPlayer.ShowStopButton = true;
- this.mediaPlayer.Size = new System.Drawing.Size(281, 246);
- this.mediaPlayer.TabIndex = 5;
- this.mediaPlayer.VideoPlayer = null;
- this.mediaPlayer.Volume = 0D;
- this.mediaPlayer.DragDrop += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragDrop);
- this.mediaPlayer.DragEnter += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragEnter);
- //
// videoTimer
//
this.videoTimer.Interval = 500;
@@ -3110,6 +3021,107 @@
this.splitContainerMain.SplitterDistance = 285;
this.splitContainerMain.TabIndex = 8;
//
+ // timeUpDownStartTime
+ //
+ this.timeUpDownStartTime.AutoSize = true;
+ this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.timeUpDownStartTime.Location = new System.Drawing.Point(9, 27);
+ this.timeUpDownStartTime.Margin = new System.Windows.Forms.Padding(4);
+ this.timeUpDownStartTime.Name = "timeUpDownStartTime";
+ this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25);
+ this.timeUpDownStartTime.TabIndex = 0;
+ //
+ // SubtitleListview1
+ //
+ this.SubtitleListview1.AllowDrop = true;
+ this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.SubtitleListview1.ContextMenuStrip = this.contextMenuStripListview;
+ this.SubtitleListview1.FirstVisibleIndex = -1;
+ this.SubtitleListview1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.SubtitleListview1.FullRowSelect = true;
+ this.SubtitleListview1.GridLines = true;
+ this.SubtitleListview1.HideSelection = false;
+ this.SubtitleListview1.Location = new System.Drawing.Point(1, 3);
+ this.SubtitleListview1.Name = "SubtitleListview1";
+ this.SubtitleListview1.Size = new System.Drawing.Size(932, 146);
+ this.SubtitleListview1.SmallImageList = this.imageList1;
+ this.SubtitleListview1.TabIndex = 0;
+ this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
+ this.SubtitleListview1.View = System.Windows.Forms.View.Details;
+ this.SubtitleListview1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListview1_SelectedIndexChanged);
+ this.SubtitleListview1.DragDrop += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragDrop);
+ this.SubtitleListview1.DragEnter += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragEnter);
+ this.SubtitleListview1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubtitleListview1_KeyDown);
+ this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick);
+ //
+ // mediaPlayer
+ //
+ this.mediaPlayer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.mediaPlayer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(18)))), ((int)(((byte)(18)))));
+ this.mediaPlayer.CurrentPosition = 0D;
+ this.mediaPlayer.Location = new System.Drawing.Point(0, 0);
+ this.mediaPlayer.Margin = new System.Windows.Forms.Padding(0);
+ this.mediaPlayer.Name = "mediaPlayer";
+ this.mediaPlayer.ShowStopButton = true;
+ this.mediaPlayer.Size = new System.Drawing.Size(281, 246);
+ this.mediaPlayer.TabIndex = 5;
+ this.mediaPlayer.VideoPlayer = null;
+ this.mediaPlayer.Volume = 0D;
+ this.mediaPlayer.DragDrop += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragDrop);
+ this.mediaPlayer.DragEnter += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragEnter);
+ //
+ // AudioWaveForm
+ //
+ this.AudioWaveForm.AllowDrop = true;
+ this.AudioWaveForm.AllowNewSelection = true;
+ this.AudioWaveForm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.AudioWaveForm.BackColor = System.Drawing.Color.Black;
+ this.AudioWaveForm.BackgroundColor = System.Drawing.Color.Black;
+ this.AudioWaveForm.Color = System.Drawing.Color.GreenYellow;
+ this.AudioWaveForm.DrawGridLines = true;
+ this.AudioWaveForm.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(18)))));
+ this.AudioWaveForm.Location = new System.Drawing.Point(475, 30);
+ this.AudioWaveForm.Margin = new System.Windows.Forms.Padding(0);
+ this.AudioWaveForm.Name = "AudioWaveForm";
+ this.AudioWaveForm.NewSelectionParagraph = null;
+ this.AudioWaveForm.SelectedColor = System.Drawing.Color.Red;
+ this.AudioWaveForm.Size = new System.Drawing.Size(762, 228);
+ this.AudioWaveForm.StartPositionSeconds = 0D;
+ this.AudioWaveForm.TabIndex = 6;
+ this.AudioWaveForm.TextColor = System.Drawing.Color.Gray;
+ this.AudioWaveForm.WaveFormNotLoadedText = "Click to add wave form";
+ this.AudioWaveForm.WavePeaks = null;
+ this.AudioWaveForm.ZoomFactor = 1D;
+ this.AudioWaveForm.Click += new System.EventHandler(this.AudioWaveForm_Click);
+ this.AudioWaveForm.DragDrop += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragDrop);
+ this.AudioWaveForm.DragEnter += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragEnter);
+ //
+ // timeUpDownVideoPosition
+ //
+ this.timeUpDownVideoPosition.AutoSize = true;
+ this.timeUpDownVideoPosition.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.timeUpDownVideoPosition.Location = new System.Drawing.Point(86, 192);
+ this.timeUpDownVideoPosition.Margin = new System.Windows.Forms.Padding(4);
+ this.timeUpDownVideoPosition.Name = "timeUpDownVideoPosition";
+ this.timeUpDownVideoPosition.Size = new System.Drawing.Size(92, 25);
+ this.timeUpDownVideoPosition.TabIndex = 12;
+ //
+ // timeUpDownVideoPositionAdjust
+ //
+ this.timeUpDownVideoPositionAdjust.AutoSize = true;
+ this.timeUpDownVideoPositionAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.timeUpDownVideoPositionAdjust.Location = new System.Drawing.Point(87, 214);
+ this.timeUpDownVideoPositionAdjust.Margin = new System.Windows.Forms.Padding(4);
+ this.timeUpDownVideoPositionAdjust.Name = "timeUpDownVideoPositionAdjust";
+ this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(92, 25);
+ this.timeUpDownVideoPositionAdjust.TabIndex = 13;
+ //
// Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -3468,6 +3480,7 @@
private System.Windows.Forms.ToolStripMenuItem undockVideoControlsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem redockVideoControlsToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator19;
+ private System.Windows.Forms.ToolStripButton toolStripButtonLockCenter;
}
}
diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs
index 97956c27e..c41454508 100644
--- a/src/Forms/Main.cs
+++ b/src/Forms/Main.cs
@@ -655,6 +655,7 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxSyncListViewWithVideoWhilePlaying.Text = _language.VideoControls.SelectCurrentElementWhilePlaying;
if (_videoFileName == null)
labelVideoInfo.Text = Configuration.Settings.Language.General.NoVideoLoaded;
+ toolStripButtonLockCenter.Text = _language.VideoControls.Center;
groupBoxAutoRepeat.Text = _language.VideoControls.AutoRepeat;
checkBoxAutoRepeatOn.Text = _language.VideoControls.AutoRepeatOn;
@@ -6974,6 +6975,12 @@ namespace Nikse.SubtitleEdit.Forms
mediaPlayer.Play();
}
+ private void toolStripButtonLockCenter_Click_1(object sender, EventArgs e)
+ {
+ toolStripButtonLockCenter.Checked = !toolStripButtonLockCenter.Checked;
+ AudioWaveForm.Locked = toolStripButtonLockCenter.Checked;
+ }
+
private void trackBarWaveFormPosition_ValueChanged(object sender, EventArgs e)
{
mediaPlayer.CurrentPosition = trackBarWaveFormPosition.Value;
@@ -7859,5 +7866,6 @@ namespace Nikse.SubtitleEdit.Forms
{
toolStripButtonToogleVideo.Checked = false;
}
+
}
}
\ No newline at end of file
diff --git a/src/Forms/Main.resx b/src/Forms/Main.resx
index 9e4eafbdd..75943d1f6 100644
--- a/src/Forms/Main.resx
+++ b/src/Forms/Main.resx
@@ -626,6 +626,22 @@
JR5V9/+XzH0H16zo0vNfxntlINHRal96939gyzOwzSDN0t4rvIjWDFJokXfnv03BFbBmSZ9VNiRpBik2
zLoN0ey5zJVkzSANOmk3/kv5rPElSzNIk5T3Wj+G0FWUZSiybSdVIwDKVYaCgMREQgAAAABJRU5ErkJg
gg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJeSURBVDhPnZJbT1NBFIX5Rz75H7wkxsQYE2OMgonGYDQG
+ 44XUVDQEJRWjhra0PfYCtLQUaPGWUrCgbXngxRgffIDaUEpAbKG3c3raM8s9c2o59dFJVuZhz3yz15rd
+ 5YuuwhdJwxsl0e6JpHDlRV6oZ0RX9/MtUh7S9ApcQstwhhJwBj+hyxtZxb+LX4p/0xBdY7DFNZiDCo50
+ r4Ix1qGjx3t0gLFQqzNcphfn1zQEkgwv3zdg8ncC6g2GL1/zaAHSHYCywnDJksNUSoO0xGB528CDcVl0
+ oKgMKl3mjxwC5lICwIsVulyoMFwczsGd0GBb0PAsouKutyYAJVk/V6a9DZDCn+EhiBRegYNCsfnjuPA0
+ BztdHo01MThTR59bB0xGUxgLLJEWYfcv6hY4gC+ZyJzOXzk/tAlrTMOrD00MhBTcknRAU2NoNBkOaoYO
+ 3C2ARkWVikWycG5QB4yQf1NAxg1nRQA0ssr95/eNgJmk6IDTZSrulhjOPsni9ccmhiMU4ISMXocO4B3u
+ lRmyvw0Az5wOqCoaClTM7wNnBrL0feQ/rOKOp4br9rIA8PB+lYD1XRh+YTYpJswZTIhwrBMxnDb/hGW+
+ gUc0QLffVHHNpgOC79JUXxBnRsdjhyHyb+R0/oXbReDUwwyGZlX0T8q46SKAVQdUFFAHdMaYgURzzQHF
+ KvcPZPeAk6YMHk/Xcc9XowCruNoC5IsMm+Q/Y7TgCi2LdHcOGHIF3d+J/g2YpxThv3es0gas7zD82Aa+
+ bxky4N55+nyy/urY/Q0x/33uagfAeKY9iQ4C8In6X/0Bb/or6jCtPhIAAAAASUVORK5CYII=
diff --git a/src/Logic/Language.cs b/src/Logic/Language.cs
index 5294ff55c..cfae647b8 100644
--- a/src/Logic/Language.cs
+++ b/src/Logic/Language.cs
@@ -874,6 +874,8 @@ namespace Nikse.SubtitleEdit.Logic
BeforeChangingTimeInWaveFormX = "Before changing time in wave form: {0}",
NewTextInsertAtX = "New text inserted at {0}",
+
+ Center = "Center",
},
};
diff --git a/src/Logic/LanguageStructure.cs b/src/Logic/LanguageStructure.cs
index 7d0867e24..96e891336 100644
--- a/src/Logic/LanguageStructure.cs
+++ b/src/Logic/LanguageStructure.cs
@@ -811,6 +811,8 @@
public string BeforeChangingTimeInWaveFormX { get; set; }
public string NewTextInsertAtX { get; set; }
+
+ public string Center { get; set; }
}
}
diff --git a/src/Resources/da-DK.xml b/src/Resources/da-DK.xml
index df2b385ab..5a742249a 100644
--- a/src/Resources/da-DK.xml
+++ b/src/Resources/da-DK.xml
@@ -553,6 +553,7 @@
Tip: Brug <alt+pil op/ned> for at gå til forrige/næste tekst
Før ændring af tid i lyd kurve: {0}
Ny tekst indsat ved {0}
+ Center
Gem ændringer til unavngivet?
Gem ændringer til {0}?
diff --git a/src/Resources/da-DK.xml.zip b/src/Resources/da-DK.xml.zip
index a8717d866..4012d6aa6 100644
Binary files a/src/Resources/da-DK.xml.zip and b/src/Resources/da-DK.xml.zip differ