Added wave from 'center' button

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@210 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-12-28 14:55:26 +00:00
parent f50bb051b0
commit aadd8ffb24
7 changed files with 152 additions and 110 deletions

View File

@ -159,7 +159,6 @@
this.panelSingleLine = new System.Windows.Forms.Panel(); this.panelSingleLine = new System.Windows.Forms.Panel();
this.labelTextLineTotal = new System.Windows.Forms.Label(); this.labelTextLineTotal = new System.Windows.Forms.Label();
this.buttonUnBreak = new System.Windows.Forms.Button(); this.buttonUnBreak = new System.Windows.Forms.Button();
this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.buttonUndoListViewChanges = new System.Windows.Forms.Button(); this.buttonUndoListViewChanges = new System.Windows.Forms.Button();
this.labelStartTimeWarning = new System.Windows.Forms.Label(); this.labelStartTimeWarning = new System.Windows.Forms.Label();
this.labelDurationWarning = new System.Windows.Forms.Label(); this.labelDurationWarning = new System.Windows.Forms.Label();
@ -186,7 +185,6 @@
this.underlineToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.underlineToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.colorToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.colorToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.fontNameToolStripMenuItem = 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.contextMenuStripListview = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripMenuItemDelete = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemDelete = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemInsertBefore = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemInsertBefore = new System.Windows.Forms.ToolStripMenuItem();
@ -236,7 +234,7 @@
this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButtonWaveFormPause = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonWaveFormPause = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonWaveFormPlay = 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.tabControlButtons = new System.Windows.Forms.TabControl();
this.tabPageTranslate = new System.Windows.Forms.TabPage(); this.tabPageTranslate = new System.Windows.Forms.TabPage();
this.labelTranslateTip = new System.Windows.Forms.Label(); this.labelTranslateTip = new System.Windows.Forms.Label();
@ -275,7 +273,6 @@
this.numericUpDownSec1 = new System.Windows.Forms.NumericUpDown(); this.numericUpDownSec1 = new System.Windows.Forms.NumericUpDown();
this.labelVideoPosition = new System.Windows.Forms.Label(); this.labelVideoPosition = new System.Windows.Forms.Label();
this.buttonSecBack1 = new System.Windows.Forms.Button(); this.buttonSecBack1 = new System.Windows.Forms.Button();
this.timeUpDownVideoPosition = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.tabPageAdjust = new System.Windows.Forms.TabPage(); this.tabPageAdjust = new System.Windows.Forms.TabPage();
this.buttonAdjustSetEndTime = new System.Windows.Forms.Button(); this.buttonAdjustSetEndTime = new System.Windows.Forms.Button();
this.buttonSetEndAndGoToNext = new System.Windows.Forms.Button(); this.buttonSetEndAndGoToNext = new System.Windows.Forms.Button();
@ -295,10 +292,8 @@
this.labelVideoPosition2 = new System.Windows.Forms.Label(); this.labelVideoPosition2 = new System.Windows.Forms.Label();
this.buttonAdjustGoToPosAndPause = new System.Windows.Forms.Button(); this.buttonAdjustGoToPosAndPause = new System.Windows.Forms.Button();
this.buttonAdjustPlayBefore = 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.panelVideoPlayer = new System.Windows.Forms.Panel();
this.labelSubtitle = new System.Windows.Forms.Label(); this.labelSubtitle = new System.Windows.Forms.Label();
this.mediaPlayer = new Nikse.SubtitleEdit.Controls.VideoPlayerContainer();
this.videoTimer = new System.Windows.Forms.Timer(this.components); this.videoTimer = new System.Windows.Forms.Timer(this.components);
this.timerAutoDuration = 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); this.timerAutoContinue = new System.Windows.Forms.Timer(this.components);
@ -314,6 +309,12 @@
this.toolStripMenuItemWaveFormPlaySelection = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemWaveFormPlaySelection = new System.Windows.Forms.ToolStripMenuItem();
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainerMain = 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.statusStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
@ -1509,16 +1510,6 @@
this.buttonUnBreak.UseVisualStyleBackColor = true; this.buttonUnBreak.UseVisualStyleBackColor = true;
this.buttonUnBreak.Click += new System.EventHandler(this.ButtonUnBreakClick); 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 // buttonUndoListViewChanges
// //
this.buttonUndoListViewChanges.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 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.Text = "Font name...";
this.fontNameToolStripMenuItem.Click += new System.EventHandler(this.fontNameToolStripMenuItem_Click); 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 // contextMenuStripListview
// //
this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 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) this.trackBarWaveFormPosition.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.trackBarWaveFormPosition.AutoSize = false; 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.Maximum = 1000;
this.trackBarWaveFormPosition.Name = "trackBarWaveFormPosition"; 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.TabIndex = 11;
this.trackBarWaveFormPosition.TickStyle = System.Windows.Forms.TickStyle.None; this.trackBarWaveFormPosition.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackBarWaveFormPosition.ValueChanged += new System.EventHandler(this.trackBarWaveFormPosition_ValueChanged); this.trackBarWaveFormPosition.ValueChanged += new System.EventHandler(this.trackBarWaveFormPosition_ValueChanged);
@ -2119,7 +2085,7 @@
this.panelWaveFormControls.Controls.Add(this.toolStrip2); this.panelWaveFormControls.Controls.Add(this.toolStrip2);
this.panelWaveFormControls.Location = new System.Drawing.Point(478, 269); this.panelWaveFormControls.Location = new System.Drawing.Point(478, 269);
this.panelWaveFormControls.Name = "panelWaveFormControls"; 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; this.panelWaveFormControls.TabIndex = 10;
// //
// toolStrip2 // toolStrip2
@ -2133,10 +2099,11 @@
this.toolStripButtonWaveFormZoomIn, this.toolStripButtonWaveFormZoomIn,
this.toolStripSeparator16, this.toolStripSeparator16,
this.toolStripButtonWaveFormPause, this.toolStripButtonWaveFormPause,
this.toolStripButtonWaveFormPlay}); this.toolStripButtonWaveFormPlay,
this.toolStripButtonLockCenter});
this.toolStrip2.Location = new System.Drawing.Point(0, 0); this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2"; 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.TabIndex = 0;
this.toolStrip2.Text = "toolStrip2"; this.toolStrip2.Text = "toolStrip2";
// //
@ -2195,33 +2162,15 @@
this.toolStripButtonWaveFormPlay.Visible = false; this.toolStripButtonWaveFormPlay.Visible = false;
this.toolStripButtonWaveFormPlay.Click += new System.EventHandler(this.toolStripButtonWaveFormPlay_Click); this.toolStripButtonWaveFormPlay.Click += new System.EventHandler(this.toolStripButtonWaveFormPlay_Click);
// //
// AudioWaveForm // toolStripButtonLockCenter
// //
this.AudioWaveForm.AllowDrop = true; this.toolStripButtonLockCenter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.AudioWaveForm.AllowNewSelection = true; this.toolStripButtonLockCenter.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonLockCenter.Image")));
this.AudioWaveForm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.toolStripButtonLockCenter.ImageTransparentColor = System.Drawing.Color.Magenta;
| System.Windows.Forms.AnchorStyles.Left) this.toolStripButtonLockCenter.Name = "toolStripButtonLockCenter";
| System.Windows.Forms.AnchorStyles.Right))); this.toolStripButtonLockCenter.Size = new System.Drawing.Size(23, 22);
this.AudioWaveForm.BackColor = System.Drawing.Color.Black; this.toolStripButtonLockCenter.Text = "Center";
this.AudioWaveForm.BackgroundColor = System.Drawing.Color.Black; this.toolStripButtonLockCenter.Click += new System.EventHandler(this.toolStripButtonLockCenter_Click_1);
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);
// //
// tabControlButtons // tabControlButtons
// //
@ -2693,16 +2642,6 @@
this.buttonSecBack1.UseVisualStyleBackColor = true; this.buttonSecBack1.UseVisualStyleBackColor = true;
this.buttonSecBack1.Click += new System.EventHandler(this.buttonSecBack1_Click); 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 // tabPageAdjust
// //
this.tabPageAdjust.Controls.Add(this.buttonAdjustSetEndTime); this.tabPageAdjust.Controls.Add(this.buttonAdjustSetEndTime);
@ -2936,16 +2875,6 @@
this.buttonAdjustPlayBefore.UseVisualStyleBackColor = true; this.buttonAdjustPlayBefore.UseVisualStyleBackColor = true;
this.buttonAdjustPlayBefore.Click += new System.EventHandler(this.buttonBeforeText_Click); 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 // panelVideoPlayer
// //
this.panelVideoPlayer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Text = "labelSubtitle";
this.labelSubtitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 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 // videoTimer
// //
this.videoTimer.Interval = 500; this.videoTimer.Interval = 500;
@ -3110,6 +3021,107 @@
this.splitContainerMain.SplitterDistance = 285; this.splitContainerMain.SplitterDistance = 285;
this.splitContainerMain.TabIndex = 8; 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 // Main
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -3468,6 +3480,7 @@
private System.Windows.Forms.ToolStripMenuItem undockVideoControlsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem undockVideoControlsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem redockVideoControlsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem redockVideoControlsToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator19; private System.Windows.Forms.ToolStripSeparator toolStripSeparator19;
private System.Windows.Forms.ToolStripButton toolStripButtonLockCenter;
} }
} }

View File

@ -655,6 +655,7 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxSyncListViewWithVideoWhilePlaying.Text = _language.VideoControls.SelectCurrentElementWhilePlaying; checkBoxSyncListViewWithVideoWhilePlaying.Text = _language.VideoControls.SelectCurrentElementWhilePlaying;
if (_videoFileName == null) if (_videoFileName == null)
labelVideoInfo.Text = Configuration.Settings.Language.General.NoVideoLoaded; labelVideoInfo.Text = Configuration.Settings.Language.General.NoVideoLoaded;
toolStripButtonLockCenter.Text = _language.VideoControls.Center;
groupBoxAutoRepeat.Text = _language.VideoControls.AutoRepeat; groupBoxAutoRepeat.Text = _language.VideoControls.AutoRepeat;
checkBoxAutoRepeatOn.Text = _language.VideoControls.AutoRepeatOn; checkBoxAutoRepeatOn.Text = _language.VideoControls.AutoRepeatOn;
@ -6974,6 +6975,12 @@ namespace Nikse.SubtitleEdit.Forms
mediaPlayer.Play(); 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) private void trackBarWaveFormPosition_ValueChanged(object sender, EventArgs e)
{ {
mediaPlayer.CurrentPosition = trackBarWaveFormPosition.Value; mediaPlayer.CurrentPosition = trackBarWaveFormPosition.Value;
@ -7859,5 +7866,6 @@ namespace Nikse.SubtitleEdit.Forms
{ {
toolStripButtonToogleVideo.Checked = false; toolStripButtonToogleVideo.Checked = false;
} }
} }
} }

View File

@ -626,6 +626,22 @@
JR5V9/+XzH0H16zo0vNfxntlINHRal96939gyzOwzSDN0t4rvIjWDFJokXfnv03BFbBmSZ9VNiRpBik2 JR5V9/+XzH0H16zo0vNfxntlINHRal96939gyzOwzSDN0t4rvIjWDFJokXfnv03BFbBmSZ9VNiRpBik2
zLoN0ey5zJVkzSANOmk3/kv5rPElSzNIk5T3Wj+G0FWUZSiybSdVIwDKVYaCgMREQgAAAABJRU5ErkJg zLoN0ey5zJVkzSANOmk3/kv5rPElSzNIk5T3Wj+G0FWUZSiybSdVIwDKVYaCgMREQgAAAABJRU5ErkJg
gg== gg==
</value>
</data>
<data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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=
</value> </value>
</data> </data>
<metadata name="videoTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="videoTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@ -874,6 +874,8 @@ namespace Nikse.SubtitleEdit.Logic
BeforeChangingTimeInWaveFormX = "Before changing time in wave form: {0}", BeforeChangingTimeInWaveFormX = "Before changing time in wave form: {0}",
NewTextInsertAtX = "New text inserted at {0}", NewTextInsertAtX = "New text inserted at {0}",
Center = "Center",
}, },
}; };

View File

@ -811,6 +811,8 @@
public string BeforeChangingTimeInWaveFormX { get; set; } public string BeforeChangingTimeInWaveFormX { get; set; }
public string NewTextInsertAtX { get; set; } public string NewTextInsertAtX { get; set; }
public string Center { get; set; }
} }
} }

View File

@ -553,6 +553,7 @@
<AdjustTip>Tip: Brug &lt;alt+pil op/ned&gt; for at gå til forrige/næste tekst</AdjustTip> <AdjustTip>Tip: Brug &lt;alt+pil op/ned&gt; for at gå til forrige/næste tekst</AdjustTip>
<BeforeChangingTimeInWaveFormX>Før ændring af tid i lyd kurve: {0}</BeforeChangingTimeInWaveFormX> <BeforeChangingTimeInWaveFormX>Før ændring af tid i lyd kurve: {0}</BeforeChangingTimeInWaveFormX>
<NewTextInsertAtX>Ny tekst indsat ved {0}</NewTextInsertAtX> <NewTextInsertAtX>Ny tekst indsat ved {0}</NewTextInsertAtX>
<Center>Center</Center>
</VideoControls> </VideoControls>
<SaveChangesToUntitled>Gem ændringer til unavngivet?</SaveChangesToUntitled> <SaveChangesToUntitled>Gem ændringer til unavngivet?</SaveChangesToUntitled>
<SaveChangesToX>Gem ændringer til {0}?</SaveChangesToX> <SaveChangesToX>Gem ændringer til {0}?</SaveChangesToX>

Binary file not shown.