Applied white space removal pathc - thx XhmikosR :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@698 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-10-06 19:22:35 +00:00
parent afafd149b0
commit fd1a90c72a
239 changed files with 5747 additions and 5747 deletions

View File

@ -2,12 +2,12 @@
{ {
partial class AudioVisualizer partial class AudioVisualizer
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
@ -22,16 +22,16 @@
#region Component Designer generated code #region Component Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.SuspendLayout(); this.SuspendLayout();
// //
// WaveForm // WaveForm
// //
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.BackColor = System.Drawing.Color.Black; this.BackColor = System.Drawing.Color.Black;

View File

@ -11,7 +11,7 @@ namespace Nikse.SubtitleEdit.Controls
public partial class AudioVisualizer : UserControl public partial class AudioVisualizer : UserControl
{ {
private enum MouseDownParagraphType private enum MouseDownParagraphType
{ {
None, None,
Start, Start,
Whole, Whole,
@ -128,16 +128,16 @@ namespace Nikse.SubtitleEdit.Controls
public bool Locked { get; set; } public bool Locked { get; set; }
public double EndPositionSeconds public double EndPositionSeconds
{ {
get get
{ {
return XPositionToSeconds(Width); return XPositionToSeconds(Width);
} }
} }
public WavePeakGenerator WavePeaks public WavePeakGenerator WavePeaks
{ {
get get
{ {
return _wavePeaks; return _wavePeaks;
@ -222,7 +222,7 @@ namespace Nikse.SubtitleEdit.Controls
else else
{ {
for (int i = 0; i < subtitle.Paragraphs.Count; i++) for (int i = 0; i < subtitle.Paragraphs.Count; i++)
{ {
Paragraph p = subtitle.Paragraphs[i]; Paragraph p = subtitle.Paragraphs[i];
if (p.EndTime.TotalMilliseconds > positionMilliseconds) if (p.EndTime.TotalMilliseconds > positionMilliseconds)
{ {
@ -282,7 +282,7 @@ namespace Nikse.SubtitleEdit.Controls
_subtitle = subtitle; _subtitle = subtitle;
_currentVideoPositionSeconds = currentVideoPositionSeconds; _currentVideoPositionSeconds = currentVideoPositionSeconds;
_selectedParagraph = _subtitle.GetParagraphOrDefault(subtitleIndex); _selectedParagraph = _subtitle.GetParagraphOrDefault(subtitleIndex);
NearestSubtitles(subtitle, currentVideoPositionSeconds, subtitleIndex); NearestSubtitles(subtitle, currentVideoPositionSeconds, subtitleIndex);
Invalidate(); Invalidate();
} }
@ -302,11 +302,11 @@ namespace Nikse.SubtitleEdit.Controls
if (XPositionToSeconds(Width) > _wavePeaks.Header.LengthInSeconds) if (XPositionToSeconds(Width) > _wavePeaks.Header.LengthInSeconds)
StartPositionSeconds = _wavePeaks.Header.LengthInSeconds - ((((double)Width) / (double)_wavePeaks.Header.SampleRate) / _zoomFactor); StartPositionSeconds = _wavePeaks.Header.LengthInSeconds - ((((double)Width) / (double)_wavePeaks.Header.SampleRate) / _zoomFactor);
Graphics graphics = e.Graphics; Graphics graphics = e.Graphics;
int begin = SecondsToXPosition(StartPositionSeconds); int begin = SecondsToXPosition(StartPositionSeconds);
int beginNoZoomFactor = (int)Math.Round(StartPositionSeconds * _wavePeaks.Header.SampleRate); // do not use zoom factor here! int beginNoZoomFactor = (int)Math.Round(StartPositionSeconds * _wavePeaks.Header.SampleRate); // do not use zoom factor here!
int start = -1; int start = -1;
int end = -1; int end = -1;
if (_selectedParagraph != null) if (_selectedParagraph != null)
@ -396,7 +396,7 @@ namespace Nikse.SubtitleEdit.Controls
// current selection // current selection
if (NewSelectionParagraph != null) if (NewSelectionParagraph != null)
{ {
int currentRegionLeft = SecondsToXPosition(NewSelectionParagraph.StartTime.TotalSeconds - StartPositionSeconds); int currentRegionLeft = SecondsToXPosition(NewSelectionParagraph.StartTime.TotalSeconds - StartPositionSeconds);
int currentRegionRight = SecondsToXPosition(NewSelectionParagraph.EndTime.TotalSeconds - StartPositionSeconds); int currentRegionRight = SecondsToXPosition(NewSelectionParagraph.EndTime.TotalSeconds - StartPositionSeconds);
@ -459,7 +459,7 @@ namespace Nikse.SubtitleEdit.Controls
Pen pen = new Pen(TextColor); Pen pen = new Pen(TextColor);
SolidBrush textBrush = new SolidBrush(TextColor); SolidBrush textBrush = new SolidBrush(TextColor);
Font textFont = new Font(Font.FontFamily, 7); Font textFont = new Font(Font.FontFamily, 7);
while (position < Width) while (position < Width)
{ {
if (_zoomFactor > 0.3 || (int)Math.Round(StartPositionSeconds + seconds) % 5 == 0) if (_zoomFactor > 0.3 || (int)Math.Round(StartPositionSeconds + seconds) % 5 == 0)
{ {
@ -599,7 +599,7 @@ namespace Nikse.SubtitleEdit.Controls
if (e.Button == MouseButtons.Right) if (e.Button == MouseButtons.Right)
{ {
double seconds = XPositionToSeconds(e.X); double seconds = XPositionToSeconds(e.X);
int milliseconds = (int)(seconds * 1000.0); int milliseconds = (int)(seconds * 1000.0);
double currentRegionLeft = Math.Min(_mouseMoveStartX, _mouseMoveEndX); double currentRegionLeft = Math.Min(_mouseMoveStartX, _mouseMoveEndX);
double currentRegionRight = Math.Max(_mouseMoveStartX, _mouseMoveEndX); double currentRegionRight = Math.Max(_mouseMoveStartX, _mouseMoveEndX);
@ -622,7 +622,7 @@ namespace Nikse.SubtitleEdit.Controls
} }
} }
} }
else else
{ {
Paragraph p = GetParagraphAtMilliseconds(milliseconds); Paragraph p = GetParagraphAtMilliseconds(milliseconds);
RightClickedParagraph = p; RightClickedParagraph = p;
@ -651,10 +651,10 @@ namespace Nikse.SubtitleEdit.Controls
private bool SetParagrapBorderHit(int milliseconds, List<Paragraph> paragraphs) private bool SetParagrapBorderHit(int milliseconds, List<Paragraph> paragraphs)
{ {
foreach (Paragraph p in paragraphs) foreach (Paragraph p in paragraphs)
{ {
bool hit = SetParagrapBorderHit(milliseconds, p); bool hit = SetParagrapBorderHit(milliseconds, p);
if (hit) if (hit)
return true; return true;
} }
return false; return false;
} }
@ -793,7 +793,7 @@ namespace Nikse.SubtitleEdit.Controls
else if (_mouseDownParagraphType == MouseDownParagraphType.End) else if (_mouseDownParagraphType == MouseDownParagraphType.End)
{ {
if (milliseconds - _mouseDownParagraph.StartTime.TotalMilliseconds > MininumSelectionMilliseconds) if (milliseconds - _mouseDownParagraph.StartTime.TotalMilliseconds > MininumSelectionMilliseconds)
{ {
_mouseDownParagraph.EndTime.TotalMilliseconds = milliseconds; _mouseDownParagraph.EndTime.TotalMilliseconds = milliseconds;
if (NewSelectionParagraph != null) if (NewSelectionParagraph != null)
{ {
@ -808,7 +808,7 @@ namespace Nikse.SubtitleEdit.Controls
} }
} }
else if (_mouseDownParagraphType == MouseDownParagraphType.Whole) else if (_mouseDownParagraphType == MouseDownParagraphType.Whole)
{ {
double durationMilliseconds = _mouseDownParagraph.Duration.TotalMilliseconds; double durationMilliseconds = _mouseDownParagraph.Duration.TotalMilliseconds;
_mouseDownParagraph.StartTime.TotalMilliseconds = milliseconds - _moveWholeStartDifferenceMilliseconds; _mouseDownParagraph.StartTime.TotalMilliseconds = milliseconds - _moveWholeStartDifferenceMilliseconds;
_mouseDownParagraph.EndTime.TotalMilliseconds = _mouseDownParagraph.StartTime.TotalMilliseconds + durationMilliseconds; _mouseDownParagraph.EndTime.TotalMilliseconds = _mouseDownParagraph.StartTime.TotalMilliseconds + durationMilliseconds;
@ -830,7 +830,7 @@ namespace Nikse.SubtitleEdit.Controls
int start = Math.Min(_mouseMoveStartX, _mouseMoveEndX); int start = Math.Min(_mouseMoveStartX, _mouseMoveEndX);
int end = Math.Max(_mouseMoveStartX, _mouseMoveEndX); int end = Math.Max(_mouseMoveStartX, _mouseMoveEndX);
NewSelectionParagraph.StartTime.TotalSeconds = XPositionToSeconds(start); NewSelectionParagraph.StartTime.TotalSeconds = XPositionToSeconds(start);
NewSelectionParagraph.EndTime.TotalSeconds = XPositionToSeconds(end); NewSelectionParagraph.EndTime.TotalSeconds = XPositionToSeconds(end);
} }
} }
Invalidate(); Invalidate();
@ -855,7 +855,7 @@ namespace Nikse.SubtitleEdit.Controls
return false; return false;
return Math.Abs(milliseconds - paragraph.StartTime.TotalMilliseconds) <= ClosenessForBorderSelection || return Math.Abs(milliseconds - paragraph.StartTime.TotalMilliseconds) <= ClosenessForBorderSelection ||
Math.Abs(milliseconds - paragraph.EndTime.TotalMilliseconds) <= ClosenessForBorderSelection; Math.Abs(milliseconds - paragraph.EndTime.TotalMilliseconds) <= ClosenessForBorderSelection;
} }
private void WaveForm_MouseUp(object sender, MouseEventArgs e) private void WaveForm_MouseUp(object sender, MouseEventArgs e)
@ -961,7 +961,7 @@ namespace Nikse.SubtitleEdit.Controls
} }
if (OnDoubleClickNonParagraph != null) if (OnDoubleClickNonParagraph != null)
OnDoubleClickNonParagraph.Invoke(seconds, p); OnDoubleClickNonParagraph.Invoke(seconds, p);
} }
} }
@ -1142,7 +1142,7 @@ namespace Nikse.SubtitleEdit.Controls
string fileName = System.IO.Path.Combine(_spectrogramDirectory, count + ".gif"); string fileName = System.IO.Path.Combine(_spectrogramDirectory, count + ".gif");
while (System.IO.File.Exists(System.IO.Path.Combine(_spectrogramDirectory, count + ".gif"))) while (System.IO.File.Exists(System.IO.Path.Combine(_spectrogramDirectory, count + ".gif")))
{ {
using (var ms = new MemoryStream(File.ReadAllBytes(fileName))) using (var ms = new MemoryStream(File.ReadAllBytes(fileName)))
{ {
_spectrogramBitmaps.Add((Bitmap)Bitmap.FromStream(ms)); _spectrogramBitmaps.Add((Bitmap)Bitmap.FromStream(ms));
} }

View File

@ -40,6 +40,6 @@ namespace Nikse.SubtitleEdit.Controls
if (selectionLength > 0) if (selectionLength > 0)
this.OnMouseMove(null); this.OnMouseMove(null);
} }
} }
} }

View File

@ -37,7 +37,7 @@ namespace Nikse.SubtitleEdit.Controls
Columns[ColumnIndexStart].Text = general.StartTime; Columns[ColumnIndexStart].Text = general.StartTime;
Columns[ColumnIndexEnd].Text = general.EndTime; Columns[ColumnIndexEnd].Text = general.EndTime;
Columns[ColumnIndexDuration].Text = general.Duration; Columns[ColumnIndexDuration].Text = general.Duration;
Columns[ColumnIndexText].Text = general.Text; Columns[ColumnIndexText].Text = general.Text;
if (settings.General.ListViewLineSeparatorString != null) if (settings.General.ListViewLineSeparatorString != null)
_lineSeparatorString = settings.General.ListViewLineSeparatorString; _lineSeparatorString = settings.General.ListViewLineSeparatorString;
@ -65,13 +65,13 @@ namespace Nikse.SubtitleEdit.Controls
public SubtitleListView() public SubtitleListView()
{ {
Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0); Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
Columns.AddRange(new[] Columns.AddRange(new[]
{ {
new ColumnHeader { Text="#", Width=55 }, new ColumnHeader { Text="#", Width=55 },
new ColumnHeader { Width = 80 }, new ColumnHeader { Width = 80 },
new ColumnHeader { Width = 80 }, new ColumnHeader { Width = 80 },
new ColumnHeader { Width= 55 }, new ColumnHeader { Width= 55 },
new ColumnHeader { Width = -2 } // -2 = as rest of space (300) new ColumnHeader { Width = -2 } // -2 = as rest of space (300)
}); });
SubtitleListView_Resize(this, null); SubtitleListView_Resize(this, null);
@ -125,7 +125,7 @@ namespace Nikse.SubtitleEdit.Controls
{ {
if (!IsAlternateTextColumnVisible) if (!IsAlternateTextColumnVisible)
{ {
ColumnIndexExtra = ColumnIndexTextAlternate + 1; ColumnIndexExtra = ColumnIndexTextAlternate + 1;
if (IsExtraColumnVisible) if (IsExtraColumnVisible)
{ {
Columns.Insert(ColumnIndexTextAlternate, new ColumnHeader { Text = text, Width = -2 }); Columns.Insert(ColumnIndexTextAlternate, new ColumnHeader { Text = text, Width = -2 });
@ -206,10 +206,10 @@ namespace Nikse.SubtitleEdit.Controls
internal void Fill(Subtitle subtitle, Subtitle subtitleAlternate) internal void Fill(Subtitle subtitle, Subtitle subtitleAlternate)
{ {
Fill(subtitle.Paragraphs, subtitleAlternate.Paragraphs); Fill(subtitle.Paragraphs, subtitleAlternate.Paragraphs);
} }
internal void Fill(List<Paragraph> paragraphs) internal void Fill(List<Paragraph> paragraphs)
{ {
SaveFirstVisibleIndex(); SaveFirstVisibleIndex();
BeginUpdate(); BeginUpdate();
Items.Clear(); Items.Clear();
@ -255,7 +255,7 @@ namespace Nikse.SubtitleEdit.Controls
if (FirstVisibleIndex == 0) if (FirstVisibleIndex == 0)
FirstVisibleIndex = -1; FirstVisibleIndex = -1;
} }
private void Add(Paragraph paragraph, string tag) private void Add(Paragraph paragraph, string tag)
{ {
@ -299,9 +299,9 @@ namespace Nikse.SubtitleEdit.Controls
RestoreFirstVisibleIndex(); RestoreFirstVisibleIndex();
if (!ClientRectangle.Contains(new Rectangle(item.Bounds.Left, item.Bounds.Top-5, item.Bounds.Height+ 10, 10))) if (!ClientRectangle.Contains(new Rectangle(item.Bounds.Left, item.Bounds.Top-5, item.Bounds.Height+ 10, 10)))
item.EnsureVisible(); item.EnsureVisible();
FocusedItem = item; FocusedItem = item;
} }
} }
@ -446,7 +446,7 @@ namespace Nikse.SubtitleEdit.Controls
Items[index].SubItems.Add(new ListViewItem.ListViewSubItem()); Items[index].SubItems.Add(new ListViewItem.ListViewSubItem());
Items[index].SubItems[ColumnIndexExtra].Text = text; Items[index].SubItems[ColumnIndexExtra].Text = text;
Items[index].UseItemStyleForSubItems = false; Items[index].UseItemStyleForSubItems = false;
Items[index].SubItems[ColumnIndexExtra].BackColor = Color.AntiqueWhite; Items[index].SubItems[ColumnIndexExtra].BackColor = Color.AntiqueWhite;
Items[index].SubItems[ColumnIndexExtra].ForeColor = color; Items[index].SubItems[ColumnIndexExtra].ForeColor = color;
@ -566,7 +566,7 @@ namespace Nikse.SubtitleEdit.Controls
{ {
Columns[ColumnIndexText].Width = -2; Columns[ColumnIndexText].Width = -2;
} }
} }
} }
} }

View File

@ -2,12 +2,12 @@
{ {
partial class TimeUpDown partial class TimeUpDown
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
@ -22,8 +22,8 @@
#region Component Designer generated code #region Component Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
@ -32,9 +32,9 @@
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// maskedTextBox1 // maskedTextBox1
// //
this.maskedTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.maskedTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.maskedTextBox1.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite; this.maskedTextBox1.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
this.maskedTextBox1.Location = new System.Drawing.Point(4, 4); this.maskedTextBox1.Location = new System.Drawing.Point(4, 4);
@ -43,17 +43,17 @@
this.maskedTextBox1.Size = new System.Drawing.Size(67, 13); this.maskedTextBox1.Size = new System.Drawing.Size(67, 13);
this.maskedTextBox1.TabIndex = 21; this.maskedTextBox1.TabIndex = 21;
this.maskedTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MaskedTextBox1KeyDown); this.maskedTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MaskedTextBox1KeyDown);
// //
// numericUpDown1 // numericUpDown1
// //
this.numericUpDown1.Location = new System.Drawing.Point(2, 1); this.numericUpDown1.Location = new System.Drawing.Point(2, 1);
this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(87, 20); this.numericUpDown1.Size = new System.Drawing.Size(87, 20);
this.numericUpDown1.TabIndex = 20; this.numericUpDown1.TabIndex = 20;
this.numericUpDown1.TabStop = false; this.numericUpDown1.TabStop = false;
// //
// TimeUpDown // TimeUpDown
// //
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.AutoSize = true; this.AutoSize = true;

View File

@ -66,7 +66,7 @@ namespace Nikse.SubtitleEdit.Controls
public TimeCode TimeCode public TimeCode TimeCode
{ {
get get
{ {
string startTime = maskedTextBox1.Text; string startTime = maskedTextBox1.Text;
startTime.Replace(' ', '0'); startTime.Replace(' ', '0');
if (startTime.EndsWith(".")) if (startTime.EndsWith("."))

View File

@ -28,7 +28,7 @@ namespace Nikse.SubtitleEdit.Controls
if (m.Msg == 0x204) return; // WM_RBUTTONDOWN if (m.Msg == 0x204) return; // WM_RBUTTONDOWN
if (m.Msg == 0x205) return; // WM_RBUTTONUP if (m.Msg == 0x205) return; // WM_RBUTTONUP
base.WndProc(ref m); base.WndProc(ref m);
} }
} }
public event EventHandler OnButtonClicked; public event EventHandler OnButtonClicked;
@ -51,7 +51,7 @@ namespace Nikse.SubtitleEdit.Controls
private readonly System.ComponentModel.ComponentResourceManager _resources; private readonly System.ComponentModel.ComponentResourceManager _resources;
private const int ControlsHeight = 47; private const int ControlsHeight = 47;
private const int SubtitlesHeight = 57; private const int SubtitlesHeight = 57;
private readonly Color _backgroundColor = Color.FromArgb(18, 18, 18); private readonly Color _backgroundColor = Color.FromArgb(18, 18, 18);
private Panel _panelcontrols; private Panel _panelcontrols;
private PictureBox _pictureBoxBackground; private PictureBox _pictureBoxBackground;
@ -96,8 +96,8 @@ namespace Nikse.SubtitleEdit.Controls
HideAllStopImages(); HideAllStopImages();
} }
} }
} }
public VideoPlayerContainer() public VideoPlayerContainer()
{ {
BorderStyle = System.Windows.Forms.BorderStyle.None; BorderStyle = System.Windows.Forms.BorderStyle.None;
@ -165,7 +165,7 @@ namespace Nikse.SubtitleEdit.Controls
_subtitleTextBox.BackColor = _backgroundColor; _subtitleTextBox.BackColor = _backgroundColor;
_subtitleTextBox.ForeColor = Color.White; _subtitleTextBox.ForeColor = Color.White;
_subtitleTextBox.Dock = DockStyle.Fill; _subtitleTextBox.Dock = DockStyle.Fill;
SetSubtitleFont(); SetSubtitleFont();
_subtitleTextBox.MouseClick += SubtitleTextBox_MouseClick; _subtitleTextBox.MouseClick += SubtitleTextBox_MouseClick;
return _panelSubtitle; return _panelSubtitle;
} }
@ -176,7 +176,7 @@ namespace Nikse.SubtitleEdit.Controls
if (string.IsNullOrEmpty(gs.SubtitleFontName)) if (string.IsNullOrEmpty(gs.SubtitleFontName))
gs.SubtitleFontName = "Tahoma"; gs.SubtitleFontName = "Tahoma";
_subtitleTextBox.Font = new Font(gs.SubtitleFontName, gs.VideoPlayerPreviewFontSize, FontStyle.Bold); _subtitleTextBox.Font = new Font(gs.SubtitleFontName, gs.VideoPlayerPreviewFontSize, FontStyle.Bold);
} }
void SubtitleTextBox_MouseClick(object sender, MouseEventArgs e) void SubtitleTextBox_MouseClick(object sender, MouseEventArgs e)
{ {
@ -247,7 +247,7 @@ namespace Nikse.SubtitleEdit.Controls
{ {
sb.Append(text.Substring(i, 1)); sb.Append(text.Substring(i, 1));
} }
else else
{ {
sb.Append(text.Substring(i, 1)); sb.Append(text.Substring(i, 1));
letterCount++; letterCount++;
@ -301,7 +301,7 @@ namespace Nikse.SubtitleEdit.Controls
Size = new Size(200, 45), Size = new Size(200, 45),
SizeMode = PictureBoxSizeMode.StretchImage, SizeMode = PictureBoxSizeMode.StretchImage,
TabStop = false TabStop = false
}; };
_panelcontrols.Controls.Add(_pictureBoxBackground); _panelcontrols.Controls.Add(_pictureBoxBackground);
_pictureBoxPlay = new PictureBox _pictureBoxPlay = new PictureBox
@ -769,7 +769,7 @@ namespace Nikse.SubtitleEdit.Controls
private void PictureBoxMuteOverMouseUp(object sender, MouseEventArgs e) private void PictureBoxMuteOverMouseUp(object sender, MouseEventArgs e)
{ {
HideAllMuteImages(); HideAllMuteImages();
Mute = true; Mute = true;
_pictureBoxMuteDown.Visible = true; _pictureBoxMuteDown.Visible = true;
} }
@ -820,7 +820,7 @@ namespace Nikse.SubtitleEdit.Controls
private void PictureBoxReverseOverMouseUp(object sender, MouseEventArgs e) private void PictureBoxReverseOverMouseUp(object sender, MouseEventArgs e)
{ {
HideAllReverseImages(); HideAllReverseImages();
_pictureBoxReverse.Visible = true; _pictureBoxReverse.Visible = true;
} }
@ -916,7 +916,7 @@ namespace Nikse.SubtitleEdit.Controls
pos = 0; pos = 0;
var span = TimeSpan.FromSeconds(pos); var span = TimeSpan.FromSeconds(pos);
var dur = TimeSpan.FromSeconds(Duration); var dur = TimeSpan.FromSeconds(Duration);
_labelTimeCode.Text = string.Format("{0:00}:{1:00}:{2:00},{3:000} / {4:00}:{5:00}:{6:00},{7:000}", span.Hours, span.Minutes, span.Seconds, span.Milliseconds, _labelTimeCode.Text = string.Format("{0:00}:{1:00}:{2:00},{3:000} / {4:00}:{5:00}:{6:00},{7:000}", span.Hours, span.Minutes, span.Seconds, span.Milliseconds,
dur.Hours, dur.Minutes, dur.Seconds, dur.Milliseconds); dur.Hours, dur.Minutes, dur.Seconds, dur.Milliseconds);
RefreshPlayPauseButtons(); RefreshPlayPauseButtons();
@ -1035,7 +1035,7 @@ namespace Nikse.SubtitleEdit.Controls
if (VideoPlayer != null) if (VideoPlayer != null)
return VideoPlayer.Volume; return VideoPlayer.Volume;
return 0; return 0;
} }
set set
{ {
if (VideoPlayer != null) if (VideoPlayer != null)
@ -1094,7 +1094,7 @@ namespace Nikse.SubtitleEdit.Controls
{ {
if (VideoPlayer != null) if (VideoPlayer != null)
{ {
return _isMuted; return _isMuted;
} }
return false; return false;
} }
@ -1116,6 +1116,6 @@ namespace Nikse.SubtitleEdit.Controls
} }
} }
#endregion #endregion
} }
} }

View File

@ -36,9 +36,9 @@
this.buttonDonate = new System.Windows.Forms.Button(); this.buttonDonate = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// okButton // okButton
// //
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Location = new System.Drawing.Point(355, 342); this.okButton.Location = new System.Drawing.Point(355, 342);
@ -47,9 +47,9 @@
this.okButton.TabIndex = 0; this.okButton.TabIndex = 0;
this.okButton.Text = "&OK"; this.okButton.Text = "&OK";
this.okButton.Click += new System.EventHandler(this.OkButtonClick); this.okButton.Click += new System.EventHandler(this.OkButtonClick);
// //
// labelProduct // labelProduct
// //
this.labelProduct.AutoSize = true; this.labelProduct.AutoSize = true;
this.labelProduct.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelProduct.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelProduct.Location = new System.Drawing.Point(11, 16); this.labelProduct.Location = new System.Drawing.Point(11, 16);
@ -57,19 +57,19 @@
this.labelProduct.Size = new System.Drawing.Size(140, 19); this.labelProduct.Size = new System.Drawing.Size(140, 19);
this.labelProduct.TabIndex = 26; this.labelProduct.TabIndex = 26;
this.labelProduct.Text = "Subtitle Edit 3.0"; this.labelProduct.Text = "Subtitle Edit 3.0";
// //
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(368, 14); this.pictureBox1.Location = new System.Drawing.Point(368, 14);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(70, 64); this.pictureBox1.Size = new System.Drawing.Size(70, 64);
this.pictureBox1.TabIndex = 27; this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
// //
// richTextBoxAbout1 // richTextBoxAbout1
// //
this.richTextBoxAbout1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.richTextBoxAbout1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.richTextBoxAbout1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBoxAbout1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBoxAbout1.Location = new System.Drawing.Point(16, 43); this.richTextBoxAbout1.Location = new System.Drawing.Point(16, 43);
@ -81,9 +81,9 @@
this.richTextBoxAbout1.TabStop = false; this.richTextBoxAbout1.TabStop = false;
this.richTextBoxAbout1.Text = "About..."; this.richTextBoxAbout1.Text = "About...";
this.richTextBoxAbout1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBoxAbout1LinkClicked); this.richTextBoxAbout1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBoxAbout1LinkClicked);
// //
// labelFindHeight // labelFindHeight
// //
this.labelFindHeight.AutoSize = true; this.labelFindHeight.AutoSize = true;
this.labelFindHeight.Location = new System.Drawing.Point(187, 24); this.labelFindHeight.Location = new System.Drawing.Point(187, 24);
this.labelFindHeight.Name = "labelFindHeight"; this.labelFindHeight.Name = "labelFindHeight";
@ -91,9 +91,9 @@
this.labelFindHeight.TabIndex = 41; this.labelFindHeight.TabIndex = 41;
this.labelFindHeight.Text = "labelFindHeight"; this.labelFindHeight.Text = "labelFindHeight";
this.labelFindHeight.Visible = false; this.labelFindHeight.Visible = false;
// //
// buttonDonate // buttonDonate
// //
this.buttonDonate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonDonate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonDonate.AutoSize = true; this.buttonDonate.AutoSize = true;
this.buttonDonate.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.buttonDonate.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
@ -107,9 +107,9 @@
this.buttonDonate.TabIndex = 42; this.buttonDonate.TabIndex = 42;
this.buttonDonate.UseVisualStyleBackColor = false; this.buttonDonate.UseVisualStyleBackColor = false;
this.buttonDonate.Click += new System.EventHandler(this.buttonDonate_Click); this.buttonDonate.Click += new System.EventHandler(this.buttonDonate_Click);
// //
// About // About
// //
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(457, 372); this.ClientSize = new System.Drawing.Size(457, 372);

View File

@ -49,7 +49,7 @@ namespace Nikse.SubtitleEdit.Forms
Process.Start(e.LinkText); Process.Start(e.LinkText);
} }
catch catch
{ {
MessageBox.Show("Unable to start link: " + e.LinkText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("Unable to start link: " + e.LinkText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }

View File

@ -24,9 +24,9 @@
this.textBoxAddName = new System.Windows.Forms.TextBox(); this.textBoxAddName = new System.Windows.Forms.TextBox();
this.labelDescription = new System.Windows.Forms.Label(); this.labelDescription = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(80, 56); this.buttonOK.Location = new System.Drawing.Point(80, 56);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -35,9 +35,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(161, 56); this.buttonCancel.Location = new System.Drawing.Point(161, 56);
@ -46,25 +46,25 @@
this.buttonCancel.TabIndex = 16; this.buttonCancel.TabIndex = 16;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// textBoxAddName // textBoxAddName
// //
this.textBoxAddName.Location = new System.Drawing.Point(15, 26); this.textBoxAddName.Location = new System.Drawing.Point(15, 26);
this.textBoxAddName.Name = "textBoxAddName"; this.textBoxAddName.Name = "textBoxAddName";
this.textBoxAddName.Size = new System.Drawing.Size(221, 27); this.textBoxAddName.Size = new System.Drawing.Size(221, 27);
this.textBoxAddName.TabIndex = 15; this.textBoxAddName.TabIndex = 15;
// //
// labelDescription // labelDescription
// //
this.labelDescription.AutoSize = true; this.labelDescription.AutoSize = true;
this.labelDescription.Location = new System.Drawing.Point(12, 8); this.labelDescription.Location = new System.Drawing.Point(12, 8);
this.labelDescription.Name = "labelDescription"; this.labelDescription.Name = "labelDescription";
this.labelDescription.Size = new System.Drawing.Size(309, 21); this.labelDescription.Size = new System.Drawing.Size(309, 21);
this.labelDescription.TabIndex = 14; this.labelDescription.TabIndex = 14;
this.labelDescription.Text = "Add to names/noise list (case sensitive)"; this.labelDescription.Text = "Add to names/noise list (case sensitive)";
// //
// AddToNamesList // AddToNamesList
// //
this.AcceptButton = this.buttonOK; this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

View File

@ -36,7 +36,7 @@ namespace Nikse.SubtitleEdit.Forms
Utilities.SetButtonHeight(this, newButtonHeight, 1); Utilities.SetButtonHeight(this, newButtonHeight, 1);
} }
} }
public void Initialize(Subtitle subtitle, string text) public void Initialize(Subtitle subtitle, string text)
{ {
_subtitle = subtitle; _subtitle = subtitle;
@ -56,7 +56,7 @@ namespace Nikse.SubtitleEdit.Forms
NewName = textBoxAddName.Text.Trim(); NewName = textBoxAddName.Text.Trim();
string languageName = null; string languageName = null;
_language = Configuration.Settings.Language.Main; _language = Configuration.Settings.Language.Main;
if (!string.IsNullOrEmpty(Configuration.Settings.General.SpellCheckLanguage)) if (!string.IsNullOrEmpty(Configuration.Settings.General.SpellCheckLanguage))
{ {
languageName = Configuration.Settings.General.SpellCheckLanguage; languageName = Configuration.Settings.General.SpellCheckLanguage;

View File

@ -37,29 +37,29 @@
this.labelVideoFileName = new System.Windows.Forms.Label(); this.labelVideoFileName = new System.Windows.Forms.Label();
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelPleaseWait // labelPleaseWait
// //
this.labelPleaseWait.AutoSize = true; this.labelPleaseWait.AutoSize = true;
this.labelPleaseWait.Location = new System.Drawing.Point(176, 59); this.labelPleaseWait.Location = new System.Drawing.Point(176, 59);
this.labelPleaseWait.Name = "labelPleaseWait"; this.labelPleaseWait.Name = "labelPleaseWait";
this.labelPleaseWait.Size = new System.Drawing.Size(203, 13); this.labelPleaseWait.Size = new System.Drawing.Size(203, 13);
this.labelPleaseWait.TabIndex = 14; this.labelPleaseWait.TabIndex = 14;
this.labelPleaseWait.Text = "This may take a few minutes - please wait"; this.labelPleaseWait.Text = "This may take a few minutes - please wait";
// //
// progressBar1 // progressBar1
// //
this.progressBar1.Location = new System.Drawing.Point(12, 80); this.progressBar1.Location = new System.Drawing.Point(12, 80);
this.progressBar1.Name = "progressBar1"; this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(522, 23); this.progressBar1.Size = new System.Drawing.Size(522, 23);
this.progressBar1.TabIndex = 12; this.progressBar1.TabIndex = 12;
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// buttonRipWave // buttonRipWave
// //
this.buttonRipWave.Location = new System.Drawing.Point(12, 54); this.buttonRipWave.Location = new System.Drawing.Point(12, 54);
this.buttonRipWave.Name = "buttonRipWave"; this.buttonRipWave.Name = "buttonRipWave";
this.buttonRipWave.Size = new System.Drawing.Size(158, 23); this.buttonRipWave.Size = new System.Drawing.Size(158, 23);
@ -67,36 +67,36 @@
this.buttonRipWave.Text = "Generate wave form data"; this.buttonRipWave.Text = "Generate wave form data";
this.buttonRipWave.UseVisualStyleBackColor = true; this.buttonRipWave.UseVisualStyleBackColor = true;
this.buttonRipWave.Click += new System.EventHandler(this.buttonRipWave_Click); this.buttonRipWave.Click += new System.EventHandler(this.buttonRipWave_Click);
// //
// labelProgress // labelProgress
// //
this.labelProgress.AutoSize = true; this.labelProgress.AutoSize = true;
this.labelProgress.Location = new System.Drawing.Point(12, 106); this.labelProgress.Location = new System.Drawing.Point(12, 106);
this.labelProgress.Name = "labelProgress"; this.labelProgress.Name = "labelProgress";
this.labelProgress.Size = new System.Drawing.Size(70, 13); this.labelProgress.Size = new System.Drawing.Size(70, 13);
this.labelProgress.TabIndex = 9; this.labelProgress.TabIndex = 9;
this.labelProgress.Text = "labelProgress"; this.labelProgress.Text = "labelProgress";
// //
// labelSourcevideoFile // labelSourcevideoFile
// //
this.labelSourcevideoFile.AutoSize = true; this.labelSourcevideoFile.AutoSize = true;
this.labelSourcevideoFile.Location = new System.Drawing.Point(14, 9); this.labelSourcevideoFile.Location = new System.Drawing.Point(14, 9);
this.labelSourcevideoFile.Name = "labelSourcevideoFile"; this.labelSourcevideoFile.Name = "labelSourcevideoFile";
this.labelSourcevideoFile.Size = new System.Drawing.Size(89, 13); this.labelSourcevideoFile.Size = new System.Drawing.Size(89, 13);
this.labelSourcevideoFile.TabIndex = 15; this.labelSourcevideoFile.TabIndex = 15;
this.labelSourcevideoFile.Text = "Source video file:"; this.labelSourcevideoFile.Text = "Source video file:";
// //
// labelVideoFileName // labelVideoFileName
// //
this.labelVideoFileName.AutoSize = true; this.labelVideoFileName.AutoSize = true;
this.labelVideoFileName.Location = new System.Drawing.Point(12, 26); this.labelVideoFileName.Location = new System.Drawing.Point(12, 26);
this.labelVideoFileName.Name = "labelVideoFileName"; this.labelVideoFileName.Name = "labelVideoFileName";
this.labelVideoFileName.Size = new System.Drawing.Size(100, 13); this.labelVideoFileName.Size = new System.Drawing.Size(100, 13);
this.labelVideoFileName.TabIndex = 16; this.labelVideoFileName.TabIndex = 16;
this.labelVideoFileName.Text = "labelVideoFileName"; this.labelVideoFileName.Text = "labelVideoFileName";
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Location = new System.Drawing.Point(442, 109); this.buttonCancel.Location = new System.Drawing.Point(442, 109);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(92, 23); this.buttonCancel.Size = new System.Drawing.Size(92, 23);
@ -104,9 +104,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// AddWareForm // AddWareForm
// //
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(550, 138); this.ClientSize = new System.Drawing.Size(550, 138);

View File

@ -52,12 +52,12 @@ namespace Nikse.SubtitleEdit.Forms
// vlcPath = Logic.VideoPlayers.MPlayer.GetMPlayerFileName; // vlcPath = Logic.VideoPlayers.MPlayer.GetMPlayerFileName;
// parameters = "-ao pcm:fast:file=\"" + targetFile + "\" -vo null -vc null \"" + SourceVideoFileName + "\""; // parameters = "-ao pcm:fast:file=\"" + targetFile + "\" -vo null -vc null \"" + SourceVideoFileName + "\"";
//} //}
//else //else
if (Utilities.IsRunningOnLinux() || Utilities.IsRunningOnMac()) if (Utilities.IsRunningOnLinux() || Utilities.IsRunningOnMac())
{ {
vlcPath = "cvlc"; vlcPath = "cvlc";
parameters = "-vvv --no-sout-video --sout '#transcode{acodec=s16l}:std{mux=wav,access=file,dst=" + targetFile +"}' \"" + SourceVideoFileName + "\" vlc://quit"; parameters = "-vvv --no-sout-video --sout '#transcode{acodec=s16l}:std{mux=wav,access=file,dst=" + targetFile +"}' \"" + SourceVideoFileName + "\" vlc://quit";
} }
else // windows else // windows
{ {
vlcPath = Nikse.SubtitleEdit.Logic.VideoPlayers.LibVlc11xDynamic.GetVlcPath("vlc.exe"); vlcPath = Nikse.SubtitleEdit.Logic.VideoPlayers.LibVlc11xDynamic.GetVlcPath("vlc.exe");
@ -136,7 +136,7 @@ namespace Nikse.SubtitleEdit.Forms
return; return;
} }
ReadWaveFile(targetFile); ReadWaveFile(targetFile);
@ -155,7 +155,7 @@ namespace Nikse.SubtitleEdit.Forms
labelProgress.Text = Configuration.Settings.Language.AddWaveForm.GeneratingPeakFile; labelProgress.Text = Configuration.Settings.Language.AddWaveForm.GeneratingPeakFile;
this.Refresh(); this.Refresh();
waveFile.GeneratePeakSamples(sampleRate); // samples per second - SampleRate waveFile.GeneratePeakSamples(sampleRate); // samples per second - SampleRate
if (Configuration.Settings.VideoControls.GenerateSpectrogram) if (Configuration.Settings.VideoControls.GenerateSpectrogram)
{ {
@ -196,7 +196,7 @@ namespace Nikse.SubtitleEdit.Forms
internal void InitializeViaWaveFile(string fileName) internal void InitializeViaWaveFile(string fileName)
{ {
_wavFileName = fileName; _wavFileName = fileName;
} }
private void FixWaveOnly() private void FixWaveOnly()

View File

@ -41,9 +41,9 @@
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.groupBoxAdjustVia.SuspendLayout(); this.groupBoxAdjustVia.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// radioButtonPercent // radioButtonPercent
// //
this.radioButtonPercent.AutoSize = true; this.radioButtonPercent.AutoSize = true;
this.radioButtonPercent.Location = new System.Drawing.Point(171, 21); this.radioButtonPercent.Location = new System.Drawing.Point(171, 21);
this.radioButtonPercent.Name = "radioButtonPercent"; this.radioButtonPercent.Name = "radioButtonPercent";
@ -52,9 +52,9 @@
this.radioButtonPercent.Text = "Percent"; this.radioButtonPercent.Text = "Percent";
this.radioButtonPercent.UseVisualStyleBackColor = true; this.radioButtonPercent.UseVisualStyleBackColor = true;
this.radioButtonPercent.CheckedChanged += new System.EventHandler(this.RadioButtonPercentCheckedChanged); this.radioButtonPercent.CheckedChanged += new System.EventHandler(this.RadioButtonPercentCheckedChanged);
// //
// radioButtonSeconds // radioButtonSeconds
// //
this.radioButtonSeconds.AutoSize = true; this.radioButtonSeconds.AutoSize = true;
this.radioButtonSeconds.Checked = true; this.radioButtonSeconds.Checked = true;
this.radioButtonSeconds.Location = new System.Drawing.Point(11, 21); this.radioButtonSeconds.Location = new System.Drawing.Point(11, 21);
@ -65,9 +65,9 @@
this.radioButtonSeconds.Text = "Seconds"; this.radioButtonSeconds.Text = "Seconds";
this.radioButtonSeconds.UseVisualStyleBackColor = true; this.radioButtonSeconds.UseVisualStyleBackColor = true;
this.radioButtonSeconds.CheckedChanged += new System.EventHandler(this.RadioButtonSecondsCheckedChanged); this.radioButtonSeconds.CheckedChanged += new System.EventHandler(this.RadioButtonSecondsCheckedChanged);
// //
// groupBoxAdjustVia // groupBoxAdjustVia
// //
this.groupBoxAdjustVia.Controls.Add(this.radioButtonPercent); this.groupBoxAdjustVia.Controls.Add(this.radioButtonPercent);
this.groupBoxAdjustVia.Controls.Add(this.radioButtonSeconds); this.groupBoxAdjustVia.Controls.Add(this.radioButtonSeconds);
this.groupBoxAdjustVia.Location = new System.Drawing.Point(13, 13); this.groupBoxAdjustVia.Location = new System.Drawing.Point(13, 13);
@ -76,9 +76,9 @@
this.groupBoxAdjustVia.TabIndex = 2; this.groupBoxAdjustVia.TabIndex = 2;
this.groupBoxAdjustVia.TabStop = false; this.groupBoxAdjustVia.TabStop = false;
this.groupBoxAdjustVia.Text = "Adjust via"; this.groupBoxAdjustVia.Text = "Adjust via";
// //
// comboBoxPercent // comboBoxPercent
// //
this.comboBoxPercent.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPercent.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxPercent.Enabled = false; this.comboBoxPercent.Enabled = false;
this.comboBoxPercent.FormattingEnabled = true; this.comboBoxPercent.FormattingEnabled = true;
@ -123,9 +123,9 @@
this.comboBoxPercent.Name = "comboBoxPercent"; this.comboBoxPercent.Name = "comboBoxPercent";
this.comboBoxPercent.Size = new System.Drawing.Size(141, 29); this.comboBoxPercent.Size = new System.Drawing.Size(141, 29);
this.comboBoxPercent.TabIndex = 3; this.comboBoxPercent.TabIndex = 3;
// //
// comboBoxSeconds // comboBoxSeconds
// //
this.comboBoxSeconds.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSeconds.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSeconds.FormattingEnabled = true; this.comboBoxSeconds.FormattingEnabled = true;
this.comboBoxSeconds.Items.AddRange(new object[] { this.comboBoxSeconds.Items.AddRange(new object[] {
@ -149,36 +149,36 @@
this.comboBoxSeconds.Name = "comboBoxSeconds"; this.comboBoxSeconds.Name = "comboBoxSeconds";
this.comboBoxSeconds.Size = new System.Drawing.Size(141, 29); this.comboBoxSeconds.Size = new System.Drawing.Size(141, 29);
this.comboBoxSeconds.TabIndex = 4; this.comboBoxSeconds.TabIndex = 4;
// //
// labelNote // labelNote
// //
this.labelNote.AutoSize = true; this.labelNote.AutoSize = true;
this.labelNote.Location = new System.Drawing.Point(10, 135); this.labelNote.Location = new System.Drawing.Point(10, 135);
this.labelNote.Name = "labelNote"; this.labelNote.Name = "labelNote";
this.labelNote.Size = new System.Drawing.Size(434, 21); this.labelNote.Size = new System.Drawing.Size(434, 21);
this.labelNote.TabIndex = 5; this.labelNote.TabIndex = 5;
this.labelNote.Text = "Note: Display time will not overlap start time of next text"; this.labelNote.Text = "Note: Display time will not overlap start time of next text";
// //
// labelAddInPercent // labelAddInPercent
// //
this.labelAddInPercent.AutoSize = true; this.labelAddInPercent.AutoSize = true;
this.labelAddInPercent.Location = new System.Drawing.Point(179, 70); this.labelAddInPercent.Location = new System.Drawing.Point(179, 70);
this.labelAddInPercent.Name = "labelAddInPercent"; this.labelAddInPercent.Name = "labelAddInPercent";
this.labelAddInPercent.Size = new System.Drawing.Size(137, 21); this.labelAddInPercent.Size = new System.Drawing.Size(137, 21);
this.labelAddInPercent.TabIndex = 6; this.labelAddInPercent.TabIndex = 6;
this.labelAddInPercent.Text = "Adjust in percent"; this.labelAddInPercent.Text = "Adjust in percent";
// //
// labelAddSeconds // labelAddSeconds
// //
this.labelAddSeconds.AutoSize = true; this.labelAddSeconds.AutoSize = true;
this.labelAddSeconds.Location = new System.Drawing.Point(10, 70); this.labelAddSeconds.Location = new System.Drawing.Point(10, 70);
this.labelAddSeconds.Name = "labelAddSeconds"; this.labelAddSeconds.Name = "labelAddSeconds";
this.labelAddSeconds.Size = new System.Drawing.Size(104, 21); this.labelAddSeconds.Size = new System.Drawing.Size(104, 21);
this.labelAddSeconds.TabIndex = 7; this.labelAddSeconds.TabIndex = 7;
this.labelAddSeconds.Text = "Add seconds"; this.labelAddSeconds.Text = "Add seconds";
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -188,9 +188,9 @@
this.buttonCancel.TabIndex = 9; this.buttonCancel.TabIndex = 9;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(222, 169); this.buttonOK.Location = new System.Drawing.Point(222, 169);
@ -200,9 +200,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// AdjustDisplayDuration // AdjustDisplayDuration
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(390, 206); this.ClientSize = new System.Drawing.Size(390, 206);

View File

@ -2,7 +2,7 @@
using System.Globalization; using System.Globalization;
using System.Windows.Forms; using System.Windows.Forms;
using Nikse.SubtitleEdit.Logic; using Nikse.SubtitleEdit.Logic;
using System.Drawing; using System.Drawing;
namespace Nikse.SubtitleEdit.Forms namespace Nikse.SubtitleEdit.Forms
{ {

View File

@ -40,9 +40,9 @@
this.labelCondition = new System.Windows.Forms.Label(); this.labelCondition = new System.Windows.Forms.Label();
this.groupBoxLinesFound.SuspendLayout(); this.groupBoxLinesFound.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewFixes.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)));
@ -59,29 +59,29 @@
this.listViewFixes.TabIndex = 9; this.listViewFixes.TabIndex = 9;
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 45; this.columnHeader4.Width = 45;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 61; this.columnHeader5.Width = 61;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "Before"; this.columnHeader7.Text = "Before";
this.columnHeader7.Width = 292; this.columnHeader7.Width = 292;
// //
// columnHeader8 // columnHeader8
// //
this.columnHeader8.Text = "After"; this.columnHeader8.Text = "After";
this.columnHeader8.Width = 292; this.columnHeader8.Width = 292;
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxLinesFound.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)));
@ -92,9 +92,9 @@
this.groupBoxLinesFound.TabIndex = 7; this.groupBoxLinesFound.TabIndex = 7;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines found: {0}"; this.groupBoxLinesFound.Text = "Lines found: {0}";
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(606, 425); this.buttonOK.Location = new System.Drawing.Point(606, 425);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -103,9 +103,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(687, 425); this.buttonCancel.Location = new System.Drawing.Point(687, 425);
@ -114,9 +114,9 @@
this.buttonCancel.TabIndex = 6; this.buttonCancel.TabIndex = 6;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// comboBoxConditions // comboBoxConditions
// //
this.comboBoxConditions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxConditions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxConditions.FormattingEnabled = true; this.comboBoxConditions.FormattingEnabled = true;
this.comboBoxConditions.Location = new System.Drawing.Point(12, 30); this.comboBoxConditions.Location = new System.Drawing.Point(12, 30);
@ -124,18 +124,18 @@
this.comboBoxConditions.Size = new System.Drawing.Size(150, 25); this.comboBoxConditions.Size = new System.Drawing.Size(150, 25);
this.comboBoxConditions.TabIndex = 8; this.comboBoxConditions.TabIndex = 8;
this.comboBoxConditions.SelectedIndexChanged += new System.EventHandler(this.comboBoxConditions_SelectedIndexChanged); this.comboBoxConditions.SelectedIndexChanged += new System.EventHandler(this.comboBoxConditions_SelectedIndexChanged);
// //
// labelCondition // labelCondition
// //
this.labelCondition.AutoSize = true; this.labelCondition.AutoSize = true;
this.labelCondition.Location = new System.Drawing.Point(13, 13); this.labelCondition.Location = new System.Drawing.Point(13, 13);
this.labelCondition.Name = "labelCondition"; this.labelCondition.Name = "labelCondition";
this.labelCondition.Size = new System.Drawing.Size(177, 17); this.labelCondition.Size = new System.Drawing.Size(177, 17);
this.labelCondition.TabIndex = 9; this.labelCondition.TabIndex = 9;
this.labelCondition.Text = "Only break lines longer than"; this.labelCondition.Text = "Only break lines longer than";
// //
// AutoBreakUnbreakLines // AutoBreakUnbreakLines
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(774, 454); this.ClientSize = new System.Drawing.Size(774, 454);

View File

@ -30,7 +30,7 @@ namespace Nikse.SubtitleEdit.Forms
listViewFixes.Columns[0].Text = Configuration.Settings.Language.General.Apply; listViewFixes.Columns[0].Text = Configuration.Settings.Language.General.Apply;
listViewFixes.Columns[1].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.LineNumber; listViewFixes.Columns[1].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.LineNumber;
listViewFixes.Columns[2].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.Before; listViewFixes.Columns[2].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.Before;
listViewFixes.Columns[3].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.After; listViewFixes.Columns[3].Text = Configuration.Settings.Language.AutoBreakUnbreakLines.After;
buttonOK.Text = Configuration.Settings.Language.General.OK; buttonOK.Text = Configuration.Settings.Language.General.OK;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel; buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
FixLargeFonts(); FixLargeFonts();
@ -57,12 +57,12 @@ namespace Nikse.SubtitleEdit.Forms
if (autoBalance) if (autoBalance)
{ {
labelCondition.Text = Configuration.Settings.Language.AutoBreakUnbreakLines.OnlyBreakLinesLongerThan; labelCondition.Text = Configuration.Settings.Language.AutoBreakUnbreakLines.OnlyBreakLinesLongerThan;
const int start = 10; const int start = 10;
const int max = 60; const int max = 60;
for (int i = start; i <= max; i++) for (int i = start; i <= max; i++)
comboBoxConditions.Items.Add(i.ToString()); comboBoxConditions.Items.Add(i.ToString());
int index = Configuration.Settings.Tools.MergeLinesShorterThan - (start +1); int index = Configuration.Settings.Tools.MergeLinesShorterThan - (start +1);
if (index > 0 && index < max) if (index > 0 && index < max)
comboBoxConditions.SelectedIndex = index; comboBoxConditions.SelectedIndex = index;
@ -165,7 +165,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
Paragraph p = _paragraphs[i]; Paragraph p = _paragraphs[i];
if (!IsFixAllowed(p)) if (!IsFixAllowed(p))
_paragraphs.Remove(p); _paragraphs.Remove(p);
} }
DialogResult = DialogResult.OK; DialogResult = DialogResult.OK;
} }

View File

@ -48,10 +48,10 @@
this.groupBoxImageSettings.SuspendLayout(); this.groupBoxImageSettings.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxImageSettings // groupBoxImageSettings
// //
this.groupBoxImageSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxImageSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImageSettings.Controls.Add(this.checkBoxAntiAlias); this.groupBoxImageSettings.Controls.Add(this.checkBoxAntiAlias);
this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFontSize); this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFontSize);
@ -70,9 +70,9 @@
this.groupBoxImageSettings.TabIndex = 23; this.groupBoxImageSettings.TabIndex = 23;
this.groupBoxImageSettings.TabStop = false; this.groupBoxImageSettings.TabStop = false;
this.groupBoxImageSettings.Text = "Image settings"; this.groupBoxImageSettings.Text = "Image settings";
// //
// checkBoxAntiAlias // checkBoxAntiAlias
// //
this.checkBoxAntiAlias.AutoSize = true; this.checkBoxAntiAlias.AutoSize = true;
this.checkBoxAntiAlias.Checked = true; this.checkBoxAntiAlias.Checked = true;
this.checkBoxAntiAlias.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxAntiAlias.CheckState = System.Windows.Forms.CheckState.Checked;
@ -83,18 +83,18 @@
this.checkBoxAntiAlias.Text = "AntiAlias"; this.checkBoxAntiAlias.Text = "AntiAlias";
this.checkBoxAntiAlias.UseVisualStyleBackColor = true; this.checkBoxAntiAlias.UseVisualStyleBackColor = true;
this.checkBoxAntiAlias.CheckedChanged += new System.EventHandler(this.checkBoxAntiAlias_CheckedChanged); this.checkBoxAntiAlias.CheckedChanged += new System.EventHandler(this.checkBoxAntiAlias_CheckedChanged);
// //
// labelSubtitleFontSize // labelSubtitleFontSize
// //
this.labelSubtitleFontSize.AutoSize = true; this.labelSubtitleFontSize.AutoSize = true;
this.labelSubtitleFontSize.Location = new System.Drawing.Point(10, 54); this.labelSubtitleFontSize.Location = new System.Drawing.Point(10, 54);
this.labelSubtitleFontSize.Name = "labelSubtitleFontSize"; this.labelSubtitleFontSize.Name = "labelSubtitleFontSize";
this.labelSubtitleFontSize.Size = new System.Drawing.Size(84, 13); this.labelSubtitleFontSize.Size = new System.Drawing.Size(84, 13);
this.labelSubtitleFontSize.TabIndex = 20; this.labelSubtitleFontSize.TabIndex = 20;
this.labelSubtitleFontSize.Text = "Subtitle font size"; this.labelSubtitleFontSize.Text = "Subtitle font size";
// //
// comboBoxSubtitleFont // comboBoxSubtitleFont
// //
this.comboBoxSubtitleFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSubtitleFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSubtitleFont.FormattingEnabled = true; this.comboBoxSubtitleFont.FormattingEnabled = true;
this.comboBoxSubtitleFont.Location = new System.Drawing.Point(100, 24); this.comboBoxSubtitleFont.Location = new System.Drawing.Point(100, 24);
@ -102,9 +102,9 @@
this.comboBoxSubtitleFont.Size = new System.Drawing.Size(121, 21); this.comboBoxSubtitleFont.Size = new System.Drawing.Size(121, 21);
this.comboBoxSubtitleFont.TabIndex = 17; this.comboBoxSubtitleFont.TabIndex = 17;
this.comboBoxSubtitleFont.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFont_SelectedValueChanged); this.comboBoxSubtitleFont.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFont_SelectedValueChanged);
// //
// comboBoxSubtitleFontSize // comboBoxSubtitleFontSize
// //
this.comboBoxSubtitleFontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSubtitleFontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSubtitleFontSize.FormattingEnabled = true; this.comboBoxSubtitleFontSize.FormattingEnabled = true;
this.comboBoxSubtitleFontSize.Items.AddRange(new object[] { this.comboBoxSubtitleFontSize.Items.AddRange(new object[] {
@ -183,18 +183,18 @@
this.comboBoxSubtitleFontSize.Size = new System.Drawing.Size(121, 21); this.comboBoxSubtitleFontSize.Size = new System.Drawing.Size(121, 21);
this.comboBoxSubtitleFontSize.TabIndex = 18; this.comboBoxSubtitleFontSize.TabIndex = 18;
this.comboBoxSubtitleFontSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFontSize_SelectedIndexChanged); this.comboBoxSubtitleFontSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFontSize_SelectedIndexChanged);
// //
// labelSubtitleFont // labelSubtitleFont
// //
this.labelSubtitleFont.AutoSize = true; this.labelSubtitleFont.AutoSize = true;
this.labelSubtitleFont.Location = new System.Drawing.Point(10, 27); this.labelSubtitleFont.Location = new System.Drawing.Point(10, 27);
this.labelSubtitleFont.Name = "labelSubtitleFont"; this.labelSubtitleFont.Name = "labelSubtitleFont";
this.labelSubtitleFont.Size = new System.Drawing.Size(63, 13); this.labelSubtitleFont.Size = new System.Drawing.Size(63, 13);
this.labelSubtitleFont.TabIndex = 19; this.labelSubtitleFont.TabIndex = 19;
this.labelSubtitleFont.Text = "Subtitle font"; this.labelSubtitleFont.Text = "Subtitle font";
// //
// labelBorderWidth // labelBorderWidth
// //
this.labelBorderWidth.Location = new System.Drawing.Point(426, 56); this.labelBorderWidth.Location = new System.Drawing.Point(426, 56);
this.labelBorderWidth.Name = "labelBorderWidth"; this.labelBorderWidth.Name = "labelBorderWidth";
this.labelBorderWidth.RightToLeft = System.Windows.Forms.RightToLeft.No; this.labelBorderWidth.RightToLeft = System.Windows.Forms.RightToLeft.No;
@ -202,9 +202,9 @@
this.labelBorderWidth.TabIndex = 16; this.labelBorderWidth.TabIndex = 16;
this.labelBorderWidth.Text = "Border width"; this.labelBorderWidth.Text = "Border width";
this.labelBorderWidth.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelBorderWidth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// comboBoxBorderWidth // comboBoxBorderWidth
// //
this.comboBoxBorderWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxBorderWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxBorderWidth.FormattingEnabled = true; this.comboBoxBorderWidth.FormattingEnabled = true;
this.comboBoxBorderWidth.Items.AddRange(new object[] { this.comboBoxBorderWidth.Items.AddRange(new object[] {
@ -219,18 +219,18 @@
this.comboBoxBorderWidth.Size = new System.Drawing.Size(121, 21); this.comboBoxBorderWidth.Size = new System.Drawing.Size(121, 21);
this.comboBoxBorderWidth.TabIndex = 15; this.comboBoxBorderWidth.TabIndex = 15;
this.comboBoxBorderWidth.SelectedIndexChanged += new System.EventHandler(this.comboBoxBorderWidth_SelectedIndexChanged); this.comboBoxBorderWidth.SelectedIndexChanged += new System.EventHandler(this.comboBoxBorderWidth_SelectedIndexChanged);
// //
// panelBorderColor // panelBorderColor
// //
this.panelBorderColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelBorderColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelBorderColor.Location = new System.Drawing.Point(664, 25); this.panelBorderColor.Location = new System.Drawing.Point(664, 25);
this.panelBorderColor.Name = "panelBorderColor"; this.panelBorderColor.Name = "panelBorderColor";
this.panelBorderColor.Size = new System.Drawing.Size(21, 20); this.panelBorderColor.Size = new System.Drawing.Size(21, 20);
this.panelBorderColor.TabIndex = 14; this.panelBorderColor.TabIndex = 14;
this.panelBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click); this.panelBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click);
// //
// buttonBorderColor // buttonBorderColor
// //
this.buttonBorderColor.Location = new System.Drawing.Point(537, 24); this.buttonBorderColor.Location = new System.Drawing.Point(537, 24);
this.buttonBorderColor.Name = "buttonBorderColor"; this.buttonBorderColor.Name = "buttonBorderColor";
this.buttonBorderColor.Size = new System.Drawing.Size(121, 21); this.buttonBorderColor.Size = new System.Drawing.Size(121, 21);
@ -238,18 +238,18 @@
this.buttonBorderColor.Text = "Border color"; this.buttonBorderColor.Text = "Border color";
this.buttonBorderColor.UseVisualStyleBackColor = true; this.buttonBorderColor.UseVisualStyleBackColor = true;
this.buttonBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click); this.buttonBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click);
// //
// panelColor // panelColor
// //
this.panelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelColor.Location = new System.Drawing.Point(403, 25); this.panelColor.Location = new System.Drawing.Point(403, 25);
this.panelColor.Name = "panelColor"; this.panelColor.Name = "panelColor";
this.panelColor.Size = new System.Drawing.Size(21, 20); this.panelColor.Size = new System.Drawing.Size(21, 20);
this.panelColor.TabIndex = 12; this.panelColor.TabIndex = 12;
this.panelColor.Click += new System.EventHandler(this.buttonColor_Click); this.panelColor.Click += new System.EventHandler(this.buttonColor_Click);
// //
// buttonColor // buttonColor
// //
this.buttonColor.Location = new System.Drawing.Point(276, 24); this.buttonColor.Location = new System.Drawing.Point(276, 24);
this.buttonColor.Name = "buttonColor"; this.buttonColor.Name = "buttonColor";
this.buttonColor.Size = new System.Drawing.Size(121, 21); this.buttonColor.Size = new System.Drawing.Size(121, 21);
@ -257,17 +257,17 @@
this.buttonColor.Text = "Color"; this.buttonColor.Text = "Color";
this.buttonColor.UseVisualStyleBackColor = true; this.buttonColor.UseVisualStyleBackColor = true;
this.buttonColor.Click += new System.EventHandler(this.buttonColor_Click); this.buttonColor.Click += new System.EventHandler(this.buttonColor_Click);
// //
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Location = new System.Drawing.Point(3, 99); this.pictureBox1.Location = new System.Drawing.Point(3, 99);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(855, 198); this.pictureBox1.Size = new System.Drawing.Size(855, 198);
this.pictureBox1.TabIndex = 22; this.pictureBox1.TabIndex = 22;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
// //
// buttonStart // buttonStart
// //
this.buttonStart.Location = new System.Drawing.Point(4, 303); this.buttonStart.Location = new System.Drawing.Point(4, 303);
this.buttonStart.Name = "buttonStart"; this.buttonStart.Name = "buttonStart";
this.buttonStart.Size = new System.Drawing.Size(121, 21); this.buttonStart.Size = new System.Drawing.Size(121, 21);
@ -275,14 +275,14 @@
this.buttonStart.Text = "&Start"; this.buttonStart.Text = "&Start";
this.buttonStart.UseVisualStyleBackColor = true; this.buttonStart.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click); this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
// //
// timer1 // timer1
// //
this.timer1.Interval = 25; this.timer1.Interval = 25;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
// //
// Beamer // Beamer
// //
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(862, 336); this.ClientSize = new System.Drawing.Size(862, 336);

View File

@ -158,7 +158,7 @@ namespace Nikse.SubtitleEdit.Forms
pictureBox1.Image = bmp; pictureBox1.Image = bmp;
pictureBox1.Height = bmp.Height; pictureBox1.Height = bmp.Height;
pictureBox1.Width = bmp.Width; pictureBox1.Width = bmp.Width;
_showIndex = -2; _showIndex = -2;
} }
} }
@ -208,7 +208,7 @@ namespace Nikse.SubtitleEdit.Forms
textSize = g.MeasureString(text, font); textSize = g.MeasureString(text, font);
g.Dispose(); g.Dispose();
bmp.Dispose(); bmp.Dispose();
bmp = new Bitmap((int)(textSize.Width * 0.8), (int)(textSize.Height * 0.7) + 10); bmp = new Bitmap((int)(textSize.Width * 0.8), (int)(textSize.Height * 0.7) + 10);
g = Graphics.FromImage(bmp); g = Graphics.FromImage(bmp);
g.FillRectangle(new SolidBrush(Color.Black), 0, 0, bmp.Width, bmp.Height); // background color g.FillRectangle(new SolidBrush(Color.Black), 0, 0, bmp.Width, bmp.Height); // background color
if (checkBoxAntiAlias.Checked) if (checkBoxAntiAlias.Checked)
@ -218,7 +218,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
StringFormat sf = new StringFormat(); StringFormat sf = new StringFormat();
sf.Alignment = StringAlignment.Near; sf.Alignment = StringAlignment.Near;
sf.LineAlignment = StringAlignment.Near;// draw the text to a path sf.LineAlignment = StringAlignment.Near;// draw the text to a path
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
// display italic // display italic
@ -345,7 +345,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
_seconds = _subtitle.Paragraphs[_index].StartTime.TotalSeconds; _seconds = _subtitle.Paragraphs[_index].StartTime.TotalSeconds;
_videoStartTick = DateTime.Now.Ticks- ((long) (_subtitle.Paragraphs[_index].StartTime.TotalMilliseconds) * 10000); //10,000 ticks = 1 millisecond _videoStartTick = DateTime.Now.Ticks- ((long) (_subtitle.Paragraphs[_index].StartTime.TotalMilliseconds) * 10000); //10,000 ticks = 1 millisecond
} }
groupBoxImageSettings.Hide(); groupBoxImageSettings.Hide();
buttonStart.Hide(); buttonStart.Hide();

View File

@ -39,9 +39,9 @@
this.radioButtonNormal = new System.Windows.Forms.RadioButton(); this.radioButtonNormal = new System.Windows.Forms.RadioButton();
this.groupBoxChangeCasing.SuspendLayout(); this.groupBoxChangeCasing.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -51,9 +51,9 @@
this.buttonCancel.TabIndex = 14; this.buttonCancel.TabIndex = 14;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -63,9 +63,9 @@
this.buttonOK.TabIndex = 12; this.buttonOK.TabIndex = 12;
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
// //
// groupBoxChangeCasing // groupBoxChangeCasing
// //
this.groupBoxChangeCasing.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxChangeCasing.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)));
@ -81,9 +81,9 @@
this.groupBoxChangeCasing.TabIndex = 12; this.groupBoxChangeCasing.TabIndex = 12;
this.groupBoxChangeCasing.TabStop = false; this.groupBoxChangeCasing.TabStop = false;
this.groupBoxChangeCasing.Text = "Change casing to"; this.groupBoxChangeCasing.Text = "Change casing to";
// //
// radioButtonFixOnlyNames // radioButtonFixOnlyNames
// //
this.radioButtonFixOnlyNames.AutoSize = true; this.radioButtonFixOnlyNames.AutoSize = true;
this.radioButtonFixOnlyNames.Location = new System.Drawing.Point(11, 88); this.radioButtonFixOnlyNames.Location = new System.Drawing.Point(11, 88);
this.radioButtonFixOnlyNames.Name = "radioButtonFixOnlyNames"; this.radioButtonFixOnlyNames.Name = "radioButtonFixOnlyNames";
@ -91,9 +91,9 @@
this.radioButtonFixOnlyNames.TabIndex = 6; this.radioButtonFixOnlyNames.TabIndex = 6;
this.radioButtonFixOnlyNames.Text = "Fix only names casing (via Dictionaries\\NamesEtc.xml)"; this.radioButtonFixOnlyNames.Text = "Fix only names casing (via Dictionaries\\NamesEtc.xml)";
this.radioButtonFixOnlyNames.UseVisualStyleBackColor = true; this.radioButtonFixOnlyNames.UseVisualStyleBackColor = true;
// //
// checkBoxFixNames // checkBoxFixNames
// //
this.checkBoxFixNames.AutoSize = true; this.checkBoxFixNames.AutoSize = true;
this.checkBoxFixNames.Checked = true; this.checkBoxFixNames.Checked = true;
this.checkBoxFixNames.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxFixNames.CheckState = System.Windows.Forms.CheckState.Checked;
@ -103,9 +103,9 @@
this.checkBoxFixNames.TabIndex = 2; this.checkBoxFixNames.TabIndex = 2;
this.checkBoxFixNames.Text = "Fix names casing (via Dictionaries\\NamesEtc.xml)"; this.checkBoxFixNames.Text = "Fix names casing (via Dictionaries\\NamesEtc.xml)";
this.checkBoxFixNames.UseVisualStyleBackColor = true; this.checkBoxFixNames.UseVisualStyleBackColor = true;
// //
// checkBoxOnlyAllUpper // checkBoxOnlyAllUpper
// //
this.checkBoxOnlyAllUpper.AutoSize = true; this.checkBoxOnlyAllUpper.AutoSize = true;
this.checkBoxOnlyAllUpper.Location = new System.Drawing.Point(23, 62); this.checkBoxOnlyAllUpper.Location = new System.Drawing.Point(23, 62);
this.checkBoxOnlyAllUpper.Name = "checkBoxOnlyAllUpper"; this.checkBoxOnlyAllUpper.Name = "checkBoxOnlyAllUpper";
@ -113,9 +113,9 @@
this.checkBoxOnlyAllUpper.TabIndex = 4; this.checkBoxOnlyAllUpper.TabIndex = 4;
this.checkBoxOnlyAllUpper.Text = "Only change all upper case lines."; this.checkBoxOnlyAllUpper.Text = "Only change all upper case lines.";
this.checkBoxOnlyAllUpper.UseVisualStyleBackColor = true; this.checkBoxOnlyAllUpper.UseVisualStyleBackColor = true;
// //
// radioButtonLowercase // radioButtonLowercase
// //
this.radioButtonLowercase.AutoSize = true; this.radioButtonLowercase.AutoSize = true;
this.radioButtonLowercase.Location = new System.Drawing.Point(11, 142); this.radioButtonLowercase.Location = new System.Drawing.Point(11, 142);
this.radioButtonLowercase.Name = "radioButtonLowercase"; this.radioButtonLowercase.Name = "radioButtonLowercase";
@ -123,9 +123,9 @@
this.radioButtonLowercase.TabIndex = 10; this.radioButtonLowercase.TabIndex = 10;
this.radioButtonLowercase.Text = "all lowercase"; this.radioButtonLowercase.Text = "all lowercase";
this.radioButtonLowercase.UseVisualStyleBackColor = true; this.radioButtonLowercase.UseVisualStyleBackColor = true;
// //
// radioButtonUppercase // radioButtonUppercase
// //
this.radioButtonUppercase.AutoSize = true; this.radioButtonUppercase.AutoSize = true;
this.radioButtonUppercase.Location = new System.Drawing.Point(11, 116); this.radioButtonUppercase.Location = new System.Drawing.Point(11, 116);
this.radioButtonUppercase.Name = "radioButtonUppercase"; this.radioButtonUppercase.Name = "radioButtonUppercase";
@ -133,9 +133,9 @@
this.radioButtonUppercase.TabIndex = 8; this.radioButtonUppercase.TabIndex = 8;
this.radioButtonUppercase.Text = "ALL UPPERCASE"; this.radioButtonUppercase.Text = "ALL UPPERCASE";
this.radioButtonUppercase.UseVisualStyleBackColor = true; this.radioButtonUppercase.UseVisualStyleBackColor = true;
// //
// radioButtonNormal // radioButtonNormal
// //
this.radioButtonNormal.AutoSize = true; this.radioButtonNormal.AutoSize = true;
this.radioButtonNormal.Checked = true; this.radioButtonNormal.Checked = true;
this.radioButtonNormal.Location = new System.Drawing.Point(11, 18); this.radioButtonNormal.Location = new System.Drawing.Point(11, 18);
@ -145,9 +145,9 @@
this.radioButtonNormal.TabStop = true; this.radioButtonNormal.TabStop = true;
this.radioButtonNormal.Text = "Normal casing. Sentences begin with uppercase letter."; this.radioButtonNormal.Text = "Normal casing. Sentences begin with uppercase letter.";
this.radioButtonNormal.UseVisualStyleBackColor = true; this.radioButtonNormal.UseVisualStyleBackColor = true;
// //
// ChangeCasing // ChangeCasing
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(404, 228); this.ClientSize = new System.Drawing.Size(404, 228);

View File

@ -43,9 +43,9 @@
this.groupBoxNames.SuspendLayout(); this.groupBoxNames.SuspendLayout();
this.groupBoxLinesFound.SuspendLayout(); this.groupBoxLinesFound.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(570, 559); this.buttonOK.Location = new System.Drawing.Point(570, 559);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -54,9 +54,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(651, 559); this.buttonCancel.Location = new System.Drawing.Point(651, 559);
@ -65,9 +65,9 @@
this.buttonCancel.TabIndex = 15; this.buttonCancel.TabIndex = 15;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// groupBoxNames // groupBoxNames
// //
this.groupBoxNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxNames.Controls.Add(this.listViewNames); this.groupBoxNames.Controls.Add(this.listViewNames);
@ -77,9 +77,9 @@
this.groupBoxNames.TabIndex = 12; this.groupBoxNames.TabIndex = 12;
this.groupBoxNames.TabStop = false; this.groupBoxNames.TabStop = false;
this.groupBoxNames.Text = "Names found in subtitle"; this.groupBoxNames.Text = "Names found in subtitle";
// //
// listViewNames // listViewNames
// //
this.listViewNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listViewNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listViewNames.CheckBoxes = true; this.listViewNames.CheckBoxes = true;
@ -96,19 +96,19 @@
this.listViewNames.UseCompatibleStateImageBehavior = false; this.listViewNames.UseCompatibleStateImageBehavior = false;
this.listViewNames.View = System.Windows.Forms.View.Details; this.listViewNames.View = System.Windows.Forms.View.Details;
this.listViewNames.SelectedIndexChanged += new System.EventHandler(this.ListViewNamesSelectedIndexChanged); this.listViewNames.SelectedIndexChanged += new System.EventHandler(this.ListViewNamesSelectedIndexChanged);
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Enabled"; this.columnHeader1.Text = "Enabled";
this.columnHeader1.Width = 70; this.columnHeader1.Width = 70;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "Name"; this.columnHeader2.Text = "Name";
this.columnHeader2.Width = 620; this.columnHeader2.Width = 620;
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxLinesFound.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)));
@ -119,9 +119,9 @@
this.groupBoxLinesFound.TabIndex = 13; this.groupBoxLinesFound.TabIndex = 13;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines found: {0}"; this.groupBoxLinesFound.Text = "Lines found: {0}";
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewFixes.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)));
@ -139,29 +139,29 @@
this.listViewFixes.TabIndex = 9; this.listViewFixes.TabIndex = 9;
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 45; this.columnHeader4.Width = 45;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 61; this.columnHeader5.Width = 61;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "Before"; this.columnHeader7.Text = "Before";
this.columnHeader7.Width = 292; this.columnHeader7.Width = 292;
// //
// columnHeader8 // columnHeader8
// //
this.columnHeader8.Text = "After"; this.columnHeader8.Text = "After";
this.columnHeader8.Width = 292; this.columnHeader8.Width = 292;
// //
// ChangeCasingNames // ChangeCasingNames
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(736, 589); this.ClientSize = new System.Drawing.Size(736, 589);

View File

@ -62,7 +62,7 @@ namespace Nikse.SubtitleEdit.Forms
_subtitle = subtitle; _subtitle = subtitle;
FindAllNames(); FindAllNames();
GeneratePreview(); GeneratePreview();
} }
private void GeneratePreview() private void GeneratePreview()
@ -191,7 +191,7 @@ namespace Nikse.SubtitleEdit.Forms
int start = lower.IndexOf(name.ToLower()); int start = lower.IndexOf(name.ToLower());
if (start >= 0) if (start >= 0)
{ {
bool startOk = (start == 0) || (lower[start - 1] == ' ') || (lower[start - 1] == '-') || (lower[start - 1] == '"') || bool startOk = (start == 0) || (lower[start - 1] == ' ') || (lower[start - 1] == '-') || (lower[start - 1] == '"') ||
(lower[start - 1] == '\'') || (lower[start - 1] == '>') || (Environment.NewLine.EndsWith(lower[start - 1].ToString())); (lower[start - 1] == '\'') || (lower[start - 1] == '>') || (Environment.NewLine.EndsWith(lower[start - 1].ToString()));
if (startOk) if (startOk)

View File

@ -39,9 +39,9 @@
this.buttonGetFrameRateTo = new System.Windows.Forms.Button(); this.buttonGetFrameRateTo = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(195, 115); this.buttonCancel.Location = new System.Drawing.Point(195, 115);
@ -50,9 +50,9 @@
this.buttonCancel.TabIndex = 5; this.buttonCancel.TabIndex = 5;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(114, 115); this.buttonOK.Location = new System.Drawing.Point(114, 115);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -61,9 +61,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// labelInfo // labelInfo
// //
this.labelInfo.AutoSize = true; this.labelInfo.AutoSize = true;
this.labelInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelInfo.Location = new System.Drawing.Point(37, 9); this.labelInfo.Location = new System.Drawing.Point(37, 9);
@ -71,43 +71,43 @@
this.labelInfo.Size = new System.Drawing.Size(229, 21); this.labelInfo.Size = new System.Drawing.Size(229, 21);
this.labelInfo.TabIndex = 3; this.labelInfo.TabIndex = 3;
this.labelInfo.Text = "Convert frame rate of subtitle"; this.labelInfo.Text = "Convert frame rate of subtitle";
// //
// comboBoxFrameRateFrom // comboBoxFrameRateFrom
// //
this.comboBoxFrameRateFrom.FormattingEnabled = true; this.comboBoxFrameRateFrom.FormattingEnabled = true;
this.comboBoxFrameRateFrom.Location = new System.Drawing.Point(119, 45); this.comboBoxFrameRateFrom.Location = new System.Drawing.Point(119, 45);
this.comboBoxFrameRateFrom.Name = "comboBoxFrameRateFrom"; this.comboBoxFrameRateFrom.Name = "comboBoxFrameRateFrom";
this.comboBoxFrameRateFrom.Size = new System.Drawing.Size(121, 29); this.comboBoxFrameRateFrom.Size = new System.Drawing.Size(121, 29);
this.comboBoxFrameRateFrom.TabIndex = 7; this.comboBoxFrameRateFrom.TabIndex = 7;
// //
// labelFromFrameRate // labelFromFrameRate
// //
this.labelFromFrameRate.Location = new System.Drawing.Point(4, 48); this.labelFromFrameRate.Location = new System.Drawing.Point(4, 48);
this.labelFromFrameRate.Name = "labelFromFrameRate"; this.labelFromFrameRate.Name = "labelFromFrameRate";
this.labelFromFrameRate.Size = new System.Drawing.Size(112, 19); this.labelFromFrameRate.Size = new System.Drawing.Size(112, 19);
this.labelFromFrameRate.TabIndex = 6; this.labelFromFrameRate.TabIndex = 6;
this.labelFromFrameRate.Text = "From frame rate"; this.labelFromFrameRate.Text = "From frame rate";
this.labelFromFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelFromFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// comboBoxFrameRateTo // comboBoxFrameRateTo
// //
this.comboBoxFrameRateTo.FormattingEnabled = true; this.comboBoxFrameRateTo.FormattingEnabled = true;
this.comboBoxFrameRateTo.Location = new System.Drawing.Point(119, 74); this.comboBoxFrameRateTo.Location = new System.Drawing.Point(119, 74);
this.comboBoxFrameRateTo.Name = "comboBoxFrameRateTo"; this.comboBoxFrameRateTo.Name = "comboBoxFrameRateTo";
this.comboBoxFrameRateTo.Size = new System.Drawing.Size(121, 29); this.comboBoxFrameRateTo.Size = new System.Drawing.Size(121, 29);
this.comboBoxFrameRateTo.TabIndex = 9; this.comboBoxFrameRateTo.TabIndex = 9;
// //
// labelToFrameRate // labelToFrameRate
// //
this.labelToFrameRate.Location = new System.Drawing.Point(4, 77); this.labelToFrameRate.Location = new System.Drawing.Point(4, 77);
this.labelToFrameRate.Name = "labelToFrameRate"; this.labelToFrameRate.Name = "labelToFrameRate";
this.labelToFrameRate.Size = new System.Drawing.Size(109, 22); this.labelToFrameRate.Size = new System.Drawing.Size(109, 22);
this.labelToFrameRate.TabIndex = 8; this.labelToFrameRate.TabIndex = 8;
this.labelToFrameRate.Text = "To frame rate"; this.labelToFrameRate.Text = "To frame rate";
this.labelToFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelToFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// buttonGetFrameRateFrom // buttonGetFrameRateFrom
// //
this.buttonGetFrameRateFrom.Location = new System.Drawing.Point(246, 45); this.buttonGetFrameRateFrom.Location = new System.Drawing.Point(246, 45);
this.buttonGetFrameRateFrom.Name = "buttonGetFrameRateFrom"; this.buttonGetFrameRateFrom.Name = "buttonGetFrameRateFrom";
this.buttonGetFrameRateFrom.Size = new System.Drawing.Size(24, 22); this.buttonGetFrameRateFrom.Size = new System.Drawing.Size(24, 22);
@ -115,9 +115,9 @@
this.buttonGetFrameRateFrom.Text = "..."; this.buttonGetFrameRateFrom.Text = "...";
this.buttonGetFrameRateFrom.UseVisualStyleBackColor = true; this.buttonGetFrameRateFrom.UseVisualStyleBackColor = true;
this.buttonGetFrameRateFrom.Click += new System.EventHandler(this.ButtonGetFrameRateFromClick); this.buttonGetFrameRateFrom.Click += new System.EventHandler(this.ButtonGetFrameRateFromClick);
// //
// buttonGetFrameRateTo // buttonGetFrameRateTo
// //
this.buttonGetFrameRateTo.Location = new System.Drawing.Point(246, 72); this.buttonGetFrameRateTo.Location = new System.Drawing.Point(246, 72);
this.buttonGetFrameRateTo.Name = "buttonGetFrameRateTo"; this.buttonGetFrameRateTo.Name = "buttonGetFrameRateTo";
this.buttonGetFrameRateTo.Size = new System.Drawing.Size(24, 22); this.buttonGetFrameRateTo.Size = new System.Drawing.Size(24, 22);
@ -125,13 +125,13 @@
this.buttonGetFrameRateTo.Text = "..."; this.buttonGetFrameRateTo.Text = "...";
this.buttonGetFrameRateTo.UseVisualStyleBackColor = true; this.buttonGetFrameRateTo.UseVisualStyleBackColor = true;
this.buttonGetFrameRateTo.Click += new System.EventHandler(this.ButtonGetFrameRateToClick); this.buttonGetFrameRateTo.Click += new System.EventHandler(this.ButtonGetFrameRateToClick);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// ChangeFrameRate // ChangeFrameRate
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(295, 148); this.ClientSize = new System.Drawing.Size(295, 148);

View File

@ -113,6 +113,6 @@ namespace Nikse.SubtitleEdit.Forms
return double.Parse(comboBoxFrameRateTo.Text); return double.Parse(comboBoxFrameRateTo.Text);
} }
} }
} }
} }

View File

@ -37,9 +37,9 @@
this.textBoxPreview = new System.Windows.Forms.TextBox(); this.textBoxPreview = new System.Windows.Forms.TextBox();
this.LabelPreview = new System.Windows.Forms.Label(); this.LabelPreview = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(542, 473); this.buttonCancel.Location = new System.Drawing.Point(542, 473);
@ -48,9 +48,9 @@
this.buttonCancel.TabIndex = 7; this.buttonCancel.TabIndex = 7;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(461, 473); this.buttonOK.Location = new System.Drawing.Point(461, 473);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -59,9 +59,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// listView1 // listView1
// //
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -80,24 +80,24 @@
this.listView1.View = System.Windows.Forms.View.Details; this.listView1.View = System.Windows.Forms.View.Details;
this.listView1.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView1_ColumnClick); this.listView1.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView1_ColumnClick);
this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged); this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Codepage"; this.columnHeader1.Text = "Codepage";
this.columnHeader1.Width = 75; this.columnHeader1.Width = 75;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "Name"; this.columnHeader2.Text = "Name";
this.columnHeader2.Width = 124; this.columnHeader2.Width = 124;
// //
// columnHeader3 // columnHeader3
// //
this.columnHeader3.Text = "DisplayName"; this.columnHeader3.Text = "DisplayName";
this.columnHeader3.Width = 384; this.columnHeader3.Width = 384;
// //
// textBoxPreview // textBoxPreview
// //
this.textBoxPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.textBoxPreview.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)));
@ -107,18 +107,18 @@
this.textBoxPreview.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxPreview.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxPreview.Size = new System.Drawing.Size(604, 156); this.textBoxPreview.Size = new System.Drawing.Size(604, 156);
this.textBoxPreview.TabIndex = 9; this.textBoxPreview.TabIndex = 9;
// //
// LabelPreview // LabelPreview
// //
this.LabelPreview.AutoSize = true; this.LabelPreview.AutoSize = true;
this.LabelPreview.Location = new System.Drawing.Point(12, 284); this.LabelPreview.Location = new System.Drawing.Point(12, 284);
this.LabelPreview.Name = "LabelPreview"; this.LabelPreview.Name = "LabelPreview";
this.LabelPreview.Size = new System.Drawing.Size(55, 17); this.LabelPreview.Size = new System.Drawing.Size(55, 17);
this.LabelPreview.TabIndex = 10; this.LabelPreview.TabIndex = 10;
this.LabelPreview.Text = "Preview"; this.LabelPreview.Text = "Preview";
// //
// ChooseEncoding // ChooseEncoding
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(629, 503); this.ClientSize = new System.Drawing.Size(629, 503);

View File

@ -41,7 +41,7 @@ namespace Nikse.SubtitleEdit.Forms
public int ColumnNumber { get; set; } public int ColumnNumber { get; set; }
public bool IsNumber { get; set; } public bool IsNumber { get; set; }
public bool Descending { get; set; } public bool Descending { get; set; }
} }

View File

@ -33,9 +33,9 @@
this.labelLanguage = new System.Windows.Forms.Label(); this.labelLanguage = new System.Windows.Forms.Label();
this.comboBoxLanguages = new System.Windows.Forms.ComboBox(); this.comboBoxLanguages = new System.Windows.Forms.ComboBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(203, 72); this.buttonCancel.Location = new System.Drawing.Point(203, 72);
@ -44,9 +44,9 @@
this.buttonCancel.TabIndex = 2; this.buttonCancel.TabIndex = 2;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(122, 72); this.buttonOK.Location = new System.Drawing.Point(122, 72);
@ -55,27 +55,27 @@
this.buttonOK.TabIndex = 1; this.buttonOK.TabIndex = 1;
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
// //
// labelLanguage // labelLanguage
// //
this.labelLanguage.AutoSize = true; this.labelLanguage.AutoSize = true;
this.labelLanguage.Location = new System.Drawing.Point(12, 14); this.labelLanguage.Location = new System.Drawing.Point(12, 14);
this.labelLanguage.Name = "labelLanguage"; this.labelLanguage.Name = "labelLanguage";
this.labelLanguage.Size = new System.Drawing.Size(68, 17); this.labelLanguage.Size = new System.Drawing.Size(68, 17);
this.labelLanguage.TabIndex = 15; this.labelLanguage.TabIndex = 15;
this.labelLanguage.Text = "Language"; this.labelLanguage.Text = "Language";
// //
// comboBoxLanguages // comboBoxLanguages
// //
this.comboBoxLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxLanguages.FormattingEnabled = true; this.comboBoxLanguages.FormattingEnabled = true;
this.comboBoxLanguages.Location = new System.Drawing.Point(12, 31); this.comboBoxLanguages.Location = new System.Drawing.Point(12, 31);
this.comboBoxLanguages.Name = "comboBoxLanguages"; this.comboBoxLanguages.Name = "comboBoxLanguages";
this.comboBoxLanguages.Size = new System.Drawing.Size(266, 25); this.comboBoxLanguages.Size = new System.Drawing.Size(266, 25);
this.comboBoxLanguages.TabIndex = 0; this.comboBoxLanguages.TabIndex = 0;
// //
// ChooseLanguage // ChooseLanguage
// //
this.AcceptButton = this.buttonOK; this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

View File

@ -32,8 +32,8 @@ namespace Nikse.SubtitleEdit.Forms
public string CultureName public string CultureName
{ {
get get
{ {
int index = comboBoxLanguages.SelectedIndex; int index = comboBoxLanguages.SelectedIndex;
if (index == -1) if (index == -1)
return "en-US"; return "en-US";
@ -73,7 +73,7 @@ namespace Nikse.SubtitleEdit.Forms
System.Diagnostics.Debug.WriteLine(cultureName + " is not a valid culture"); System.Diagnostics.Debug.WriteLine(cultureName + " is not a valid culture");
} }
} }
int index = 0; int index = 0;
for (int i=0; i< comboBoxLanguages.Items.Count; i++) for (int i=0; i< comboBoxLanguages.Items.Count; i++)
{ {

View File

@ -48,9 +48,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView2 = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.subtitleListView2 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.subtitleListView1 = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.subtitleListView1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(884, 539); this.buttonOK.Location = new System.Drawing.Point(884, 539);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -59,27 +59,27 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&Close"; this.buttonOK.Text = "&Close";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// labelSubtitle2 // labelSubtitle2
// //
this.labelSubtitle2.AutoSize = true; this.labelSubtitle2.AutoSize = true;
this.labelSubtitle2.Location = new System.Drawing.Point(492, 31); this.labelSubtitle2.Location = new System.Drawing.Point(492, 31);
this.labelSubtitle2.Name = "labelSubtitle2"; this.labelSubtitle2.Name = "labelSubtitle2";
this.labelSubtitle2.Size = new System.Drawing.Size(38, 17); this.labelSubtitle2.Size = new System.Drawing.Size(38, 17);
this.labelSubtitle2.TabIndex = 10; this.labelSubtitle2.TabIndex = 10;
this.labelSubtitle2.Text = "sub2"; this.labelSubtitle2.Text = "sub2";
// //
// labelSubtitle1 // labelSubtitle1
// //
this.labelSubtitle1.AutoSize = true; this.labelSubtitle1.AutoSize = true;
this.labelSubtitle1.Location = new System.Drawing.Point(9, 32); this.labelSubtitle1.Location = new System.Drawing.Point(9, 32);
this.labelSubtitle1.Name = "labelSubtitle1"; this.labelSubtitle1.Name = "labelSubtitle1";
this.labelSubtitle1.Size = new System.Drawing.Size(38, 17); this.labelSubtitle1.Size = new System.Drawing.Size(38, 17);
this.labelSubtitle1.TabIndex = 8; this.labelSubtitle1.TabIndex = 8;
this.labelSubtitle1.Text = "sub1"; this.labelSubtitle1.Text = "sub1";
// //
// buttonOpenSubtitle1 // buttonOpenSubtitle1
// //
this.buttonOpenSubtitle1.Location = new System.Drawing.Point(9, 8); this.buttonOpenSubtitle1.Location = new System.Drawing.Point(9, 8);
this.buttonOpenSubtitle1.Name = "buttonOpenSubtitle1"; this.buttonOpenSubtitle1.Name = "buttonOpenSubtitle1";
this.buttonOpenSubtitle1.Size = new System.Drawing.Size(24, 21); this.buttonOpenSubtitle1.Size = new System.Drawing.Size(24, 21);
@ -87,9 +87,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOpenSubtitle1.Text = "..."; this.buttonOpenSubtitle1.Text = "...";
this.buttonOpenSubtitle1.UseVisualStyleBackColor = true; this.buttonOpenSubtitle1.UseVisualStyleBackColor = true;
this.buttonOpenSubtitle1.Click += new System.EventHandler(this.ButtonOpenSubtitle1Click); this.buttonOpenSubtitle1.Click += new System.EventHandler(this.ButtonOpenSubtitle1Click);
// //
// buttonOpenSubtitle2 // buttonOpenSubtitle2
// //
this.buttonOpenSubtitle2.Location = new System.Drawing.Point(491, 8); this.buttonOpenSubtitle2.Location = new System.Drawing.Point(491, 8);
this.buttonOpenSubtitle2.Name = "buttonOpenSubtitle2"; this.buttonOpenSubtitle2.Name = "buttonOpenSubtitle2";
this.buttonOpenSubtitle2.Size = new System.Drawing.Size(24, 21); this.buttonOpenSubtitle2.Size = new System.Drawing.Size(24, 21);
@ -97,13 +97,13 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOpenSubtitle2.Text = "..."; this.buttonOpenSubtitle2.Text = "...";
this.buttonOpenSubtitle2.UseVisualStyleBackColor = true; this.buttonOpenSubtitle2.UseVisualStyleBackColor = true;
this.buttonOpenSubtitle2.Click += new System.EventHandler(this.ButtonOpenSubtitle2Click); this.buttonOpenSubtitle2.Click += new System.EventHandler(this.ButtonOpenSubtitle2Click);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// buttonNextDifference // buttonNextDifference
// //
this.buttonNextDifference.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonNextDifference.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonNextDifference.Enabled = false; this.buttonNextDifference.Enabled = false;
this.buttonNextDifference.Location = new System.Drawing.Point(167, 539); this.buttonNextDifference.Location = new System.Drawing.Point(167, 539);
@ -113,9 +113,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonNextDifference.Text = "&Next difference"; this.buttonNextDifference.Text = "&Next difference";
this.buttonNextDifference.UseVisualStyleBackColor = true; this.buttonNextDifference.UseVisualStyleBackColor = true;
this.buttonNextDifference.Click += new System.EventHandler(this.ButtonNextDifferenceClick); this.buttonNextDifference.Click += new System.EventHandler(this.ButtonNextDifferenceClick);
// //
// buttonPreviousDifference // buttonPreviousDifference
// //
this.buttonPreviousDifference.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonPreviousDifference.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonPreviousDifference.Enabled = false; this.buttonPreviousDifference.Enabled = false;
this.buttonPreviousDifference.Location = new System.Drawing.Point(5, 539); this.buttonPreviousDifference.Location = new System.Drawing.Point(5, 539);
@ -125,9 +125,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonPreviousDifference.Text = "&Previous difference"; this.buttonPreviousDifference.Text = "&Previous difference";
this.buttonPreviousDifference.UseVisualStyleBackColor = true; this.buttonPreviousDifference.UseVisualStyleBackColor = true;
this.buttonPreviousDifference.Click += new System.EventHandler(this.ButtonPreviousDifferenceClick); this.buttonPreviousDifference.Click += new System.EventHandler(this.ButtonPreviousDifferenceClick);
// //
// labelStatus // labelStatus
// //
this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(4, 560); this.labelStatus.Location = new System.Drawing.Point(4, 560);
@ -135,13 +135,13 @@ namespace Nikse.SubtitleEdit.Forms
this.labelStatus.Size = new System.Drawing.Size(45, 17); this.labelStatus.Size = new System.Drawing.Size(45, 17);
this.labelStatus.TabIndex = 17; this.labelStatus.TabIndex = 17;
this.labelStatus.Text = "status"; this.labelStatus.Text = "status";
// //
// timer1 // timer1
// //
this.timer1.Tick += new System.EventHandler(this.Timer1Tick); this.timer1.Tick += new System.EventHandler(this.Timer1Tick);
// //
// richTextBox1 // richTextBox1
// //
this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.richTextBox1.BackColor = System.Drawing.SystemColors.Control; this.richTextBox1.BackColor = System.Drawing.SystemColors.Control;
this.richTextBox1.Location = new System.Drawing.Point(8, 490); this.richTextBox1.Location = new System.Drawing.Point(8, 490);
@ -150,9 +150,9 @@ namespace Nikse.SubtitleEdit.Forms
this.richTextBox1.Size = new System.Drawing.Size(476, 43); this.richTextBox1.Size = new System.Drawing.Size(476, 43);
this.richTextBox1.TabIndex = 18; this.richTextBox1.TabIndex = 18;
this.richTextBox1.Text = ""; this.richTextBox1.Text = "";
// //
// richTextBox2 // richTextBox2
// //
this.richTextBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.richTextBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.richTextBox2.BackColor = System.Drawing.SystemColors.Control; this.richTextBox2.BackColor = System.Drawing.SystemColors.Control;
this.richTextBox2.Location = new System.Drawing.Point(490, 489); this.richTextBox2.Location = new System.Drawing.Point(490, 489);
@ -161,9 +161,9 @@ namespace Nikse.SubtitleEdit.Forms
this.richTextBox2.Size = new System.Drawing.Size(478, 43); this.richTextBox2.Size = new System.Drawing.Size(478, 43);
this.richTextBox2.TabIndex = 19; this.richTextBox2.TabIndex = 19;
this.richTextBox2.Text = ""; this.richTextBox2.Text = "";
// //
// checkBoxShowOnlyDifferences // checkBoxShowOnlyDifferences
// //
this.checkBoxShowOnlyDifferences.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxShowOnlyDifferences.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkBoxShowOnlyDifferences.AutoSize = true; this.checkBoxShowOnlyDifferences.AutoSize = true;
this.checkBoxShowOnlyDifferences.Location = new System.Drawing.Point(330, 538); this.checkBoxShowOnlyDifferences.Location = new System.Drawing.Point(330, 538);
@ -173,9 +173,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxShowOnlyDifferences.Text = "Show only differences"; this.checkBoxShowOnlyDifferences.Text = "Show only differences";
this.checkBoxShowOnlyDifferences.UseVisualStyleBackColor = true; this.checkBoxShowOnlyDifferences.UseVisualStyleBackColor = true;
this.checkBoxShowOnlyDifferences.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyDifferences_CheckedChanged); this.checkBoxShowOnlyDifferences.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyDifferences_CheckedChanged);
// //
// checkBoxOnlyListDifferencesInText // checkBoxOnlyListDifferencesInText
// //
this.checkBoxOnlyListDifferencesInText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxOnlyListDifferencesInText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkBoxOnlyListDifferencesInText.AutoSize = true; this.checkBoxOnlyListDifferencesInText.AutoSize = true;
this.checkBoxOnlyListDifferencesInText.Location = new System.Drawing.Point(330, 556); this.checkBoxOnlyListDifferencesInText.Location = new System.Drawing.Point(330, 556);
@ -185,9 +185,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxOnlyListDifferencesInText.Text = "Only look for differences in the text"; this.checkBoxOnlyListDifferencesInText.Text = "Only look for differences in the text";
this.checkBoxOnlyListDifferencesInText.UseVisualStyleBackColor = true; this.checkBoxOnlyListDifferencesInText.UseVisualStyleBackColor = true;
this.checkBoxOnlyListDifferencesInText.CheckedChanged += new System.EventHandler(this.checkBoxOnlyListDifferencesInText_CheckedChanged); this.checkBoxOnlyListDifferencesInText.CheckedChanged += new System.EventHandler(this.checkBoxOnlyListDifferencesInText_CheckedChanged);
// //
// subtitleListView2 // subtitleListView2
// //
this.subtitleListView2.FirstVisibleIndex = -1; this.subtitleListView2.FirstVisibleIndex = -1;
this.subtitleListView2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.subtitleListView2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.subtitleListView2.FullRowSelect = true; this.subtitleListView2.FullRowSelect = true;
@ -202,9 +202,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView2.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView2SelectedIndexChanged); this.subtitleListView2.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView2SelectedIndexChanged);
this.subtitleListView2.Enter += new System.EventHandler(this.SubtitleListView2Enter); this.subtitleListView2.Enter += new System.EventHandler(this.SubtitleListView2Enter);
this.subtitleListView2.Leave += new System.EventHandler(this.SubtitleListView2Leave); this.subtitleListView2.Leave += new System.EventHandler(this.SubtitleListView2Leave);
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.FirstVisibleIndex = -1; 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.subtitleListView1.FullRowSelect = true; this.subtitleListView1.FullRowSelect = true;
@ -217,9 +217,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged); this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged);
// //
// Compare // Compare
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(974, 582); this.ClientSize = new System.Drawing.Size(974, 582);

View File

@ -29,7 +29,7 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxOnlyListDifferencesInText.Text = Configuration.Settings.Language.CompareSubtitles.OnlyLookForDifferencesInText; checkBoxOnlyListDifferencesInText.Text = Configuration.Settings.Language.CompareSubtitles.OnlyLookForDifferencesInText;
else else
checkBoxOnlyListDifferencesInText.Visible = false; checkBoxOnlyListDifferencesInText.Visible = false;
buttonOK.Text = Configuration.Settings.Language.General.OK; buttonOK.Text = Configuration.Settings.Language.General.OK;
subtitleListView1.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings); subtitleListView1.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings);
subtitleListView2.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings); subtitleListView2.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings);
FixLargeFonts(); FixLargeFonts();
@ -64,7 +64,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
openFileDialog1.InitialDirectory = Path.GetDirectoryName(subtitleFileName1); openFileDialog1.InitialDirectory = Path.GetDirectoryName(subtitleFileName1);
} }
catch catch
{ {
} }
} }
@ -139,8 +139,8 @@ namespace Nikse.SubtitleEdit.Forms
if (p1.ToString() == p2.ToString()) if (p1.ToString() == p2.ToString())
{ {
} }
else else
{ {
if (GetColumnsEqualExceptNumber(p1, p2) == 0) if (GetColumnsEqualExceptNumber(p1, p2) == 0)
{ {
int oldIndex = index; int oldIndex = index;
@ -310,7 +310,7 @@ namespace Nikse.SubtitleEdit.Forms
if (max != _differences.Count) if (max != _differences.Count)
{ {
for (index = Math.Max(subtitleListView1.Items.Count, subtitleListView2.Items.Count); index >= 0; index--) for (index = Math.Max(subtitleListView1.Items.Count, subtitleListView2.Items.Count); index >= 0; index--)
{ {
if (!_differences.Contains(index)) if (!_differences.Contains(index))
{ {
if (subtitleListView1.Items.Count > index) if (subtitleListView1.Items.Count > index)
@ -404,7 +404,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ShowTextDifference() private void ShowTextDifference()
{ {
// from start // from start
int minLength = Math.Min(richTextBox1.Text.Length, richTextBox2.Text.Length); int minLength = Math.Min(richTextBox1.Text.Length, richTextBox2.Text.Length);
@ -518,7 +518,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
buttonPreviousDifference.Enabled = false; buttonPreviousDifference.Enabled = false;
buttonNextDifference.Enabled = false; buttonNextDifference.Enabled = false;
} }
} }
private void SubtitleListView2SelectedIndexChanged(object sender, EventArgs e) private void SubtitleListView2SelectedIndexChanged(object sender, EventArgs e)

View File

@ -52,9 +52,9 @@
this.groupBoxLanguages.SuspendLayout(); this.groupBoxLanguages.SuspendLayout();
this.groupBoxPalNtsc.SuspendLayout(); this.groupBoxPalNtsc.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOpenIfo // buttonOpenIfo
// //
this.buttonOpenIfo.Location = new System.Drawing.Point(447, 32); this.buttonOpenIfo.Location = new System.Drawing.Point(447, 32);
this.buttonOpenIfo.Name = "buttonOpenIfo"; this.buttonOpenIfo.Name = "buttonOpenIfo";
this.buttonOpenIfo.Size = new System.Drawing.Size(25, 23); this.buttonOpenIfo.Size = new System.Drawing.Size(25, 23);
@ -62,9 +62,9 @@
this.buttonOpenIfo.Text = "..."; this.buttonOpenIfo.Text = "...";
this.buttonOpenIfo.UseVisualStyleBackColor = true; this.buttonOpenIfo.UseVisualStyleBackColor = true;
this.buttonOpenIfo.Click += new System.EventHandler(this.ButtonOpenIfoClick); this.buttonOpenIfo.Click += new System.EventHandler(this.ButtonOpenIfoClick);
// //
// textBoxIfoFileName // textBoxIfoFileName
// //
this.textBoxIfoFileName.AllowDrop = true; this.textBoxIfoFileName.AllowDrop = true;
this.textBoxIfoFileName.Location = new System.Drawing.Point(6, 34); this.textBoxIfoFileName.Location = new System.Drawing.Point(6, 34);
this.textBoxIfoFileName.Name = "textBoxIfoFileName"; this.textBoxIfoFileName.Name = "textBoxIfoFileName";
@ -73,18 +73,18 @@
this.textBoxIfoFileName.TabIndex = 0; this.textBoxIfoFileName.TabIndex = 0;
this.textBoxIfoFileName.DragDrop += new System.Windows.Forms.DragEventHandler(this.TextBoxIfoFileNameDragDrop); this.textBoxIfoFileName.DragDrop += new System.Windows.Forms.DragEventHandler(this.TextBoxIfoFileNameDragDrop);
this.textBoxIfoFileName.DragEnter += new System.Windows.Forms.DragEventHandler(this.TextBoxIfoFileNameDragEnter); this.textBoxIfoFileName.DragEnter += new System.Windows.Forms.DragEventHandler(this.TextBoxIfoFileNameDragEnter);
// //
// labelIfoFile // labelIfoFile
// //
this.labelIfoFile.AutoSize = true; this.labelIfoFile.AutoSize = true;
this.labelIfoFile.Location = new System.Drawing.Point(6, 17); this.labelIfoFile.Location = new System.Drawing.Point(6, 17);
this.labelIfoFile.Name = "labelIfoFile"; this.labelIfoFile.Name = "labelIfoFile";
this.labelIfoFile.Size = new System.Drawing.Size(48, 17); this.labelIfoFile.Size = new System.Drawing.Size(48, 17);
this.labelIfoFile.TabIndex = 2; this.labelIfoFile.TabIndex = 2;
this.labelIfoFile.Text = "IFO file"; this.labelIfoFile.Text = "IFO file";
// //
// groupBoxDvd // groupBoxDvd
// //
this.groupBoxDvd.Controls.Add(this.buttonClear); this.groupBoxDvd.Controls.Add(this.buttonClear);
this.groupBoxDvd.Controls.Add(this.groupBoxLanguages); this.groupBoxDvd.Controls.Add(this.groupBoxLanguages);
this.groupBoxDvd.Controls.Add(this.groupBoxPalNtsc); this.groupBoxDvd.Controls.Add(this.groupBoxPalNtsc);
@ -103,9 +103,9 @@
this.groupBoxDvd.TabIndex = 3; this.groupBoxDvd.TabIndex = 3;
this.groupBoxDvd.TabStop = false; this.groupBoxDvd.TabStop = false;
this.groupBoxDvd.Text = "DVD files/info"; this.groupBoxDvd.Text = "DVD files/info";
// //
// buttonClear // buttonClear
// //
this.buttonClear.Location = new System.Drawing.Point(446, 131); this.buttonClear.Location = new System.Drawing.Point(446, 131);
this.buttonClear.Name = "buttonClear"; this.buttonClear.Name = "buttonClear";
this.buttonClear.Size = new System.Drawing.Size(74, 21); this.buttonClear.Size = new System.Drawing.Size(74, 21);
@ -113,9 +113,9 @@
this.buttonClear.Text = "Clear"; this.buttonClear.Text = "Clear";
this.buttonClear.UseVisualStyleBackColor = true; this.buttonClear.UseVisualStyleBackColor = true;
this.buttonClear.Click += new System.EventHandler(this.ButtonClearClick); this.buttonClear.Click += new System.EventHandler(this.ButtonClearClick);
// //
// groupBoxLanguages // groupBoxLanguages
// //
this.groupBoxLanguages.Controls.Add(this.comboBoxLanguages); this.groupBoxLanguages.Controls.Add(this.comboBoxLanguages);
this.groupBoxLanguages.Location = new System.Drawing.Point(6, 206); this.groupBoxLanguages.Location = new System.Drawing.Point(6, 206);
this.groupBoxLanguages.Name = "groupBoxLanguages"; this.groupBoxLanguages.Name = "groupBoxLanguages";
@ -123,18 +123,18 @@
this.groupBoxLanguages.TabIndex = 14; this.groupBoxLanguages.TabIndex = 14;
this.groupBoxLanguages.TabStop = false; this.groupBoxLanguages.TabStop = false;
this.groupBoxLanguages.Text = "Languages"; this.groupBoxLanguages.Text = "Languages";
// //
// comboBoxLanguages // comboBoxLanguages
// //
this.comboBoxLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxLanguages.FormattingEnabled = true; this.comboBoxLanguages.FormattingEnabled = true;
this.comboBoxLanguages.Location = new System.Drawing.Point(6, 18); this.comboBoxLanguages.Location = new System.Drawing.Point(6, 18);
this.comboBoxLanguages.Name = "comboBoxLanguages"; this.comboBoxLanguages.Name = "comboBoxLanguages";
this.comboBoxLanguages.Size = new System.Drawing.Size(230, 25); this.comboBoxLanguages.Size = new System.Drawing.Size(230, 25);
this.comboBoxLanguages.TabIndex = 14; this.comboBoxLanguages.TabIndex = 14;
// //
// groupBoxPalNtsc // groupBoxPalNtsc
// //
this.groupBoxPalNtsc.Controls.Add(this.radioButtonNtsc); this.groupBoxPalNtsc.Controls.Add(this.radioButtonNtsc);
this.groupBoxPalNtsc.Controls.Add(this.radioButtonPal); this.groupBoxPalNtsc.Controls.Add(this.radioButtonPal);
this.groupBoxPalNtsc.Location = new System.Drawing.Point(254, 212); this.groupBoxPalNtsc.Location = new System.Drawing.Point(254, 212);
@ -143,9 +143,9 @@
this.groupBoxPalNtsc.TabIndex = 20; this.groupBoxPalNtsc.TabIndex = 20;
this.groupBoxPalNtsc.TabStop = false; this.groupBoxPalNtsc.TabStop = false;
this.groupBoxPalNtsc.Text = "PAL/NTSC"; this.groupBoxPalNtsc.Text = "PAL/NTSC";
// //
// radioButtonNtsc // radioButtonNtsc
// //
this.radioButtonNtsc.AutoSize = true; this.radioButtonNtsc.AutoSize = true;
this.radioButtonNtsc.Location = new System.Drawing.Point(104, 18); this.radioButtonNtsc.Location = new System.Drawing.Point(104, 18);
this.radioButtonNtsc.Name = "radioButtonNtsc"; this.radioButtonNtsc.Name = "radioButtonNtsc";
@ -154,9 +154,9 @@
this.radioButtonNtsc.TabStop = true; this.radioButtonNtsc.TabStop = true;
this.radioButtonNtsc.Text = "NTSC (30fps)"; this.radioButtonNtsc.Text = "NTSC (30fps)";
this.radioButtonNtsc.UseVisualStyleBackColor = true; this.radioButtonNtsc.UseVisualStyleBackColor = true;
// //
// radioButtonPal // radioButtonPal
// //
this.radioButtonPal.AutoSize = true; this.radioButtonPal.AutoSize = true;
this.radioButtonPal.Checked = true; this.radioButtonPal.Checked = true;
this.radioButtonPal.Location = new System.Drawing.Point(6, 19); this.radioButtonPal.Location = new System.Drawing.Point(6, 19);
@ -166,9 +166,9 @@
this.radioButtonPal.TabStop = true; this.radioButtonPal.TabStop = true;
this.radioButtonPal.Text = "PAL (25fps)"; this.radioButtonPal.Text = "PAL (25fps)";
this.radioButtonPal.UseVisualStyleBackColor = true; this.radioButtonPal.UseVisualStyleBackColor = true;
// //
// ButtonRemoveVob // ButtonRemoveVob
// //
this.ButtonRemoveVob.Location = new System.Drawing.Point(447, 104); this.ButtonRemoveVob.Location = new System.Drawing.Point(447, 104);
this.ButtonRemoveVob.Name = "ButtonRemoveVob"; this.ButtonRemoveVob.Name = "ButtonRemoveVob";
this.ButtonRemoveVob.Size = new System.Drawing.Size(74, 21); this.ButtonRemoveVob.Size = new System.Drawing.Size(74, 21);
@ -176,9 +176,9 @@
this.ButtonRemoveVob.Text = "Remove"; this.ButtonRemoveVob.Text = "Remove";
this.ButtonRemoveVob.UseVisualStyleBackColor = true; this.ButtonRemoveVob.UseVisualStyleBackColor = true;
this.ButtonRemoveVob.Click += new System.EventHandler(this.ButtonRemoveVob_Click); this.ButtonRemoveVob.Click += new System.EventHandler(this.ButtonRemoveVob_Click);
// //
// ButtonMoveVobDown // ButtonMoveVobDown
// //
this.ButtonMoveVobDown.Location = new System.Drawing.Point(446, 185); this.ButtonMoveVobDown.Location = new System.Drawing.Point(446, 185);
this.ButtonMoveVobDown.Name = "ButtonMoveVobDown"; this.ButtonMoveVobDown.Name = "ButtonMoveVobDown";
this.ButtonMoveVobDown.Size = new System.Drawing.Size(74, 21); this.ButtonMoveVobDown.Size = new System.Drawing.Size(74, 21);
@ -186,9 +186,9 @@
this.ButtonMoveVobDown.Text = "Move down"; this.ButtonMoveVobDown.Text = "Move down";
this.ButtonMoveVobDown.UseVisualStyleBackColor = true; this.ButtonMoveVobDown.UseVisualStyleBackColor = true;
this.ButtonMoveVobDown.Click += new System.EventHandler(this.ButtonMoveVobDown_Click); this.ButtonMoveVobDown.Click += new System.EventHandler(this.ButtonMoveVobDown_Click);
// //
// ButtonMoveVobUp // ButtonMoveVobUp
// //
this.ButtonMoveVobUp.Location = new System.Drawing.Point(447, 158); this.ButtonMoveVobUp.Location = new System.Drawing.Point(447, 158);
this.ButtonMoveVobUp.Name = "ButtonMoveVobUp"; this.ButtonMoveVobUp.Name = "ButtonMoveVobUp";
this.ButtonMoveVobUp.Size = new System.Drawing.Size(74, 21); this.ButtonMoveVobUp.Size = new System.Drawing.Size(74, 21);
@ -196,9 +196,9 @@
this.ButtonMoveVobUp.Text = "Move up"; this.ButtonMoveVobUp.Text = "Move up";
this.ButtonMoveVobUp.UseVisualStyleBackColor = true; this.ButtonMoveVobUp.UseVisualStyleBackColor = true;
this.ButtonMoveVobUp.Click += new System.EventHandler(this.ButtonMoveVobUp_Click); this.ButtonMoveVobUp.Click += new System.EventHandler(this.ButtonMoveVobUp_Click);
// //
// buttonAddVobFile // buttonAddVobFile
// //
this.buttonAddVobFile.Location = new System.Drawing.Point(447, 77); this.buttonAddVobFile.Location = new System.Drawing.Point(447, 77);
this.buttonAddVobFile.Name = "buttonAddVobFile"; this.buttonAddVobFile.Name = "buttonAddVobFile";
this.buttonAddVobFile.Size = new System.Drawing.Size(73, 21); this.buttonAddVobFile.Size = new System.Drawing.Size(73, 21);
@ -206,18 +206,18 @@
this.buttonAddVobFile.Text = "Add..."; this.buttonAddVobFile.Text = "Add...";
this.buttonAddVobFile.UseVisualStyleBackColor = true; this.buttonAddVobFile.UseVisualStyleBackColor = true;
this.buttonAddVobFile.Click += new System.EventHandler(this.ButtonAddVobFileClick); this.buttonAddVobFile.Click += new System.EventHandler(this.ButtonAddVobFileClick);
// //
// labelVobFiles // labelVobFiles
// //
this.labelVobFiles.AutoSize = true; this.labelVobFiles.AutoSize = true;
this.labelVobFiles.Location = new System.Drawing.Point(6, 60); this.labelVobFiles.Location = new System.Drawing.Point(6, 60);
this.labelVobFiles.Name = "labelVobFiles"; this.labelVobFiles.Name = "labelVobFiles";
this.labelVobFiles.Size = new System.Drawing.Size(59, 17); this.labelVobFiles.Size = new System.Drawing.Size(59, 17);
this.labelVobFiles.TabIndex = 4; this.labelVobFiles.TabIndex = 4;
this.labelVobFiles.Text = "VOB files"; this.labelVobFiles.Text = "VOB files";
// //
// listBoxVobFiles // listBoxVobFiles
// //
this.listBoxVobFiles.AllowDrop = true; this.listBoxVobFiles.AllowDrop = true;
this.listBoxVobFiles.FormattingEnabled = true; this.listBoxVobFiles.FormattingEnabled = true;
this.listBoxVobFiles.ItemHeight = 17; this.listBoxVobFiles.ItemHeight = 17;
@ -227,30 +227,30 @@
this.listBoxVobFiles.TabIndex = 3; this.listBoxVobFiles.TabIndex = 3;
this.listBoxVobFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.ListBoxVobFilesDragDrop); this.listBoxVobFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.ListBoxVobFilesDragDrop);
this.listBoxVobFiles.DragEnter += new System.Windows.Forms.DragEventHandler(this.ListBoxVobFilesDragEnter); this.listBoxVobFiles.DragEnter += new System.Windows.Forms.DragEventHandler(this.ListBoxVobFilesDragEnter);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// progressBarRip // progressBarRip
// //
this.progressBarRip.Location = new System.Drawing.Point(117, 290); this.progressBarRip.Location = new System.Drawing.Point(117, 290);
this.progressBarRip.Name = "progressBarRip"; this.progressBarRip.Name = "progressBarRip";
this.progressBarRip.Size = new System.Drawing.Size(414, 14); this.progressBarRip.Size = new System.Drawing.Size(414, 14);
this.progressBarRip.TabIndex = 4; this.progressBarRip.TabIndex = 4;
this.progressBarRip.Visible = false; this.progressBarRip.Visible = false;
// //
// labelStatus // labelStatus
// //
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(117, 273); this.labelStatus.Location = new System.Drawing.Point(117, 273);
this.labelStatus.Name = "labelStatus"; this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(47, 17); this.labelStatus.Size = new System.Drawing.Size(47, 17);
this.labelStatus.TabIndex = 5; this.labelStatus.TabIndex = 5;
this.labelStatus.Text = "Status"; this.labelStatus.Text = "Status";
// //
// buttonStartRipping // buttonStartRipping
// //
this.buttonStartRipping.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonStartRipping.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonStartRipping.Location = new System.Drawing.Point(4, 273); this.buttonStartRipping.Location = new System.Drawing.Point(4, 273);
this.buttonStartRipping.Name = "buttonStartRipping"; this.buttonStartRipping.Name = "buttonStartRipping";
@ -259,9 +259,9 @@
this.buttonStartRipping.Text = "Start ripping"; this.buttonStartRipping.Text = "Start ripping";
this.buttonStartRipping.UseVisualStyleBackColor = true; this.buttonStartRipping.UseVisualStyleBackColor = true;
this.buttonStartRipping.Click += new System.EventHandler(this.ButtonStartRippingClick); this.buttonStartRipping.Click += new System.EventHandler(this.ButtonStartRippingClick);
// //
// DvdSubRip // DvdSubRip
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(536, 310); this.ClientSize = new System.Drawing.Size(536, 310);

View File

@ -23,7 +23,7 @@ namespace Nikse.SubtitleEdit.Forms
public TimeSpan LastPresentationTimeStamp public TimeSpan LastPresentationTimeStamp
{ {
get get
{ {
if (radioButtonPal.Checked) if (radioButtonPal.Checked)
{ {
float ticksPerMillisecond = 90.000F; float ticksPerMillisecond = 90.000F;
@ -32,7 +32,7 @@ namespace Nikse.SubtitleEdit.Forms
else else
{ {
float ticksPerMillisecond = 90.090F; float ticksPerMillisecond = 90.090F;
return TimeSpan.FromMilliseconds(Convert.ToDouble(_lastPresentationTimeStamp / ticksPerMillisecond)); return TimeSpan.FromMilliseconds(Convert.ToDouble(_lastPresentationTimeStamp / ticksPerMillisecond));
} }
} }
} }
@ -40,17 +40,17 @@ namespace Nikse.SubtitleEdit.Forms
public double FrameRate public double FrameRate
{ {
get get
{ {
if (radioButtonPal.Checked) if (radioButtonPal.Checked)
return 25.0; return 25.0;
else else
return 30.0; return 30.0;
} }
} }
public string SelectedLanguage public string SelectedLanguage
{ {
get get
{ {
if (comboBoxLanguages.SelectedIndex >= 0) if (comboBoxLanguages.SelectedIndex >= 0)
return string.Format("{0} (0x{1:x})", comboBoxLanguages.Items[comboBoxLanguages.SelectedIndex], comboBoxLanguages.SelectedIndex + 32); return string.Format("{0} (0x{1:x})", comboBoxLanguages.Items[comboBoxLanguages.SelectedIndex], comboBoxLanguages.SelectedIndex + 32);
@ -182,7 +182,7 @@ namespace Nikse.SubtitleEdit.Forms
_lastPresentationTimeStamp = 0; _lastPresentationTimeStamp = 0;
_lastVobPresentationTimeStamp = 0; _lastVobPresentationTimeStamp = 0;
_lastNavEndPts = 0; _lastNavEndPts = 0;
_accumulatedPresentationTimeStamp = 0; _accumulatedPresentationTimeStamp = 0;
progressBarRip.Visible = true; progressBarRip.Visible = true;
var ms = new MemoryStream(); var ms = new MemoryStream();
@ -214,7 +214,7 @@ namespace Nikse.SubtitleEdit.Forms
vobSub.Open(ms); vobSub.Open(ms);
ms.Close(); ms.Close();
labelStatus.Text = string.Empty; labelStatus.Text = string.Empty;
MergedVobSubPacks = vobSub.MergeVobSubPacks(); // Merge splitted-packs to whole-packs MergedVobSubPacks = vobSub.MergeVobSubPacks(); // Merge splitted-packs to whole-packs
Languages = new List<string>(); Languages = new List<string>();
for (int k = 0; k < comboBoxLanguages.Items.Count; k++) for (int k = 0; k < comboBoxLanguages.Items.Count; k++)
@ -257,7 +257,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
int bytesRead = 0; int bytesRead = 0;
// Reading and test for IO errors... and allow abort/retry/ignore // Reading and test for IO errors... and allow abort/retry/ignore
tryAgain = true; tryAgain = true;
while (tryAgain && position < fs.Length) while (tryAgain && position < fs.Length)
{ {
@ -281,8 +281,8 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }
if (VobSubParser.IsMpeg2PackHeader(buffer)) if (VobSubParser.IsMpeg2PackHeader(buffer))
{ {
VobSubPack vsp = new VobSubPack(buffer, null); VobSubPack vsp = new VobSubPack(buffer, null);
if (IsSubtitlePack(buffer)) if (IsSubtitlePack(buffer))
@ -313,7 +313,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
_accumulatedPresentationTimeStamp += _lastNavEndPts - vobu_s_ptm; _accumulatedPresentationTimeStamp += _lastNavEndPts - vobu_s_ptm;
} }
else if (_lastNavEndPts > vobu_e_ptm) else if (_lastNavEndPts > vobu_e_ptm)
{ {
_accumulatedPresentationTimeStamp += _lastNavEndPts - vobu_s_ptm; _accumulatedPresentationTimeStamp += _lastNavEndPts - vobu_s_ptm;
} }
@ -395,7 +395,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
foreach (var fileName in openFileDialog1.FileNames) foreach (var fileName in openFileDialog1.FileNames)
{ {
listBoxVobFiles.Items.Add(fileName); listBoxVobFiles.Items.Add(fileName);
} }
} }
buttonStartRipping.Enabled = listBoxVobFiles.Items.Count > 0; buttonStartRipping.Enabled = listBoxVobFiles.Items.Count > 0;
@ -404,7 +404,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ButtonMoveVobUp_Click(object sender, EventArgs e) private void ButtonMoveVobUp_Click(object sender, EventArgs e)
{ {
if (listBoxVobFiles.SelectedIndex > -1 && listBoxVobFiles.SelectedIndex > 0) if (listBoxVobFiles.SelectedIndex > -1 && listBoxVobFiles.SelectedIndex > 0)
{ {
int index = listBoxVobFiles.SelectedIndex; int index = listBoxVobFiles.SelectedIndex;
string old = listBoxVobFiles.Items[index].ToString(); string old = listBoxVobFiles.Items[index].ToString();
listBoxVobFiles.Items.RemoveAt(index); listBoxVobFiles.Items.RemoveAt(index);
@ -516,6 +516,6 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }
} }
} }

View File

@ -38,9 +38,9 @@
((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).BeginInit();
this.groupBoxImage.SuspendLayout(); this.groupBoxImage.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// listBox1 // listBox1
// //
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listBox1.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)));
this.listBox1.FormattingEnabled = true; this.listBox1.FormattingEnabled = true;
@ -49,9 +49,9 @@
this.listBox1.Size = new System.Drawing.Size(298, 212); this.listBox1.Size = new System.Drawing.Size(298, 212);
this.listBox1.TabIndex = 2; this.listBox1.TabIndex = 2;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged); this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged);
// //
// pictureBoxImage // pictureBoxImage
// //
this.pictureBoxImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.pictureBoxImage.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)));
@ -60,27 +60,27 @@
this.pictureBoxImage.Size = new System.Drawing.Size(452, 214); this.pictureBoxImage.Size = new System.Drawing.Size(452, 214);
this.pictureBoxImage.TabIndex = 1; this.pictureBoxImage.TabIndex = 1;
this.pictureBoxImage.TabStop = false; this.pictureBoxImage.TabStop = false;
// //
// comboBoxLanguages // comboBoxLanguages
// //
this.comboBoxLanguages.FormattingEnabled = true; this.comboBoxLanguages.FormattingEnabled = true;
this.comboBoxLanguages.Location = new System.Drawing.Point(6, 30); this.comboBoxLanguages.Location = new System.Drawing.Point(6, 30);
this.comboBoxLanguages.Name = "comboBoxLanguages"; this.comboBoxLanguages.Name = "comboBoxLanguages";
this.comboBoxLanguages.Size = new System.Drawing.Size(297, 21); this.comboBoxLanguages.Size = new System.Drawing.Size(297, 21);
this.comboBoxLanguages.TabIndex = 1; this.comboBoxLanguages.TabIndex = 1;
this.comboBoxLanguages.SelectedIndexChanged += new System.EventHandler(this.ComboBoxLanguagesSelectedIndexChanged); this.comboBoxLanguages.SelectedIndexChanged += new System.EventHandler(this.ComboBoxLanguagesSelectedIndexChanged);
// //
// labelChooseLanguage // labelChooseLanguage
// //
this.labelChooseLanguage.AutoSize = true; this.labelChooseLanguage.AutoSize = true;
this.labelChooseLanguage.Location = new System.Drawing.Point(6, 11); this.labelChooseLanguage.Location = new System.Drawing.Point(6, 11);
this.labelChooseLanguage.Name = "labelChooseLanguage"; this.labelChooseLanguage.Name = "labelChooseLanguage";
this.labelChooseLanguage.Size = new System.Drawing.Size(146, 13); this.labelChooseLanguage.Size = new System.Drawing.Size(146, 13);
this.labelChooseLanguage.TabIndex = 3; this.labelChooseLanguage.TabIndex = 3;
this.labelChooseLanguage.Text = "Choose language (stream-id)"; this.labelChooseLanguage.Text = "Choose language (stream-id)";
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -91,9 +91,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick); this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -104,9 +104,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// groupBoxImage // groupBoxImage
// //
this.groupBoxImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxImage.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)));
@ -117,9 +117,9 @@
this.groupBoxImage.TabIndex = 14; this.groupBoxImage.TabIndex = 14;
this.groupBoxImage.TabStop = false; this.groupBoxImage.TabStop = false;
this.groupBoxImage.Text = "Subtitle image"; this.groupBoxImage.Text = "Subtitle image";
// //
// DvdSubRipChooseLanguage // DvdSubRipChooseLanguage
// //
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(779, 314); this.ClientSize = new System.Drawing.Size(779, 314);

View File

@ -31,7 +31,7 @@ namespace Nikse.SubtitleEdit.Forms
public List<VobSubMergedPack> SelectedVobSubMergedPacks { get; private set; } public List<VobSubMergedPack> SelectedVobSubMergedPacks { get; private set; }
public string SelectedLanguageString { get; private set; } public string SelectedLanguageString { get; private set; }
public DvdSubRipChooseLanguage() public DvdSubRipChooseLanguage()
{ {
InitializeComponent(); InitializeComponent();

View File

@ -90,9 +90,9 @@
this.tabPageTextAndTiming.SuspendLayout(); this.tabPageTextAndTiming.SuspendLayout();
this.tabPageErrors.SuspendLayout(); this.tabPageErrors.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(607, 445); this.buttonOK.Location = new System.Drawing.Point(607, 445);
@ -102,9 +102,9 @@
this.buttonOK.Text = "Save"; this.buttonOK.Text = "Save";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -115,15 +115,15 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// tabControl1 // tabControl1
// //
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.tabControl1.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.tabControl1.Controls.Add(this.tabPageHeader); this.tabControl1.Controls.Add(this.tabPageHeader);
this.tabControl1.Controls.Add(this.tabPageTextAndTiming); this.tabControl1.Controls.Add(this.tabPageTextAndTiming);
@ -133,9 +133,9 @@
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(758, 422); this.tabControl1.Size = new System.Drawing.Size(758, 422);
this.tabControl1.TabIndex = 32; this.tabControl1.TabIndex = 32;
// //
// tabPageHeader // tabPageHeader
// //
this.tabPageHeader.Controls.Add(this.textBoxCountryOfOrigin); this.tabPageHeader.Controls.Add(this.textBoxCountryOfOrigin);
this.tabPageHeader.Controls.Add(this.labelCountryOfOrigin); this.tabPageHeader.Controls.Add(this.labelCountryOfOrigin);
this.tabPageHeader.Controls.Add(this.textBoxCodePageNumber); this.tabPageHeader.Controls.Add(this.textBoxCodePageNumber);
@ -176,35 +176,35 @@
this.tabPageHeader.TabIndex = 0; this.tabPageHeader.TabIndex = 0;
this.tabPageHeader.Text = "General subtitle information"; this.tabPageHeader.Text = "General subtitle information";
this.tabPageHeader.UseVisualStyleBackColor = true; this.tabPageHeader.UseVisualStyleBackColor = true;
// //
// textBoxCountryOfOrigin // textBoxCountryOfOrigin
// //
this.textBoxCountryOfOrigin.Location = new System.Drawing.Point(147, 280); this.textBoxCountryOfOrigin.Location = new System.Drawing.Point(147, 280);
this.textBoxCountryOfOrigin.MaxLength = 3; this.textBoxCountryOfOrigin.MaxLength = 3;
this.textBoxCountryOfOrigin.Name = "textBoxCountryOfOrigin"; this.textBoxCountryOfOrigin.Name = "textBoxCountryOfOrigin";
this.textBoxCountryOfOrigin.Size = new System.Drawing.Size(219, 20); this.textBoxCountryOfOrigin.Size = new System.Drawing.Size(219, 20);
this.textBoxCountryOfOrigin.TabIndex = 62; this.textBoxCountryOfOrigin.TabIndex = 62;
// //
// labelCountryOfOrigin // labelCountryOfOrigin
// //
this.labelCountryOfOrigin.AutoSize = true; this.labelCountryOfOrigin.AutoSize = true;
this.labelCountryOfOrigin.Location = new System.Drawing.Point(6, 283); this.labelCountryOfOrigin.Location = new System.Drawing.Point(6, 283);
this.labelCountryOfOrigin.Name = "labelCountryOfOrigin"; this.labelCountryOfOrigin.Name = "labelCountryOfOrigin";
this.labelCountryOfOrigin.Size = new System.Drawing.Size(83, 13); this.labelCountryOfOrigin.Size = new System.Drawing.Size(83, 13);
this.labelCountryOfOrigin.TabIndex = 63; this.labelCountryOfOrigin.TabIndex = 63;
this.labelCountryOfOrigin.Text = "Country of origin"; this.labelCountryOfOrigin.Text = "Country of origin";
// //
// textBoxCodePageNumber // textBoxCodePageNumber
// //
this.textBoxCodePageNumber.ContextMenuStrip = this.contextMenuStripCodeTable; this.textBoxCodePageNumber.ContextMenuStrip = this.contextMenuStripCodeTable;
this.textBoxCodePageNumber.Location = new System.Drawing.Point(147, 12); this.textBoxCodePageNumber.Location = new System.Drawing.Point(147, 12);
this.textBoxCodePageNumber.MaxLength = 3; this.textBoxCodePageNumber.MaxLength = 3;
this.textBoxCodePageNumber.Name = "textBoxCodePageNumber"; this.textBoxCodePageNumber.Name = "textBoxCodePageNumber";
this.textBoxCodePageNumber.Size = new System.Drawing.Size(219, 20); this.textBoxCodePageNumber.Size = new System.Drawing.Size(219, 20);
this.textBoxCodePageNumber.TabIndex = 61; this.textBoxCodePageNumber.TabIndex = 61;
// //
// contextMenuStripCodeTable // contextMenuStripCodeTable
// //
this.contextMenuStripCodeTable.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStripCodeTable.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.unitedStatesToolStripMenuItem, this.unitedStatesToolStripMenuItem,
this.multilingualToolStripMenuItem, this.multilingualToolStripMenuItem,
@ -213,44 +213,44 @@
this.nordicToolStripMenuItem}); this.nordicToolStripMenuItem});
this.contextMenuStripCodeTable.Name = "contextMenuStripCodeTable"; this.contextMenuStripCodeTable.Name = "contextMenuStripCodeTable";
this.contextMenuStripCodeTable.Size = new System.Drawing.Size(185, 114); this.contextMenuStripCodeTable.Size = new System.Drawing.Size(185, 114);
// //
// unitedStatesToolStripMenuItem // unitedStatesToolStripMenuItem
// //
this.unitedStatesToolStripMenuItem.Name = "unitedStatesToolStripMenuItem"; this.unitedStatesToolStripMenuItem.Name = "unitedStatesToolStripMenuItem";
this.unitedStatesToolStripMenuItem.Size = new System.Drawing.Size(184, 22); this.unitedStatesToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.unitedStatesToolStripMenuItem.Text = "United States (437)"; this.unitedStatesToolStripMenuItem.Text = "United States (437)";
this.unitedStatesToolStripMenuItem.Click += new System.EventHandler(this.unitedStatesToolStripMenuItem_Click); this.unitedStatesToolStripMenuItem.Click += new System.EventHandler(this.unitedStatesToolStripMenuItem_Click);
// //
// multilingualToolStripMenuItem // multilingualToolStripMenuItem
// //
this.multilingualToolStripMenuItem.Name = "multilingualToolStripMenuItem"; this.multilingualToolStripMenuItem.Name = "multilingualToolStripMenuItem";
this.multilingualToolStripMenuItem.Size = new System.Drawing.Size(184, 22); this.multilingualToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.multilingualToolStripMenuItem.Text = "Multilingual (850)"; this.multilingualToolStripMenuItem.Text = "Multilingual (850)";
this.multilingualToolStripMenuItem.Click += new System.EventHandler(this.multilingualToolStripMenuItem_Click); this.multilingualToolStripMenuItem.Click += new System.EventHandler(this.multilingualToolStripMenuItem_Click);
// //
// portugalToolStripMenuItem // portugalToolStripMenuItem
// //
this.portugalToolStripMenuItem.Name = "portugalToolStripMenuItem"; this.portugalToolStripMenuItem.Name = "portugalToolStripMenuItem";
this.portugalToolStripMenuItem.Size = new System.Drawing.Size(184, 22); this.portugalToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.portugalToolStripMenuItem.Text = "Portugal (860)"; this.portugalToolStripMenuItem.Text = "Portugal (860)";
this.portugalToolStripMenuItem.Click += new System.EventHandler(this.portugalToolStripMenuItem_Click); this.portugalToolStripMenuItem.Click += new System.EventHandler(this.portugalToolStripMenuItem_Click);
// //
// canadaFrenchToolStripMenuItem // canadaFrenchToolStripMenuItem
// //
this.canadaFrenchToolStripMenuItem.Name = "canadaFrenchToolStripMenuItem"; this.canadaFrenchToolStripMenuItem.Name = "canadaFrenchToolStripMenuItem";
this.canadaFrenchToolStripMenuItem.Size = new System.Drawing.Size(184, 22); this.canadaFrenchToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.canadaFrenchToolStripMenuItem.Text = "Canada-French (863)"; this.canadaFrenchToolStripMenuItem.Text = "Canada-French (863)";
this.canadaFrenchToolStripMenuItem.Click += new System.EventHandler(this.canadaFrenchToolStripMenuItem_Click); this.canadaFrenchToolStripMenuItem.Click += new System.EventHandler(this.canadaFrenchToolStripMenuItem_Click);
// //
// nordicToolStripMenuItem // nordicToolStripMenuItem
// //
this.nordicToolStripMenuItem.Name = "nordicToolStripMenuItem"; this.nordicToolStripMenuItem.Name = "nordicToolStripMenuItem";
this.nordicToolStripMenuItem.Size = new System.Drawing.Size(184, 22); this.nordicToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
this.nordicToolStripMenuItem.Text = "Nordic (865)"; this.nordicToolStripMenuItem.Text = "Nordic (865)";
this.nordicToolStripMenuItem.Click += new System.EventHandler(this.nordicToolStripMenuItem_Click); this.nordicToolStripMenuItem.Click += new System.EventHandler(this.nordicToolStripMenuItem_Click);
// //
// numericUpDownMaxRows // numericUpDownMaxRows
// //
this.numericUpDownMaxRows.Location = new System.Drawing.Point(613, 224); this.numericUpDownMaxRows.Location = new System.Drawing.Point(613, 224);
this.numericUpDownMaxRows.Maximum = new decimal(new int[] { this.numericUpDownMaxRows.Maximum = new decimal(new int[] {
99, 99,
@ -260,18 +260,18 @@
this.numericUpDownMaxRows.Name = "numericUpDownMaxRows"; this.numericUpDownMaxRows.Name = "numericUpDownMaxRows";
this.numericUpDownMaxRows.Size = new System.Drawing.Size(120, 20); this.numericUpDownMaxRows.Size = new System.Drawing.Size(120, 20);
this.numericUpDownMaxRows.TabIndex = 12; this.numericUpDownMaxRows.TabIndex = 12;
// //
// labelMaxNumberOfDisplayableRows // labelMaxNumberOfDisplayableRows
// //
this.labelMaxNumberOfDisplayableRows.AutoSize = true; this.labelMaxNumberOfDisplayableRows.AutoSize = true;
this.labelMaxNumberOfDisplayableRows.Location = new System.Drawing.Point(473, 226); this.labelMaxNumberOfDisplayableRows.Location = new System.Drawing.Point(473, 226);
this.labelMaxNumberOfDisplayableRows.Name = "labelMaxNumberOfDisplayableRows"; this.labelMaxNumberOfDisplayableRows.Name = "labelMaxNumberOfDisplayableRows";
this.labelMaxNumberOfDisplayableRows.Size = new System.Drawing.Size(126, 13); this.labelMaxNumberOfDisplayableRows.Size = new System.Drawing.Size(126, 13);
this.labelMaxNumberOfDisplayableRows.TabIndex = 60; this.labelMaxNumberOfDisplayableRows.TabIndex = 60;
this.labelMaxNumberOfDisplayableRows.Text = "Max# of displayable rows"; this.labelMaxNumberOfDisplayableRows.Text = "Max# of displayable rows";
// //
// comboBoxDiscFormatCode // comboBoxDiscFormatCode
// //
this.comboBoxDiscFormatCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxDiscFormatCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxDiscFormatCode.FormattingEnabled = true; this.comboBoxDiscFormatCode.FormattingEnabled = true;
this.comboBoxDiscFormatCode.Items.AddRange(new object[] { this.comboBoxDiscFormatCode.Items.AddRange(new object[] {
@ -281,44 +281,44 @@
this.comboBoxDiscFormatCode.Name = "comboBoxDiscFormatCode"; this.comboBoxDiscFormatCode.Name = "comboBoxDiscFormatCode";
this.comboBoxDiscFormatCode.Size = new System.Drawing.Size(219, 21); this.comboBoxDiscFormatCode.Size = new System.Drawing.Size(219, 21);
this.comboBoxDiscFormatCode.TabIndex = 1; this.comboBoxDiscFormatCode.TabIndex = 1;
// //
// labelDiskFormatCode // labelDiskFormatCode
// //
this.labelDiskFormatCode.AutoSize = true; this.labelDiskFormatCode.AutoSize = true;
this.labelDiskFormatCode.Location = new System.Drawing.Point(6, 42); this.labelDiskFormatCode.Location = new System.Drawing.Point(6, 42);
this.labelDiskFormatCode.Name = "labelDiskFormatCode"; this.labelDiskFormatCode.Name = "labelDiskFormatCode";
this.labelDiskFormatCode.Size = new System.Drawing.Size(87, 13); this.labelDiskFormatCode.Size = new System.Drawing.Size(87, 13);
this.labelDiskFormatCode.TabIndex = 58; this.labelDiskFormatCode.TabIndex = 58;
this.labelDiskFormatCode.Text = "Disk format code"; this.labelDiskFormatCode.Text = "Disk format code";
// //
// labelCodePageNumber // labelCodePageNumber
// //
this.labelCodePageNumber.AutoSize = true; this.labelCodePageNumber.AutoSize = true;
this.labelCodePageNumber.Location = new System.Drawing.Point(6, 15); this.labelCodePageNumber.Location = new System.Drawing.Point(6, 15);
this.labelCodePageNumber.Name = "labelCodePageNumber"; this.labelCodePageNumber.Name = "labelCodePageNumber";
this.labelCodePageNumber.Size = new System.Drawing.Size(97, 13); this.labelCodePageNumber.Size = new System.Drawing.Size(97, 13);
this.labelCodePageNumber.TabIndex = 56; this.labelCodePageNumber.TabIndex = 56;
this.labelCodePageNumber.Text = "Code page number"; this.labelCodePageNumber.Text = "Code page number";
// //
// textBoxLanguageCode // textBoxLanguageCode
// //
this.textBoxLanguageCode.Location = new System.Drawing.Point(147, 94); this.textBoxLanguageCode.Location = new System.Drawing.Point(147, 94);
this.textBoxLanguageCode.MaxLength = 32; this.textBoxLanguageCode.MaxLength = 32;
this.textBoxLanguageCode.Name = "textBoxLanguageCode"; this.textBoxLanguageCode.Name = "textBoxLanguageCode";
this.textBoxLanguageCode.Size = new System.Drawing.Size(219, 20); this.textBoxLanguageCode.Size = new System.Drawing.Size(219, 20);
this.textBoxLanguageCode.TabIndex = 3; this.textBoxLanguageCode.TabIndex = 3;
// //
// labelLanguageCode // labelLanguageCode
// //
this.labelLanguageCode.AutoSize = true; this.labelLanguageCode.AutoSize = true;
this.labelLanguageCode.Location = new System.Drawing.Point(6, 97); this.labelLanguageCode.Location = new System.Drawing.Point(6, 97);
this.labelLanguageCode.Name = "labelLanguageCode"; this.labelLanguageCode.Name = "labelLanguageCode";
this.labelLanguageCode.Size = new System.Drawing.Size(82, 13); this.labelLanguageCode.Size = new System.Drawing.Size(82, 13);
this.labelLanguageCode.TabIndex = 54; this.labelLanguageCode.TabIndex = 54;
this.labelLanguageCode.Text = "Language code"; this.labelLanguageCode.Text = "Language code";
// //
// numericUpDownMaxCharacters // numericUpDownMaxCharacters
// //
this.numericUpDownMaxCharacters.Location = new System.Drawing.Point(613, 198); this.numericUpDownMaxCharacters.Location = new System.Drawing.Point(613, 198);
this.numericUpDownMaxCharacters.Maximum = new decimal(new int[] { this.numericUpDownMaxCharacters.Maximum = new decimal(new int[] {
99, 99,
@ -329,18 +329,18 @@
this.numericUpDownMaxCharacters.Size = new System.Drawing.Size(120, 20); this.numericUpDownMaxCharacters.Size = new System.Drawing.Size(120, 20);
this.numericUpDownMaxCharacters.TabIndex = 11; this.numericUpDownMaxCharacters.TabIndex = 11;
this.numericUpDownMaxCharacters.ValueChanged += new System.EventHandler(this.numericUpDownMaxCharacters_ValueChanged); this.numericUpDownMaxCharacters.ValueChanged += new System.EventHandler(this.numericUpDownMaxCharacters_ValueChanged);
// //
// labelMaxNoOfDisplayableChars // labelMaxNoOfDisplayableChars
// //
this.labelMaxNoOfDisplayableChars.AutoSize = true; this.labelMaxNoOfDisplayableChars.AutoSize = true;
this.labelMaxNoOfDisplayableChars.Location = new System.Drawing.Point(473, 200); this.labelMaxNoOfDisplayableChars.Location = new System.Drawing.Point(473, 200);
this.labelMaxNoOfDisplayableChars.Name = "labelMaxNoOfDisplayableChars"; this.labelMaxNoOfDisplayableChars.Name = "labelMaxNoOfDisplayableChars";
this.labelMaxNoOfDisplayableChars.Size = new System.Drawing.Size(133, 13); this.labelMaxNoOfDisplayableChars.Size = new System.Drawing.Size(133, 13);
this.labelMaxNoOfDisplayableChars.TabIndex = 51; this.labelMaxNoOfDisplayableChars.TabIndex = 51;
this.labelMaxNoOfDisplayableChars.Text = "Max# of displayable chars "; this.labelMaxNoOfDisplayableChars.Text = "Max# of displayable chars ";
// //
// numericUpDownDiskSequenceNumber // numericUpDownDiskSequenceNumber
// //
this.numericUpDownDiskSequenceNumber.Location = new System.Drawing.Point(613, 250); this.numericUpDownDiskSequenceNumber.Location = new System.Drawing.Point(613, 250);
this.numericUpDownDiskSequenceNumber.Maximum = new decimal(new int[] { this.numericUpDownDiskSequenceNumber.Maximum = new decimal(new int[] {
9, 9,
@ -350,9 +350,9 @@
this.numericUpDownDiskSequenceNumber.Name = "numericUpDownDiskSequenceNumber"; this.numericUpDownDiskSequenceNumber.Name = "numericUpDownDiskSequenceNumber";
this.numericUpDownDiskSequenceNumber.Size = new System.Drawing.Size(120, 20); this.numericUpDownDiskSequenceNumber.Size = new System.Drawing.Size(120, 20);
this.numericUpDownDiskSequenceNumber.TabIndex = 13; this.numericUpDownDiskSequenceNumber.TabIndex = 13;
// //
// numericUpDownTotalNumberOfDiscs // numericUpDownTotalNumberOfDiscs
// //
this.numericUpDownTotalNumberOfDiscs.Location = new System.Drawing.Point(613, 276); this.numericUpDownTotalNumberOfDiscs.Location = new System.Drawing.Point(613, 276);
this.numericUpDownTotalNumberOfDiscs.Maximum = new decimal(new int[] { this.numericUpDownTotalNumberOfDiscs.Maximum = new decimal(new int[] {
9, 9,
@ -362,9 +362,9 @@
this.numericUpDownTotalNumberOfDiscs.Name = "numericUpDownTotalNumberOfDiscs"; this.numericUpDownTotalNumberOfDiscs.Name = "numericUpDownTotalNumberOfDiscs";
this.numericUpDownTotalNumberOfDiscs.Size = new System.Drawing.Size(120, 20); this.numericUpDownTotalNumberOfDiscs.Size = new System.Drawing.Size(120, 20);
this.numericUpDownTotalNumberOfDiscs.TabIndex = 14; this.numericUpDownTotalNumberOfDiscs.TabIndex = 14;
// //
// numericUpDownRevisionNumber // numericUpDownRevisionNumber
// //
this.numericUpDownRevisionNumber.Location = new System.Drawing.Point(613, 172); this.numericUpDownRevisionNumber.Location = new System.Drawing.Point(613, 172);
this.numericUpDownRevisionNumber.Maximum = new decimal(new int[] { this.numericUpDownRevisionNumber.Maximum = new decimal(new int[] {
99, 99,
@ -374,70 +374,70 @@
this.numericUpDownRevisionNumber.Name = "numericUpDownRevisionNumber"; this.numericUpDownRevisionNumber.Name = "numericUpDownRevisionNumber";
this.numericUpDownRevisionNumber.Size = new System.Drawing.Size(120, 20); this.numericUpDownRevisionNumber.Size = new System.Drawing.Size(120, 20);
this.numericUpDownRevisionNumber.TabIndex = 10; this.numericUpDownRevisionNumber.TabIndex = 10;
// //
// labelDiskSequenceNumber // labelDiskSequenceNumber
// //
this.labelDiskSequenceNumber.AutoSize = true; this.labelDiskSequenceNumber.AutoSize = true;
this.labelDiskSequenceNumber.Location = new System.Drawing.Point(473, 252); this.labelDiskSequenceNumber.Location = new System.Drawing.Point(473, 252);
this.labelDiskSequenceNumber.Name = "labelDiskSequenceNumber"; this.labelDiskSequenceNumber.Name = "labelDiskSequenceNumber";
this.labelDiskSequenceNumber.Size = new System.Drawing.Size(116, 13); this.labelDiskSequenceNumber.Size = new System.Drawing.Size(116, 13);
this.labelDiskSequenceNumber.TabIndex = 49; this.labelDiskSequenceNumber.TabIndex = 49;
this.labelDiskSequenceNumber.Text = "Disk sequence number"; this.labelDiskSequenceNumber.Text = "Disk sequence number";
// //
// labelTotalNumberOfDisks // labelTotalNumberOfDisks
// //
this.labelTotalNumberOfDisks.AutoSize = true; this.labelTotalNumberOfDisks.AutoSize = true;
this.labelTotalNumberOfDisks.Location = new System.Drawing.Point(473, 278); this.labelTotalNumberOfDisks.Location = new System.Drawing.Point(473, 278);
this.labelTotalNumberOfDisks.Name = "labelTotalNumberOfDisks"; this.labelTotalNumberOfDisks.Name = "labelTotalNumberOfDisks";
this.labelTotalNumberOfDisks.Size = new System.Drawing.Size(108, 13); this.labelTotalNumberOfDisks.Size = new System.Drawing.Size(108, 13);
this.labelTotalNumberOfDisks.TabIndex = 48; this.labelTotalNumberOfDisks.TabIndex = 48;
this.labelTotalNumberOfDisks.Text = "Total number of disks"; this.labelTotalNumberOfDisks.Text = "Total number of disks";
// //
// labelRevisionNumber // labelRevisionNumber
// //
this.labelRevisionNumber.AutoSize = true; this.labelRevisionNumber.AutoSize = true;
this.labelRevisionNumber.Location = new System.Drawing.Point(473, 174); this.labelRevisionNumber.Location = new System.Drawing.Point(473, 174);
this.labelRevisionNumber.Name = "labelRevisionNumber"; this.labelRevisionNumber.Name = "labelRevisionNumber";
this.labelRevisionNumber.Size = new System.Drawing.Size(86, 13); this.labelRevisionNumber.Size = new System.Drawing.Size(86, 13);
this.labelRevisionNumber.TabIndex = 47; this.labelRevisionNumber.TabIndex = 47;
this.labelRevisionNumber.Text = "Revision number"; this.labelRevisionNumber.Text = "Revision number";
// //
// textBoxTranslatorsName // textBoxTranslatorsName
// //
this.textBoxTranslatorsName.Location = new System.Drawing.Point(147, 224); this.textBoxTranslatorsName.Location = new System.Drawing.Point(147, 224);
this.textBoxTranslatorsName.MaxLength = 32; this.textBoxTranslatorsName.MaxLength = 32;
this.textBoxTranslatorsName.Name = "textBoxTranslatorsName"; this.textBoxTranslatorsName.Name = "textBoxTranslatorsName";
this.textBoxTranslatorsName.Size = new System.Drawing.Size(219, 20); this.textBoxTranslatorsName.Size = new System.Drawing.Size(219, 20);
this.textBoxTranslatorsName.TabIndex = 8; this.textBoxTranslatorsName.TabIndex = 8;
// //
// labelTranslatorsName // labelTranslatorsName
// //
this.labelTranslatorsName.AutoSize = true; this.labelTranslatorsName.AutoSize = true;
this.labelTranslatorsName.Location = new System.Drawing.Point(6, 227); this.labelTranslatorsName.Location = new System.Drawing.Point(6, 227);
this.labelTranslatorsName.Name = "labelTranslatorsName"; this.labelTranslatorsName.Name = "labelTranslatorsName";
this.labelTranslatorsName.Size = new System.Drawing.Size(90, 13); this.labelTranslatorsName.Size = new System.Drawing.Size(90, 13);
this.labelTranslatorsName.TabIndex = 45; this.labelTranslatorsName.TabIndex = 45;
this.labelTranslatorsName.Text = "Translator\'s name"; this.labelTranslatorsName.Text = "Translator\'s name";
// //
// textBoxSubtitleListReferenceCode // textBoxSubtitleListReferenceCode
// //
this.textBoxSubtitleListReferenceCode.Location = new System.Drawing.Point(147, 254); this.textBoxSubtitleListReferenceCode.Location = new System.Drawing.Point(147, 254);
this.textBoxSubtitleListReferenceCode.MaxLength = 16; this.textBoxSubtitleListReferenceCode.MaxLength = 16;
this.textBoxSubtitleListReferenceCode.Name = "textBoxSubtitleListReferenceCode"; this.textBoxSubtitleListReferenceCode.Name = "textBoxSubtitleListReferenceCode";
this.textBoxSubtitleListReferenceCode.Size = new System.Drawing.Size(219, 20); this.textBoxSubtitleListReferenceCode.Size = new System.Drawing.Size(219, 20);
this.textBoxSubtitleListReferenceCode.TabIndex = 9; this.textBoxSubtitleListReferenceCode.TabIndex = 9;
// //
// labelSubtitleListReferenceCode // labelSubtitleListReferenceCode
// //
this.labelSubtitleListReferenceCode.AutoSize = true; this.labelSubtitleListReferenceCode.AutoSize = true;
this.labelSubtitleListReferenceCode.Location = new System.Drawing.Point(6, 257); this.labelSubtitleListReferenceCode.Location = new System.Drawing.Point(6, 257);
this.labelSubtitleListReferenceCode.Name = "labelSubtitleListReferenceCode"; this.labelSubtitleListReferenceCode.Name = "labelSubtitleListReferenceCode";
this.labelSubtitleListReferenceCode.Size = new System.Drawing.Size(132, 13); this.labelSubtitleListReferenceCode.Size = new System.Drawing.Size(132, 13);
this.labelSubtitleListReferenceCode.TabIndex = 43; this.labelSubtitleListReferenceCode.TabIndex = 43;
this.labelSubtitleListReferenceCode.Text = "Subtitle list reference code"; this.labelSubtitleListReferenceCode.Text = "Subtitle list reference code";
// //
// comboBoxCharacterCodeTable // comboBoxCharacterCodeTable
// //
this.comboBoxCharacterCodeTable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCharacterCodeTable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxCharacterCodeTable.FormattingEnabled = true; this.comboBoxCharacterCodeTable.FormattingEnabled = true;
this.comboBoxCharacterCodeTable.Items.AddRange(new object[] { this.comboBoxCharacterCodeTable.Items.AddRange(new object[] {
@ -450,9 +450,9 @@
this.comboBoxCharacterCodeTable.Name = "comboBoxCharacterCodeTable"; this.comboBoxCharacterCodeTable.Name = "comboBoxCharacterCodeTable";
this.comboBoxCharacterCodeTable.Size = new System.Drawing.Size(219, 21); this.comboBoxCharacterCodeTable.Size = new System.Drawing.Size(219, 21);
this.comboBoxCharacterCodeTable.TabIndex = 2; this.comboBoxCharacterCodeTable.TabIndex = 2;
// //
// buttonImport // buttonImport
// //
this.buttonImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonImport.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonImport.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonImport.Location = new System.Drawing.Point(613, 6); this.buttonImport.Location = new System.Drawing.Point(613, 6);
@ -462,86 +462,86 @@
this.buttonImport.Text = "Import..."; this.buttonImport.Text = "Import...";
this.buttonImport.UseVisualStyleBackColor = true; this.buttonImport.UseVisualStyleBackColor = true;
this.buttonImport.Click += new System.EventHandler(this.buttonImport_Click); this.buttonImport.Click += new System.EventHandler(this.buttonImport_Click);
// //
// labelCharacterCodeTable // labelCharacterCodeTable
// //
this.labelCharacterCodeTable.AutoSize = true; this.labelCharacterCodeTable.AutoSize = true;
this.labelCharacterCodeTable.Location = new System.Drawing.Point(6, 69); this.labelCharacterCodeTable.Location = new System.Drawing.Point(6, 69);
this.labelCharacterCodeTable.Name = "labelCharacterCodeTable"; this.labelCharacterCodeTable.Name = "labelCharacterCodeTable";
this.labelCharacterCodeTable.Size = new System.Drawing.Size(106, 13); this.labelCharacterCodeTable.Size = new System.Drawing.Size(106, 13);
this.labelCharacterCodeTable.TabIndex = 40; this.labelCharacterCodeTable.TabIndex = 40;
this.labelCharacterCodeTable.Text = "Character code table"; this.labelCharacterCodeTable.Text = "Character code table";
// //
// textBoxTranslatedProgramTitle // textBoxTranslatedProgramTitle
// //
this.textBoxTranslatedProgramTitle.Location = new System.Drawing.Point(147, 172); this.textBoxTranslatedProgramTitle.Location = new System.Drawing.Point(147, 172);
this.textBoxTranslatedProgramTitle.MaxLength = 32; this.textBoxTranslatedProgramTitle.MaxLength = 32;
this.textBoxTranslatedProgramTitle.Name = "textBoxTranslatedProgramTitle"; this.textBoxTranslatedProgramTitle.Name = "textBoxTranslatedProgramTitle";
this.textBoxTranslatedProgramTitle.Size = new System.Drawing.Size(219, 20); this.textBoxTranslatedProgramTitle.Size = new System.Drawing.Size(219, 20);
this.textBoxTranslatedProgramTitle.TabIndex = 6; this.textBoxTranslatedProgramTitle.TabIndex = 6;
// //
// textBoxTranslatedEpisodeTitle // textBoxTranslatedEpisodeTitle
// //
this.textBoxTranslatedEpisodeTitle.Location = new System.Drawing.Point(147, 198); this.textBoxTranslatedEpisodeTitle.Location = new System.Drawing.Point(147, 198);
this.textBoxTranslatedEpisodeTitle.MaxLength = 32; this.textBoxTranslatedEpisodeTitle.MaxLength = 32;
this.textBoxTranslatedEpisodeTitle.Name = "textBoxTranslatedEpisodeTitle"; this.textBoxTranslatedEpisodeTitle.Name = "textBoxTranslatedEpisodeTitle";
this.textBoxTranslatedEpisodeTitle.Size = new System.Drawing.Size(219, 20); this.textBoxTranslatedEpisodeTitle.Size = new System.Drawing.Size(219, 20);
this.textBoxTranslatedEpisodeTitle.TabIndex = 7; this.textBoxTranslatedEpisodeTitle.TabIndex = 7;
// //
// textBoxOriginalEpisodeTitle // textBoxOriginalEpisodeTitle
// //
this.textBoxOriginalEpisodeTitle.Location = new System.Drawing.Point(147, 146); this.textBoxOriginalEpisodeTitle.Location = new System.Drawing.Point(147, 146);
this.textBoxOriginalEpisodeTitle.MaxLength = 32; this.textBoxOriginalEpisodeTitle.MaxLength = 32;
this.textBoxOriginalEpisodeTitle.Name = "textBoxOriginalEpisodeTitle"; this.textBoxOriginalEpisodeTitle.Name = "textBoxOriginalEpisodeTitle";
this.textBoxOriginalEpisodeTitle.Size = new System.Drawing.Size(219, 20); this.textBoxOriginalEpisodeTitle.Size = new System.Drawing.Size(219, 20);
this.textBoxOriginalEpisodeTitle.TabIndex = 5; this.textBoxOriginalEpisodeTitle.TabIndex = 5;
// //
// labelTranslatedEpisodeTitle // labelTranslatedEpisodeTitle
// //
this.labelTranslatedEpisodeTitle.AutoSize = true; this.labelTranslatedEpisodeTitle.AutoSize = true;
this.labelTranslatedEpisodeTitle.Location = new System.Drawing.Point(6, 201); this.labelTranslatedEpisodeTitle.Location = new System.Drawing.Point(6, 201);
this.labelTranslatedEpisodeTitle.Name = "labelTranslatedEpisodeTitle"; this.labelTranslatedEpisodeTitle.Name = "labelTranslatedEpisodeTitle";
this.labelTranslatedEpisodeTitle.Size = new System.Drawing.Size(116, 13); this.labelTranslatedEpisodeTitle.Size = new System.Drawing.Size(116, 13);
this.labelTranslatedEpisodeTitle.TabIndex = 36; this.labelTranslatedEpisodeTitle.TabIndex = 36;
this.labelTranslatedEpisodeTitle.Text = "Translated episode title"; this.labelTranslatedEpisodeTitle.Text = "Translated episode title";
// //
// labelTranslatedProgramTitle // labelTranslatedProgramTitle
// //
this.labelTranslatedProgramTitle.AutoSize = true; this.labelTranslatedProgramTitle.AutoSize = true;
this.labelTranslatedProgramTitle.Location = new System.Drawing.Point(6, 175); this.labelTranslatedProgramTitle.Location = new System.Drawing.Point(6, 175);
this.labelTranslatedProgramTitle.Name = "labelTranslatedProgramTitle"; this.labelTranslatedProgramTitle.Name = "labelTranslatedProgramTitle";
this.labelTranslatedProgramTitle.Size = new System.Drawing.Size(117, 13); this.labelTranslatedProgramTitle.Size = new System.Drawing.Size(117, 13);
this.labelTranslatedProgramTitle.TabIndex = 35; this.labelTranslatedProgramTitle.TabIndex = 35;
this.labelTranslatedProgramTitle.Text = "Translated program title"; this.labelTranslatedProgramTitle.Text = "Translated program title";
// //
// labelOriginalEpisodeTitle // labelOriginalEpisodeTitle
// //
this.labelOriginalEpisodeTitle.AutoSize = true; this.labelOriginalEpisodeTitle.AutoSize = true;
this.labelOriginalEpisodeTitle.Location = new System.Drawing.Point(6, 149); this.labelOriginalEpisodeTitle.Location = new System.Drawing.Point(6, 149);
this.labelOriginalEpisodeTitle.Name = "labelOriginalEpisodeTitle"; this.labelOriginalEpisodeTitle.Name = "labelOriginalEpisodeTitle";
this.labelOriginalEpisodeTitle.Size = new System.Drawing.Size(101, 13); this.labelOriginalEpisodeTitle.Size = new System.Drawing.Size(101, 13);
this.labelOriginalEpisodeTitle.TabIndex = 34; this.labelOriginalEpisodeTitle.TabIndex = 34;
this.labelOriginalEpisodeTitle.Text = "Original episode title"; this.labelOriginalEpisodeTitle.Text = "Original episode title";
// //
// textBoxOriginalProgramTitle // textBoxOriginalProgramTitle
// //
this.textBoxOriginalProgramTitle.Location = new System.Drawing.Point(147, 120); this.textBoxOriginalProgramTitle.Location = new System.Drawing.Point(147, 120);
this.textBoxOriginalProgramTitle.MaxLength = 32; this.textBoxOriginalProgramTitle.MaxLength = 32;
this.textBoxOriginalProgramTitle.Name = "textBoxOriginalProgramTitle"; this.textBoxOriginalProgramTitle.Name = "textBoxOriginalProgramTitle";
this.textBoxOriginalProgramTitle.Size = new System.Drawing.Size(219, 20); this.textBoxOriginalProgramTitle.Size = new System.Drawing.Size(219, 20);
this.textBoxOriginalProgramTitle.TabIndex = 4; this.textBoxOriginalProgramTitle.TabIndex = 4;
// //
// labelOriginalProgramTitle // labelOriginalProgramTitle
// //
this.labelOriginalProgramTitle.AutoSize = true; this.labelOriginalProgramTitle.AutoSize = true;
this.labelOriginalProgramTitle.Location = new System.Drawing.Point(6, 123); this.labelOriginalProgramTitle.Location = new System.Drawing.Point(6, 123);
this.labelOriginalProgramTitle.Name = "labelOriginalProgramTitle"; this.labelOriginalProgramTitle.Name = "labelOriginalProgramTitle";
this.labelOriginalProgramTitle.Size = new System.Drawing.Size(102, 13); this.labelOriginalProgramTitle.Size = new System.Drawing.Size(102, 13);
this.labelOriginalProgramTitle.TabIndex = 32; this.labelOriginalProgramTitle.TabIndex = 32;
this.labelOriginalProgramTitle.Text = "Original program title"; this.labelOriginalProgramTitle.Text = "Original program title";
// //
// tabPageTextAndTiming // tabPageTextAndTiming
// //
this.tabPageTextAndTiming.Controls.Add(this.comboBoxJustificationCode); this.tabPageTextAndTiming.Controls.Add(this.comboBoxJustificationCode);
this.tabPageTextAndTiming.Controls.Add(this.labelJustificationCode); this.tabPageTextAndTiming.Controls.Add(this.labelJustificationCode);
this.tabPageTextAndTiming.Location = new System.Drawing.Point(4, 22); this.tabPageTextAndTiming.Location = new System.Drawing.Point(4, 22);
@ -550,9 +550,9 @@
this.tabPageTextAndTiming.TabIndex = 2; this.tabPageTextAndTiming.TabIndex = 2;
this.tabPageTextAndTiming.Text = "Text and timing information"; this.tabPageTextAndTiming.Text = "Text and timing information";
this.tabPageTextAndTiming.UseVisualStyleBackColor = true; this.tabPageTextAndTiming.UseVisualStyleBackColor = true;
// //
// comboBoxJustificationCode // comboBoxJustificationCode
// //
this.comboBoxJustificationCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxJustificationCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxJustificationCode.FormattingEnabled = true; this.comboBoxJustificationCode.FormattingEnabled = true;
this.comboBoxJustificationCode.Items.AddRange(new object[] { this.comboBoxJustificationCode.Items.AddRange(new object[] {
@ -564,18 +564,18 @@
this.comboBoxJustificationCode.Name = "comboBoxJustificationCode"; this.comboBoxJustificationCode.Name = "comboBoxJustificationCode";
this.comboBoxJustificationCode.Size = new System.Drawing.Size(219, 21); this.comboBoxJustificationCode.Size = new System.Drawing.Size(219, 21);
this.comboBoxJustificationCode.TabIndex = 43; this.comboBoxJustificationCode.TabIndex = 43;
// //
// labelJustificationCode // labelJustificationCode
// //
this.labelJustificationCode.AutoSize = true; this.labelJustificationCode.AutoSize = true;
this.labelJustificationCode.Location = new System.Drawing.Point(6, 14); this.labelJustificationCode.Location = new System.Drawing.Point(6, 14);
this.labelJustificationCode.Name = "labelJustificationCode"; this.labelJustificationCode.Name = "labelJustificationCode";
this.labelJustificationCode.Size = new System.Drawing.Size(89, 13); this.labelJustificationCode.Size = new System.Drawing.Size(89, 13);
this.labelJustificationCode.TabIndex = 44; this.labelJustificationCode.TabIndex = 44;
this.labelJustificationCode.Text = "Justification code"; this.labelJustificationCode.Text = "Justification code";
// //
// tabPageErrors // tabPageErrors
// //
this.tabPageErrors.Controls.Add(this.textBoxErrors); this.tabPageErrors.Controls.Add(this.textBoxErrors);
this.tabPageErrors.Controls.Add(this.labelErrors); this.tabPageErrors.Controls.Add(this.labelErrors);
this.tabPageErrors.Location = new System.Drawing.Point(4, 22); this.tabPageErrors.Location = new System.Drawing.Point(4, 22);
@ -585,11 +585,11 @@
this.tabPageErrors.TabIndex = 1; this.tabPageErrors.TabIndex = 1;
this.tabPageErrors.Text = "Errors"; this.tabPageErrors.Text = "Errors";
this.tabPageErrors.UseVisualStyleBackColor = true; this.tabPageErrors.UseVisualStyleBackColor = true;
// //
// textBoxErrors // textBoxErrors
// //
this.textBoxErrors.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.textBoxErrors.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.textBoxErrors.Location = new System.Drawing.Point(6, 26); this.textBoxErrors.Location = new System.Drawing.Point(6, 26);
this.textBoxErrors.Multiline = true; this.textBoxErrors.Multiline = true;
@ -597,18 +597,18 @@
this.textBoxErrors.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxErrors.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxErrors.Size = new System.Drawing.Size(909, 344); this.textBoxErrors.Size = new System.Drawing.Size(909, 344);
this.textBoxErrors.TabIndex = 13; this.textBoxErrors.TabIndex = 13;
// //
// labelErrors // labelErrors
// //
this.labelErrors.AutoSize = true; this.labelErrors.AutoSize = true;
this.labelErrors.Location = new System.Drawing.Point(3, 10); this.labelErrors.Location = new System.Drawing.Point(3, 10);
this.labelErrors.Name = "labelErrors"; this.labelErrors.Name = "labelErrors";
this.labelErrors.Size = new System.Drawing.Size(34, 13); this.labelErrors.Size = new System.Drawing.Size(34, 13);
this.labelErrors.TabIndex = 12; this.labelErrors.TabIndex = 12;
this.labelErrors.Text = "Errors"; this.labelErrors.Text = "Errors";
// //
// EbuSaveOptions // EbuSaveOptions
// //
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(775, 477); this.ClientSize = new System.Drawing.Size(775, 477);

View File

@ -125,7 +125,7 @@ namespace Nikse.SubtitleEdit.Forms
textBoxTranslatorsName.Text = header.TranslatorsName.TrimEnd(); textBoxTranslatorsName.Text = header.TranslatorsName.TrimEnd();
textBoxSubtitleListReferenceCode.Text = header.SubtitleListReferenceCode.TrimEnd(); textBoxSubtitleListReferenceCode.Text = header.SubtitleListReferenceCode.TrimEnd();
textBoxCountryOfOrigin.Text = header.CountryOfOrigin; textBoxCountryOfOrigin.Text = header.CountryOfOrigin;
int number; int number;
if (int.TryParse(header.RevisionNumber, out number)) if (int.TryParse(header.RevisionNumber, out number))
numericUpDownRevisionNumber.Value = number; numericUpDownRevisionNumber.Value = number;
@ -146,7 +146,7 @@ namespace Nikse.SubtitleEdit.Forms
if (int.TryParse(header.TotalNumberOfDisks, out number)) if (int.TryParse(header.TotalNumberOfDisks, out number))
numericUpDownTotalNumberOfDiscs.Value = number; numericUpDownTotalNumberOfDiscs.Value = number;
else else
numericUpDownTotalNumberOfDiscs.Value = 1; numericUpDownTotalNumberOfDiscs.Value = 1;
} }
private void buttonOK_Click(object sender, EventArgs e) private void buttonOK_Click(object sender, EventArgs e)
@ -157,13 +157,13 @@ namespace Nikse.SubtitleEdit.Forms
_header.DiskFormatCode = "STL30.01"; _header.DiskFormatCode = "STL30.01";
else else
_header.DiskFormatCode = "STL25.01"; _header.DiskFormatCode = "STL25.01";
_header.CharacterCodeTableNumber = "0" + comboBoxCharacterCodeTable.SelectedIndex.ToString(); _header.CharacterCodeTableNumber = "0" + comboBoxCharacterCodeTable.SelectedIndex.ToString();
_header.OriginalProgrammeTitle = textBoxOriginalProgramTitle.Text.PadRight(32, ' '); _header.OriginalProgrammeTitle = textBoxOriginalProgramTitle.Text.PadRight(32, ' ');
_header.OriginalEpisodeTitle = textBoxOriginalEpisodeTitle.Text.PadRight(32, ' '); _header.OriginalEpisodeTitle = textBoxOriginalEpisodeTitle.Text.PadRight(32, ' ');
_header.TranslatedProgrammeTitle = textBoxTranslatedProgramTitle.Text.PadRight(32, ' '); _header.TranslatedProgrammeTitle = textBoxTranslatedProgramTitle.Text.PadRight(32, ' ');
_header.TranslatedEpisodeTitle = textBoxTranslatedEpisodeTitle.Text.PadRight(32, ' '); _header.TranslatedEpisodeTitle = textBoxTranslatedEpisodeTitle.Text.PadRight(32, ' ');
_header.TranslatorsName = textBoxTranslatorsName.Text.PadRight(32, ' '); _header.TranslatorsName = textBoxTranslatorsName.Text.PadRight(32, ' ');
_header.SubtitleListReferenceCode = textBoxSubtitleListReferenceCode.Text.PadRight(16, ' '); _header.SubtitleListReferenceCode = textBoxSubtitleListReferenceCode.Text.PadRight(16, ' ');
_header.CountryOfOrigin = textBoxCountryOfOrigin.Text; _header.CountryOfOrigin = textBoxCountryOfOrigin.Text;
if (_header.CountryOfOrigin.Length != 3) if (_header.CountryOfOrigin.Length != 3)

View File

@ -45,27 +45,27 @@
this.richTextBoxPreview = new System.Windows.Forms.RichTextBox(); this.richTextBoxPreview = new System.Windows.Forms.RichTextBox();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDelay)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelTotalMillisecs // labelTotalMillisecs
// //
this.labelTotalMillisecs.AutoSize = true; this.labelTotalMillisecs.AutoSize = true;
this.labelTotalMillisecs.Location = new System.Drawing.Point(159, 52); this.labelTotalMillisecs.Location = new System.Drawing.Point(159, 52);
this.labelTotalMillisecs.Name = "labelTotalMillisecs"; this.labelTotalMillisecs.Name = "labelTotalMillisecs";
this.labelTotalMillisecs.Size = new System.Drawing.Size(90, 13); this.labelTotalMillisecs.Size = new System.Drawing.Size(90, 13);
this.labelTotalMillisecs.TabIndex = 49; this.labelTotalMillisecs.TabIndex = 49;
this.labelTotalMillisecs.Text = "labelTotalMillisecs"; this.labelTotalMillisecs.Text = "labelTotalMillisecs";
// //
// labelTM // labelTM
// //
this.labelTM.Location = new System.Drawing.Point(16, 52); this.labelTM.Location = new System.Drawing.Point(16, 52);
this.labelTM.Name = "labelTM"; this.labelTM.Name = "labelTM";
this.labelTM.Size = new System.Drawing.Size(140, 13); this.labelTM.Size = new System.Drawing.Size(140, 13);
this.labelTM.TabIndex = 48; this.labelTM.TabIndex = 48;
this.labelTM.Text = "Total millisecs.:"; this.labelTM.Text = "Total millisecs.:";
this.labelTM.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelTM.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// numericUpDownDelay // numericUpDownDelay
// //
this.numericUpDownDelay.DecimalPlaces = 3; this.numericUpDownDelay.DecimalPlaces = 3;
this.numericUpDownDelay.Increment = new decimal(new int[] { this.numericUpDownDelay.Increment = new decimal(new int[] {
1, 1,
@ -86,27 +86,27 @@
this.numericUpDownDelay.Name = "numericUpDownDelay"; this.numericUpDownDelay.Name = "numericUpDownDelay";
this.numericUpDownDelay.Size = new System.Drawing.Size(54, 21); this.numericUpDownDelay.Size = new System.Drawing.Size(54, 21);
this.numericUpDownDelay.TabIndex = 47; this.numericUpDownDelay.TabIndex = 47;
// //
// labelColor // labelColor
// //
this.labelColor.AutoSize = true; this.labelColor.AutoSize = true;
this.labelColor.Location = new System.Drawing.Point(218, 22); this.labelColor.Location = new System.Drawing.Point(218, 22);
this.labelColor.Name = "labelColor"; this.labelColor.Name = "labelColor";
this.labelColor.Size = new System.Drawing.Size(32, 13); this.labelColor.Size = new System.Drawing.Size(32, 13);
this.labelColor.TabIndex = 46; this.labelColor.TabIndex = 46;
this.labelColor.Text = "Color"; this.labelColor.Text = "Color";
// //
// labelEndDelay // labelEndDelay
// //
this.labelEndDelay.Location = new System.Drawing.Point(16, 76); this.labelEndDelay.Location = new System.Drawing.Point(16, 76);
this.labelEndDelay.Name = "labelEndDelay"; this.labelEndDelay.Name = "labelEndDelay";
this.labelEndDelay.Size = new System.Drawing.Size(140, 13); this.labelEndDelay.Size = new System.Drawing.Size(140, 13);
this.labelEndDelay.TabIndex = 45; this.labelEndDelay.TabIndex = 45;
this.labelEndDelay.Text = "End delay in millisecs.:"; this.labelEndDelay.Text = "End delay in millisecs.:";
this.labelEndDelay.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelEndDelay.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.BackColor = System.Drawing.SystemColors.Control; this.buttonCancel.BackColor = System.Drawing.SystemColors.Control;
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(353, 181); this.buttonCancel.Location = new System.Drawing.Point(353, 181);
@ -115,9 +115,9 @@
this.buttonCancel.TabIndex = 44; this.buttonCancel.TabIndex = 44;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = false; this.buttonCancel.UseVisualStyleBackColor = false;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Location = new System.Drawing.Point(272, 181); this.buttonOK.Location = new System.Drawing.Point(272, 181);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21); this.buttonOK.Size = new System.Drawing.Size(75, 21);
@ -125,9 +125,9 @@
this.buttonOK.Text = "OK"; this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonChooseColor // buttonChooseColor
// //
this.buttonChooseColor.Location = new System.Drawing.Point(159, 17); this.buttonChooseColor.Location = new System.Drawing.Point(159, 17);
this.buttonChooseColor.Name = "buttonChooseColor"; this.buttonChooseColor.Name = "buttonChooseColor";
this.buttonChooseColor.Size = new System.Drawing.Size(27, 23); this.buttonChooseColor.Size = new System.Drawing.Size(27, 23);
@ -135,25 +135,25 @@
this.buttonChooseColor.Text = "..."; this.buttonChooseColor.Text = "...";
this.buttonChooseColor.UseVisualStyleBackColor = true; this.buttonChooseColor.UseVisualStyleBackColor = true;
this.buttonChooseColor.Click += new System.EventHandler(this.ButtonChooseColorClick); this.buttonChooseColor.Click += new System.EventHandler(this.ButtonChooseColorClick);
// //
// panelColor // panelColor
// //
this.panelColor.Location = new System.Drawing.Point(192, 19); this.panelColor.Location = new System.Drawing.Point(192, 19);
this.panelColor.Name = "panelColor"; this.panelColor.Name = "panelColor";
this.panelColor.Size = new System.Drawing.Size(20, 20); this.panelColor.Size = new System.Drawing.Size(20, 20);
this.panelColor.TabIndex = 41; this.panelColor.TabIndex = 41;
// //
// labelChooseColor // labelChooseColor
// //
this.labelChooseColor.Location = new System.Drawing.Point(16, 22); this.labelChooseColor.Location = new System.Drawing.Point(16, 22);
this.labelChooseColor.Name = "labelChooseColor"; this.labelChooseColor.Name = "labelChooseColor";
this.labelChooseColor.Size = new System.Drawing.Size(140, 13); this.labelChooseColor.Size = new System.Drawing.Size(140, 13);
this.labelChooseColor.TabIndex = 40; this.labelChooseColor.TabIndex = 40;
this.labelChooseColor.Text = "Choose color:"; this.labelChooseColor.Text = "Choose color:";
this.labelChooseColor.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelChooseColor.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// buttonPreview // buttonPreview
// //
this.buttonPreview.Location = new System.Drawing.Point(12, 154); this.buttonPreview.Location = new System.Drawing.Point(12, 154);
this.buttonPreview.Name = "buttonPreview"; this.buttonPreview.Name = "buttonPreview";
this.buttonPreview.Size = new System.Drawing.Size(100, 21); this.buttonPreview.Size = new System.Drawing.Size(100, 21);
@ -161,13 +161,13 @@
this.buttonPreview.Text = "Preview"; this.buttonPreview.Text = "Preview";
this.buttonPreview.UseVisualStyleBackColor = true; this.buttonPreview.UseVisualStyleBackColor = true;
this.buttonPreview.Click += new System.EventHandler(this.ButtonPreviewClick); this.buttonPreview.Click += new System.EventHandler(this.ButtonPreviewClick);
// //
// timer1 // timer1
// //
this.timer1.Tick += new System.EventHandler(this.Timer1Tick); this.timer1.Tick += new System.EventHandler(this.Timer1Tick);
// //
// richTextBoxPreview // richTextBoxPreview
// //
this.richTextBoxPreview.BackColor = System.Drawing.Color.Black; this.richTextBoxPreview.BackColor = System.Drawing.Color.Black;
this.richTextBoxPreview.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBoxPreview.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBoxPreview.DetectUrls = false; this.richTextBoxPreview.DetectUrls = false;
@ -178,9 +178,9 @@
this.richTextBoxPreview.TabIndex = 50; this.richTextBoxPreview.TabIndex = 50;
this.richTextBoxPreview.TabStop = false; this.richTextBoxPreview.TabStop = false;
this.richTextBoxPreview.Text = ""; this.richTextBoxPreview.Text = "";
// //
// EffectKaraoke // EffectKaraoke
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(440, 208); this.ClientSize = new System.Drawing.Size(440, 208);

View File

@ -17,7 +17,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
InitializeComponent(); InitializeComponent();
Text = Configuration.Settings.Language.EffectKaraoke.Title; Text = Configuration.Settings.Language.EffectKaraoke.Title;
labelChooseColor.Text = Configuration.Settings.Language.EffectKaraoke.ChooseColor; labelChooseColor.Text = Configuration.Settings.Language.EffectKaraoke.ChooseColor;
labelTM.Text = Configuration.Settings.Language.EffectKaraoke.TotalMilliseconds; labelTM.Text = Configuration.Settings.Language.EffectKaraoke.TotalMilliseconds;
labelEndDelay.Text = Configuration.Settings.Language.EffectKaraoke.EndDelayInMilliseconds; labelEndDelay.Text = Configuration.Settings.Language.EffectKaraoke.EndDelayInMilliseconds;
@ -65,7 +65,7 @@ namespace Nikse.SubtitleEdit.Forms
private void AddToPreview(RichTextBox rtb, string text) private void AddToPreview(RichTextBox rtb, string text)
{ {
richTextBoxPreview.ForeColor = Color.White; richTextBoxPreview.ForeColor = Color.White;
int bold = 0; int bold = 0;
int underline = 0; int underline = 0;
int italic = 0; int italic = 0;
@ -122,7 +122,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
if (!string.IsNullOrEmpty(currentColor)) if (!string.IsNullOrEmpty(currentColor))
fontColors.Push(currentColor); fontColors.Push(currentColor);
currentColor = tempColor; currentColor = tempColor;
} }
} }
} }
@ -168,7 +168,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < text.Length; i++) for (int i = 0; i < text.Length; i++)
{ {
sb.Append(text[i]); sb.Append(text[i]);
if (text[i] == '>') if (text[i] == '>')
return sb.ToString(); return sb.ToString();

View File

@ -40,9 +40,9 @@
this.labelTotalMillisecs = new System.Windows.Forms.Label(); this.labelTotalMillisecs = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDelay)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelPreview // labelPreview
// //
this.labelPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.labelPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.labelPreview.BackColor = System.Drawing.Color.Black; this.labelPreview.BackColor = System.Drawing.Color.Black;
@ -54,9 +54,9 @@
this.labelPreview.TabIndex = 25; this.labelPreview.TabIndex = 25;
this.labelPreview.Text = "labelPreview"; this.labelPreview.Text = "labelPreview";
this.labelPreview.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelPreview.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// buttonPreview // buttonPreview
// //
this.buttonPreview.Location = new System.Drawing.Point(12, 119); this.buttonPreview.Location = new System.Drawing.Point(12, 119);
this.buttonPreview.Name = "buttonPreview"; this.buttonPreview.Name = "buttonPreview";
this.buttonPreview.Size = new System.Drawing.Size(100, 21); this.buttonPreview.Size = new System.Drawing.Size(100, 21);
@ -64,9 +64,9 @@
this.buttonPreview.Text = "Preview"; this.buttonPreview.Text = "Preview";
this.buttonPreview.UseVisualStyleBackColor = true; this.buttonPreview.UseVisualStyleBackColor = true;
this.buttonPreview.Click += new System.EventHandler(this.ButtonPreviewClick); this.buttonPreview.Click += new System.EventHandler(this.ButtonPreviewClick);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Location = new System.Drawing.Point(265, 148); this.buttonOK.Location = new System.Drawing.Point(265, 148);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21); this.buttonOK.Size = new System.Drawing.Size(75, 21);
@ -74,9 +74,9 @@
this.buttonOK.Text = "OK"; this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(346, 148); this.buttonCancel.Location = new System.Drawing.Point(346, 148);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -84,22 +84,22 @@
this.buttonCancel.TabIndex = 31; this.buttonCancel.TabIndex = 31;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// timer1 // timer1
// //
this.timer1.Tick += new System.EventHandler(this.Timer1Tick); this.timer1.Tick += new System.EventHandler(this.Timer1Tick);
// //
// labelEndDelay // labelEndDelay
// //
this.labelEndDelay.Location = new System.Drawing.Point(16, 45); this.labelEndDelay.Location = new System.Drawing.Point(16, 45);
this.labelEndDelay.Name = "labelEndDelay"; this.labelEndDelay.Name = "labelEndDelay";
this.labelEndDelay.Size = new System.Drawing.Size(140, 13); this.labelEndDelay.Size = new System.Drawing.Size(140, 13);
this.labelEndDelay.TabIndex = 32; this.labelEndDelay.TabIndex = 32;
this.labelEndDelay.Text = "End delay in millisecs.:"; this.labelEndDelay.Text = "End delay in millisecs.:";
this.labelEndDelay.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelEndDelay.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// numericUpDownDelay // numericUpDownDelay
// //
this.numericUpDownDelay.DecimalPlaces = 3; this.numericUpDownDelay.DecimalPlaces = 3;
this.numericUpDownDelay.Increment = new decimal(new int[] { this.numericUpDownDelay.Increment = new decimal(new int[] {
1, 1,
@ -120,27 +120,27 @@
this.numericUpDownDelay.Name = "numericUpDownDelay"; this.numericUpDownDelay.Name = "numericUpDownDelay";
this.numericUpDownDelay.Size = new System.Drawing.Size(54, 21); this.numericUpDownDelay.Size = new System.Drawing.Size(54, 21);
this.numericUpDownDelay.TabIndex = 35; this.numericUpDownDelay.TabIndex = 35;
// //
// labelTM // labelTM
// //
this.labelTM.Location = new System.Drawing.Point(16, 23); this.labelTM.Location = new System.Drawing.Point(16, 23);
this.labelTM.Name = "labelTM"; this.labelTM.Name = "labelTM";
this.labelTM.Size = new System.Drawing.Size(140, 13); this.labelTM.Size = new System.Drawing.Size(140, 13);
this.labelTM.TabIndex = 36; this.labelTM.TabIndex = 36;
this.labelTM.Text = "Total millisecs.:"; this.labelTM.Text = "Total millisecs.:";
this.labelTM.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelTM.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// labelTotalMillisecs // labelTotalMillisecs
// //
this.labelTotalMillisecs.AutoSize = true; this.labelTotalMillisecs.AutoSize = true;
this.labelTotalMillisecs.Location = new System.Drawing.Point(159, 23); this.labelTotalMillisecs.Location = new System.Drawing.Point(159, 23);
this.labelTotalMillisecs.Name = "labelTotalMillisecs"; this.labelTotalMillisecs.Name = "labelTotalMillisecs";
this.labelTotalMillisecs.Size = new System.Drawing.Size(90, 13); this.labelTotalMillisecs.Size = new System.Drawing.Size(90, 13);
this.labelTotalMillisecs.TabIndex = 37; this.labelTotalMillisecs.TabIndex = 37;
this.labelTotalMillisecs.Text = "labelTotalMillisecs"; this.labelTotalMillisecs.Text = "labelTotalMillisecs";
// //
// EffectTypewriter // EffectTypewriter
// //
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(433, 179); this.ClientSize = new System.Drawing.Size(433, 179);

View File

@ -81,7 +81,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void MakeAnimation() private void MakeAnimation()
{ {
_animation = new List<Paragraph>(); _animation = new List<Paragraph>();
double duration = _paragraph.Duration.TotalMilliseconds - ((double)numericUpDownDelay.Value * 1000.0); double duration = _paragraph.Duration.TotalMilliseconds - ((double)numericUpDownDelay.Value * 1000.0);
double stepsLength = CalculateStepLength(_paragraph.Text, duration); double stepsLength = CalculateStepLength(_paragraph.Text, duration);
@ -89,7 +89,7 @@ namespace Nikse.SubtitleEdit.Forms
double startMilliseconds; double startMilliseconds;
double endMilliseconds; double endMilliseconds;
TimeSpan start; TimeSpan start;
TimeSpan end; TimeSpan end;
int index = 0; int index = 0;
string text = string.Empty; string text = string.Empty;
bool tagOn = false; bool tagOn = false;
@ -124,7 +124,7 @@ namespace Nikse.SubtitleEdit.Forms
i++; i++;
} }
text += tag; text += tag;
} }
startMilliseconds = index * stepsLength; startMilliseconds = index * stepsLength;
startMilliseconds += _paragraph.StartTime.TotalMilliseconds; startMilliseconds += _paragraph.StartTime.TotalMilliseconds;
@ -135,7 +135,7 @@ namespace Nikse.SubtitleEdit.Forms
_animation.Add(new Paragraph(new TimeCode(start), new TimeCode(end), text)); _animation.Add(new Paragraph(new TimeCode(start), new TimeCode(end), text));
index++; index++;
} }
i++; i++;
} }
if (numericUpDownDelay.Value > 0) if (numericUpDownDelay.Value > 0)

View File

@ -51,20 +51,20 @@
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.groupBoxImageSettings.SuspendLayout(); this.groupBoxImageSettings.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.pictureBox1.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.pictureBox1.Location = new System.Drawing.Point(12, 243); this.pictureBox1.Location = new System.Drawing.Point(12, 243);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(698, 132); this.pictureBox1.Size = new System.Drawing.Size(698, 132);
this.pictureBox1.TabIndex = 1; this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
// //
// buttonExport // buttonExport
// //
this.buttonExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonExport.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonExport.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonExport.Location = new System.Drawing.Point(503, 381); this.buttonExport.Location = new System.Drawing.Point(503, 381);
@ -74,9 +74,9 @@
this.buttonExport.Text = "Export all lines..."; this.buttonExport.Text = "Export all lines...";
this.buttonExport.UseVisualStyleBackColor = true; this.buttonExport.UseVisualStyleBackColor = true;
this.buttonExport.Click += new System.EventHandler(this.buttonExport_Click); this.buttonExport.Click += new System.EventHandler(this.buttonExport_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -86,20 +86,20 @@
this.buttonCancel.TabIndex = 18; this.buttonCancel.TabIndex = 18;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// progressBar1 // progressBar1
// //
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.progressBar1.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.progressBar1.Location = new System.Drawing.Point(12, 381); this.progressBar1.Location = new System.Drawing.Point(12, 381);
this.progressBar1.Name = "progressBar1"; this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(485, 21); this.progressBar1.Size = new System.Drawing.Size(485, 21);
this.progressBar1.TabIndex = 20; this.progressBar1.TabIndex = 20;
this.progressBar1.Visible = false; this.progressBar1.Visible = false;
// //
// groupBoxImageSettings // groupBoxImageSettings
// //
this.groupBoxImageSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxImageSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImageSettings.Controls.Add(this.checkBoxAntiAlias); this.groupBoxImageSettings.Controls.Add(this.checkBoxAntiAlias);
this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFontSize); this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFontSize);
@ -118,9 +118,9 @@
this.groupBoxImageSettings.TabIndex = 21; this.groupBoxImageSettings.TabIndex = 21;
this.groupBoxImageSettings.TabStop = false; this.groupBoxImageSettings.TabStop = false;
this.groupBoxImageSettings.Text = "Image settings"; this.groupBoxImageSettings.Text = "Image settings";
// //
// checkBoxAntiAlias // checkBoxAntiAlias
// //
this.checkBoxAntiAlias.AutoSize = true; this.checkBoxAntiAlias.AutoSize = true;
this.checkBoxAntiAlias.Checked = true; this.checkBoxAntiAlias.Checked = true;
this.checkBoxAntiAlias.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxAntiAlias.CheckState = System.Windows.Forms.CheckState.Checked;
@ -131,18 +131,18 @@
this.checkBoxAntiAlias.Text = "AntiAlias"; this.checkBoxAntiAlias.Text = "AntiAlias";
this.checkBoxAntiAlias.UseVisualStyleBackColor = true; this.checkBoxAntiAlias.UseVisualStyleBackColor = true;
this.checkBoxAntiAlias.CheckedChanged += new System.EventHandler(this.checkBoxAntiAlias_CheckedChanged); this.checkBoxAntiAlias.CheckedChanged += new System.EventHandler(this.checkBoxAntiAlias_CheckedChanged);
// //
// labelSubtitleFontSize // labelSubtitleFontSize
// //
this.labelSubtitleFontSize.AutoSize = true; this.labelSubtitleFontSize.AutoSize = true;
this.labelSubtitleFontSize.Location = new System.Drawing.Point(10, 54); this.labelSubtitleFontSize.Location = new System.Drawing.Point(10, 54);
this.labelSubtitleFontSize.Name = "labelSubtitleFontSize"; this.labelSubtitleFontSize.Name = "labelSubtitleFontSize";
this.labelSubtitleFontSize.Size = new System.Drawing.Size(84, 13); this.labelSubtitleFontSize.Size = new System.Drawing.Size(84, 13);
this.labelSubtitleFontSize.TabIndex = 20; this.labelSubtitleFontSize.TabIndex = 20;
this.labelSubtitleFontSize.Text = "Subtitle font size"; this.labelSubtitleFontSize.Text = "Subtitle font size";
// //
// comboBoxSubtitleFont // comboBoxSubtitleFont
// //
this.comboBoxSubtitleFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSubtitleFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSubtitleFont.FormattingEnabled = true; this.comboBoxSubtitleFont.FormattingEnabled = true;
this.comboBoxSubtitleFont.Location = new System.Drawing.Point(100, 24); this.comboBoxSubtitleFont.Location = new System.Drawing.Point(100, 24);
@ -150,9 +150,9 @@
this.comboBoxSubtitleFont.Size = new System.Drawing.Size(121, 21); this.comboBoxSubtitleFont.Size = new System.Drawing.Size(121, 21);
this.comboBoxSubtitleFont.TabIndex = 17; this.comboBoxSubtitleFont.TabIndex = 17;
this.comboBoxSubtitleFont.SelectedValueChanged += new System.EventHandler(this.comboBoxSubtitleFont_SelectedValueChanged); this.comboBoxSubtitleFont.SelectedValueChanged += new System.EventHandler(this.comboBoxSubtitleFont_SelectedValueChanged);
// //
// comboBoxSubtitleFontSize // comboBoxSubtitleFontSize
// //
this.comboBoxSubtitleFontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSubtitleFontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSubtitleFontSize.FormattingEnabled = true; this.comboBoxSubtitleFontSize.FormattingEnabled = true;
this.comboBoxSubtitleFontSize.Items.AddRange(new object[] { this.comboBoxSubtitleFontSize.Items.AddRange(new object[] {
@ -226,18 +226,18 @@
this.comboBoxSubtitleFontSize.Size = new System.Drawing.Size(121, 21); this.comboBoxSubtitleFontSize.Size = new System.Drawing.Size(121, 21);
this.comboBoxSubtitleFontSize.TabIndex = 18; this.comboBoxSubtitleFontSize.TabIndex = 18;
this.comboBoxSubtitleFontSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFontSize_SelectedIndexChanged); this.comboBoxSubtitleFontSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFontSize_SelectedIndexChanged);
// //
// labelSubtitleFont // labelSubtitleFont
// //
this.labelSubtitleFont.AutoSize = true; this.labelSubtitleFont.AutoSize = true;
this.labelSubtitleFont.Location = new System.Drawing.Point(10, 27); this.labelSubtitleFont.Location = new System.Drawing.Point(10, 27);
this.labelSubtitleFont.Name = "labelSubtitleFont"; this.labelSubtitleFont.Name = "labelSubtitleFont";
this.labelSubtitleFont.Size = new System.Drawing.Size(63, 13); this.labelSubtitleFont.Size = new System.Drawing.Size(63, 13);
this.labelSubtitleFont.TabIndex = 19; this.labelSubtitleFont.TabIndex = 19;
this.labelSubtitleFont.Text = "Subtitle font"; this.labelSubtitleFont.Text = "Subtitle font";
// //
// labelBorderWidth // labelBorderWidth
// //
this.labelBorderWidth.Location = new System.Drawing.Point(426, 56); this.labelBorderWidth.Location = new System.Drawing.Point(426, 56);
this.labelBorderWidth.Name = "labelBorderWidth"; this.labelBorderWidth.Name = "labelBorderWidth";
this.labelBorderWidth.RightToLeft = System.Windows.Forms.RightToLeft.No; this.labelBorderWidth.RightToLeft = System.Windows.Forms.RightToLeft.No;
@ -245,9 +245,9 @@
this.labelBorderWidth.TabIndex = 16; this.labelBorderWidth.TabIndex = 16;
this.labelBorderWidth.Text = "Border width"; this.labelBorderWidth.Text = "Border width";
this.labelBorderWidth.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelBorderWidth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// comboBoxBorderWidth // comboBoxBorderWidth
// //
this.comboBoxBorderWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxBorderWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxBorderWidth.FormattingEnabled = true; this.comboBoxBorderWidth.FormattingEnabled = true;
this.comboBoxBorderWidth.Items.AddRange(new object[] { this.comboBoxBorderWidth.Items.AddRange(new object[] {
@ -262,18 +262,18 @@
this.comboBoxBorderWidth.Size = new System.Drawing.Size(121, 21); this.comboBoxBorderWidth.Size = new System.Drawing.Size(121, 21);
this.comboBoxBorderWidth.TabIndex = 15; this.comboBoxBorderWidth.TabIndex = 15;
this.comboBoxBorderWidth.SelectedIndexChanged += new System.EventHandler(this.comboBoxBorderWidth_SelectedIndexChanged); this.comboBoxBorderWidth.SelectedIndexChanged += new System.EventHandler(this.comboBoxBorderWidth_SelectedIndexChanged);
// //
// panelBorderColor // panelBorderColor
// //
this.panelBorderColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelBorderColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelBorderColor.Location = new System.Drawing.Point(664, 25); this.panelBorderColor.Location = new System.Drawing.Point(664, 25);
this.panelBorderColor.Name = "panelBorderColor"; this.panelBorderColor.Name = "panelBorderColor";
this.panelBorderColor.Size = new System.Drawing.Size(21, 20); this.panelBorderColor.Size = new System.Drawing.Size(21, 20);
this.panelBorderColor.TabIndex = 14; this.panelBorderColor.TabIndex = 14;
this.panelBorderColor.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panelBorderColor_MouseClick); this.panelBorderColor.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panelBorderColor_MouseClick);
// //
// buttonBorderColor // buttonBorderColor
// //
this.buttonBorderColor.Location = new System.Drawing.Point(537, 24); this.buttonBorderColor.Location = new System.Drawing.Point(537, 24);
this.buttonBorderColor.Name = "buttonBorderColor"; this.buttonBorderColor.Name = "buttonBorderColor";
this.buttonBorderColor.Size = new System.Drawing.Size(121, 21); this.buttonBorderColor.Size = new System.Drawing.Size(121, 21);
@ -281,18 +281,18 @@
this.buttonBorderColor.Text = "Border color"; this.buttonBorderColor.Text = "Border color";
this.buttonBorderColor.UseVisualStyleBackColor = true; this.buttonBorderColor.UseVisualStyleBackColor = true;
this.buttonBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click); this.buttonBorderColor.Click += new System.EventHandler(this.buttonBorderColor_Click);
// //
// panelColor // panelColor
// //
this.panelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelColor.Location = new System.Drawing.Point(403, 25); this.panelColor.Location = new System.Drawing.Point(403, 25);
this.panelColor.Name = "panelColor"; this.panelColor.Name = "panelColor";
this.panelColor.Size = new System.Drawing.Size(21, 20); this.panelColor.Size = new System.Drawing.Size(21, 20);
this.panelColor.TabIndex = 12; this.panelColor.TabIndex = 12;
this.panelColor.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panelColor_MouseClick); this.panelColor.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panelColor_MouseClick);
// //
// buttonColor // buttonColor
// //
this.buttonColor.Location = new System.Drawing.Point(276, 24); this.buttonColor.Location = new System.Drawing.Point(276, 24);
this.buttonColor.Name = "buttonColor"; this.buttonColor.Name = "buttonColor";
this.buttonColor.Size = new System.Drawing.Size(121, 21); this.buttonColor.Size = new System.Drawing.Size(121, 21);
@ -300,9 +300,9 @@
this.buttonColor.Text = "Color"; this.buttonColor.Text = "Color";
this.buttonColor.UseVisualStyleBackColor = true; this.buttonColor.UseVisualStyleBackColor = true;
this.buttonColor.Click += new System.EventHandler(this.buttonColor_Click); this.buttonColor.Click += new System.EventHandler(this.buttonColor_Click);
// //
// labelImageResolution // labelImageResolution
// //
this.labelImageResolution.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelImageResolution.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelImageResolution.BackColor = System.Drawing.Color.Transparent; this.labelImageResolution.BackColor = System.Drawing.Color.Transparent;
this.labelImageResolution.Location = new System.Drawing.Point(635, 238); this.labelImageResolution.Location = new System.Drawing.Point(635, 238);
@ -311,10 +311,10 @@
this.labelImageResolution.TabIndex = 22; this.labelImageResolution.TabIndex = 22;
this.labelImageResolution.Text = "320x240"; this.labelImageResolution.Text = "320x240";
this.labelImageResolution.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelImageResolution.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.subtitleListView1.FirstVisibleIndex = -1; 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -327,9 +327,9 @@
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.subtitleListView1_SelectedIndexChanged); this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.subtitleListView1_SelectedIndexChanged);
// //
// ExportPngXml // ExportPngXml
// //
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(716, 407); this.ClientSize = new System.Drawing.Size(716, 407);

View File

@ -13,7 +13,7 @@ namespace Nikse.SubtitleEdit.Forms
public sealed partial class ExportPngXml : Form public sealed partial class ExportPngXml : Form
{ {
Subtitle _subtitle; Subtitle _subtitle;
Color _subtitleColor = Color.White; Color _subtitleColor = Color.White;
string _subtitleFontName = "Verdana"; string _subtitleFontName = "Verdana";
float _subtitleFontSize = 75.0f; float _subtitleFontSize = 75.0f;
Color _borderColor = Color.Black; Color _borderColor = Color.Black;
@ -34,7 +34,7 @@ namespace Nikse.SubtitleEdit.Forms
private void buttonExport_Click(object sender, EventArgs e) private void buttonExport_Click(object sender, EventArgs e)
{ {
SetupImageParameters(); SetupImageParameters();
if (folderBrowserDialog1.ShowDialog(this) == DialogResult.OK) if (folderBrowserDialog1.ShowDialog(this) == DialogResult.OK)
{ {
progressBar1.Value = 0; progressBar1.Value = 0;
@ -46,7 +46,7 @@ namespace Nikse.SubtitleEdit.Forms
int imagesSavedCount = 0; int imagesSavedCount = 0;
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < _subtitle.Paragraphs.Count; i++) for (int i = 0; i < _subtitle.Paragraphs.Count; i++)
{ {
Bitmap bmp = GenerateImageFromTextWithStyle(_subtitle.Paragraphs[i].Text); Bitmap bmp = GenerateImageFromTextWithStyle(_subtitle.Paragraphs[i].Text);
string numberString = string.Format("{0:0000}", i + 1); string numberString = string.Format("{0:0000}", i + 1);
if (bmp != null) if (bmp != null)
@ -139,7 +139,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
StringFormat sf = new StringFormat(); StringFormat sf = new StringFormat();
sf.Alignment = StringAlignment.Near; sf.Alignment = StringAlignment.Near;
sf.LineAlignment = StringAlignment.Near;// draw the text to a path sf.LineAlignment = StringAlignment.Near;// draw the text to a path
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
// display italic // display italic

View File

@ -35,17 +35,17 @@
this.radioButtonCaseSensitive = new System.Windows.Forms.RadioButton(); this.radioButtonCaseSensitive = new System.Windows.Forms.RadioButton();
this.radioButtonRegEx = new System.Windows.Forms.RadioButton(); this.radioButtonRegEx = new System.Windows.Forms.RadioButton();
this.SuspendLayout(); this.SuspendLayout();
// //
// textBoxFind // textBoxFind
// //
this.textBoxFind.Location = new System.Drawing.Point(12, 12); this.textBoxFind.Location = new System.Drawing.Point(12, 12);
this.textBoxFind.Name = "textBoxFind"; this.textBoxFind.Name = "textBoxFind";
this.textBoxFind.Size = new System.Drawing.Size(189, 21); this.textBoxFind.Size = new System.Drawing.Size(189, 21);
this.textBoxFind.TabIndex = 0; this.textBoxFind.TabIndex = 0;
this.textBoxFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown); this.textBoxFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown);
// //
// buttonFind // buttonFind
// //
this.buttonFind.Location = new System.Drawing.Point(207, 11); this.buttonFind.Location = new System.Drawing.Point(207, 11);
this.buttonFind.Name = "buttonFind"; this.buttonFind.Name = "buttonFind";
this.buttonFind.Size = new System.Drawing.Size(75, 21); this.buttonFind.Size = new System.Drawing.Size(75, 21);
@ -53,9 +53,9 @@
this.buttonFind.Text = "Find"; this.buttonFind.Text = "Find";
this.buttonFind.UseVisualStyleBackColor = true; this.buttonFind.UseVisualStyleBackColor = true;
this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick); this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(207, 36); this.buttonCancel.Location = new System.Drawing.Point(207, 36);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -63,9 +63,9 @@
this.buttonCancel.TabIndex = 3; this.buttonCancel.TabIndex = 3;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// radioButtonNormal // radioButtonNormal
// //
this.radioButtonNormal.AutoSize = true; this.radioButtonNormal.AutoSize = true;
this.radioButtonNormal.Checked = true; this.radioButtonNormal.Checked = true;
this.radioButtonNormal.Location = new System.Drawing.Point(12, 63); this.radioButtonNormal.Location = new System.Drawing.Point(12, 63);
@ -76,9 +76,9 @@
this.radioButtonNormal.Text = "Normal"; this.radioButtonNormal.Text = "Normal";
this.radioButtonNormal.UseVisualStyleBackColor = true; this.radioButtonNormal.UseVisualStyleBackColor = true;
this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonCaseSensitive // radioButtonCaseSensitive
// //
this.radioButtonCaseSensitive.AutoSize = true; this.radioButtonCaseSensitive.AutoSize = true;
this.radioButtonCaseSensitive.Location = new System.Drawing.Point(12, 86); this.radioButtonCaseSensitive.Location = new System.Drawing.Point(12, 86);
this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive"; this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive";
@ -87,9 +87,9 @@
this.radioButtonCaseSensitive.Text = "Case sensitive"; this.radioButtonCaseSensitive.Text = "Case sensitive";
this.radioButtonCaseSensitive.UseVisualStyleBackColor = true; this.radioButtonCaseSensitive.UseVisualStyleBackColor = true;
this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonRegEx // radioButtonRegEx
// //
this.radioButtonRegEx.AutoSize = true; this.radioButtonRegEx.AutoSize = true;
this.radioButtonRegEx.Location = new System.Drawing.Point(12, 109); this.radioButtonRegEx.Location = new System.Drawing.Point(12, 109);
this.radioButtonRegEx.Name = "radioButtonRegEx"; this.radioButtonRegEx.Name = "radioButtonRegEx";
@ -98,9 +98,9 @@
this.radioButtonRegEx.Text = "RegEx"; this.radioButtonRegEx.Text = "RegEx";
this.radioButtonRegEx.UseVisualStyleBackColor = true; this.radioButtonRegEx.UseVisualStyleBackColor = true;
this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// FindDialog // FindDialog
// //
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(298, 135); this.ClientSize = new System.Drawing.Size(298, 135);

View File

@ -57,7 +57,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
if (e.KeyCode == Keys.Escape) if (e.KeyCode == Keys.Escape)
{ {
DialogResult = DialogResult.Cancel; DialogResult = DialogResult.Cancel;
} }
} }
@ -118,7 +118,7 @@ namespace Nikse.SubtitleEdit.Forms
else if (findHelper.FindType == FindType.CaseSensitive) else if (findHelper.FindType == FindType.CaseSensitive)
radioButtonCaseSensitive.Checked = true; radioButtonCaseSensitive.Checked = true;
else else
radioButtonNormal.Checked = true; radioButtonNormal.Checked = true;
} }
} }

View File

@ -38,9 +38,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFindNext = new System.Windows.Forms.Button(); this.buttonFindNext = new System.Windows.Forms.Button();
this.subtitleListView1 = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.subtitleListView1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.Location = new System.Drawing.Point(428, 315); this.buttonOK.Location = new System.Drawing.Point(428, 315);
@ -50,9 +50,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(509, 315); this.buttonCancel.Location = new System.Drawing.Point(509, 315);
@ -62,9 +62,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick); this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
// //
// buttonFind // buttonFind
// //
this.buttonFind.Location = new System.Drawing.Point(196, 32); this.buttonFind.Location = new System.Drawing.Point(196, 32);
this.buttonFind.Name = "buttonFind"; this.buttonFind.Name = "buttonFind";
this.buttonFind.Size = new System.Drawing.Size(75, 21); this.buttonFind.Size = new System.Drawing.Size(75, 21);
@ -72,18 +72,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFind.Text = "Find"; this.buttonFind.Text = "Find";
this.buttonFind.UseVisualStyleBackColor = true; this.buttonFind.UseVisualStyleBackColor = true;
this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick); this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick);
// //
// textBoxFindText // textBoxFindText
// //
this.textBoxFindText.Location = new System.Drawing.Point(12, 32); this.textBoxFindText.Location = new System.Drawing.Point(12, 32);
this.textBoxFindText.Name = "textBoxFindText"; this.textBoxFindText.Name = "textBoxFindText";
this.textBoxFindText.Size = new System.Drawing.Size(178, 21); this.textBoxFindText.Size = new System.Drawing.Size(178, 21);
this.textBoxFindText.TabIndex = 0; this.textBoxFindText.TabIndex = 0;
this.textBoxFindText.TextChanged += new System.EventHandler(this.TextBoxFindTextTextChanged); this.textBoxFindText.TextChanged += new System.EventHandler(this.TextBoxFindTextTextChanged);
this.textBoxFindText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindTextKeyDown); this.textBoxFindText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindTextKeyDown);
// //
// buttonFindNext // buttonFindNext
// //
this.buttonFindNext.Location = new System.Drawing.Point(277, 32); this.buttonFindNext.Location = new System.Drawing.Point(277, 32);
this.buttonFindNext.Name = "buttonFindNext"; this.buttonFindNext.Name = "buttonFindNext";
this.buttonFindNext.Size = new System.Drawing.Size(75, 21); this.buttonFindNext.Size = new System.Drawing.Size(75, 21);
@ -91,9 +91,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFindNext.Text = "Find next"; this.buttonFindNext.Text = "Find next";
this.buttonFindNext.UseVisualStyleBackColor = true; this.buttonFindNext.UseVisualStyleBackColor = true;
this.buttonFindNext.Click += new System.EventHandler(this.ButtonFindNextClick); this.buttonFindNext.Click += new System.EventHandler(this.ButtonFindNextClick);
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
@ -109,9 +109,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListView1MouseDoubleClick); this.subtitleListView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListView1MouseDoubleClick);
// //
// FindSubtitleLine // FindSubtitleLine
// //
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(596, 345); this.ClientSize = new System.Drawing.Size(596, 345);

View File

@ -90,9 +90,9 @@ namespace Nikse.SubtitleEdit.Forms
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDuration)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDuration)).BeginInit();
this.tabPageLog.SuspendLayout(); this.tabPageLog.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -103,9 +103,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick); this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
// //
// buttonNextFinish // buttonNextFinish
// //
this.buttonNextFinish.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonNextFinish.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonNextFinish.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonNextFinish.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonNextFinish.Location = new System.Drawing.Point(678, 559); this.buttonNextFinish.Location = new System.Drawing.Point(678, 559);
@ -115,9 +115,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonNextFinish.Text = "&Next >"; this.buttonNextFinish.Text = "&Next >";
this.buttonNextFinish.UseVisualStyleBackColor = true; this.buttonNextFinish.UseVisualStyleBackColor = true;
this.buttonNextFinish.Click += new System.EventHandler(this.ButtonFixClick); this.buttonNextFinish.Click += new System.EventHandler(this.ButtonFixClick);
// //
// labelStatus // labelStatus
// //
this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(12, 561); this.labelStatus.Location = new System.Drawing.Point(12, 561);
@ -125,9 +125,9 @@ namespace Nikse.SubtitleEdit.Forms
this.labelStatus.Size = new System.Drawing.Size(60, 13); this.labelStatus.Size = new System.Drawing.Size(60, 13);
this.labelStatus.TabIndex = 5; this.labelStatus.TabIndex = 5;
this.labelStatus.Text = "labelStatus"; this.labelStatus.Text = "labelStatus";
// //
// buttonBack // buttonBack
// //
this.buttonBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonBack.Enabled = false; this.buttonBack.Enabled = false;
this.buttonBack.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonBack.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -138,11 +138,11 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonBack.Text = "< &Back"; this.buttonBack.Text = "< &Back";
this.buttonBack.UseVisualStyleBackColor = true; this.buttonBack.UseVisualStyleBackColor = true;
this.buttonBack.Click += new System.EventHandler(this.ButtonBackClick); this.buttonBack.Click += new System.EventHandler(this.ButtonBackClick);
// //
// groupBoxStep1 // groupBoxStep1
// //
this.groupBoxStep1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxStep1.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.groupBoxStep1.Controls.Add(this.buttonInverseSelection); this.groupBoxStep1.Controls.Add(this.buttonInverseSelection);
this.groupBoxStep1.Controls.Add(this.buttonSelectAll); this.groupBoxStep1.Controls.Add(this.buttonSelectAll);
@ -153,9 +153,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxStep1.TabIndex = 9; this.groupBoxStep1.TabIndex = 9;
this.groupBoxStep1.TabStop = false; this.groupBoxStep1.TabStop = false;
this.groupBoxStep1.Text = "Step 1/2 - Choose which errors to fix"; this.groupBoxStep1.Text = "Step 1/2 - Choose which errors to fix";
// //
// buttonInverseSelection // buttonInverseSelection
// //
this.buttonInverseSelection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonInverseSelection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonInverseSelection.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonInverseSelection.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonInverseSelection.Location = new System.Drawing.Point(87, 514); this.buttonInverseSelection.Location = new System.Drawing.Point(87, 514);
@ -165,9 +165,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonInverseSelection.Text = "Inverse selection"; this.buttonInverseSelection.Text = "Inverse selection";
this.buttonInverseSelection.UseVisualStyleBackColor = true; this.buttonInverseSelection.UseVisualStyleBackColor = true;
this.buttonInverseSelection.Click += new System.EventHandler(this.ButtonInverseSelectionClick); this.buttonInverseSelection.Click += new System.EventHandler(this.ButtonInverseSelectionClick);
// //
// buttonSelectAll // buttonSelectAll
// //
this.buttonSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonSelectAll.Location = new System.Drawing.Point(6, 514); this.buttonSelectAll.Location = new System.Drawing.Point(6, 514);
@ -177,11 +177,11 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonSelectAll.Text = "Select all"; this.buttonSelectAll.Text = "Select all";
this.buttonSelectAll.UseVisualStyleBackColor = true; this.buttonSelectAll.UseVisualStyleBackColor = true;
this.buttonSelectAll.Click += new System.EventHandler(this.ButtonSelectAllClick); this.buttonSelectAll.Click += new System.EventHandler(this.ButtonSelectAllClick);
// //
// listView1 // listView1
// //
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listView1.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.listView1.CheckBoxes = true; this.listView1.CheckBoxes = true;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -195,26 +195,26 @@ namespace Nikse.SubtitleEdit.Forms
this.listView1.TabIndex = 3; this.listView1.TabIndex = 3;
this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details; this.listView1.View = System.Windows.Forms.View.Details;
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Apply"; this.columnHeader1.Text = "Apply";
this.columnHeader1.Width = 53; this.columnHeader1.Width = 53;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "What to fix"; this.columnHeader2.Text = "What to fix";
this.columnHeader2.Width = 99; this.columnHeader2.Width = 99;
// //
// columnHeader3 // columnHeader3
// //
this.columnHeader3.Text = "Example"; this.columnHeader3.Text = "Example";
this.columnHeader3.Width = 158; this.columnHeader3.Width = 158;
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox2.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.groupBox2.Controls.Add(this.tabControl1); this.groupBox2.Controls.Add(this.tabControl1);
this.groupBox2.Location = new System.Drawing.Point(12, 12); this.groupBox2.Location = new System.Drawing.Point(12, 12);
@ -223,11 +223,11 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBox2.TabIndex = 10; this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "Step 2/2 - Verify fixes"; this.groupBox2.Text = "Step 2/2 - Verify fixes";
// //
// tabControl1 // tabControl1
// //
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.tabControl1.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.tabControl1.Controls.Add(this.tabPageFixes); this.tabControl1.Controls.Add(this.tabPageFixes);
this.tabControl1.Controls.Add(this.tabPageLog); this.tabControl1.Controls.Add(this.tabPageLog);
@ -236,9 +236,9 @@ namespace Nikse.SubtitleEdit.Forms
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(810, 516); this.tabControl1.Size = new System.Drawing.Size(810, 516);
this.tabControl1.TabIndex = 7; this.tabControl1.TabIndex = 7;
// //
// tabPageFixes // tabPageFixes
// //
this.tabPageFixes.Controls.Add(this.splitContainerStep2); this.tabPageFixes.Controls.Add(this.splitContainerStep2);
this.tabPageFixes.Location = new System.Drawing.Point(4, 22); this.tabPageFixes.Location = new System.Drawing.Point(4, 22);
this.tabPageFixes.Name = "tabPageFixes"; this.tabPageFixes.Name = "tabPageFixes";
@ -247,34 +247,34 @@ namespace Nikse.SubtitleEdit.Forms
this.tabPageFixes.TabIndex = 1; this.tabPageFixes.TabIndex = 1;
this.tabPageFixes.Text = "Fixes"; this.tabPageFixes.Text = "Fixes";
this.tabPageFixes.UseVisualStyleBackColor = true; this.tabPageFixes.UseVisualStyleBackColor = true;
// //
// splitContainerStep2 // splitContainerStep2
// //
this.splitContainerStep2.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerStep2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainerStep2.Location = new System.Drawing.Point(3, 3); this.splitContainerStep2.Location = new System.Drawing.Point(3, 3);
this.splitContainerStep2.Name = "splitContainerStep2"; this.splitContainerStep2.Name = "splitContainerStep2";
this.splitContainerStep2.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splitContainerStep2.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
// splitContainerStep2.Panel1 // splitContainerStep2.Panel1
// //
this.splitContainerStep2.Panel1.Controls.Add(this.listViewFixes); this.splitContainerStep2.Panel1.Controls.Add(this.listViewFixes);
this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesApply); this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesApply);
this.splitContainerStep2.Panel1.Controls.Add(this.buttonRefreshFixes); this.splitContainerStep2.Panel1.Controls.Add(this.buttonRefreshFixes);
this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesSelectAll); this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesSelectAll);
this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesInverse); this.splitContainerStep2.Panel1.Controls.Add(this.buttonFixesInverse);
// //
// splitContainerStep2.Panel2 // splitContainerStep2.Panel2
// //
this.splitContainerStep2.Panel2.Controls.Add(this.subtitleListView1); this.splitContainerStep2.Panel2.Controls.Add(this.subtitleListView1);
this.splitContainerStep2.Panel2.Controls.Add(this.groupBoxEditPanel); this.splitContainerStep2.Panel2.Controls.Add(this.groupBoxEditPanel);
this.splitContainerStep2.Size = new System.Drawing.Size(796, 484); this.splitContainerStep2.Size = new System.Drawing.Size(796, 484);
this.splitContainerStep2.SplitterDistance = 225; this.splitContainerStep2.SplitterDistance = 225;
this.splitContainerStep2.TabIndex = 112; this.splitContainerStep2.TabIndex = 112;
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewFixes.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.listViewFixes.CheckBoxes = true; this.listViewFixes.CheckBoxes = true;
this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -293,34 +293,34 @@ namespace Nikse.SubtitleEdit.Forms
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
this.listViewFixes.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ListViewFixesColumnClick); this.listViewFixes.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ListViewFixesColumnClick);
this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.ListViewFixesSelectedIndexChanged); this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.ListViewFixesSelectedIndexChanged);
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 50; this.columnHeader4.Width = 50;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 61; this.columnHeader5.Width = 61;
// //
// columnHeader6 // columnHeader6
// //
this.columnHeader6.Text = "Function"; this.columnHeader6.Text = "Function";
this.columnHeader6.Width = 134; this.columnHeader6.Width = 134;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "Before"; this.columnHeader7.Text = "Before";
this.columnHeader7.Width = 281; this.columnHeader7.Width = 281;
// //
// columnHeader8 // columnHeader8
// //
this.columnHeader8.Text = "After"; this.columnHeader8.Text = "After";
this.columnHeader8.Width = 244; this.columnHeader8.Width = 244;
// //
// buttonFixesApply // buttonFixesApply
// //
this.buttonFixesApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonFixesApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonFixesApply.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonFixesApply.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFixesApply.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonFixesApply.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -331,9 +331,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFixesApply.Text = "Apply &selected fixes"; this.buttonFixesApply.Text = "Apply &selected fixes";
this.buttonFixesApply.UseVisualStyleBackColor = true; this.buttonFixesApply.UseVisualStyleBackColor = true;
this.buttonFixesApply.Click += new System.EventHandler(this.ButtonFixesApplyClick); this.buttonFixesApply.Click += new System.EventHandler(this.ButtonFixesApplyClick);
// //
// buttonRefreshFixes // buttonRefreshFixes
// //
this.buttonRefreshFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonRefreshFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonRefreshFixes.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonRefreshFixes.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonRefreshFixes.Location = new System.Drawing.Point(457, 200); this.buttonRefreshFixes.Location = new System.Drawing.Point(457, 200);
@ -343,9 +343,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonRefreshFixes.Text = "&Refresh available fixes"; this.buttonRefreshFixes.Text = "&Refresh available fixes";
this.buttonRefreshFixes.UseVisualStyleBackColor = true; this.buttonRefreshFixes.UseVisualStyleBackColor = true;
this.buttonRefreshFixes.Click += new System.EventHandler(this.ButtonRefreshFixesClick); this.buttonRefreshFixes.Click += new System.EventHandler(this.ButtonRefreshFixesClick);
// //
// buttonFixesSelectAll // buttonFixesSelectAll
// //
this.buttonFixesSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonFixesSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonFixesSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonFixesSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonFixesSelectAll.Location = new System.Drawing.Point(3, 200); this.buttonFixesSelectAll.Location = new System.Drawing.Point(3, 200);
@ -355,9 +355,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFixesSelectAll.Text = "Select &all"; this.buttonFixesSelectAll.Text = "Select &all";
this.buttonFixesSelectAll.UseVisualStyleBackColor = true; this.buttonFixesSelectAll.UseVisualStyleBackColor = true;
this.buttonFixesSelectAll.Click += new System.EventHandler(this.ButtonFixesSelectAllClick); this.buttonFixesSelectAll.Click += new System.EventHandler(this.ButtonFixesSelectAllClick);
// //
// buttonFixesInverse // buttonFixesInverse
// //
this.buttonFixesInverse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonFixesInverse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonFixesInverse.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonFixesInverse.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonFixesInverse.Location = new System.Drawing.Point(84, 200); this.buttonFixesInverse.Location = new System.Drawing.Point(84, 200);
@ -367,11 +367,11 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFixesInverse.Text = "&Inverse selection"; this.buttonFixesInverse.Text = "&Inverse selection";
this.buttonFixesInverse.UseVisualStyleBackColor = true; this.buttonFixesInverse.UseVisualStyleBackColor = true;
this.buttonFixesInverse.Click += new System.EventHandler(this.ButtonFixesInverseClick); this.buttonFixesInverse.Click += new System.EventHandler(this.ButtonFixesInverseClick);
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.subtitleListView1.ContextMenuStrip = this.contextMenuStripListview; this.subtitleListView1.ContextMenuStrip = this.contextMenuStripListview;
this.subtitleListView1.DisplayExtraFromExtra = false; this.subtitleListView1.DisplayExtraFromExtra = false;
@ -387,9 +387,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged); this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged);
// //
// contextMenuStripListview // contextMenuStripListview
// //
this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripMenuItemDelete, this.toolStripMenuItemDelete,
this.toolStripSeparator1, this.toolStripSeparator1,
@ -397,29 +397,29 @@ namespace Nikse.SubtitleEdit.Forms
this.contextMenuStripListview.Name = "contextMenuStripListview"; this.contextMenuStripListview.Name = "contextMenuStripListview";
this.contextMenuStripListview.Size = new System.Drawing.Size(182, 54); this.contextMenuStripListview.Size = new System.Drawing.Size(182, 54);
this.contextMenuStripListview.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripListviewOpening); this.contextMenuStripListview.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripListviewOpening);
// //
// toolStripMenuItemDelete // toolStripMenuItemDelete
// //
this.toolStripMenuItemDelete.Name = "toolStripMenuItemDelete"; this.toolStripMenuItemDelete.Name = "toolStripMenuItemDelete";
this.toolStripMenuItemDelete.Size = new System.Drawing.Size(181, 22); this.toolStripMenuItemDelete.Size = new System.Drawing.Size(181, 22);
this.toolStripMenuItemDelete.Text = "Delete"; this.toolStripMenuItemDelete.Text = "Delete";
this.toolStripMenuItemDelete.Click += new System.EventHandler(this.ToolStripMenuItemDeleteClick); this.toolStripMenuItemDelete.Click += new System.EventHandler(this.ToolStripMenuItemDeleteClick);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(178, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(178, 6);
// //
// mergeSelectedLinesToolStripMenuItem // mergeSelectedLinesToolStripMenuItem
// //
this.mergeSelectedLinesToolStripMenuItem.Name = "mergeSelectedLinesToolStripMenuItem"; this.mergeSelectedLinesToolStripMenuItem.Name = "mergeSelectedLinesToolStripMenuItem";
this.mergeSelectedLinesToolStripMenuItem.Size = new System.Drawing.Size(181, 22); this.mergeSelectedLinesToolStripMenuItem.Size = new System.Drawing.Size(181, 22);
this.mergeSelectedLinesToolStripMenuItem.Text = "Merge selected lines"; this.mergeSelectedLinesToolStripMenuItem.Text = "Merge selected lines";
this.mergeSelectedLinesToolStripMenuItem.Click += new System.EventHandler(this.MergeSelectedLinesToolStripMenuItemClick); this.mergeSelectedLinesToolStripMenuItem.Click += new System.EventHandler(this.MergeSelectedLinesToolStripMenuItemClick);
// //
// groupBoxEditPanel // groupBoxEditPanel
// //
this.groupBoxEditPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.groupBoxEditPanel.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.groupBoxEditPanel.Controls.Add(this.buttonSplitLine); this.groupBoxEditPanel.Controls.Add(this.buttonSplitLine);
this.groupBoxEditPanel.Controls.Add(this.labelSingleLine); this.groupBoxEditPanel.Controls.Add(this.labelSingleLine);
@ -439,9 +439,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxEditPanel.Size = new System.Drawing.Size(780, 85); this.groupBoxEditPanel.Size = new System.Drawing.Size(780, 85);
this.groupBoxEditPanel.TabIndex = 111; this.groupBoxEditPanel.TabIndex = 111;
this.groupBoxEditPanel.TabStop = false; this.groupBoxEditPanel.TabStop = false;
// //
// buttonSplitLine // buttonSplitLine
// //
this.buttonSplitLine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonSplitLine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSplitLine.ForeColor = System.Drawing.Color.Red; this.buttonSplitLine.ForeColor = System.Drawing.Color.Red;
this.buttonSplitLine.Location = new System.Drawing.Point(627, 60); this.buttonSplitLine.Location = new System.Drawing.Point(627, 60);
@ -451,18 +451,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonSplitLine.Text = "Split line"; this.buttonSplitLine.Text = "Split line";
this.buttonSplitLine.UseVisualStyleBackColor = true; this.buttonSplitLine.UseVisualStyleBackColor = true;
this.buttonSplitLine.Click += new System.EventHandler(this.buttonSplitLine_Click); this.buttonSplitLine.Click += new System.EventHandler(this.buttonSplitLine_Click);
// //
// labelSingleLine // labelSingleLine
// //
this.labelSingleLine.AutoSize = true; this.labelSingleLine.AutoSize = true;
this.labelSingleLine.Location = new System.Drawing.Point(296, 65); this.labelSingleLine.Location = new System.Drawing.Point(296, 65);
this.labelSingleLine.Name = "labelSingleLine"; this.labelSingleLine.Name = "labelSingleLine";
this.labelSingleLine.Size = new System.Drawing.Size(23, 13); this.labelSingleLine.Size = new System.Drawing.Size(23, 13);
this.labelSingleLine.TabIndex = 123; this.labelSingleLine.TabIndex = 123;
this.labelSingleLine.Text = "1/1"; this.labelSingleLine.Text = "1/1";
// //
// buttonUnBreak // buttonUnBreak
// //
this.buttonUnBreak.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonUnBreak.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUnBreak.Location = new System.Drawing.Point(627, 36); this.buttonUnBreak.Location = new System.Drawing.Point(627, 36);
this.buttonUnBreak.Name = "buttonUnBreak"; this.buttonUnBreak.Name = "buttonUnBreak";
@ -471,9 +471,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonUnBreak.Text = "&Unbreak"; this.buttonUnBreak.Text = "&Unbreak";
this.buttonUnBreak.UseVisualStyleBackColor = true; this.buttonUnBreak.UseVisualStyleBackColor = true;
this.buttonUnBreak.Click += new System.EventHandler(this.ButtonUnBreakClick); this.buttonUnBreak.Click += new System.EventHandler(this.ButtonUnBreakClick);
// //
// buttonAutoBreak // buttonAutoBreak
// //
this.buttonAutoBreak.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonAutoBreak.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAutoBreak.Location = new System.Drawing.Point(627, 12); this.buttonAutoBreak.Location = new System.Drawing.Point(627, 12);
this.buttonAutoBreak.Name = "buttonAutoBreak"; this.buttonAutoBreak.Name = "buttonAutoBreak";
@ -482,9 +482,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonAutoBreak.Text = "Auto &br"; this.buttonAutoBreak.Text = "Auto &br";
this.buttonAutoBreak.UseVisualStyleBackColor = true; this.buttonAutoBreak.UseVisualStyleBackColor = true;
this.buttonAutoBreak.Click += new System.EventHandler(this.ButtonAutoBreakClick); this.buttonAutoBreak.Click += new System.EventHandler(this.ButtonAutoBreakClick);
// //
// labelStartTimeWarning // labelStartTimeWarning
// //
this.labelStartTimeWarning.AutoSize = true; this.labelStartTimeWarning.AutoSize = true;
this.labelStartTimeWarning.ForeColor = System.Drawing.Color.Red; this.labelStartTimeWarning.ForeColor = System.Drawing.Color.Red;
this.labelStartTimeWarning.Location = new System.Drawing.Point(6, 51); this.labelStartTimeWarning.Location = new System.Drawing.Point(6, 51);
@ -492,9 +492,9 @@ namespace Nikse.SubtitleEdit.Forms
this.labelStartTimeWarning.Size = new System.Drawing.Size(115, 13); this.labelStartTimeWarning.Size = new System.Drawing.Size(115, 13);
this.labelStartTimeWarning.TabIndex = 32; this.labelStartTimeWarning.TabIndex = 32;
this.labelStartTimeWarning.Text = "labelStartTimeWarning"; this.labelStartTimeWarning.Text = "labelStartTimeWarning";
// //
// labelDurationWarning // labelDurationWarning
// //
this.labelDurationWarning.AutoSize = true; this.labelDurationWarning.AutoSize = true;
this.labelDurationWarning.ForeColor = System.Drawing.Color.Red; this.labelDurationWarning.ForeColor = System.Drawing.Color.Red;
this.labelDurationWarning.Location = new System.Drawing.Point(57, 64); this.labelDurationWarning.Location = new System.Drawing.Point(57, 64);
@ -502,9 +502,9 @@ namespace Nikse.SubtitleEdit.Forms
this.labelDurationWarning.Size = new System.Drawing.Size(110, 13); this.labelDurationWarning.Size = new System.Drawing.Size(110, 13);
this.labelDurationWarning.TabIndex = 31; this.labelDurationWarning.TabIndex = 31;
this.labelDurationWarning.Text = "labelDurationWarning"; this.labelDurationWarning.Text = "labelDurationWarning";
// //
// timeUpDownStartTime // timeUpDownStartTime
// //
this.timeUpDownStartTime.AutoSize = true; this.timeUpDownStartTime.AutoSize = true;
this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.timeUpDownStartTime.Location = new System.Drawing.Point(8, 27); this.timeUpDownStartTime.Location = new System.Drawing.Point(8, 27);
@ -512,9 +512,9 @@ namespace Nikse.SubtitleEdit.Forms
this.timeUpDownStartTime.Name = "timeUpDownStartTime"; this.timeUpDownStartTime.Name = "timeUpDownStartTime";
this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25); this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25);
this.timeUpDownStartTime.TabIndex = 112; this.timeUpDownStartTime.TabIndex = 112;
// //
// numericUpDownDuration // numericUpDownDuration
// //
this.numericUpDownDuration.DecimalPlaces = 3; this.numericUpDownDuration.DecimalPlaces = 3;
this.numericUpDownDuration.Increment = new decimal(new int[] { this.numericUpDownDuration.Increment = new decimal(new int[] {
1, 1,
@ -536,27 +536,27 @@ namespace Nikse.SubtitleEdit.Forms
this.numericUpDownDuration.Size = new System.Drawing.Size(56, 21); this.numericUpDownDuration.Size = new System.Drawing.Size(56, 21);
this.numericUpDownDuration.TabIndex = 114; this.numericUpDownDuration.TabIndex = 114;
this.numericUpDownDuration.ValueChanged += new System.EventHandler(this.NumericUpDownDurationValueChanged); this.numericUpDownDuration.ValueChanged += new System.EventHandler(this.NumericUpDownDurationValueChanged);
// //
// labelDuration // labelDuration
// //
this.labelDuration.AutoSize = true; this.labelDuration.AutoSize = true;
this.labelDuration.Location = new System.Drawing.Point(97, 12); this.labelDuration.Location = new System.Drawing.Point(97, 12);
this.labelDuration.Name = "labelDuration"; this.labelDuration.Name = "labelDuration";
this.labelDuration.Size = new System.Drawing.Size(48, 13); this.labelDuration.Size = new System.Drawing.Size(48, 13);
this.labelDuration.TabIndex = 28; this.labelDuration.TabIndex = 28;
this.labelDuration.Text = "Duration"; this.labelDuration.Text = "Duration";
// //
// labelStartTime // labelStartTime
// //
this.labelStartTime.AutoSize = true; this.labelStartTime.AutoSize = true;
this.labelStartTime.Location = new System.Drawing.Point(6, 12); this.labelStartTime.Location = new System.Drawing.Point(6, 12);
this.labelStartTime.Name = "labelStartTime"; this.labelStartTime.Name = "labelStartTime";
this.labelStartTime.Size = new System.Drawing.Size(54, 13); this.labelStartTime.Size = new System.Drawing.Size(54, 13);
this.labelStartTime.TabIndex = 27; this.labelStartTime.TabIndex = 27;
this.labelStartTime.Text = "Start time"; this.labelStartTime.Text = "Start time";
// //
// labelTextLineTotal // labelTextLineTotal
// //
this.labelTextLineTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelTextLineTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelTextLineTotal.Location = new System.Drawing.Point(444, 65); this.labelTextLineTotal.Location = new System.Drawing.Point(444, 65);
this.labelTextLineTotal.Name = "labelTextLineTotal"; this.labelTextLineTotal.Name = "labelTextLineTotal";
@ -564,19 +564,19 @@ namespace Nikse.SubtitleEdit.Forms
this.labelTextLineTotal.TabIndex = 26; this.labelTextLineTotal.TabIndex = 26;
this.labelTextLineTotal.Text = "labelTextLineTotal"; this.labelTextLineTotal.Text = "labelTextLineTotal";
this.labelTextLineTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelTextLineTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// labelTextLineLengths // labelTextLineLengths
// //
this.labelTextLineLengths.AutoSize = true; this.labelTextLineLengths.AutoSize = true;
this.labelTextLineLengths.Location = new System.Drawing.Point(191, 65); this.labelTextLineLengths.Location = new System.Drawing.Point(191, 65);
this.labelTextLineLengths.Name = "labelTextLineLengths"; this.labelTextLineLengths.Name = "labelTextLineLengths";
this.labelTextLineLengths.Size = new System.Drawing.Size(108, 13); this.labelTextLineLengths.Size = new System.Drawing.Size(108, 13);
this.labelTextLineLengths.TabIndex = 25; this.labelTextLineLengths.TabIndex = 25;
this.labelTextLineLengths.Text = "labelTextLineLengths"; this.labelTextLineLengths.Text = "labelTextLineLengths";
// //
// textBoxListViewText // textBoxListViewText
// //
this.textBoxListViewText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.textBoxListViewText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.textBoxListViewText.HideSelection = false; this.textBoxListViewText.HideSelection = false;
this.textBoxListViewText.Location = new System.Drawing.Point(194, 9); this.textBoxListViewText.Location = new System.Drawing.Point(194, 9);
@ -586,9 +586,9 @@ namespace Nikse.SubtitleEdit.Forms
this.textBoxListViewText.TabIndex = 118; this.textBoxListViewText.TabIndex = 118;
this.textBoxListViewText.TextChanged += new System.EventHandler(this.TextBoxListViewTextTextChanged); this.textBoxListViewText.TextChanged += new System.EventHandler(this.TextBoxListViewTextTextChanged);
this.textBoxListViewText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxListViewText_KeyDown); this.textBoxListViewText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxListViewText_KeyDown);
// //
// tabPageLog // tabPageLog
// //
this.tabPageLog.Controls.Add(this.textBoxFixedIssues); this.tabPageLog.Controls.Add(this.textBoxFixedIssues);
this.tabPageLog.Location = new System.Drawing.Point(4, 22); this.tabPageLog.Location = new System.Drawing.Point(4, 22);
this.tabPageLog.Name = "tabPageLog"; this.tabPageLog.Name = "tabPageLog";
@ -596,11 +596,11 @@ namespace Nikse.SubtitleEdit.Forms
this.tabPageLog.TabIndex = 2; this.tabPageLog.TabIndex = 2;
this.tabPageLog.Text = "Log"; this.tabPageLog.Text = "Log";
this.tabPageLog.UseVisualStyleBackColor = true; this.tabPageLog.UseVisualStyleBackColor = true;
// //
// textBoxFixedIssues // textBoxFixedIssues
// //
this.textBoxFixedIssues.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.textBoxFixedIssues.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.textBoxFixedIssues.Location = new System.Drawing.Point(3, 3); this.textBoxFixedIssues.Location = new System.Drawing.Point(3, 3);
this.textBoxFixedIssues.MaxLength = 65767; this.textBoxFixedIssues.MaxLength = 65767;
@ -611,9 +611,9 @@ namespace Nikse.SubtitleEdit.Forms
this.textBoxFixedIssues.Size = new System.Drawing.Size(796, 466); this.textBoxFixedIssues.Size = new System.Drawing.Size(796, 466);
this.textBoxFixedIssues.TabIndex = 5; this.textBoxFixedIssues.TabIndex = 5;
this.textBoxFixedIssues.WordWrap = false; this.textBoxFixedIssues.WordWrap = false;
// //
// labelNumberOfImportantLogMessages // labelNumberOfImportantLogMessages
// //
this.labelNumberOfImportantLogMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelNumberOfImportantLogMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelNumberOfImportantLogMessages.AutoSize = true; this.labelNumberOfImportantLogMessages.AutoSize = true;
this.labelNumberOfImportantLogMessages.ForeColor = System.Drawing.Color.Red; this.labelNumberOfImportantLogMessages.ForeColor = System.Drawing.Color.Red;
@ -622,9 +622,9 @@ namespace Nikse.SubtitleEdit.Forms
this.labelNumberOfImportantLogMessages.Size = new System.Drawing.Size(190, 13); this.labelNumberOfImportantLogMessages.Size = new System.Drawing.Size(190, 13);
this.labelNumberOfImportantLogMessages.TabIndex = 11; this.labelNumberOfImportantLogMessages.TabIndex = 11;
this.labelNumberOfImportantLogMessages.Text = "labelNumberOfImportantLogMessages"; this.labelNumberOfImportantLogMessages.Text = "labelNumberOfImportantLogMessages";
// //
// FixCommonErrors // FixCommonErrors
// //
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.CancelButton = this.buttonCancel; this.CancelButton = this.buttonCancel;

View File

@ -98,7 +98,7 @@ namespace Nikse.SubtitleEdit.Forms
public int ColumnNumber { get; set; } public int ColumnNumber { get; set; }
public bool IsNumber { get; set; } public bool IsNumber { get; set; }
public bool Descending { get; set; } public bool Descending { get; set; }
} }
Subtitle _subtitle; Subtitle _subtitle;
Subtitle _originalSubtitle; Subtitle _originalSubtitle;
@ -142,7 +142,7 @@ namespace Nikse.SubtitleEdit.Forms
_fixActions.Add(new FixItem(_language.RemoveLineBreaksAll, string.Empty, delegate { FixShortLinesAll(); }, ce.MergeShortLinesAllTicked)); _fixActions.Add(new FixItem(_language.RemoveLineBreaksAll, string.Empty, delegate { FixShortLinesAll(); }, ce.MergeShortLinesAllTicked));
_fixActions.Add(new FixItem(_language.FixUppercaseIInsindeLowercaseWords, _language.FixUppercaseIInsindeLowercaseWordsExample, delegate { FixUppercaseIInsideWords(); }, ce.UppercaseIInsideLowercaseWordTicked)); _fixActions.Add(new FixItem(_language.FixUppercaseIInsindeLowercaseWords, _language.FixUppercaseIInsindeLowercaseWordsExample, delegate { FixUppercaseIInsideWords(); }, ce.UppercaseIInsideLowercaseWordTicked));
_fixActions.Add(new FixItem(_language.FixDoubleApostrophes, string.Empty, delegate { FixDoubleApostrophes(); }, ce.DoubleApostropheToQuoteTicked)); _fixActions.Add(new FixItem(_language.FixDoubleApostrophes, string.Empty, delegate { FixDoubleApostrophes(); }, ce.DoubleApostropheToQuoteTicked));
_fixActions.Add(new FixItem(_language.FixMusicNotation, _language.FixMusicNotationExample, delegate { FixMusicNotation(); }, ce.FixMusicNotationTicked)); _fixActions.Add(new FixItem(_language.FixMusicNotation, _language.FixMusicNotationExample, delegate { FixMusicNotation(); }, ce.FixMusicNotationTicked));
_fixActions.Add(new FixItem(_language.AddPeriods, string.Empty, delegate { FixMissingPeriodsAtEndOfLine(); }, ce.AddPeriodAfterParagraphTicked)); _fixActions.Add(new FixItem(_language.AddPeriods, string.Empty, delegate { FixMissingPeriodsAtEndOfLine(); }, ce.AddPeriodAfterParagraphTicked));
_fixActions.Add(new FixItem(_language.StartWithUppercaseLetterAfterParagraph, string.Empty, delegate { FixStartWithUppercaseLetterAfterParagraph(); }, ce.StartWithUppercaseLetterAfterParagraphTicked)); _fixActions.Add(new FixItem(_language.StartWithUppercaseLetterAfterParagraph, string.Empty, delegate { FixStartWithUppercaseLetterAfterParagraph(); }, ce.StartWithUppercaseLetterAfterParagraphTicked));
_fixActions.Add(new FixItem(_language.StartWithUppercaseLetterAfterPeriodInsideParagraph, string.Empty, delegate { FixStartWithUppercaseLetterAfterPeriodInsideParagraph(); }, ce.StartWithUppercaseLetterAfterPeriodInsideParagraphTicked)); _fixActions.Add(new FixItem(_language.StartWithUppercaseLetterAfterPeriodInsideParagraph, string.Empty, delegate { FixStartWithUppercaseLetterAfterPeriodInsideParagraph(); }, ce.StartWithUppercaseLetterAfterPeriodInsideParagraphTicked));
@ -156,9 +156,9 @@ namespace Nikse.SubtitleEdit.Forms
_fixActions.Add(new FixItem(_language.FixLowercaseIToUppercaseI, _language.FixLowercaseIToUppercaseIExample, delegate { FixAloneLowercaseIToUppercaseI(); }, ce.AloneLowercaseIToUppercaseIEnglishTicked)); _fixActions.Add(new FixItem(_language.FixLowercaseIToUppercaseI, _language.FixLowercaseIToUppercaseIExample, delegate { FixAloneLowercaseIToUppercaseI(); }, ce.AloneLowercaseIToUppercaseIEnglishTicked));
_fixActions.Add(new FixItem(_language.FixCommonOcrErrors, "D0n't -> Don't", delegate { FixOcrErrorsViaReplaceList(threeLetterISOLanguageName); }, ce.FixOcrErrorsViaReplaceListTicked)); _fixActions.Add(new FixItem(_language.FixCommonOcrErrors, "D0n't -> Don't", delegate { FixOcrErrorsViaReplaceList(threeLetterISOLanguageName); }, ce.FixOcrErrorsViaReplaceListTicked));
_fixActions.Add(new FixItem(_language.RemoveSpaceBetweenNumber, "1 100 -> 1100", delegate { RemoveSpaceBetweenNumbers(); }, ce.RemoveSpaceBetweenNumberTicked)); _fixActions.Add(new FixItem(_language.RemoveSpaceBetweenNumber, "1 100 -> 1100", delegate { RemoveSpaceBetweenNumbers(); }, ce.RemoveSpaceBetweenNumberTicked));
_fixActions.Add(new FixItem(_language.FixDialogsOnOneLine, "Hi John! - Hi Ida! > Hi John!" + Configuration.Settings.General.ListViewLineSeparatorString + "- Hi Ida!", delegate { DialogsOnOneLine(); }, ce.FixDialogsOnOneLineTicked)); _fixActions.Add(new FixItem(_language.FixDialogsOnOneLine, "Hi John! - Hi Ida! > Hi John!" + Configuration.Settings.General.ListViewLineSeparatorString + "- Hi Ida!", delegate { DialogsOnOneLine(); }, ce.FixDialogsOnOneLineTicked));
if (_autoDetectGoogleLanguage == "da" || subtitle.Paragraphs.Count < 25) // && Thread.CurrentThread.CurrentCulture.Name == "da-DK" && if (_autoDetectGoogleLanguage == "da" || subtitle.Paragraphs.Count < 25) // && Thread.CurrentThread.CurrentCulture.Name == "da-DK" &&
{ {
_danishLetterIIndex = _fixActions.Count; _danishLetterIIndex = _fixActions.Count;
_fixActions.Add(new FixItem(_language.FixDanishLetterI, "Jeg synes i er søde. -> Jeg synes I er søde.", delegate { FixDanishLetterI(); }, ce.DanishLetterITicked)); _fixActions.Add(new FixItem(_language.FixDanishLetterI, "Jeg synes i er søde. -> Jeg synes I er søde.", delegate { FixDanishLetterI(); }, ce.DanishLetterITicked));
@ -292,7 +292,7 @@ namespace Nikse.SubtitleEdit.Forms
public bool AllowFix(int lineNumber, string action) public bool AllowFix(int lineNumber, string action)
{ {
//if (!buttonBack.Enabled) //if (!buttonBack.Enabled)
if (_onlyListFixes) if (_onlyListFixes)
return true; return true;
@ -324,7 +324,7 @@ namespace Nikse.SubtitleEdit.Forms
public void LogStatus(string sender, string message) public void LogStatus(string sender, string message)
{ {
if (!string.IsNullOrEmpty(message)) if (!string.IsNullOrEmpty(message))
{ {
message += Environment.NewLine; message += Environment.NewLine;
if (_onlyListFixes) if (_onlyListFixes)
@ -353,7 +353,7 @@ namespace Nikse.SubtitleEdit.Forms
if (p.Text.Trim().Length == 0) if (p.Text.Trim().Length == 0)
{ {
} }
else else
{ {
string text = p.Text.Trim(' '); string text = p.Text.Trim(' ');
if (text.StartsWith(Environment.NewLine)) if (text.StartsWith(Environment.NewLine))
@ -466,7 +466,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
// overlapping display time // overlapping display time
for (int i = 1; i < _subtitle.Paragraphs.Count; i++ ) for (int i = 1; i < _subtitle.Paragraphs.Count; i++ )
{ {
@ -525,7 +525,7 @@ namespace Nikse.SubtitleEdit.Forms
p.Text = "- " + p.Text.TrimStart(); p.Text = "- " + p.Text.TrimStart();
prev.Text = prev.Text.Trim() + Environment.NewLine + p.Text; prev.Text = prev.Text.Trim() + Environment.NewLine + p.Text;
p.Text = string.Empty; p.Text = string.Empty;
_totalFixes++; _totalFixes++;
noOfOverlappingDisplayTimesFixed++; noOfOverlappingDisplayTimesFixed++;
AddFixToListView(p, i + 1, fixAction, oldCurrent, p.ToString()); AddFixToListView(p, i + 1, fixAction, oldCurrent, p.ToString());
@ -541,7 +541,7 @@ namespace Nikse.SubtitleEdit.Forms
LogStatus(_language.FixOverlappingDisplayTimes, string.Format(_language.UnableToFixTextXY, i + 1, Environment.NewLine + prev.Number + " " + prev + Environment.NewLine + p.Number + " " + p), true); LogStatus(_language.FixOverlappingDisplayTimes, string.Format(_language.UnableToFixTextXY, i + 1, Environment.NewLine + prev.Number + " " + prev + Environment.NewLine + p.Number + " " + p), true);
_totalErrors++; _totalErrors++;
} }
} }
} }
} }
@ -582,7 +582,7 @@ namespace Nikse.SubtitleEdit.Forms
if (noOfShortDisplayTimes > 0) if (noOfShortDisplayTimes > 0)
LogStatus(fixAction, string.Format(_language.XDisplayTimesProlonged, noOfShortDisplayTimes)); LogStatus(fixAction, string.Format(_language.XDisplayTimesProlonged, noOfShortDisplayTimes));
} }
public void FixInvalidItalicTags() public void FixInvalidItalicTags()
{ {
const string beginTag = "<i>"; const string beginTag = "<i>";
@ -688,7 +688,7 @@ namespace Nikse.SubtitleEdit.Forms
string s = Utilities.RemoveHtmlTags(p.Text); string s = Utilities.RemoveHtmlTags(p.Text);
if (s.Length < Configuration.Settings.Tools.MergeLinesShorterThan && p.Text.Contains(Environment.NewLine)) if (s.Length < Configuration.Settings.Tools.MergeLinesShorterThan && p.Text.Contains(Environment.NewLine))
{ {
s = s.TrimEnd().TrimEnd(".?!:;".ToCharArray()); s = s.TrimEnd().TrimEnd(".?!:;".ToCharArray());
s = s.TrimStart('-'); s = s.TrimStart('-');
if (!s.Contains(".") && if (!s.Contains(".") &&
!s.Contains("?") && !s.Contains("?") &&
@ -696,7 +696,7 @@ namespace Nikse.SubtitleEdit.Forms
!s.Contains(":") && !s.Contains(":") &&
!s.Contains(";") && !s.Contains(";") &&
!s.Contains("-") && !s.Contains("-") &&
p.Text != p.Text.ToUpper()) p.Text != p.Text.ToUpper())
{ {
if (AllowFix(i + 1, fixAction)) if (AllowFix(i + 1, fixAction))
{ {
@ -710,7 +710,7 @@ namespace Nikse.SubtitleEdit.Forms
AddFixToListView(p, i + 1, fixAction, oldCurrent, p.Text); AddFixToListView(p, i + 1, fixAction, oldCurrent, p.Text);
} }
} }
} }
} }
if (noOfShortLines > 0) if (noOfShortLines > 0)
LogStatus(_language.RemoveLineBreaks, string.Format(_language.XLinesUnbreaked, noOfShortLines)); LogStatus(_language.RemoveLineBreaks, string.Format(_language.XLinesUnbreaked, noOfShortLines));
@ -946,7 +946,7 @@ namespace Nikse.SubtitleEdit.Forms
Regex rePeriod = new Regex(@"[a-z][.][a-zA-Z]", RegexOptions.Compiled); Regex rePeriod = new Regex(@"[a-z][.][a-zA-Z]", RegexOptions.Compiled);
Regex reQuestionMark = new Regex(@"[^\s\d]\?[a-zA-Z]", RegexOptions.Compiled); Regex reQuestionMark = new Regex(@"[^\s\d]\?[a-zA-Z]", RegexOptions.Compiled);
Regex reExclamation = new Regex(@"[^\s\d]\![a-zA-Z]", RegexOptions.Compiled); Regex reExclamation = new Regex(@"[^\s\d]\![a-zA-Z]", RegexOptions.Compiled);
Regex reColon = new Regex(@"[^\s\d]\:[a-zA-Z]", RegexOptions.Compiled); Regex reColon = new Regex(@"[^\s\d]\:[a-zA-Z]", RegexOptions.Compiled);
Regex urlCom = new Regex(@"\w\.com\b", RegexOptions.Compiled); Regex urlCom = new Regex(@"\w\.com\b", RegexOptions.Compiled);
Regex urlNet = new Regex(@"\w\.net\b", RegexOptions.Compiled); Regex urlNet = new Regex(@"\w\.net\b", RegexOptions.Compiled);
@ -1061,7 +1061,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
while (match.Success) while (match.Success)
{ {
if (!p.Text.ToLower().Contains("www.") && if (!p.Text.ToLower().Contains("www.") &&
!p.Text.ToLower().Contains("http://") && !p.Text.ToLower().Contains("http://") &&
!urlCom.IsMatch(p.Text) && !urlCom.IsMatch(p.Text) &&
!urlNet.IsMatch(p.Text) && !urlNet.IsMatch(p.Text) &&
@ -1175,7 +1175,7 @@ namespace Nikse.SubtitleEdit.Forms
Utilities.CountTagInText(next.Text, "\"") == 2) Utilities.CountTagInText(next.Text, "\"") == 2)
next = null; // seems to have valid quotes, so no spanning next = null; // seems to have valid quotes, so no spanning
} }
Paragraph prev = _subtitle.GetParagraphOrDefault(i - 1); Paragraph prev = _subtitle.GetParagraphOrDefault(i - 1);
if (prev != null) if (prev != null)
{ {
@ -1183,7 +1183,7 @@ namespace Nikse.SubtitleEdit.Forms
if (betweenMilliseconds > 1500) if (betweenMilliseconds > 1500)
prev = null; // cannot be quote spanning several lines of more than 1.5 seconds between lines! prev = null; // cannot be quote spanning several lines of more than 1.5 seconds between lines!
else if (prev.Text.Replace("<i>",string.Empty).TrimStart().TrimStart('-').TrimStart().StartsWith("\"") && else if (prev.Text.Replace("<i>",string.Empty).TrimStart().TrimStart('-').TrimStart().StartsWith("\"") &&
prev.Text.Replace("</i>", string.Empty).TrimEnd().EndsWith("\"") && prev.Text.Replace("</i>", string.Empty).TrimEnd().EndsWith("\"") &&
Utilities.CountTagInText(prev.Text, "\"") == 2) Utilities.CountTagInText(prev.Text, "\"") == 2)
prev = null; // seems to have valid quotes, so no spanning prev = null; // seems to have valid quotes, so no spanning
} }
@ -1432,7 +1432,7 @@ namespace Nikse.SubtitleEdit.Forms
else if (match.Index > 1 && ((st.StrippedText[match.Index - 1] == '\"') || (st.StrippedText[match.Index - 1] == '>') || (st.StrippedText[match.Index - 1] == '-'))) else if (match.Index > 1 && ((st.StrippedText[match.Index - 1] == '\"') || (st.StrippedText[match.Index - 1] == '>') || (st.StrippedText[match.Index - 1] == '-')))
{ {
} }
else else
{ {
string before = string.Empty; string before = string.Empty;
string after = string.Empty; string after = string.Empty;
@ -1477,7 +1477,7 @@ namespace Nikse.SubtitleEdit.Forms
if (uppercaseIsInsideLowercaseWords > 0) if (uppercaseIsInsideLowercaseWords > 0)
LogStatus(_language.FixUppercaseIInsindeLowercaseWords, string.Format(_language.XUppercaseIsFoundInsideLowercaseWords, uppercaseIsInsideLowercaseWords)); LogStatus(_language.FixUppercaseIInsindeLowercaseWords, string.Format(_language.XUppercaseIsFoundInsideLowercaseWords, uppercaseIsInsideLowercaseWords));
} }
public void FixDoubleApostrophes() public void FixDoubleApostrophes()
{ {
string fixAction = _language.FixDoubleApostrophes; string fixAction = _language.FixDoubleApostrophes;
@ -1727,7 +1727,7 @@ namespace Nikse.SubtitleEdit.Forms
if (!text.StartsWith("www.") && if (!text.StartsWith("www.") &&
firstLetter != firstLetter.ToUpper() && firstLetter != firstLetter.ToUpper() &&
!"0123456789".Contains(firstLetter) && !"0123456789".Contains(firstLetter) &&
prevText.Length > 1 && prevText.Length > 1 &&
!prevText.EndsWith("...") && !prevText.EndsWith("...") &&
(prevText.EndsWith(".") || (prevText.EndsWith(".") ||
@ -1787,7 +1787,7 @@ namespace Nikse.SubtitleEdit.Forms
firstLetter != firstLetter.ToUpper() && firstLetter != firstLetter.ToUpper() &&
!prevText.EndsWith("...") && !prevText.EndsWith("...") &&
prevText.Length > 1 && prevText.Length > 1 &&
!"0123456789".Contains(firstLetter) && !"0123456789".Contains(firstLetter) &&
(prevText.EndsWith(".") || (prevText.EndsWith(".") ||
prevText.EndsWith("!") || prevText.EndsWith("!") ||
prevText.EndsWith("?") || prevText.EndsWith("?") ||
@ -1862,7 +1862,7 @@ namespace Nikse.SubtitleEdit.Forms
while (start != -1 && start < text.Length) while (start != -1 && start < text.Length)
{ {
if (start > 0 && Utilities.IsInteger(text[start - 1].ToString())) if (start > 0 && Utilities.IsInteger(text[start - 1].ToString()))
{ {
// ignore periods after a number // ignore periods after a number
} }
else if (start + 4 < text.Length && text[start + 1] == ' ') else if (start + 4 < text.Length && text[start + 1] == ' ')
@ -1992,7 +1992,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
string[] parts = text.Replace(" - ", Environment.NewLine).Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries); string[] parts = text.Replace(" - ", Environment.NewLine).Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
if (parts.Length == 2) if (parts.Length == 2)
{ {
string part0 = Utilities.RemoveHtmlTags(parts[0]).Trim(); string part0 = Utilities.RemoveHtmlTags(parts[0]).Trim();
string part1 = Utilities.RemoveHtmlTags(parts[1]).Trim(); string part1 = Utilities.RemoveHtmlTags(parts[1]).Trim();
if (part0.Length > 1 && "!?.".Contains(part0.Substring(part0.Length - 1, 1)) && if (part0.Length > 1 && "!?.".Contains(part0.Substring(part0.Length - 1, 1)) &&
@ -2006,7 +2006,7 @@ namespace Nikse.SubtitleEdit.Forms
else else
text = "- " + text; text = "- " + text;
} }
} }
} }
if (oldText != text) if (oldText != text)
@ -2129,7 +2129,7 @@ namespace Nikse.SubtitleEdit.Forms
text.Contains(Environment.NewLine + "<I> -")) text.Contains(Environment.NewLine + "<I> -"))
{ {
Paragraph prev = _subtitle.GetParagraphOrDefault(i - 1); Paragraph prev = _subtitle.GetParagraphOrDefault(i - 1);
if (prev == null || !Utilities.RemoveHtmlTags(prev.Text).Trim().EndsWith("-")) if (prev == null || !Utilities.RemoveHtmlTags(prev.Text).Trim().EndsWith("-"))
{ {
if (Utilities.CountTagInText(text, "-") == 1) if (Utilities.CountTagInText(text, "-") == 1)
@ -2267,8 +2267,8 @@ namespace Nikse.SubtitleEdit.Forms
{ {
text = text.Substring(0, text.Length - 1) + "..."; text = text.Substring(0, text.Length - 1) + "...";
text = text.Replace(" ...", "..."); text = text.Replace(" ...", "...");
} }
if (text != oldText && AllowFix(i + 1, fixAction)) if (text != oldText && AllowFix(i + 1, fixAction))
{ {
p.Text = text; p.Text = text;
@ -2417,29 +2417,29 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@", i ved nok\b"), MyRegEx(@", i ved nok\b"),
MyRegEx(@", i ved, "), MyRegEx(@", i ved, "),
MyRegEx(@", i ved."), MyRegEx(@", i ved."),
MyRegEx(@", i ikke blev\b"), MyRegEx(@", i ikke blev\b"),
MyRegEx(@"\b i føler at\b"), MyRegEx(@"\b i føler at\b"),
MyRegEx(@"\badvarede i os\b"), MyRegEx(@"\badvarede i os\b"),
MyRegEx(@"\badvarede i dem\b"), MyRegEx(@"\badvarede i dem\b"),
MyRegEx(@"\bat i aldrig\b"), MyRegEx(@"\bat i aldrig\b"),
MyRegEx(@"\bat i alle bliver\b"), MyRegEx(@"\bat i alle bliver\b"),
MyRegEx(@"\bat i alle er\b"), MyRegEx(@"\bat i alle er\b"),
MyRegEx(@"\bat i alle forventer\b"), MyRegEx(@"\bat i alle forventer\b"),
MyRegEx(@"\bat i alle gør\b"), MyRegEx(@"\bat i alle gør\b"),
MyRegEx(@"\bat i alle har\b"), MyRegEx(@"\bat i alle har\b"),
MyRegEx(@"\bat i alle ved\b"), MyRegEx(@"\bat i alle ved\b"),
MyRegEx(@"\bat i alle vil\b"), MyRegEx(@"\bat i alle vil\b"),
MyRegEx(@"\bat i bare\b"), MyRegEx(@"\bat i bare\b"),
MyRegEx(@"\bat i bager\b"), MyRegEx(@"\bat i bager\b"),
MyRegEx(@"\bat i bruger\b"), MyRegEx(@"\bat i bruger\b"),
MyRegEx(@"\bat i dræber\b"), MyRegEx(@"\bat i dræber\b"),
MyRegEx(@"\bat i dræbte\b"), MyRegEx(@"\bat i dræbte\b"),
MyRegEx(@"\bat i fandt\b"), MyRegEx(@"\bat i fandt\b"),
MyRegEx(@"\bat i fik\b"), MyRegEx(@"\bat i fik\b"),
MyRegEx(@"\bat i finder\b"), MyRegEx(@"\bat i finder\b"),
MyRegEx(@"\bat i forstår\b"), MyRegEx(@"\bat i forstår\b"),
MyRegEx(@"\bat i får\b"), MyRegEx(@"\bat i får\b"),
MyRegEx(@"\b[Aa]t i hver især\b"), MyRegEx(@"\b[Aa]t i hver især\b"),
MyRegEx(@"\bAt i ikke\b"), MyRegEx(@"\bAt i ikke\b"),
MyRegEx(@"\bat i ikke\b"), MyRegEx(@"\bat i ikke\b"),
MyRegEx(@"\bat i kom\b"), MyRegEx(@"\bat i kom\b"),
@ -2456,9 +2456,9 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bat i også tror\b"), MyRegEx(@"\bat i også tror\b"),
MyRegEx(@"\bat i rev\b"), MyRegEx(@"\bat i rev\b"),
MyRegEx(@"\bat i river\b"), MyRegEx(@"\bat i river\b"),
MyRegEx(@"\bat i samarbejder\b"), MyRegEx(@"\bat i samarbejder\b"),
MyRegEx(@"\bat i snakkede\b"), MyRegEx(@"\bat i snakkede\b"),
MyRegEx(@"\bat i scorer\b"), MyRegEx(@"\bat i scorer\b"),
MyRegEx(@"\bat i siger\b"), MyRegEx(@"\bat i siger\b"),
MyRegEx(@"\bat i skal\b"), MyRegEx(@"\bat i skal\b"),
MyRegEx(@"\bat i skulle\b"), MyRegEx(@"\bat i skulle\b"),
@ -2470,119 +2470,119 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bat i to skal\b"), MyRegEx(@"\bat i to skal\b"),
MyRegEx(@"\bat i to gør\b"), MyRegEx(@"\bat i to gør\b"),
MyRegEx(@"\bat i to får\b"), MyRegEx(@"\bat i to får\b"),
MyRegEx(@"\bat i udnyttede\b"), MyRegEx(@"\bat i udnyttede\b"),
MyRegEx(@"\bat i udnytter\b"), MyRegEx(@"\bat i udnytter\b"),
MyRegEx(@"\bat i vil\b"), MyRegEx(@"\bat i vil\b"),
MyRegEx(@"\bat i ville\b"), MyRegEx(@"\bat i ville\b"),
MyRegEx(@"\bBehandler i mig\b"), MyRegEx(@"\bBehandler i mig\b"),
MyRegEx(@"\bbehandler i mig\b"), MyRegEx(@"\bbehandler i mig\b"),
MyRegEx(@"\bbliver i rige\b"), MyRegEx(@"\bbliver i rige\b"),
MyRegEx(@"\bbliver i ikke\b"), MyRegEx(@"\bbliver i ikke\b"),
MyRegEx(@"\bbliver i indkvarteret\b"), MyRegEx(@"\bbliver i indkvarteret\b"),
MyRegEx(@"\bbliver i indlogeret\b"), MyRegEx(@"\bbliver i indlogeret\b"),
MyRegEx(@"\bburde i gøre\b"), MyRegEx(@"\bburde i gøre\b"),
MyRegEx(@"\bburde i ikke\b"), MyRegEx(@"\bburde i ikke\b"),
MyRegEx(@"\bburde i købe\b"), MyRegEx(@"\bburde i købe\b"),
MyRegEx(@"\bburde i løbe\b"), MyRegEx(@"\bburde i løbe\b"),
MyRegEx(@"\bburde i se\b"), MyRegEx(@"\bburde i se\b"),
MyRegEx(@"\bburde i sige\b"), MyRegEx(@"\bburde i sige\b"),
MyRegEx(@"\bburde i tage\b"), MyRegEx(@"\bburde i tage\b"),
MyRegEx(@"\bDa i ankom\b"), MyRegEx(@"\bDa i ankom\b"),
MyRegEx(@"\bda i ankom\b"), MyRegEx(@"\bda i ankom\b"),
MyRegEx(@"\bda i forlod\b"), MyRegEx(@"\bda i forlod\b"),
MyRegEx(@"\bDa i forlod\b"), MyRegEx(@"\bDa i forlod\b"),
MyRegEx(@"\bda i fik\b"), MyRegEx(@"\bda i fik\b"),
MyRegEx(@"\bDa i fik\b"), MyRegEx(@"\bDa i fik\b"),
MyRegEx(@"\bDa i gik\b"), MyRegEx(@"\bDa i gik\b"),
MyRegEx(@"\bda i gik\b"), MyRegEx(@"\bda i gik\b"),
MyRegEx(@"\bda i kom\b"), MyRegEx(@"\bda i kom\b"),
MyRegEx(@"\bDa i kom\b"), MyRegEx(@"\bDa i kom\b"),
MyRegEx(@"\bda i så "), MyRegEx(@"\bda i så "),
MyRegEx(@"\bDa i så "), MyRegEx(@"\bDa i så "),
MyRegEx(@"\bdet får i\b"), MyRegEx(@"\bdet får i\b"),
MyRegEx(@"\bDet får i\b"), MyRegEx(@"\bDet får i\b"),
MyRegEx(@"\bDet har i\b"), MyRegEx(@"\bDet har i\b"),
MyRegEx(@"\bdet har i\b"), MyRegEx(@"\bdet har i\b"),
MyRegEx(@"\bDet må i "), MyRegEx(@"\bDet må i "),
MyRegEx(@"\bdet må i "), MyRegEx(@"\bdet må i "),
MyRegEx(@"\b[Dd]et Det kan i sgu"), MyRegEx(@"\b[Dd]et Det kan i sgu"),
MyRegEx(@"\bend i aner\b"), MyRegEx(@"\bend i aner\b"),
MyRegEx(@"\bend i tror\b"), MyRegEx(@"\bend i tror\b"),
MyRegEx(@"\bend i ved\b"), MyRegEx(@"\bend i ved\b"),
MyRegEx(@"\b, er i alle\b"), MyRegEx(@"\b, er i alle\b"),
MyRegEx(@"\bellers får i "), MyRegEx(@"\bellers får i "),
MyRegEx(@"\bEr i alle\b"), MyRegEx(@"\bEr i alle\b"),
MyRegEx(@"\ber i allerede\b"), MyRegEx(@"\ber i allerede\b"),
MyRegEx(@"\bEr i allerede\b"), MyRegEx(@"\bEr i allerede\b"),
MyRegEx(@"\ber i allesammen\b"), MyRegEx(@"\ber i allesammen\b"),
MyRegEx(@"\bEr i allesammen\b"), MyRegEx(@"\bEr i allesammen\b"),
MyRegEx(@"\ber i der\b"), MyRegEx(@"\ber i der\b"),
MyRegEx(@"\bEr i der\b"), MyRegEx(@"\bEr i der\b"),
MyRegEx(@"\bEr i fra\b"), MyRegEx(@"\bEr i fra\b"),
MyRegEx(@"\bEr i gennem\b"), MyRegEx(@"\bEr i gennem\b"),
MyRegEx(@"\ber i gennem\b"), MyRegEx(@"\ber i gennem\b"),
MyRegEx(@"\ber i glade\b"), MyRegEx(@"\ber i glade\b"),
MyRegEx(@"\bEr i glade\b"), MyRegEx(@"\bEr i glade\b"),
MyRegEx(@"\bEr i gået\b"), MyRegEx(@"\bEr i gået\b"),
MyRegEx(@"\ber i gået\b"), MyRegEx(@"\ber i gået\b"),
MyRegEx(@"\ber i her\b"), MyRegEx(@"\ber i her\b"),
MyRegEx(@"\bEr i her\b"), MyRegEx(@"\bEr i her\b"),
MyRegEx(@"\ber i imod\b"), MyRegEx(@"\ber i imod\b"),
MyRegEx(@"\bEr i imod\b"), MyRegEx(@"\bEr i imod\b"),
MyRegEx(@"\ber i klar\b"), MyRegEx(@"\ber i klar\b"),
MyRegEx(@"\bEr i klar\b"), MyRegEx(@"\bEr i klar\b"),
MyRegEx(@"\bEr i mætte\b"), MyRegEx(@"\bEr i mætte\b"),
MyRegEx(@"\ber i mætte\b"), MyRegEx(@"\ber i mætte\b"),
MyRegEx(@"\bEr i med\b"), MyRegEx(@"\bEr i med\b"),
MyRegEx(@"\ber i med\b"), MyRegEx(@"\ber i med\b"),
MyRegEx(@"\ber i mod\b"), MyRegEx(@"\ber i mod\b"),
MyRegEx(@"\bEr i mod\b"), MyRegEx(@"\bEr i mod\b"),
MyRegEx(@"\ber i okay\b"), MyRegEx(@"\ber i okay\b"),
MyRegEx(@"\bEr i okay\b"), MyRegEx(@"\bEr i okay\b"),
MyRegEx(@"\ber i på\b"), MyRegEx(@"\ber i på\b"),
MyRegEx(@"\bEr i på\b"), MyRegEx(@"\bEr i på\b"),
MyRegEx(@"\bEr i parate\b"), MyRegEx(@"\bEr i parate\b"),
MyRegEx(@"\ber i parate\b"), MyRegEx(@"\ber i parate\b"),
MyRegEx(@"\ber i sikker\b"), MyRegEx(@"\ber i sikker\b"),
MyRegEx(@"\bEr i sikker\b"), MyRegEx(@"\bEr i sikker\b"),
MyRegEx(@"\bEr i sikre\b"), MyRegEx(@"\bEr i sikre\b"),
MyRegEx(@"\ber i sikre\b"), MyRegEx(@"\ber i sikre\b"),
MyRegEx(@"\ber i skøre\b"), MyRegEx(@"\ber i skøre\b"),
MyRegEx(@"\bEr i skøre\b"), MyRegEx(@"\bEr i skøre\b"),
MyRegEx(@"\ber i stadig\b"), MyRegEx(@"\ber i stadig\b"),
MyRegEx(@"\bEr i stadig\b"), MyRegEx(@"\bEr i stadig\b"),
MyRegEx(@"\bEr i sultne\b"), MyRegEx(@"\bEr i sultne\b"),
MyRegEx(@"\ber i sultne\b"), MyRegEx(@"\ber i sultne\b"),
MyRegEx(@"\bEr i tilfredse\b"), MyRegEx(@"\bEr i tilfredse\b"),
MyRegEx(@"\ber i tilfredse\b"), MyRegEx(@"\ber i tilfredse\b"),
MyRegEx(@"\bEr i to\b"), MyRegEx(@"\bEr i to\b"),
MyRegEx(@"\ber i ved at\b"), MyRegEx(@"\ber i ved at\b"),
MyRegEx(@"\ber i virkelig\b"), MyRegEx(@"\ber i virkelig\b"),
MyRegEx(@"\bEr i virkelig\b"), MyRegEx(@"\bEr i virkelig\b"),
MyRegEx(@"\bEr i vågne\b"), MyRegEx(@"\bEr i vågne\b"),
MyRegEx(@"\ber i vågne\b"), MyRegEx(@"\ber i vågne\b"),
MyRegEx(@"\bfanden vil i?"), MyRegEx(@"\bfanden vil i?"),
MyRegEx(@"\bfor ser i\b"), MyRegEx(@"\bfor ser i\b"),
MyRegEx(@"\bFor ser i\b"), MyRegEx(@"\bFor ser i\b"),
MyRegEx(@"\bFordi i ventede\b"), MyRegEx(@"\bFordi i ventede\b"),
MyRegEx(@"\bfordi i ventede\b"), MyRegEx(@"\bfordi i ventede\b"),
MyRegEx(@"\bFordi i deltog\b"), MyRegEx(@"\bFordi i deltog\b"),
MyRegEx(@"\bfordi i deltog\b"), MyRegEx(@"\bfordi i deltog\b"),
MyRegEx(@"\bforhandler i stadig\b"), MyRegEx(@"\bforhandler i stadig\b"),
MyRegEx(@"\bForhandler i stadig\b"), MyRegEx(@"\bForhandler i stadig\b"),
MyRegEx(@"\bforstår i\b"), MyRegEx(@"\bforstår i\b"),
MyRegEx(@"\bForstår i\b"), MyRegEx(@"\bForstår i\b"),
MyRegEx(@"\bFør i får\b"), MyRegEx(@"\bFør i får\b"),
MyRegEx(@"\bfør i får\b"), MyRegEx(@"\bfør i får\b"),
MyRegEx(@"\bFør i kommer\b"), MyRegEx(@"\bFør i kommer\b"),
MyRegEx(@"\bfør i kommer\b"), MyRegEx(@"\bfør i kommer\b"),
MyRegEx(@"\bFør i tager\b"), MyRegEx(@"\bFør i tager\b"),
MyRegEx(@"\bfør i tager\b"), MyRegEx(@"\bfør i tager\b"),
MyRegEx(@"\bfår i alle\b"), MyRegEx(@"\bfår i alle\b"),
MyRegEx(@"\bfår i fratrukket\b"), MyRegEx(@"\bfår i fratrukket\b"),
MyRegEx(@"\bfår i ikke\b"), MyRegEx(@"\bfår i ikke\b"),
MyRegEx(@"\bfår i klø\b"), MyRegEx(@"\bfår i klø\b"),
MyRegEx(@"\bfår i point\b"), MyRegEx(@"\bfår i point\b"),
MyRegEx(@"\bgider i at\b"), MyRegEx(@"\bgider i at\b"),
MyRegEx(@"\bGider i at\b"), MyRegEx(@"\bGider i at\b"),
MyRegEx(@"\bGider i ikke\b"), MyRegEx(@"\bGider i ikke\b"),
@ -2624,10 +2624,10 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bhar i nogen\b"), MyRegEx(@"\bhar i nogen\b"),
MyRegEx(@"\bHar i nok\b"), MyRegEx(@"\bHar i nok\b"),
MyRegEx(@"\bhar i nok\b"), MyRegEx(@"\bhar i nok\b"),
MyRegEx(@"\bhar i ordnet\b"), MyRegEx(@"\bhar i ordnet\b"),
MyRegEx(@"\bHar i ordnet\b"), MyRegEx(@"\bHar i ordnet\b"),
MyRegEx(@"\bhar i spist\b"), MyRegEx(@"\bhar i spist\b"),
MyRegEx(@"\bHar i spist\b"), MyRegEx(@"\bHar i spist\b"),
MyRegEx(@"\bhar i tænkt\b"), MyRegEx(@"\bhar i tænkt\b"),
MyRegEx(@"\bhar i tabt\b"), MyRegEx(@"\bhar i tabt\b"),
MyRegEx(@"\bhelvede vil i?"), MyRegEx(@"\bhelvede vil i?"),
@ -2635,85 +2635,85 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bher har i\b"), MyRegEx(@"\bher har i\b"),
MyRegEx(@"\b[Hh]older i fast\b"), MyRegEx(@"\b[Hh]older i fast\b"),
MyRegEx(@"\b[Hh]older i godt fast\b"), MyRegEx(@"\b[Hh]older i godt fast\b"),
MyRegEx(@"\bHvad fanden har i\b"), MyRegEx(@"\bHvad fanden har i\b"),
MyRegEx(@"\bhvad fanden har i\b"), MyRegEx(@"\bhvad fanden har i\b"),
MyRegEx(@"\bHvad fanden tror i\b"), MyRegEx(@"\bHvad fanden tror i\b"),
MyRegEx(@"\bhvad fanden tror i\b"), MyRegEx(@"\bhvad fanden tror i\b"),
MyRegEx(@"\bhvad fanden vil i\b"), MyRegEx(@"\bhvad fanden vil i\b"),
MyRegEx(@"\bHvad fanden vil i\b"), MyRegEx(@"\bHvad fanden vil i\b"),
MyRegEx(@"\bHvad gør i\b"), MyRegEx(@"\bHvad gør i\b"),
MyRegEx(@"\bhvad gør i\b"), MyRegEx(@"\bhvad gør i\b"),
MyRegEx(@"\bhvad har i\b"), MyRegEx(@"\bhvad har i\b"),
MyRegEx(@"\bHvad har i\b"), MyRegEx(@"\bHvad har i\b"),
MyRegEx(@"\bHvad i ikke\b"), MyRegEx(@"\bHvad i ikke\b"),
MyRegEx(@"\bhvad i ikke\b"), MyRegEx(@"\bhvad i ikke\b"),
MyRegEx(@"\b[Hh]vad laver i\b"), MyRegEx(@"\b[Hh]vad laver i\b"),
MyRegEx(@"\b[Hh]vad lavede i\b"), MyRegEx(@"\b[Hh]vad lavede i\b"),
MyRegEx(@"\b[Hh]vad mener i\b"), MyRegEx(@"\b[Hh]vad mener i\b"),
MyRegEx(@"\b[Hh]vad siger i\b"), MyRegEx(@"\b[Hh]vad siger i\b"),
MyRegEx(@"\b[Hh]vad skal i\b"), MyRegEx(@"\b[Hh]vad skal i\b"),
MyRegEx(@"\b[Hh]vad snakker i\b"), MyRegEx(@"\b[Hh]vad snakker i\b"),
MyRegEx(@"\b[Hh]vad sløver i\b"), MyRegEx(@"\b[Hh]vad sløver i\b"),
MyRegEx(@"\b[Hh]vad synes i\b"), MyRegEx(@"\b[Hh]vad synes i\b"),
MyRegEx(@"\b[Hh]vad vil i\b"), MyRegEx(@"\b[Hh]vad vil i\b"),
MyRegEx(@"\b[Hh]vem er i\b"), MyRegEx(@"\b[Hh]vem er i\b"),
MyRegEx(@"\b[Hh]vem fanden tror i\b"), MyRegEx(@"\b[Hh]vem fanden tror i\b"),
MyRegEx(@"\b[Hh]vem tror i\b"), MyRegEx(@"\b[Hh]vem tror i\b"),
MyRegEx(@"\b[Hh]vilken slags mennesker er i?"), MyRegEx(@"\b[Hh]vilken slags mennesker er i?"),
MyRegEx(@"\b[Hh]vilken slags folk er i?"), MyRegEx(@"\b[Hh]vilken slags folk er i?"),
MyRegEx(@"\b[Hh]vis i altså\b"), MyRegEx(@"\b[Hh]vis i altså\b"),
MyRegEx(@"\b[Hh]vis i bare\b"), MyRegEx(@"\b[Hh]vis i bare\b"),
MyRegEx(@"\b[Hh]vis i forstår\b"), MyRegEx(@"\b[Hh]vis i forstår\b"),
MyRegEx(@"\b[Hh]vis i får\b"), MyRegEx(@"\b[Hh]vis i får\b"),
MyRegEx(@"\b[Hh]vis i går\b"), MyRegEx(@"\b[Hh]vis i går\b"),
MyRegEx(@"\b[Hh]vis i ikke\b"), MyRegEx(@"\b[Hh]vis i ikke\b"),
MyRegEx(@"\b[Hh]vis i lovede\b"), MyRegEx(@"\b[Hh]vis i lovede\b"),
MyRegEx(@"\b[Hh]vis i lover\b"), MyRegEx(@"\b[Hh]vis i lover\b"),
MyRegEx(@"\b[Hh]vis i overholder\b"), MyRegEx(@"\b[Hh]vis i overholder\b"),
MyRegEx(@"\b[Hh]vis i overtræder\b"), MyRegEx(@"\b[Hh]vis i overtræder\b"),
MyRegEx(@"\b[Hh]vis i slipper\b"), MyRegEx(@"\b[Hh]vis i slipper\b"),
MyRegEx(@"\b[Hh]vis i taber\b"), MyRegEx(@"\b[Hh]vis i taber\b"),
MyRegEx(@"\b[Hh]vis i vandt\b"), MyRegEx(@"\b[Hh]vis i vandt\b"),
MyRegEx(@"\b[Hh]vis i vinder\b"), MyRegEx(@"\b[Hh]vis i vinder\b"),
MyRegEx(@"\b[Hh]vor er i\b"), MyRegEx(@"\b[Hh]vor er i\b"),
MyRegEx(@"\b[Hh]vor får i\b"), MyRegEx(@"\b[Hh]vor får i\b"),
MyRegEx(@"\b[Hh]vor gamle er i\b"), MyRegEx(@"\b[Hh]vor gamle er i\b"),
MyRegEx(@"\b[Hh]vor i begyndte\b"), MyRegEx(@"\b[Hh]vor i begyndte\b"),
MyRegEx(@"\b[Hh]vor i startede\b"), MyRegEx(@"\b[Hh]vor i startede\b"),
MyRegEx(@"\b[Hh]vor skal i\b"), MyRegEx(@"\b[Hh]vor skal i\b"),
MyRegEx(@"\b[Hh]vor var i\b"), MyRegEx(@"\b[Hh]vor var i\b"),
MyRegEx(@"\b[Hh]vordan har i\b"), MyRegEx(@"\b[Hh]vordan har i\b"),
MyRegEx(@"\b[Hh]vordan hørte i\b"), MyRegEx(@"\b[Hh]vordan hørte i\b"),
MyRegEx(@"\b[Hh]vordan i når\b"), MyRegEx(@"\b[Hh]vordan i når\b"),
MyRegEx(@"\b[Hh]vordan i nåede\b"), MyRegEx(@"\b[Hh]vordan i nåede\b"),
MyRegEx(@"\b[Hh]vordan kunne i\b"), MyRegEx(@"\b[Hh]vordan kunne i\b"),
MyRegEx(@"\b[Hh]vorfor afleverer i det\b"), MyRegEx(@"\b[Hh]vorfor afleverer i det\b"),
MyRegEx(@"\b[Hh]vorfor gør i "), MyRegEx(@"\b[Hh]vorfor gør i "),
MyRegEx(@"\b[Hh]vorfor gjorde i "), MyRegEx(@"\b[Hh]vorfor gjorde i "),
MyRegEx(@"\b[Hh]vorfor græder i "), MyRegEx(@"\b[Hh]vorfor græder i "),
MyRegEx(@"\b[Hh]vorfor har i "), MyRegEx(@"\b[Hh]vorfor har i "),
MyRegEx(@"\b[Hh]vorfor kom i "), MyRegEx(@"\b[Hh]vorfor kom i "),
MyRegEx(@"\b[Hh]vorfor kommer i "), MyRegEx(@"\b[Hh]vorfor kommer i "),
MyRegEx(@"\b[Hh]vorfor løb i "), MyRegEx(@"\b[Hh]vorfor løb i "),
MyRegEx(@"\b[Hh]vorfor lover i "), MyRegEx(@"\b[Hh]vorfor lover i "),
MyRegEx(@"\b[Hh]vorfor lovede i "), MyRegEx(@"\b[Hh]vorfor lovede i "),
MyRegEx(@"\b[Hh]vorfor skal i\b"), MyRegEx(@"\b[Hh]vorfor skal i\b"),
MyRegEx(@"\b[Hh]vorfor skulle i\b"), MyRegEx(@"\b[Hh]vorfor skulle i\b"),
MyRegEx(@"\b[Hh]vorfor sagde i\b"), MyRegEx(@"\b[Hh]vorfor sagde i\b"),
MyRegEx(@"\b[Hh]vorfor synes i\b"), MyRegEx(@"\b[Hh]vorfor synes i\b"),
MyRegEx(@"\b[Hh]vornår gør i "), MyRegEx(@"\b[Hh]vornår gør i "),
MyRegEx(@"\bHvornår kom i\b"), MyRegEx(@"\bHvornår kom i\b"),
MyRegEx(@"\b[Hh]vornår ville i "), MyRegEx(@"\b[Hh]vornår ville i "),
MyRegEx(@"\b[Hh]vornår giver i "), MyRegEx(@"\b[Hh]vornår giver i "),
MyRegEx(@"\b[Hh]vornår gav i "), MyRegEx(@"\b[Hh]vornår gav i "),
MyRegEx(@"\b[Hh]vornår rejser i\b"), MyRegEx(@"\b[Hh]vornår rejser i\b"),
MyRegEx(@"\b[Hh]vornår rejste i\b"), MyRegEx(@"\b[Hh]vornår rejste i\b"),
MyRegEx(@"\b[Hh]vornår skal i "), MyRegEx(@"\b[Hh]vornår skal i "),
MyRegEx(@"\b[Hh]vornår skulle i "), MyRegEx(@"\b[Hh]vornår skulle i "),
MyRegEx(@"\b[Hh]ører i på\b"), MyRegEx(@"\b[Hh]ører i på\b"),
MyRegEx(@"\b[Hh]ørte i på\b"), MyRegEx(@"\b[Hh]ørte i på\b"),
MyRegEx(@"\b[Hh]ører i,\b"), MyRegEx(@"\b[Hh]ører i,\b"),
MyRegEx(@"\b[Hh]ører i ikke\b"), MyRegEx(@"\b[Hh]ører i ikke\b"),
MyRegEx(@"\bi altid\b"), MyRegEx(@"\bi altid\b"),
MyRegEx(@"\bi ankomme\b"), MyRegEx(@"\bi ankomme\b"),
MyRegEx(@"\bi ankommer\b"), MyRegEx(@"\bi ankommer\b"),
@ -2770,7 +2770,7 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bi må give\b"), MyRegEx(@"\bi må give\b"),
MyRegEx(@"\bi må da\b"), MyRegEx(@"\bi må da\b"),
MyRegEx(@"\bi nåede\b"), MyRegEx(@"\bi nåede\b"),
MyRegEx(@"\bi når\b"), MyRegEx(@"\bi når\b"),
MyRegEx(@"\bi prøve\b"), MyRegEx(@"\bi prøve\b"),
MyRegEx(@"\bi prøvede\b"), MyRegEx(@"\bi prøvede\b"),
MyRegEx(@"\bi prøver\b"), MyRegEx(@"\bi prøver\b"),
@ -2785,7 +2785,7 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bi sikkert ikke vil\b"), MyRegEx(@"\bi sikkert ikke vil\b"),
MyRegEx(@"\bi skal\b"), MyRegEx(@"\bi skal\b"),
MyRegEx(@"\bi skulle\b"), MyRegEx(@"\bi skulle\b"),
MyRegEx(@"\bi små stakler\b"), MyRegEx(@"\bi små stakler\b"),
MyRegEx(@"\bi stopper\b"), MyRegEx(@"\bi stopper\b"),
MyRegEx(@"\bi synes\b"), MyRegEx(@"\bi synes\b"),
MyRegEx(@"\bi troede\b"), MyRegEx(@"\bi troede\b"),
@ -2794,14 +2794,14 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bi vel ikke\b"), MyRegEx(@"\bi vel ikke\b"),
MyRegEx(@"\bi vil\b"), MyRegEx(@"\bi vil\b"),
MyRegEx(@"\bi ville\b"), MyRegEx(@"\bi ville\b"),
MyRegEx(@"\b[Kk]an i lugte\b"), MyRegEx(@"\b[Kk]an i lugte\b"),
MyRegEx(@"\b[Kk]an i overleve\b"), MyRegEx(@"\b[Kk]an i overleve\b"),
MyRegEx(@"\b[Kk]an i spise\b"), MyRegEx(@"\b[Kk]an i spise\b"),
MyRegEx(@"\b[Kk]an i se\b"), MyRegEx(@"\b[Kk]an i se\b"),
MyRegEx(@"\b[Kk]an i smage\b"), MyRegEx(@"\b[Kk]an i smage\b"),
MyRegEx(@"\b[Kk]an i forstå\b"), MyRegEx(@"\b[Kk]an i forstå\b"),
MyRegEx(@"\b[Kk]ørte i hele\b"), MyRegEx(@"\b[Kk]ørte i hele\b"),
MyRegEx(@"\b[Kk]ørte i ikke\b"), MyRegEx(@"\b[Kk]ørte i ikke\b"),
MyRegEx(@"\b[Kk]an i godt\b"), MyRegEx(@"\b[Kk]an i godt\b"),
MyRegEx(@"\b[Kk]an i gøre\b"), MyRegEx(@"\b[Kk]an i gøre\b"),
MyRegEx(@"\b[Kk]an i huske\b"), MyRegEx(@"\b[Kk]an i huske\b"),
@ -2832,32 +2832,32 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\b[Kk]unne i give\b"), MyRegEx(@"\b[Kk]unne i give\b"),
MyRegEx(@"\b[Kk]unne i gøre\b"), MyRegEx(@"\b[Kk]unne i gøre\b"),
MyRegEx(@"\b[Kk]unne i ikke\b"), MyRegEx(@"\b[Kk]unne i ikke\b"),
MyRegEx(@"\b[Kk]unne i lide\b"), MyRegEx(@"\b[Kk]unne i lide\b"),
MyRegEx(@"\b[Kk]unne i mødes\b"), MyRegEx(@"\b[Kk]unne i mødes\b"),
MyRegEx(@"\b[Kk]unne i se\b"), MyRegEx(@"\b[Kk]unne i se\b"),
MyRegEx(@"\b[Ll]eder i efter\b"), MyRegEx(@"\b[Ll]eder i efter\b"),
MyRegEx(@"\b[Ll]aver i ikke\b"), MyRegEx(@"\b[Ll]aver i ikke\b"),
MyRegEx(@"\blaver i her\b"), MyRegEx(@"\blaver i her\b"),
MyRegEx(@"\b[Ll]igner i far\b"), MyRegEx(@"\b[Ll]igner i far\b"),
MyRegEx(@"\b[Ll]igner i hinanden\b"), MyRegEx(@"\b[Ll]igner i hinanden\b"),
MyRegEx(@"\b[Ll]igner i mor\b"), MyRegEx(@"\b[Ll]igner i mor\b"),
MyRegEx(@"\bLover i\b"), MyRegEx(@"\bLover i\b"),
MyRegEx(@"\b[Ll]ykkes i med\b"), MyRegEx(@"\b[Ll]ykkes i med\b"),
MyRegEx(@"\b[Ll]ykkedes i med\b"), MyRegEx(@"\b[Ll]ykkedes i med\b"),
MyRegEx(@"\b[Ll]øb i hellere\b"), MyRegEx(@"\b[Ll]øb i hellere\b"),
MyRegEx(@"\b[Mm]ødte i "), MyRegEx(@"\b[Mm]ødte i "),
MyRegEx(@"\b[Mm]angler i en\b"), MyRegEx(@"\b[Mm]angler i en\b"),
MyRegEx(@"\b[Mm]en i gutter\b"), MyRegEx(@"\b[Mm]en i gutter\b"),
MyRegEx(@"\b[Mm]en i drenge\b"), MyRegEx(@"\b[Mm]en i drenge\b"),
MyRegEx(@"\b[Mm]en i fyre\b"), MyRegEx(@"\b[Mm]en i fyre\b"),
MyRegEx(@"\b[Mm]en i står\b"), MyRegEx(@"\b[Mm]en i står\b"),
MyRegEx(@"\b[Mm]ener i at\b"), MyRegEx(@"\b[Mm]ener i at\b"),
MyRegEx(@"\b[Mm]ener i det\b"), MyRegEx(@"\b[Mm]ener i det\b"),
MyRegEx(@"\b[Mm]ener i virkelig\b"), MyRegEx(@"\b[Mm]ener i virkelig\b"),
MyRegEx(@"\b[Mm]ens i sov\b"), MyRegEx(@"\b[Mm]ens i sov\b"),
MyRegEx(@"\b[Mm]ens i stadig\b"), MyRegEx(@"\b[Mm]ens i stadig\b"),
MyRegEx(@"\b[Mm]ens i lå\b"), MyRegEx(@"\b[Mm]ens i lå\b"),
MyRegEx(@"\b[Mm]ister i point\b"), MyRegEx(@"\b[Mm]ister i point\b"),
MyRegEx(@"\b[Mm]orer i jer\b"), MyRegEx(@"\b[Mm]orer i jer\b"),
MyRegEx(@"\b[Mm]å i alle"), MyRegEx(@"\b[Mm]å i alle"),
MyRegEx(@"\b[Mm]å i gerne"), MyRegEx(@"\b[Mm]å i gerne"),
@ -2878,47 +2878,47 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\b[Pp]å at i ikke\b"), MyRegEx(@"\b[Pp]å at i ikke\b"),
MyRegEx(@"\b[Ss]agde i ikke\b"), MyRegEx(@"\b[Ss]agde i ikke\b"),
MyRegEx(@"\b[Ss]amlede i ham\b"), MyRegEx(@"\b[Ss]amlede i ham\b"),
MyRegEx(@"\bSer i\b"), MyRegEx(@"\bSer i\b"),
MyRegEx(@"\bSiger i\b"), MyRegEx(@"\bSiger i\b"),
MyRegEx(@"\b[Ss]ikker på i ikke\b"), MyRegEx(@"\b[Ss]ikker på i ikke\b"),
MyRegEx(@"\b[Ss]ikre på i ikke\b"), MyRegEx(@"\b[Ss]ikre på i ikke\b"),
MyRegEx(@"\b[Ss]kal i alle\b"), MyRegEx(@"\b[Ss]kal i alle\b"),
MyRegEx(@"\b[Ss]kal i allesammen\b"), MyRegEx(@"\b[Ss]kal i allesammen\b"),
MyRegEx(@"\b[Ss]kal i begge dø\b"), MyRegEx(@"\b[Ss]kal i begge dø\b"),
MyRegEx(@"\b[Ss]kal i bare\b"), MyRegEx(@"\b[Ss]kal i bare\b"),
MyRegEx(@"\b[Ss]kal i dele\b"), MyRegEx(@"\b[Ss]kal i dele\b"),
MyRegEx(@"\b[Ss]kal i dø\b"), MyRegEx(@"\b[Ss]kal i dø\b"),
MyRegEx(@"\b[Ss]kal i fordele\b"), MyRegEx(@"\b[Ss]kal i fordele\b"),
MyRegEx(@"\b[Ss]kal i fordeles\b"), MyRegEx(@"\b[Ss]kal i fordeles\b"),
MyRegEx(@"\b[Ss]kal i fortælle\b"), MyRegEx(@"\b[Ss]kal i fortælle\b"),
MyRegEx(@"\b[Ss]kal i gøre\b"), MyRegEx(@"\b[Ss]kal i gøre\b"),
MyRegEx(@"\b[Ss]kal i have\b"), MyRegEx(@"\b[Ss]kal i have\b"),
MyRegEx(@"\b[Ss]kal i ikke\b"), MyRegEx(@"\b[Ss]kal i ikke\b"),
MyRegEx(@"\b[Ss]kal i klare\b"), MyRegEx(@"\b[Ss]kal i klare\b"),
MyRegEx(@"\b[Ss]kal i klatre\b"), MyRegEx(@"\b[Ss]kal i klatre\b"),
MyRegEx(@"\b[Ss]kal i larme\b"), MyRegEx(@"\b[Ss]kal i larme\b"),
MyRegEx(@"\b[Ss]kal i lave\b"), MyRegEx(@"\b[Ss]kal i lave\b"),
MyRegEx(@"\b[Ss]kal i løfte\b"), MyRegEx(@"\b[Ss]kal i løfte\b"),
MyRegEx(@"\b[Ss]kal i med\b"), MyRegEx(@"\b[Ss]kal i med\b"),
MyRegEx(@"\b[Ss]kal i på\b"), MyRegEx(@"\b[Ss]kal i på\b"),
MyRegEx(@"\b[Ss]kal i til\b"), MyRegEx(@"\b[Ss]kal i til\b"),
MyRegEx(@"\b[Ss]kal i ud\b"), MyRegEx(@"\b[Ss]kal i ud\b"),
MyRegEx(@"\b[Ss]lap i ud\b"), MyRegEx(@"\b[Ss]lap i ud\b"),
MyRegEx(@"\b[Ss]lap i væk\b"), MyRegEx(@"\b[Ss]lap i væk\b"),
MyRegEx(@"\b[Ss]nart er i\b"), MyRegEx(@"\b[Ss]nart er i\b"),
MyRegEx(@"\b[Ss]om i måske\b"), MyRegEx(@"\b[Ss]om i måske\b"),
MyRegEx(@"\b[Ss]om i nok\b"), MyRegEx(@"\b[Ss]om i nok\b"),
MyRegEx(@"\b[Ss]om i ved\b"), MyRegEx(@"\b[Ss]om i ved\b"),
MyRegEx(@"\b[Ss]pis i bare\b"), MyRegEx(@"\b[Ss]pis i bare\b"),
MyRegEx(@"\b[Ss]pis i dem\b"), MyRegEx(@"\b[Ss]pis i dem\b"),
MyRegEx(@"\b[Ss]ynes i at\b"), MyRegEx(@"\b[Ss]ynes i at\b"),
MyRegEx(@"\b[Ss]ynes i det\b"), MyRegEx(@"\b[Ss]ynes i det\b"),
MyRegEx(@"\b[Ss]ynes i,"), MyRegEx(@"\b[Ss]ynes i,"),
MyRegEx(@"\b[Ss]ætter i en\b"), MyRegEx(@"\b[Ss]ætter i en\b"),
MyRegEx(@"\bSå i at\b"), MyRegEx(@"\bSå i at\b"),
MyRegEx(@"\bSå i det\b"), MyRegEx(@"\bSå i det\b"),
MyRegEx(@"\bSå i noget\b"), MyRegEx(@"\bSå i noget\b"),
MyRegEx(@"\b[Ss]å tager i\b"), MyRegEx(@"\b[Ss]å tager i\b"),
MyRegEx(@"\bTænder i på\b"), MyRegEx(@"\bTænder i på\b"),
MyRegEx(@"\btænder i på\b"), MyRegEx(@"\btænder i på\b"),
MyRegEx(@"\btog i bilen\b"), MyRegEx(@"\btog i bilen\b"),
@ -2943,11 +2943,11 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\b[Vv]ed i allesammen\b"), MyRegEx(@"\b[Vv]ed i allesammen\b"),
MyRegEx(@"\b[Vv]ed i er\b"), MyRegEx(@"\b[Vv]ed i er\b"),
MyRegEx(@"\b[Vv]ed i ikke\b"), MyRegEx(@"\b[Vv]ed i ikke\b"),
MyRegEx(@"\b[Vv]ed i hvad\b"), MyRegEx(@"\b[Vv]ed i hvad\b"),
MyRegEx(@"\b[Vv]ed i hvem\b"), MyRegEx(@"\b[Vv]ed i hvem\b"),
MyRegEx(@"\b[Vv]ed i hvor\b"), MyRegEx(@"\b[Vv]ed i hvor\b"),
MyRegEx(@"\b[Vv]ed i hvorfor\b"), MyRegEx(@"\b[Vv]ed i hvorfor\b"),
MyRegEx(@"\b[Vv]ed i hvordan\b"), MyRegEx(@"\b[Vv]ed i hvordan\b"),
MyRegEx(@"\b[Vv]ed i var\b"), MyRegEx(@"\b[Vv]ed i var\b"),
MyRegEx(@"\b[Vv]ed i ville\b"), MyRegEx(@"\b[Vv]ed i ville\b"),
MyRegEx(@"\b[Vv]ed i har\b"), MyRegEx(@"\b[Vv]ed i har\b"),
@ -2959,7 +2959,7 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\b[Vv]ed i tror\b"), MyRegEx(@"\b[Vv]ed i tror\b"),
MyRegEx(@"\b[Vv]enter i på\b"), MyRegEx(@"\b[Vv]enter i på\b"),
MyRegEx(@"\b[Vv]il i besegle\b"), MyRegEx(@"\b[Vv]il i besegle\b"),
MyRegEx(@"\b[Vv]il i dræbe\b"), MyRegEx(@"\b[Vv]il i dræbe\b"),
MyRegEx(@"\b[Vv]il i fjerne\b"), MyRegEx(@"\b[Vv]il i fjerne\b"),
MyRegEx(@"\b[Vv]il i fortryde\b"), MyRegEx(@"\b[Vv]il i fortryde\b"),
MyRegEx(@"\b[Vv]il i gerne\b"), MyRegEx(@"\b[Vv]il i gerne\b"),
@ -3004,9 +3004,9 @@ namespace Nikse.SubtitleEdit.Forms
MyRegEx(@"\bville i være\b"), MyRegEx(@"\bville i være\b"),
MyRegEx(@"\bville i være\b"), MyRegEx(@"\bville i være\b"),
MyRegEx(@"\b[Vv]iste i, at\b"), MyRegEx(@"\b[Vv]iste i, at\b"),
MyRegEx(@"\b[Vv]iste i at\b"), MyRegEx(@"\b[Vv]iste i at\b"),
MyRegEx(@"\bvover i\b"), MyRegEx(@"\bvover i\b"),
}; };
Regex regExIDag = new Regex(@"\bidag\b", RegexOptions.Compiled); Regex regExIDag = new Regex(@"\bidag\b", RegexOptions.Compiled);
@ -3082,17 +3082,17 @@ namespace Nikse.SubtitleEdit.Forms
/// Will try to fix issues with Spanish special letters ¿? and ¡!. /// Will try to fix issues with Spanish special letters ¿? and ¡!.
/// Sentences ending with "?" must start with "¿". /// Sentences ending with "?" must start with "¿".
/// Sentences ending with "!" must start with "¡". /// Sentences ending with "!" must start with "¡".
/// </summary> /// </summary>
private void FixSpanishInvertedQuestionAndExclamationMarks() private void FixSpanishInvertedQuestionAndExclamationMarks()
{ {
string fixAction = _language.FixSpanishInvertedQuestionAndExclamationMarks; string fixAction = _language.FixSpanishInvertedQuestionAndExclamationMarks;
int fixCount = 0; int fixCount = 0;
for (int i = 0; i < _subtitle.Paragraphs.Count; i++) for (int i = 0; i < _subtitle.Paragraphs.Count; i++)
{ {
Paragraph p = _subtitle.Paragraphs[i]; Paragraph p = _subtitle.Paragraphs[i];
Paragraph last = _subtitle.GetParagraphOrDefault(i - 1); Paragraph last = _subtitle.GetParagraphOrDefault(i - 1);
bool wasLastLineClosed = last == null || last.Text.EndsWith("?") || last.Text.EndsWith("!") || last.Text.EndsWith(".") || bool wasLastLineClosed = last == null || last.Text.EndsWith("?") || last.Text.EndsWith("!") || last.Text.EndsWith(".") ||
last.Text.EndsWith(":") || last.Text.EndsWith(")") || last.Text.EndsWith("]"); last.Text.EndsWith(":") || last.Text.EndsWith(")") || last.Text.EndsWith("]");
string trimmedStart = p.Text.TrimStart(("- ").ToCharArray()); string trimmedStart = p.Text.TrimStart(("- ").ToCharArray());
if (last != null && last.Text.EndsWith("...") && trimmedStart.Length > 0 && trimmedStart[0].ToString() == trimmedStart[0].ToString().ToLower()) if (last != null && last.Text.EndsWith("...") && trimmedStart.Length > 0 && trimmedStart[0].ToString() == trimmedStart[0].ToString().ToLower())
@ -3146,8 +3146,8 @@ namespace Nikse.SubtitleEdit.Forms
j--; j--;
while (j > startIndex && while (j > startIndex &&
(p.Text[j] != '.' || IsSpanishAbbreviation(p.Text, j)) && (p.Text[j] != '.' || IsSpanishAbbreviation(p.Text, j)) &&
p.Text[j] != '!' && p.Text[j] != '!' &&
p.Text[j] != '?' && p.Text[j] != '?' &&
!(j > 3 && p.Text.Substring(j - 3, 3) == Environment.NewLine + "-") && !(j > 3 && p.Text.Substring(j - 3, 3) == Environment.NewLine + "-") &&
!(j > 4 && p.Text.Substring(j - 4, 4) == Environment.NewLine + " -") && !(j > 4 && p.Text.Substring(j - 4, 4) == Environment.NewLine + " -") &&
@ -3225,7 +3225,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
if (text[index] != '.') if (text[index] != '.')
return false; return false;
if (index +3 < text.Length && text[index+2] == '.') // X if (index +3 < text.Length && text[index+2] == '.') // X
return true; // O.R. return true; // O.R.
@ -3358,7 +3358,7 @@ namespace Nikse.SubtitleEdit.Forms
ce.UppercaseIInsideLowercaseWordTicked = listView1.Items[IndexUppercaseIInsideLowercaseWord].Checked; ce.UppercaseIInsideLowercaseWordTicked = listView1.Items[IndexUppercaseIInsideLowercaseWord].Checked;
ce.DoubleApostropheToQuoteTicked = listView1.Items[IndexDoubleApostropheToQuote].Checked; ce.DoubleApostropheToQuoteTicked = listView1.Items[IndexDoubleApostropheToQuote].Checked;
ce.FixMusicNotationTicked = listView1.Items[IndexFixMusicNotation].Checked; ce.FixMusicNotationTicked = listView1.Items[IndexFixMusicNotation].Checked;
ce.AddPeriodAfterParagraphTicked = listView1.Items[IndexAddPeriodAfterParagraph].Checked; ce.AddPeriodAfterParagraphTicked = listView1.Items[IndexAddPeriodAfterParagraph].Checked;
ce.StartWithUppercaseLetterAfterParagraphTicked = listView1.Items[IndexStartWithUppercaseLetterAfterParagraph].Checked; ce.StartWithUppercaseLetterAfterParagraphTicked = listView1.Items[IndexStartWithUppercaseLetterAfterParagraph].Checked;
ce.StartWithUppercaseLetterAfterPeriodInsideParagraphTicked = listView1.Items[IndexStartWithUppercaseLetterAfterPeriodInsideParagraph].Checked; ce.StartWithUppercaseLetterAfterPeriodInsideParagraphTicked = listView1.Items[IndexStartWithUppercaseLetterAfterPeriodInsideParagraph].Checked;
@ -3378,8 +3378,8 @@ namespace Nikse.SubtitleEdit.Forms
if (_spanishInvertedQuestionAndExclamationMarksIndex > -1) if (_spanishInvertedQuestionAndExclamationMarksIndex > -1)
ce.SpanishInvertedQuestionAndExclamationMarksTicked = listView1.Items[_spanishInvertedQuestionAndExclamationMarksIndex].Checked; ce.SpanishInvertedQuestionAndExclamationMarksTicked = listView1.Items[_spanishInvertedQuestionAndExclamationMarksIndex].Checked;
Configuration.Settings.Save(); Configuration.Settings.Save();
} }
@ -3439,11 +3439,11 @@ namespace Nikse.SubtitleEdit.Forms
Paragraph p = (Paragraph) listViewFixes.SelectedItems[0].Tag; Paragraph p = (Paragraph) listViewFixes.SelectedItems[0].Tag;
for (int i = 0; i < p.Number; i++) for (int i = 0; i < p.Number; i++)
{ {
if (_deleteIndices.Contains(i)) if (_deleteIndices.Contains(i))
addNumber++; addNumber++;
} }
p = _originalSubtitle.GetFirstParagraphByLineNumber(p.Number+addNumber); p = _originalSubtitle.GetFirstParagraphByLineNumber(p.Number+addNumber);
if (p != null) if (p != null)
{ {
@ -3598,12 +3598,12 @@ namespace Nikse.SubtitleEdit.Forms
UpdateOverlapErrors(); UpdateOverlapErrors();
// update _subtitle + listview // update _subtitle + listview
_originalSubtitle.Paragraphs[_subtitleListViewIndex].EndTime.TotalMilliseconds += _originalSubtitle.Paragraphs[_subtitleListViewIndex].EndTime.TotalMilliseconds +=
(startTime.TotalMilliseconds - _originalSubtitle.Paragraphs[_subtitleListViewIndex].StartTime.TotalMilliseconds); (startTime.TotalMilliseconds - _originalSubtitle.Paragraphs[_subtitleListViewIndex].StartTime.TotalMilliseconds);
_originalSubtitle.Paragraphs[_subtitleListViewIndex].StartTime = startTime; _originalSubtitle.Paragraphs[_subtitleListViewIndex].StartTime = startTime;
subtitleListView1.SetStartTime(_subtitleListViewIndex, _originalSubtitle.Paragraphs[_subtitleListViewIndex]); subtitleListView1.SetStartTime(_subtitleListViewIndex, _originalSubtitle.Paragraphs[_subtitleListViewIndex]);
} }
} }
private void UpdateListViewTextInfo(string text) private void UpdateListViewTextInfo(string text)

View File

@ -37,9 +37,9 @@
this.labelChooseLanguageAndClickDownload = new System.Windows.Forms.Label(); this.labelChooseLanguageAndClickDownload = new System.Windows.Forms.Label();
this.labelPleaseWait = new System.Windows.Forms.Label(); this.labelPleaseWait = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.Location = new System.Drawing.Point(356, 159); this.buttonOK.Location = new System.Drawing.Point(356, 159);
@ -48,18 +48,18 @@
this.buttonOK.TabIndex = 20; this.buttonOK.TabIndex = 20;
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
// //
// labelDescription2 // labelDescription2
// //
this.labelDescription2.AutoSize = true; this.labelDescription2.AutoSize = true;
this.labelDescription2.Location = new System.Drawing.Point(30, 34); this.labelDescription2.Location = new System.Drawing.Point(30, 34);
this.labelDescription2.Name = "labelDescription2"; this.labelDescription2.Name = "labelDescription2";
this.labelDescription2.Size = new System.Drawing.Size(263, 13); this.labelDescription2.Size = new System.Drawing.Size(263, 13);
this.labelDescription2.TabIndex = 1; this.labelDescription2.TabIndex = 1;
this.labelDescription2.Text = "uses the spell checking dictionaries from Open Office."; this.labelDescription2.Text = "uses the spell checking dictionaries from Open Office.";
// //
// linkLabelOpenDictionaryFolder // linkLabelOpenDictionaryFolder
// //
this.linkLabelOpenDictionaryFolder.AutoSize = true; this.linkLabelOpenDictionaryFolder.AutoSize = true;
this.linkLabelOpenDictionaryFolder.Location = new System.Drawing.Point(30, 164); this.linkLabelOpenDictionaryFolder.Location = new System.Drawing.Point(30, 164);
this.linkLabelOpenDictionaryFolder.Name = "linkLabelOpenDictionaryFolder"; this.linkLabelOpenDictionaryFolder.Name = "linkLabelOpenDictionaryFolder";
@ -68,18 +68,18 @@
this.linkLabelOpenDictionaryFolder.TabStop = true; this.linkLabelOpenDictionaryFolder.TabStop = true;
this.linkLabelOpenDictionaryFolder.Text = "Open \'Dictionaries\' folder"; this.linkLabelOpenDictionaryFolder.Text = "Open \'Dictionaries\' folder";
this.linkLabelOpenDictionaryFolder.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel4LinkClicked); this.linkLabelOpenDictionaryFolder.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel4LinkClicked);
// //
// labelDescription1 // labelDescription1
// //
this.labelDescription1.AutoSize = true; this.labelDescription1.AutoSize = true;
this.labelDescription1.Location = new System.Drawing.Point(30, 16); this.labelDescription1.Location = new System.Drawing.Point(30, 16);
this.labelDescription1.Name = "labelDescription1"; this.labelDescription1.Name = "labelDescription1";
this.labelDescription1.Size = new System.Drawing.Size(316, 13); this.labelDescription1.Size = new System.Drawing.Size(316, 13);
this.labelDescription1.TabIndex = 8; this.labelDescription1.TabIndex = 8;
this.labelDescription1.Text = "Subtitle Edit\'s spell check is based on the NHunspell engine which"; this.labelDescription1.Text = "Subtitle Edit\'s spell check is based on the NHunspell engine which";
// //
// comboBoxDictionaries // comboBoxDictionaries
// //
this.comboBoxDictionaries.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.comboBoxDictionaries.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@ -89,9 +89,9 @@
this.comboBoxDictionaries.Size = new System.Drawing.Size(317, 21); this.comboBoxDictionaries.Size = new System.Drawing.Size(317, 21);
this.comboBoxDictionaries.TabIndex = 0; this.comboBoxDictionaries.TabIndex = 0;
this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.comboBoxDictionaries_SelectedIndexChanged); this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.comboBoxDictionaries_SelectedIndexChanged);
// //
// buttonDownload // buttonDownload
// //
this.buttonDownload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonDownload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDownload.Location = new System.Drawing.Point(356, 97); this.buttonDownload.Location = new System.Drawing.Point(356, 97);
this.buttonDownload.Name = "buttonDownload"; this.buttonDownload.Name = "buttonDownload";
@ -100,27 +100,27 @@
this.buttonDownload.Text = "&Download"; this.buttonDownload.Text = "&Download";
this.buttonDownload.UseVisualStyleBackColor = true; this.buttonDownload.UseVisualStyleBackColor = true;
this.buttonDownload.Click += new System.EventHandler(this.buttonDownload_Click); this.buttonDownload.Click += new System.EventHandler(this.buttonDownload_Click);
// //
// labelChooseLanguageAndClickDownload // labelChooseLanguageAndClickDownload
// //
this.labelChooseLanguageAndClickDownload.AutoSize = true; this.labelChooseLanguageAndClickDownload.AutoSize = true;
this.labelChooseLanguageAndClickDownload.Location = new System.Drawing.Point(30, 79); this.labelChooseLanguageAndClickDownload.Location = new System.Drawing.Point(30, 79);
this.labelChooseLanguageAndClickDownload.Name = "labelChooseLanguageAndClickDownload"; this.labelChooseLanguageAndClickDownload.Name = "labelChooseLanguageAndClickDownload";
this.labelChooseLanguageAndClickDownload.Size = new System.Drawing.Size(201, 13); this.labelChooseLanguageAndClickDownload.Size = new System.Drawing.Size(201, 13);
this.labelChooseLanguageAndClickDownload.TabIndex = 11; this.labelChooseLanguageAndClickDownload.TabIndex = 11;
this.labelChooseLanguageAndClickDownload.Text = "Choose your languge and click download"; this.labelChooseLanguageAndClickDownload.Text = "Choose your languge and click download";
// //
// labelPleaseWait // labelPleaseWait
// //
this.labelPleaseWait.AutoSize = true; this.labelPleaseWait.AutoSize = true;
this.labelPleaseWait.Location = new System.Drawing.Point(30, 126); this.labelPleaseWait.Location = new System.Drawing.Point(30, 126);
this.labelPleaseWait.Name = "labelPleaseWait"; this.labelPleaseWait.Name = "labelPleaseWait";
this.labelPleaseWait.Size = new System.Drawing.Size(73, 13); this.labelPleaseWait.Size = new System.Drawing.Size(73, 13);
this.labelPleaseWait.TabIndex = 12; this.labelPleaseWait.TabIndex = 12;
this.labelPleaseWait.Text = "Please wait..."; this.labelPleaseWait.Text = "Please wait...";
// //
// GetDictionaries // GetDictionaries
// //
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(472, 195); this.ClientSize = new System.Drawing.Size(472, 195);

View File

@ -39,7 +39,7 @@ namespace Nikse.SubtitleEdit.Forms
_descriptions = new List<string>(); _descriptions = new List<string>();
_xmlName = xmlRessourceName; _xmlName = xmlRessourceName;
System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
Stream strm = asm.GetManifestResourceStream(_xmlName); Stream strm = asm.GetManifestResourceStream(_xmlName);
if (strm != null) if (strm != null)
{ {
comboBoxDictionaries.Items.Clear(); comboBoxDictionaries.Items.Clear();
@ -100,7 +100,7 @@ namespace Nikse.SubtitleEdit.Forms
private void LinkLabel3LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void LinkLabel3LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
System.Diagnostics.Process.Start("http://nhunspell.sourceforge.net/"); System.Diagnostics.Process.Start("http://nhunspell.sourceforge.net/");
} }
private void LinkLabel4LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void LinkLabel4LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
@ -109,7 +109,7 @@ namespace Nikse.SubtitleEdit.Forms
if (!Directory.Exists(dictionaryFolder)) if (!Directory.Exists(dictionaryFolder))
Directory.CreateDirectory(dictionaryFolder); Directory.CreateDirectory(dictionaryFolder);
System.Diagnostics.Process.Start(dictionaryFolder); System.Diagnostics.Process.Start(dictionaryFolder);
} }
private void buttonDownload_Click(object sender, System.EventArgs e) private void buttonDownload_Click(object sender, System.EventArgs e)
@ -139,7 +139,7 @@ namespace Nikse.SubtitleEdit.Forms
comboBoxDictionaries.Enabled = true; comboBoxDictionaries.Enabled = true;
Cursor = Cursors.Default; Cursor = Cursors.Default;
MessageBox.Show(exception.Message + Environment.NewLine + Environment.NewLine + exception.StackTrace); MessageBox.Show(exception.Message + Environment.NewLine + Environment.NewLine + exception.StackTrace);
} }
} }
void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e) void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
@ -167,7 +167,7 @@ namespace Nikse.SubtitleEdit.Forms
Directory.CreateDirectory(dictionaryFolder); Directory.CreateDirectory(dictionaryFolder);
int index = comboBoxDictionaries.SelectedIndex; int index = comboBoxDictionaries.SelectedIndex;
var ms = new MemoryStream(e.Result); var ms = new MemoryStream(e.Result);
ZipExtractor zip = ZipExtractor.Open(ms); ZipExtractor zip = ZipExtractor.Open(ms);
@ -200,13 +200,13 @@ namespace Nikse.SubtitleEdit.Forms
buttonOK.Enabled = true; buttonOK.Enabled = true;
buttonDownload.Enabled = true; buttonDownload.Enabled = true;
comboBoxDictionaries.Enabled = true; comboBoxDictionaries.Enabled = true;
MessageBox.Show(string.Format(Configuration.Settings.Language.GetDictionaries.XDownloaded, comboBoxDictionaries.Items[index])); MessageBox.Show(string.Format(Configuration.Settings.Language.GetDictionaries.XDownloaded, comboBoxDictionaries.Items[index]));
} }
private void comboBoxDictionaries_SelectedIndexChanged(object sender, EventArgs e) private void comboBoxDictionaries_SelectedIndexChanged(object sender, EventArgs e)
{ {
int index = comboBoxDictionaries.SelectedIndex; int index = comboBoxDictionaries.SelectedIndex;
labelPleaseWait.Text = _descriptions[index]; labelPleaseWait.Text = _descriptions[index];
} }
} }

View File

@ -34,34 +34,34 @@
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelGoToLine // labelGoToLine
// //
resources.ApplyResources(this.labelGoToLine, "labelGoToLine"); resources.ApplyResources(this.labelGoToLine, "labelGoToLine");
this.labelGoToLine.Name = "labelGoToLine"; this.labelGoToLine.Name = "labelGoToLine";
// //
// buttonOK // buttonOK
// //
resources.ApplyResources(this.buttonOK, "buttonOK"); resources.ApplyResources(this.buttonOK, "buttonOK");
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// textBox1 // textBox1
// //
resources.ApplyResources(this.textBox1, "textBox1"); resources.ApplyResources(this.textBox1, "textBox1");
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox1KeyDown); this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox1KeyDown);
// //
// buttonCancel // buttonCancel
// //
resources.ApplyResources(this.buttonCancel, "buttonCancel"); resources.ApplyResources(this.buttonCancel, "buttonCancel");
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick); this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
// //
// GoToLine // GoToLine
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonCancel);

View File

@ -41,27 +41,27 @@
this.textBoxSourceText = new System.Windows.Forms.TextBox(); this.textBoxSourceText = new System.Windows.Forms.TextBox();
this.labelSourceText = new System.Windows.Forms.Label(); this.labelSourceText = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonMicrosoft // buttonMicrosoft
// //
this.buttonMicrosoft.Location = new System.Drawing.Point(322, 164); this.buttonMicrosoft.Location = new System.Drawing.Point(322, 164);
this.buttonMicrosoft.Name = "buttonMicrosoft"; this.buttonMicrosoft.Name = "buttonMicrosoft";
this.buttonMicrosoft.Size = new System.Drawing.Size(304, 55); this.buttonMicrosoft.Size = new System.Drawing.Size(304, 55);
this.buttonMicrosoft.TabIndex = 5; this.buttonMicrosoft.TabIndex = 5;
this.buttonMicrosoft.UseVisualStyleBackColor = true; this.buttonMicrosoft.UseVisualStyleBackColor = true;
this.buttonMicrosoft.Click += new System.EventHandler(this.buttonMicrosoft_Click); this.buttonMicrosoft.Click += new System.EventHandler(this.buttonMicrosoft_Click);
// //
// buttonGoogle // buttonGoogle
// //
this.buttonGoogle.Location = new System.Drawing.Point(12, 164); this.buttonGoogle.Location = new System.Drawing.Point(12, 164);
this.buttonGoogle.Name = "buttonGoogle"; this.buttonGoogle.Name = "buttonGoogle";
this.buttonGoogle.Size = new System.Drawing.Size(304, 55); this.buttonGoogle.Size = new System.Drawing.Size(304, 55);
this.buttonGoogle.TabIndex = 4; this.buttonGoogle.TabIndex = 4;
this.buttonGoogle.UseVisualStyleBackColor = true; this.buttonGoogle.UseVisualStyleBackColor = true;
this.buttonGoogle.Click += new System.EventHandler(this.buttonGoogle_Click); this.buttonGoogle.Click += new System.EventHandler(this.buttonGoogle_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(551, 227); this.buttonCancel.Location = new System.Drawing.Point(551, 227);
@ -70,36 +70,36 @@
this.buttonCancel.TabIndex = 6; this.buttonCancel.TabIndex = 6;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// labelGoogleTranslate // labelGoogleTranslate
// //
this.labelGoogleTranslate.AutoSize = true; this.labelGoogleTranslate.AutoSize = true;
this.labelGoogleTranslate.Location = new System.Drawing.Point(14, 148); this.labelGoogleTranslate.Location = new System.Drawing.Point(14, 148);
this.labelGoogleTranslate.Name = "labelGoogleTranslate"; this.labelGoogleTranslate.Name = "labelGoogleTranslate";
this.labelGoogleTranslate.Size = new System.Drawing.Size(84, 13); this.labelGoogleTranslate.Size = new System.Drawing.Size(84, 13);
this.labelGoogleTranslate.TabIndex = 20; this.labelGoogleTranslate.TabIndex = 20;
this.labelGoogleTranslate.Text = "Google translate"; this.labelGoogleTranslate.Text = "Google translate";
// //
// labelMicrosoftTranslate // labelMicrosoftTranslate
// //
this.labelMicrosoftTranslate.AutoSize = true; this.labelMicrosoftTranslate.AutoSize = true;
this.labelMicrosoftTranslate.Location = new System.Drawing.Point(319, 148); this.labelMicrosoftTranslate.Location = new System.Drawing.Point(319, 148);
this.labelMicrosoftTranslate.Name = "labelMicrosoftTranslate"; this.labelMicrosoftTranslate.Name = "labelMicrosoftTranslate";
this.labelMicrosoftTranslate.Size = new System.Drawing.Size(93, 13); this.labelMicrosoftTranslate.Size = new System.Drawing.Size(93, 13);
this.labelMicrosoftTranslate.TabIndex = 21; this.labelMicrosoftTranslate.TabIndex = 21;
this.labelMicrosoftTranslate.Text = "Microsoft translate"; this.labelMicrosoftTranslate.Text = "Microsoft translate";
// //
// comboBoxFrom // comboBoxFrom
// //
this.comboBoxFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxFrom.FormattingEnabled = true; this.comboBoxFrom.FormattingEnabled = true;
this.comboBoxFrom.Location = new System.Drawing.Point(256, 12); this.comboBoxFrom.Location = new System.Drawing.Point(256, 12);
this.comboBoxFrom.Name = "comboBoxFrom"; this.comboBoxFrom.Name = "comboBoxFrom";
this.comboBoxFrom.Size = new System.Drawing.Size(121, 21); this.comboBoxFrom.Size = new System.Drawing.Size(121, 21);
this.comboBoxFrom.TabIndex = 0; this.comboBoxFrom.TabIndex = 0;
// //
// buttonTranslate // buttonTranslate
// //
this.buttonTranslate.Location = new System.Drawing.Point(553, 12); this.buttonTranslate.Location = new System.Drawing.Point(553, 12);
this.buttonTranslate.Name = "buttonTranslate"; this.buttonTranslate.Name = "buttonTranslate";
this.buttonTranslate.Size = new System.Drawing.Size(75, 21); this.buttonTranslate.Size = new System.Drawing.Size(75, 21);
@ -107,53 +107,53 @@
this.buttonTranslate.Text = "Translate"; this.buttonTranslate.Text = "Translate";
this.buttonTranslate.UseVisualStyleBackColor = true; this.buttonTranslate.UseVisualStyleBackColor = true;
this.buttonTranslate.Click += new System.EventHandler(this.buttonTranslate_Click); this.buttonTranslate.Click += new System.EventHandler(this.buttonTranslate_Click);
// //
// labelTo // labelTo
// //
this.labelTo.AutoSize = true; this.labelTo.AutoSize = true;
this.labelTo.Location = new System.Drawing.Point(397, 15); this.labelTo.Location = new System.Drawing.Point(397, 15);
this.labelTo.Name = "labelTo"; this.labelTo.Name = "labelTo";
this.labelTo.Size = new System.Drawing.Size(23, 13); this.labelTo.Size = new System.Drawing.Size(23, 13);
this.labelTo.TabIndex = 25; this.labelTo.TabIndex = 25;
this.labelTo.Text = "To:"; this.labelTo.Text = "To:";
// //
// comboBoxTo // comboBoxTo
// //
this.comboBoxTo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxTo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxTo.FormattingEnabled = true; this.comboBoxTo.FormattingEnabled = true;
this.comboBoxTo.Location = new System.Drawing.Point(426, 12); this.comboBoxTo.Location = new System.Drawing.Point(426, 12);
this.comboBoxTo.Name = "comboBoxTo"; this.comboBoxTo.Name = "comboBoxTo";
this.comboBoxTo.Size = new System.Drawing.Size(121, 21); this.comboBoxTo.Size = new System.Drawing.Size(121, 21);
this.comboBoxTo.TabIndex = 1; this.comboBoxTo.TabIndex = 1;
// //
// labelFrom // labelFrom
// //
this.labelFrom.AutoSize = true; this.labelFrom.AutoSize = true;
this.labelFrom.Location = new System.Drawing.Point(214, 19); this.labelFrom.Location = new System.Drawing.Point(214, 19);
this.labelFrom.Name = "labelFrom"; this.labelFrom.Name = "labelFrom";
this.labelFrom.Size = new System.Drawing.Size(33, 13); this.labelFrom.Size = new System.Drawing.Size(33, 13);
this.labelFrom.TabIndex = 23; this.labelFrom.TabIndex = 23;
this.labelFrom.Text = "From:"; this.labelFrom.Text = "From:";
// //
// textBoxSourceText // textBoxSourceText
// //
this.textBoxSourceText.Location = new System.Drawing.Point(17, 71); this.textBoxSourceText.Location = new System.Drawing.Point(17, 71);
this.textBoxSourceText.Multiline = true; this.textBoxSourceText.Multiline = true;
this.textBoxSourceText.Name = "textBoxSourceText"; this.textBoxSourceText.Name = "textBoxSourceText";
this.textBoxSourceText.Size = new System.Drawing.Size(299, 53); this.textBoxSourceText.Size = new System.Drawing.Size(299, 53);
this.textBoxSourceText.TabIndex = 3; this.textBoxSourceText.TabIndex = 3;
// //
// labelSourceText // labelSourceText
// //
this.labelSourceText.AutoSize = true; this.labelSourceText.AutoSize = true;
this.labelSourceText.Location = new System.Drawing.Point(14, 55); this.labelSourceText.Location = new System.Drawing.Point(14, 55);
this.labelSourceText.Name = "labelSourceText"; this.labelSourceText.Name = "labelSourceText";
this.labelSourceText.Size = new System.Drawing.Size(61, 13); this.labelSourceText.Size = new System.Drawing.Size(61, 13);
this.labelSourceText.TabIndex = 28; this.labelSourceText.TabIndex = 28;
this.labelSourceText.Text = "Source text"; this.labelSourceText.Text = "Source text";
// //
// GoogleOrMicrosoftTranslate // GoogleOrMicrosoftTranslate
// //
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(638, 260); this.ClientSize = new System.Drawing.Size(638, 260);

View File

@ -48,7 +48,7 @@ namespace Nikse.SubtitleEdit.Forms
Nikse.SubtitleEdit.Forms.GoogleTranslate.ComboBoxItem item = (Nikse.SubtitleEdit.Forms.GoogleTranslate.ComboBoxItem)comboBox.Items[i]; Nikse.SubtitleEdit.Forms.GoogleTranslate.ComboBoxItem item = (Nikse.SubtitleEdit.Forms.GoogleTranslate.ComboBoxItem)comboBox.Items[i];
if (item.Value != FixMsLocale(item.Value)) if (item.Value != FixMsLocale(item.Value))
comboBox.Items.RemoveAt(i); comboBox.Items.RemoveAt(i);
} }
} }
internal void InitializeFromLanguage(string defaultFromLanguage, string defaultToLanguage) internal void InitializeFromLanguage(string defaultFromLanguage, string defaultToLanguage)
@ -87,7 +87,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void GoogleOrMicrosoftTranslate_Shown(object sender, EventArgs e) private void GoogleOrMicrosoftTranslate_Shown(object sender, EventArgs e)
{ {
Refresh(); Refresh();
Translate(); Translate();
} }

View File

@ -43,45 +43,45 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListViewTo = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.subtitleListViewTo = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.subtitleListViewFrom = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.subtitleListViewFrom = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.SuspendLayout(); this.SuspendLayout();
// //
// comboBoxFrom // comboBoxFrom
// //
this.comboBoxFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxFrom.FormattingEnabled = true; this.comboBoxFrom.FormattingEnabled = true;
this.comboBoxFrom.Location = new System.Drawing.Point(327, 34); this.comboBoxFrom.Location = new System.Drawing.Point(327, 34);
this.comboBoxFrom.Name = "comboBoxFrom"; this.comboBoxFrom.Name = "comboBoxFrom";
this.comboBoxFrom.Size = new System.Drawing.Size(121, 21); this.comboBoxFrom.Size = new System.Drawing.Size(121, 21);
this.comboBoxFrom.TabIndex = 0; this.comboBoxFrom.TabIndex = 0;
// //
// labelFrom // labelFrom
// //
this.labelFrom.AutoSize = true; this.labelFrom.AutoSize = true;
this.labelFrom.Location = new System.Drawing.Point(285, 41); this.labelFrom.Location = new System.Drawing.Point(285, 41);
this.labelFrom.Name = "labelFrom"; this.labelFrom.Name = "labelFrom";
this.labelFrom.Size = new System.Drawing.Size(35, 13); this.labelFrom.Size = new System.Drawing.Size(35, 13);
this.labelFrom.TabIndex = 1; this.labelFrom.TabIndex = 1;
this.labelFrom.Text = "From:"; this.labelFrom.Text = "From:";
// //
// labelTo // labelTo
// //
this.labelTo.AutoSize = true; this.labelTo.AutoSize = true;
this.labelTo.Location = new System.Drawing.Point(468, 37); this.labelTo.Location = new System.Drawing.Point(468, 37);
this.labelTo.Name = "labelTo"; this.labelTo.Name = "labelTo";
this.labelTo.Size = new System.Drawing.Size(23, 13); this.labelTo.Size = new System.Drawing.Size(23, 13);
this.labelTo.TabIndex = 4; this.labelTo.TabIndex = 4;
this.labelTo.Text = "To:"; this.labelTo.Text = "To:";
// //
// comboBoxTo // comboBoxTo
// //
this.comboBoxTo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxTo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxTo.FormattingEnabled = true; this.comboBoxTo.FormattingEnabled = true;
this.comboBoxTo.Location = new System.Drawing.Point(497, 34); this.comboBoxTo.Location = new System.Drawing.Point(497, 34);
this.comboBoxTo.Name = "comboBoxTo"; this.comboBoxTo.Name = "comboBoxTo";
this.comboBoxTo.Size = new System.Drawing.Size(121, 21); this.comboBoxTo.Size = new System.Drawing.Size(121, 21);
this.comboBoxTo.TabIndex = 3; this.comboBoxTo.TabIndex = 3;
// //
// buttonTranslate // buttonTranslate
// //
this.buttonTranslate.Location = new System.Drawing.Point(624, 34); this.buttonTranslate.Location = new System.Drawing.Point(624, 34);
this.buttonTranslate.Name = "buttonTranslate"; this.buttonTranslate.Name = "buttonTranslate";
this.buttonTranslate.Size = new System.Drawing.Size(75, 21); this.buttonTranslate.Size = new System.Drawing.Size(75, 21);
@ -89,9 +89,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonTranslate.Text = "Translate"; this.buttonTranslate.Text = "Translate";
this.buttonTranslate.UseVisualStyleBackColor = true; this.buttonTranslate.UseVisualStyleBackColor = true;
this.buttonTranslate.Click += new System.EventHandler(this.buttonTranslate_Click); this.buttonTranslate.Click += new System.EventHandler(this.buttonTranslate_Click);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(754, 529); this.buttonOK.Location = new System.Drawing.Point(754, 529);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -100,9 +100,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(835, 529); this.buttonCancel.Location = new System.Drawing.Point(835, 529);
@ -111,9 +111,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.TabIndex = 7; this.buttonCancel.TabIndex = 7;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// linkLabelPoweredByGoogleTranslate // linkLabelPoweredByGoogleTranslate
// //
this.linkLabelPoweredByGoogleTranslate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.linkLabelPoweredByGoogleTranslate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.linkLabelPoweredByGoogleTranslate.AutoSize = true; this.linkLabelPoweredByGoogleTranslate.AutoSize = true;
this.linkLabelPoweredByGoogleTranslate.Location = new System.Drawing.Point(15, 529); this.linkLabelPoweredByGoogleTranslate.Location = new System.Drawing.Point(15, 529);
@ -123,25 +123,25 @@ namespace Nikse.SubtitleEdit.Forms
this.linkLabelPoweredByGoogleTranslate.TabStop = true; this.linkLabelPoweredByGoogleTranslate.TabStop = true;
this.linkLabelPoweredByGoogleTranslate.Text = "Powered by Google translate"; this.linkLabelPoweredByGoogleTranslate.Text = "Powered by Google translate";
this.linkLabelPoweredByGoogleTranslate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked); this.linkLabelPoweredByGoogleTranslate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked);
// //
// labelPleaseWait // labelPleaseWait
// //
this.labelPleaseWait.AutoSize = true; this.labelPleaseWait.AutoSize = true;
this.labelPleaseWait.Location = new System.Drawing.Point(703, 23); this.labelPleaseWait.Location = new System.Drawing.Point(703, 23);
this.labelPleaseWait.Name = "labelPleaseWait"; this.labelPleaseWait.Name = "labelPleaseWait";
this.labelPleaseWait.Size = new System.Drawing.Size(176, 13); this.labelPleaseWait.Size = new System.Drawing.Size(176, 13);
this.labelPleaseWait.TabIndex = 10; this.labelPleaseWait.TabIndex = 10;
this.labelPleaseWait.Text = "Please wait... this may take a while"; this.labelPleaseWait.Text = "Please wait... this may take a while";
// //
// progressBar1 // progressBar1
// //
this.progressBar1.Location = new System.Drawing.Point(705, 39); this.progressBar1.Location = new System.Drawing.Point(705, 39);
this.progressBar1.Name = "progressBar1"; this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(192, 16); this.progressBar1.Size = new System.Drawing.Size(192, 16);
this.progressBar1.TabIndex = 11; this.progressBar1.TabIndex = 11;
// //
// subtitleListViewTo // subtitleListViewTo
// //
this.subtitleListViewTo.DisplayExtraFromExtra = false; this.subtitleListViewTo.DisplayExtraFromExtra = false;
this.subtitleListViewTo.FirstVisibleIndex = -1; this.subtitleListViewTo.FirstVisibleIndex = -1;
this.subtitleListViewTo.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.subtitleListViewTo.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -156,9 +156,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListViewTo.View = System.Windows.Forms.View.Details; this.subtitleListViewTo.View = System.Windows.Forms.View.Details;
this.subtitleListViewTo.Click += new System.EventHandler(this.subtitleListViewTo_DoubleClick); this.subtitleListViewTo.Click += new System.EventHandler(this.subtitleListViewTo_DoubleClick);
this.subtitleListViewTo.DoubleClick += new System.EventHandler(this.subtitleListViewTo_DoubleClick); this.subtitleListViewTo.DoubleClick += new System.EventHandler(this.subtitleListViewTo_DoubleClick);
// //
// subtitleListViewFrom // subtitleListViewFrom
// //
this.subtitleListViewFrom.DisplayExtraFromExtra = false; this.subtitleListViewFrom.DisplayExtraFromExtra = false;
this.subtitleListViewFrom.FirstVisibleIndex = -1; this.subtitleListViewFrom.FirstVisibleIndex = -1;
this.subtitleListViewFrom.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.subtitleListViewFrom.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -173,9 +173,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListViewFrom.View = System.Windows.Forms.View.Details; this.subtitleListViewFrom.View = System.Windows.Forms.View.Details;
this.subtitleListViewFrom.Click += new System.EventHandler(this.subtitleListViewFrom_DoubleClick); this.subtitleListViewFrom.Click += new System.EventHandler(this.subtitleListViewFrom_DoubleClick);
this.subtitleListViewFrom.DoubleClick += new System.EventHandler(this.subtitleListViewFrom_DoubleClick); this.subtitleListViewFrom.DoubleClick += new System.EventHandler(this.subtitleListViewFrom_DoubleClick);
// //
// GoogleTranslate // GoogleTranslate
// //
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(925, 558); this.ClientSize = new System.Drawing.Size(925, 558);

View File

@ -32,7 +32,7 @@ namespace Nikse.SubtitleEdit.Forms
if (text.Length > 1) if (text.Length > 1)
text = text.Substring(0, 1).ToUpper() + text.Substring(1).ToLower(); text = text.Substring(0, 1).ToUpper() + text.Substring(1).ToLower();
Text = text; Text = text;
Value = value; Value = value;
} }
@ -222,7 +222,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void FillTranslatedText(string translatedText, int start, int end) private void FillTranslatedText(string translatedText, int start, int end)
{ {
List<string> lines = new List<string>(); List<string> lines = new List<string>();
foreach (string s in translatedText.Split(new string[] { "|" }, StringSplitOptions.None)) foreach (string s in translatedText.Split(new string[] { "|" }, StringSplitOptions.None))
lines.Add(s); lines.Add(s);
@ -336,7 +336,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
string key = "<p style"; string key = "<p style";
while (test.Contains(key)) while (test.Contains(key))
{ {
int startPosition = test.IndexOf(key); int startPosition = test.IndexOf(key);
int endPosition = test.IndexOf(">", startPosition + key.Length); int endPosition = test.IndexOf(">", startPosition + key.Length);
if (endPosition == -1) if (endPosition == -1)
@ -362,7 +362,7 @@ namespace Nikse.SubtitleEdit.Forms
//string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}", HttpUtility.UrlEncode(input), languagePair); //string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}", HttpUtility.UrlEncode(input), languagePair);
string url = String.Format("http://translate.google.com/?hl=en&eotf=1&sl={0}&tl={1}&q={2}", languagePair.Substring(0, 2), languagePair.Substring(3), HttpUtility.UrlEncode(input)); string url = String.Format("http://translate.google.com/?hl=en&eotf=1&sl={0}&tl={1}&q={2}", languagePair.Substring(0, 2), languagePair.Substring(3), HttpUtility.UrlEncode(input));
WebClient webClient = new WebClient(); WebClient webClient = new WebClient();
webClient.Proxy = Utilities.GetProxy(); webClient.Proxy = Utilities.GetProxy();
webClient.Encoding = System.Text.Encoding.Default; webClient.Encoding = System.Text.Encoding.Default;
@ -417,7 +417,7 @@ namespace Nikse.SubtitleEdit.Forms
if (end > 0) if (end > 0)
{ {
res = res.Substring(0, end); res = res.Substring(0, end);
} }
return res; return res;
} }
@ -428,7 +428,7 @@ namespace Nikse.SubtitleEdit.Forms
if (comboBox == comboBoxTo) if (comboBox == comboBoxTo)
{ {
foreach (ComboBoxItem item in comboBoxFrom.Items) foreach (ComboBoxItem item in comboBoxFrom.Items)
{ {
comboBoxTo.Items.Add(new ComboBoxItem(item.Text, item.Value)); comboBoxTo.Items.Add(new ComboBoxItem(item.Text, item.Value));
} }
return; return;
@ -710,7 +710,7 @@ namespace Nikse.SubtitleEdit.Forms
s = s.Replace(" gonna ", " ville "); s = s.Replace(" gonna ", " ville ");
s = s.Replace("Gonna ", "Vil "); s = s.Replace("Gonna ", "Vil ");
s = s.Replace("Ked af.", "Undskyld."); s = s.Replace("Ked af.", "Undskyld.");
} }
return s; return s;
} }

View File

@ -58,9 +58,9 @@
this.groupBoxSplitting.SuspendLayout(); this.groupBoxSplitting.SuspendLayout();
this.groupBoxImportResult.SuspendLayout(); this.groupBoxImportResult.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOpenText // buttonOpenText
// //
this.buttonOpenText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonOpenText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOpenText.Location = new System.Drawing.Point(358, 19); this.buttonOpenText.Location = new System.Drawing.Point(358, 19);
this.buttonOpenText.Name = "buttonOpenText"; this.buttonOpenText.Name = "buttonOpenText";
@ -69,10 +69,10 @@
this.buttonOpenText.Text = "Open file..."; this.buttonOpenText.Text = "Open file...";
this.buttonOpenText.UseVisualStyleBackColor = true; this.buttonOpenText.UseVisualStyleBackColor = true;
this.buttonOpenText.Click += new System.EventHandler(this.buttonOpenText_Click); this.buttonOpenText.Click += new System.EventHandler(this.buttonOpenText_Click);
// //
// groupBoxImportText // groupBoxImportText
// //
this.groupBoxImportText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxImportText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImportText.Controls.Add(this.textBoxText); this.groupBoxImportText.Controls.Add(this.textBoxText);
this.groupBoxImportText.Controls.Add(this.buttonOpenText); this.groupBoxImportText.Controls.Add(this.buttonOpenText);
@ -82,11 +82,11 @@
this.groupBoxImportText.TabIndex = 13; this.groupBoxImportText.TabIndex = 13;
this.groupBoxImportText.TabStop = false; this.groupBoxImportText.TabStop = false;
this.groupBoxImportText.Text = "Import text"; this.groupBoxImportText.Text = "Import text";
// //
// textBoxText // textBoxText
// //
this.textBoxText.AllowDrop = true; this.textBoxText.AllowDrop = true;
this.textBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.textBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.textBoxText.Location = new System.Drawing.Point(6, 48); this.textBoxText.Location = new System.Drawing.Point(6, 48);
this.textBoxText.MaxLength = 232767; this.textBoxText.MaxLength = 232767;
@ -98,9 +98,9 @@
this.textBoxText.TextChanged += new System.EventHandler(this.textBoxText_TextChanged); this.textBoxText.TextChanged += new System.EventHandler(this.textBoxText_TextChanged);
this.textBoxText.DragDrop += new System.Windows.Forms.DragEventHandler(this.textBoxText_DragDrop); this.textBoxText.DragDrop += new System.Windows.Forms.DragEventHandler(this.textBoxText_DragDrop);
this.textBoxText.DragEnter += new System.Windows.Forms.DragEventHandler(this.textBoxText_DragEnter); this.textBoxText.DragEnter += new System.Windows.Forms.DragEventHandler(this.textBoxText_DragEnter);
// //
// groupBoxImportOptions // groupBoxImportOptions
// //
this.groupBoxImportOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBoxImportOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImportOptions.Controls.Add(this.checkBoxMergeShortLines); this.groupBoxImportOptions.Controls.Add(this.checkBoxMergeShortLines);
this.groupBoxImportOptions.Controls.Add(this.groupBoxDuration); this.groupBoxImportOptions.Controls.Add(this.groupBoxDuration);
@ -116,9 +116,9 @@
this.groupBoxImportOptions.TabIndex = 14; this.groupBoxImportOptions.TabIndex = 14;
this.groupBoxImportOptions.TabStop = false; this.groupBoxImportOptions.TabStop = false;
this.groupBoxImportOptions.Text = "Import options"; this.groupBoxImportOptions.Text = "Import options";
// //
// checkBoxMergeShortLines // checkBoxMergeShortLines
// //
this.checkBoxMergeShortLines.AutoSize = true; this.checkBoxMergeShortLines.AutoSize = true;
this.checkBoxMergeShortLines.Checked = true; this.checkBoxMergeShortLines.Checked = true;
this.checkBoxMergeShortLines.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxMergeShortLines.CheckState = System.Windows.Forms.CheckState.Checked;
@ -129,9 +129,9 @@
this.checkBoxMergeShortLines.Text = "Merge short lines with continuation"; this.checkBoxMergeShortLines.Text = "Merge short lines with continuation";
this.checkBoxMergeShortLines.UseVisualStyleBackColor = true; this.checkBoxMergeShortLines.UseVisualStyleBackColor = true;
this.checkBoxMergeShortLines.CheckedChanged += new System.EventHandler(this.checkBoxMergeShortLines_CheckedChanged); this.checkBoxMergeShortLines.CheckedChanged += new System.EventHandler(this.checkBoxMergeShortLines_CheckedChanged);
// //
// groupBoxDuration // groupBoxDuration
// //
this.groupBoxDuration.Controls.Add(this.numericUpDownDurationFixed); this.groupBoxDuration.Controls.Add(this.numericUpDownDurationFixed);
this.groupBoxDuration.Controls.Add(this.radioButtonDurationFixed); this.groupBoxDuration.Controls.Add(this.radioButtonDurationFixed);
this.groupBoxDuration.Controls.Add(this.radioButtonDurationAuto); this.groupBoxDuration.Controls.Add(this.radioButtonDurationAuto);
@ -141,9 +141,9 @@
this.groupBoxDuration.TabIndex = 39; this.groupBoxDuration.TabIndex = 39;
this.groupBoxDuration.TabStop = false; this.groupBoxDuration.TabStop = false;
this.groupBoxDuration.Text = "Duration"; this.groupBoxDuration.Text = "Duration";
// //
// numericUpDownDurationFixed // numericUpDownDurationFixed
// //
this.numericUpDownDurationFixed.Location = new System.Drawing.Point(111, 42); this.numericUpDownDurationFixed.Location = new System.Drawing.Point(111, 42);
this.numericUpDownDurationFixed.Maximum = new decimal(new int[] { this.numericUpDownDurationFixed.Maximum = new decimal(new int[] {
10000, 10000,
@ -163,9 +163,9 @@
0, 0,
0, 0,
0}); 0});
// //
// radioButtonDurationFixed // radioButtonDurationFixed
// //
this.radioButtonDurationFixed.AutoSize = true; this.radioButtonDurationFixed.AutoSize = true;
this.radioButtonDurationFixed.Location = new System.Drawing.Point(16, 42); this.radioButtonDurationFixed.Location = new System.Drawing.Point(16, 42);
this.radioButtonDurationFixed.Name = "radioButtonDurationFixed"; this.radioButtonDurationFixed.Name = "radioButtonDurationFixed";
@ -174,9 +174,9 @@
this.radioButtonDurationFixed.Text = "Fixed"; this.radioButtonDurationFixed.Text = "Fixed";
this.radioButtonDurationFixed.UseVisualStyleBackColor = true; this.radioButtonDurationFixed.UseVisualStyleBackColor = true;
this.radioButtonDurationFixed.CheckedChanged += new System.EventHandler(this.radioButtonDurationFixed_CheckedChanged); this.radioButtonDurationFixed.CheckedChanged += new System.EventHandler(this.radioButtonDurationFixed_CheckedChanged);
// //
// radioButtonDurationAuto // radioButtonDurationAuto
// //
this.radioButtonDurationAuto.AutoSize = true; this.radioButtonDurationAuto.AutoSize = true;
this.radioButtonDurationAuto.Checked = true; this.radioButtonDurationAuto.Checked = true;
this.radioButtonDurationAuto.Location = new System.Drawing.Point(16, 19); this.radioButtonDurationAuto.Location = new System.Drawing.Point(16, 19);
@ -186,9 +186,9 @@
this.radioButtonDurationAuto.TabStop = true; this.radioButtonDurationAuto.TabStop = true;
this.radioButtonDurationAuto.Text = "Auto"; this.radioButtonDurationAuto.Text = "Auto";
this.radioButtonDurationAuto.UseVisualStyleBackColor = true; this.radioButtonDurationAuto.UseVisualStyleBackColor = true;
// //
// buttonRefresh // buttonRefresh
// //
this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonRefresh.Location = new System.Drawing.Point(11, 299); this.buttonRefresh.Location = new System.Drawing.Point(11, 299);
this.buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.Name = "buttonRefresh";
@ -197,9 +197,9 @@
this.buttonRefresh.Text = "Refresh"; this.buttonRefresh.Text = "Refresh";
this.buttonRefresh.UseVisualStyleBackColor = true; this.buttonRefresh.UseVisualStyleBackColor = true;
this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click); this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
// //
// numericUpDownGapBetweenLines // numericUpDownGapBetweenLines
// //
this.numericUpDownGapBetweenLines.Location = new System.Drawing.Point(19, 192); this.numericUpDownGapBetweenLines.Location = new System.Drawing.Point(19, 192);
this.numericUpDownGapBetweenLines.Maximum = new decimal(new int[] { this.numericUpDownGapBetweenLines.Maximum = new decimal(new int[] {
10000, 10000,
@ -219,18 +219,18 @@
0, 0,
0, 0,
0}); 0});
// //
// labelGapBetweenSubtitles // labelGapBetweenSubtitles
// //
this.labelGapBetweenSubtitles.AutoSize = true; this.labelGapBetweenSubtitles.AutoSize = true;
this.labelGapBetweenSubtitles.Location = new System.Drawing.Point(19, 175); this.labelGapBetweenSubtitles.Location = new System.Drawing.Point(19, 175);
this.labelGapBetweenSubtitles.Name = "labelGapBetweenSubtitles"; this.labelGapBetweenSubtitles.Name = "labelGapBetweenSubtitles";
this.labelGapBetweenSubtitles.Size = new System.Drawing.Size(180, 13); this.labelGapBetweenSubtitles.Size = new System.Drawing.Size(180, 13);
this.labelGapBetweenSubtitles.TabIndex = 37; this.labelGapBetweenSubtitles.TabIndex = 37;
this.labelGapBetweenSubtitles.Text = "Gap between subtitles (milliseconds)"; this.labelGapBetweenSubtitles.Text = "Gap between subtitles (milliseconds)";
// //
// checkBoxRemoveLinesWithoutLetters // checkBoxRemoveLinesWithoutLetters
// //
this.checkBoxRemoveLinesWithoutLetters.AutoSize = true; this.checkBoxRemoveLinesWithoutLetters.AutoSize = true;
this.checkBoxRemoveLinesWithoutLetters.Checked = true; this.checkBoxRemoveLinesWithoutLetters.Checked = true;
this.checkBoxRemoveLinesWithoutLetters.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveLinesWithoutLetters.CheckState = System.Windows.Forms.CheckState.Checked;
@ -241,9 +241,9 @@
this.checkBoxRemoveLinesWithoutLetters.Text = "Remove lines without letters"; this.checkBoxRemoveLinesWithoutLetters.Text = "Remove lines without letters";
this.checkBoxRemoveLinesWithoutLetters.UseVisualStyleBackColor = true; this.checkBoxRemoveLinesWithoutLetters.UseVisualStyleBackColor = true;
this.checkBoxRemoveLinesWithoutLetters.CheckedChanged += new System.EventHandler(this.checkBoxRemoveLinesWithoutLettersOrNumbers_CheckedChanged); this.checkBoxRemoveLinesWithoutLetters.CheckedChanged += new System.EventHandler(this.checkBoxRemoveLinesWithoutLettersOrNumbers_CheckedChanged);
// //
// groupBoxSplitting // groupBoxSplitting
// //
this.groupBoxSplitting.Controls.Add(this.radioButtonAutoSplit); this.groupBoxSplitting.Controls.Add(this.radioButtonAutoSplit);
this.groupBoxSplitting.Controls.Add(this.radioButtonLineMode); this.groupBoxSplitting.Controls.Add(this.radioButtonLineMode);
this.groupBoxSplitting.Location = new System.Drawing.Point(6, 19); this.groupBoxSplitting.Location = new System.Drawing.Point(6, 19);
@ -252,9 +252,9 @@
this.groupBoxSplitting.TabIndex = 4; this.groupBoxSplitting.TabIndex = 4;
this.groupBoxSplitting.TabStop = false; this.groupBoxSplitting.TabStop = false;
this.groupBoxSplitting.Text = "Splitting"; this.groupBoxSplitting.Text = "Splitting";
// //
// radioButtonAutoSplit // radioButtonAutoSplit
// //
this.radioButtonAutoSplit.AutoSize = true; this.radioButtonAutoSplit.AutoSize = true;
this.radioButtonAutoSplit.Checked = true; this.radioButtonAutoSplit.Checked = true;
this.radioButtonAutoSplit.Location = new System.Drawing.Point(14, 19); this.radioButtonAutoSplit.Location = new System.Drawing.Point(14, 19);
@ -265,9 +265,9 @@
this.radioButtonAutoSplit.Text = "Auto split text"; this.radioButtonAutoSplit.Text = "Auto split text";
this.radioButtonAutoSplit.UseVisualStyleBackColor = true; this.radioButtonAutoSplit.UseVisualStyleBackColor = true;
this.radioButtonAutoSplit.CheckedChanged += new System.EventHandler(this.radioButtonAutoSplit_CheckedChanged); this.radioButtonAutoSplit.CheckedChanged += new System.EventHandler(this.radioButtonAutoSplit_CheckedChanged);
// //
// radioButtonLineMode // radioButtonLineMode
// //
this.radioButtonLineMode.AutoSize = true; this.radioButtonLineMode.AutoSize = true;
this.radioButtonLineMode.Location = new System.Drawing.Point(14, 42); this.radioButtonLineMode.Location = new System.Drawing.Point(14, 42);
this.radioButtonLineMode.Name = "radioButtonLineMode"; this.radioButtonLineMode.Name = "radioButtonLineMode";
@ -276,9 +276,9 @@
this.radioButtonLineMode.Text = "One line is one subtitle"; this.radioButtonLineMode.Text = "One line is one subtitle";
this.radioButtonLineMode.UseVisualStyleBackColor = true; this.radioButtonLineMode.UseVisualStyleBackColor = true;
this.radioButtonLineMode.CheckedChanged += new System.EventHandler(this.radioButtonLineMode_CheckedChanged); this.radioButtonLineMode.CheckedChanged += new System.EventHandler(this.radioButtonLineMode_CheckedChanged);
// //
// checkBoxRemoveEmptyLines // checkBoxRemoveEmptyLines
// //
this.checkBoxRemoveEmptyLines.AutoSize = true; this.checkBoxRemoveEmptyLines.AutoSize = true;
this.checkBoxRemoveEmptyLines.Checked = true; this.checkBoxRemoveEmptyLines.Checked = true;
this.checkBoxRemoveEmptyLines.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveEmptyLines.CheckState = System.Windows.Forms.CheckState.Checked;
@ -289,11 +289,11 @@
this.checkBoxRemoveEmptyLines.Text = "Remove empty lines"; this.checkBoxRemoveEmptyLines.Text = "Remove empty lines";
this.checkBoxRemoveEmptyLines.UseVisualStyleBackColor = true; this.checkBoxRemoveEmptyLines.UseVisualStyleBackColor = true;
this.checkBoxRemoveEmptyLines.CheckedChanged += new System.EventHandler(this.checkBoxRemoveEmptyLines_CheckedChanged); this.checkBoxRemoveEmptyLines.CheckedChanged += new System.EventHandler(this.checkBoxRemoveEmptyLines_CheckedChanged);
// //
// groupBoxImportResult // groupBoxImportResult
// //
this.groupBoxImportResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxImportResult.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.groupBoxImportResult.Controls.Add(this.SubtitleListview1); this.groupBoxImportResult.Controls.Add(this.SubtitleListview1);
this.groupBoxImportResult.Location = new System.Drawing.Point(12, 344); this.groupBoxImportResult.Location = new System.Drawing.Point(12, 344);
@ -302,12 +302,12 @@
this.groupBoxImportResult.TabIndex = 15; this.groupBoxImportResult.TabIndex = 15;
this.groupBoxImportResult.TabStop = false; this.groupBoxImportResult.TabStop = false;
this.groupBoxImportResult.Text = "Preview"; this.groupBoxImportResult.Text = "Preview";
// //
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowDrop = true; this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.SubtitleListview1.FirstVisibleIndex = -1; 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -321,13 +321,13 @@
this.SubtitleListview1.TabIndex = 12; this.SubtitleListview1.TabIndex = 12;
this.SubtitleListview1.UseCompatibleStateImageBehavior = false; this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(754, 579); this.buttonCancel.Location = new System.Drawing.Point(754, 579);
@ -337,9 +337,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(673, 579); this.buttonOK.Location = new System.Drawing.Point(673, 579);
@ -349,9 +349,9 @@
this.buttonOK.Text = "&Next >"; this.buttonOK.Text = "&Next >";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// ImportText // ImportText
// //
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(847, 616); this.ClientSize = new System.Drawing.Size(847, 616);

View File

@ -87,7 +87,7 @@ namespace Nikse.SubtitleEdit.Forms
_subtitle.Renumber(1); _subtitle.Renumber(1);
FixDurations(); FixDurations();
MakePseudoStartTime(); MakePseudoStartTime();
groupBoxImportResult.Text = string.Format(Configuration.Settings.Language.ImportText.PreviewLinesModifiedX, _subtitle.Paragraphs.Count); groupBoxImportResult.Text = string.Format(Configuration.Settings.Language.ImportText.PreviewLinesModifiedX, _subtitle.Paragraphs.Count);
SubtitleListview1.Fill(_subtitle); SubtitleListview1.Fill(_subtitle);
if (_subtitle.Paragraphs.Count > 0) if (_subtitle.Paragraphs.Count > 0)
@ -172,7 +172,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ImportLineMode(IEnumerable<string> lines) private void ImportLineMode(IEnumerable<string> lines)
{ {
foreach (string line in lines) foreach (string line in lines)
{ {
if (line.Trim().Length == 0) if (line.Trim().Length == 0)
{ {
if (!checkBoxRemoveEmptyLines.Checked) if (!checkBoxRemoveEmptyLines.Checked)
@ -186,7 +186,7 @@ namespace Nikse.SubtitleEdit.Forms
else else
{ {
_subtitle.Paragraphs.Add(new Paragraph(0, 0, line.Trim())); _subtitle.Paragraphs.Add(new Paragraph(0, 0, line.Trim()));
} }
} }
} }
@ -252,7 +252,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
string letterList = Utilities.GetLetters(true, true, false); string letterList = Utilities.GetLetters(true, true, false);
foreach (char ch in line.ToCharArray()) foreach (char ch in line.ToCharArray())
{ {
if (letterList.Contains(ch.ToString())) if (letterList.Contains(ch.ToString()))
return true; return true;
} }
@ -274,7 +274,7 @@ namespace Nikse.SubtitleEdit.Forms
private void checkBoxRemoveLinesWithoutLettersOrNumbers_CheckedChanged(object sender, EventArgs e) private void checkBoxRemoveLinesWithoutLettersOrNumbers_CheckedChanged(object sender, EventArgs e)
{ {
GeneratePreview(); GeneratePreview();
} }
private void checkBoxRemoveEmptyLines_CheckedChanged(object sender, EventArgs e) private void checkBoxRemoveEmptyLines_CheckedChanged(object sender, EventArgs e)
@ -335,10 +335,10 @@ namespace Nikse.SubtitleEdit.Forms
XmlDocument doc = new XmlDocument(); XmlDocument doc = new XmlDocument();
doc.Load(fileName); doc.Load(fileName);
foreach (XmlNode node in doc.DocumentElement.SelectNodes("//paragraph[@element='Dialog']")) // <paragraph objID="1:28" element="Dialog"> foreach (XmlNode node in doc.DocumentElement.SelectNodes("//paragraph[@element='Dialog']")) // <paragraph objID="1:28" element="Dialog">
{ {
XmlNode textRun = node.SelectSingleNode("textRun"); // <textRun objID="1:259">Yeah...I suppose</textRun> XmlNode textRun = node.SelectSingleNode("textRun"); // <textRun objID="1:259">Yeah...I suppose</textRun>
if (textRun != null) if (textRun != null)
sb.AppendLine(textRun.InnerText); sb.AppendLine(textRun.InnerText);
} }
textBoxText.Text = sb.ToString(); textBoxText.Text = sb.ToString();
SetVideoFileName(fileName); SetVideoFileName(fileName);

View File

@ -37,9 +37,9 @@
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.groupBoxNamesIgonoreLists.SuspendLayout(); this.groupBoxNamesIgonoreLists.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxNamesIgonoreLists // groupBoxNamesIgonoreLists
// //
this.groupBoxNamesIgonoreLists.Controls.Add(this.buttonRemove); this.groupBoxNamesIgonoreLists.Controls.Add(this.buttonRemove);
this.groupBoxNamesIgonoreLists.Controls.Add(this.listBoxInterjections); this.groupBoxNamesIgonoreLists.Controls.Add(this.listBoxInterjections);
this.groupBoxNamesIgonoreLists.Controls.Add(this.textBoxInterjection); this.groupBoxNamesIgonoreLists.Controls.Add(this.textBoxInterjection);
@ -49,9 +49,9 @@
this.groupBoxNamesIgonoreLists.Size = new System.Drawing.Size(241, 250); this.groupBoxNamesIgonoreLists.Size = new System.Drawing.Size(241, 250);
this.groupBoxNamesIgonoreLists.TabIndex = 3; this.groupBoxNamesIgonoreLists.TabIndex = 3;
this.groupBoxNamesIgonoreLists.TabStop = false; this.groupBoxNamesIgonoreLists.TabStop = false;
// //
// buttonRemove // buttonRemove
// //
this.buttonRemove.Location = new System.Drawing.Point(159, 16); this.buttonRemove.Location = new System.Drawing.Point(159, 16);
this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Name = "buttonRemove";
this.buttonRemove.Size = new System.Drawing.Size(75, 21); this.buttonRemove.Size = new System.Drawing.Size(75, 21);
@ -59,26 +59,26 @@
this.buttonRemove.Text = "Remove"; this.buttonRemove.Text = "Remove";
this.buttonRemove.UseVisualStyleBackColor = true; this.buttonRemove.UseVisualStyleBackColor = true;
this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click); this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click);
// //
// listBoxInterjections // listBoxInterjections
// //
this.listBoxInterjections.FormattingEnabled = true; this.listBoxInterjections.FormattingEnabled = true;
this.listBoxInterjections.Location = new System.Drawing.Point(3, 16); this.listBoxInterjections.Location = new System.Drawing.Point(3, 16);
this.listBoxInterjections.Name = "listBoxInterjections"; this.listBoxInterjections.Name = "listBoxInterjections";
this.listBoxInterjections.Size = new System.Drawing.Size(150, 199); this.listBoxInterjections.Size = new System.Drawing.Size(150, 199);
this.listBoxInterjections.TabIndex = 20; this.listBoxInterjections.TabIndex = 20;
this.listBoxInterjections.SelectedIndexChanged += new System.EventHandler(this.listBoxInterjections_SelectedIndexChanged); this.listBoxInterjections.SelectedIndexChanged += new System.EventHandler(this.listBoxInterjections_SelectedIndexChanged);
// //
// textBoxInterjection // textBoxInterjection
// //
this.textBoxInterjection.Location = new System.Drawing.Point(2, 220); this.textBoxInterjection.Location = new System.Drawing.Point(2, 220);
this.textBoxInterjection.Name = "textBoxInterjection"; this.textBoxInterjection.Name = "textBoxInterjection";
this.textBoxInterjection.Size = new System.Drawing.Size(151, 20); this.textBoxInterjection.Size = new System.Drawing.Size(151, 20);
this.textBoxInterjection.TabIndex = 24; this.textBoxInterjection.TabIndex = 24;
this.textBoxInterjection.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxInterjection_KeyDown); this.textBoxInterjection.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxInterjection_KeyDown);
// //
// buttonAdd // buttonAdd
// //
this.buttonAdd.Location = new System.Drawing.Point(159, 219); this.buttonAdd.Location = new System.Drawing.Point(159, 219);
this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.Name = "buttonAdd";
this.buttonAdd.Size = new System.Drawing.Size(75, 21); this.buttonAdd.Size = new System.Drawing.Size(75, 21);
@ -86,9 +86,9 @@
this.buttonAdd.Text = "Add"; this.buttonAdd.Text = "Add";
this.buttonAdd.UseVisualStyleBackColor = true; this.buttonAdd.UseVisualStyleBackColor = true;
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click); this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(178, 281); this.buttonCancel.Location = new System.Drawing.Point(178, 281);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -96,9 +96,9 @@
this.buttonCancel.TabIndex = 5; this.buttonCancel.TabIndex = 5;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.Location = new System.Drawing.Point(99, 281); this.buttonOK.Location = new System.Drawing.Point(99, 281);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -106,9 +106,9 @@
this.buttonOK.TabIndex = 4; this.buttonOK.TabIndex = 4;
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
// //
// Interjections // Interjections
// //
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(268, 315); this.ClientSize = new System.Drawing.Size(268, 315);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -33,9 +33,9 @@
this.listBox1 = new System.Windows.Forms.ListBox(); this.listBox1 = new System.Windows.Forms.ListBox();
this.labelChoose = new System.Windows.Forms.Label(); this.labelChoose = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.BackColor = System.Drawing.SystemColors.Control; this.buttonCancel.BackColor = System.Drawing.SystemColors.Control;
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
@ -45,9 +45,9 @@
this.buttonCancel.TabIndex = 46; this.buttonCancel.TabIndex = 46;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = false; this.buttonCancel.UseVisualStyleBackColor = false;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(281, 250); this.buttonOK.Location = new System.Drawing.Point(281, 250);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -56,11 +56,11 @@
this.buttonOK.Text = "OK"; this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// listBox1 // listBox1
// //
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listBox1.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.listBox1.FormattingEnabled = true; this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(12, 43); this.listBox1.Location = new System.Drawing.Point(12, 43);
@ -68,18 +68,18 @@
this.listBox1.Size = new System.Drawing.Size(425, 199); this.listBox1.Size = new System.Drawing.Size(425, 199);
this.listBox1.TabIndex = 47; this.listBox1.TabIndex = 47;
this.listBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDoubleClick); this.listBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDoubleClick);
// //
// labelChoose // labelChoose
// //
this.labelChoose.AutoSize = true; this.labelChoose.AutoSize = true;
this.labelChoose.Location = new System.Drawing.Point(9, 20); this.labelChoose.Location = new System.Drawing.Point(9, 20);
this.labelChoose.Name = "labelChoose"; this.labelChoose.Name = "labelChoose";
this.labelChoose.Size = new System.Drawing.Size(224, 13); this.labelChoose.Size = new System.Drawing.Size(224, 13);
this.labelChoose.TabIndex = 48; this.labelChoose.TabIndex = 48;
this.labelChoose.Text = "More than one subtitle found - please choose"; this.labelChoose.Text = "More than one subtitle found - please choose";
// //
// MatroskaSubtitleChooser // MatroskaSubtitleChooser
// //
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(450, 277); this.ClientSize = new System.Drawing.Size(450, 277);

View File

@ -56,8 +56,8 @@ namespace Nikse.SubtitleEdit.Forms
i++; i++;
string handler = track.Mdia.HandlerName; string handler = track.Mdia.HandlerName;
if (handler != null && handler.Length > 1) if (handler != null && handler.Length > 1)
handler = " - " + handler; handler = " - " + handler;
string s = string.Format("{0}: {1} - {2}{3}", i, track.Mdia.Mdhd.Iso639ThreeLetterCode, track.Mdia.Mdhd.LanguageString, handler); string s = string.Format("{0}: {1} - {2}{3}", i, track.Mdia.Mdhd.Iso639ThreeLetterCode, track.Mdia.Mdhd.LanguageString, handler);
listBox1.Items.Add(s); listBox1.Items.Add(s);
} }
listBox1.SelectedIndex = 0; listBox1.SelectedIndex = 0;

View File

@ -47,9 +47,9 @@ namespace Nikse.SubtitleEdit.Forms
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxMillisecondsBetweenLines)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxMillisecondsBetweenLines)).BeginInit();
this.groupBoxLinesFound.SuspendLayout(); this.groupBoxLinesFound.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(608, 562); this.buttonOK.Location = new System.Drawing.Point(608, 562);
@ -59,9 +59,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -72,9 +72,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick); this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
// //
// numericUpDownMaxCharacters // numericUpDownMaxCharacters
// //
this.numericUpDownMaxCharacters.Location = new System.Drawing.Point(190, 27); this.numericUpDownMaxCharacters.Location = new System.Drawing.Point(190, 27);
this.numericUpDownMaxCharacters.Maximum = new decimal(new int[] { this.numericUpDownMaxCharacters.Maximum = new decimal(new int[] {
200, 200,
@ -95,27 +95,27 @@ namespace Nikse.SubtitleEdit.Forms
0, 0,
0}); 0});
this.numericUpDownMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged); this.numericUpDownMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged);
// //
// labelMaxCharacters // labelMaxCharacters
// //
this.labelMaxCharacters.AutoSize = true; this.labelMaxCharacters.AutoSize = true;
this.labelMaxCharacters.Location = new System.Drawing.Point(187, 9); this.labelMaxCharacters.Location = new System.Drawing.Point(187, 9);
this.labelMaxCharacters.Name = "labelMaxCharacters"; this.labelMaxCharacters.Name = "labelMaxCharacters";
this.labelMaxCharacters.Size = new System.Drawing.Size(190, 13); this.labelMaxCharacters.Size = new System.Drawing.Size(190, 13);
this.labelMaxCharacters.TabIndex = 32; this.labelMaxCharacters.TabIndex = 32;
this.labelMaxCharacters.Text = "Maximum characters in one paragraph"; this.labelMaxCharacters.Text = "Maximum characters in one paragraph";
// //
// labelMaxMillisecondsBetweenLines // labelMaxMillisecondsBetweenLines
// //
this.labelMaxMillisecondsBetweenLines.AutoSize = true; this.labelMaxMillisecondsBetweenLines.AutoSize = true;
this.labelMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(483, 9); this.labelMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(483, 9);
this.labelMaxMillisecondsBetweenLines.Name = "labelMaxMillisecondsBetweenLines"; this.labelMaxMillisecondsBetweenLines.Name = "labelMaxMillisecondsBetweenLines";
this.labelMaxMillisecondsBetweenLines.Size = new System.Drawing.Size(178, 13); this.labelMaxMillisecondsBetweenLines.Size = new System.Drawing.Size(178, 13);
this.labelMaxMillisecondsBetweenLines.TabIndex = 33; this.labelMaxMillisecondsBetweenLines.TabIndex = 33;
this.labelMaxMillisecondsBetweenLines.Text = "Maximum milliseconds between lines"; this.labelMaxMillisecondsBetweenLines.Text = "Maximum milliseconds between lines";
// //
// numericUpDownMaxMillisecondsBetweenLines // numericUpDownMaxMillisecondsBetweenLines
// //
this.numericUpDownMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(486, 26); this.numericUpDownMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(486, 26);
this.numericUpDownMaxMillisecondsBetweenLines.Maximum = new decimal(new int[] { this.numericUpDownMaxMillisecondsBetweenLines.Maximum = new decimal(new int[] {
2000, 2000,
@ -136,10 +136,10 @@ namespace Nikse.SubtitleEdit.Forms
0, 0,
0}); 0});
this.numericUpDownMaxMillisecondsBetweenLines.ValueChanged += new System.EventHandler(this.NumericUpDownMaxMillisecondsBetweenLinesValueChanged); this.numericUpDownMaxMillisecondsBetweenLines.ValueChanged += new System.EventHandler(this.NumericUpDownMaxMillisecondsBetweenLinesValueChanged);
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxLinesFound.Controls.Add(this.listViewFixes); this.groupBoxLinesFound.Controls.Add(this.listViewFixes);
this.groupBoxLinesFound.Location = new System.Drawing.Point(13, 68); this.groupBoxLinesFound.Location = new System.Drawing.Point(13, 68);
@ -148,10 +148,10 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxLinesFound.TabIndex = 36; this.groupBoxLinesFound.TabIndex = 36;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines that will be merged"; this.groupBoxLinesFound.Text = "Lines that will be merged";
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listViewFixes.CheckBoxes = true; this.listViewFixes.CheckBoxes = true;
this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -166,24 +166,24 @@ namespace Nikse.SubtitleEdit.Forms
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.listViewFixes_SelectedIndexChanged); this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.listViewFixes_SelectedIndexChanged);
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 45; this.columnHeader4.Width = 45;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 122; this.columnHeader5.Width = 122;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "New text"; this.columnHeader7.Text = "New text";
this.columnHeader7.Width = 500; this.columnHeader7.Width = 500;
// //
// checkBoxOnlyContinuationLines // checkBoxOnlyContinuationLines
// //
this.checkBoxOnlyContinuationLines.AutoSize = true; this.checkBoxOnlyContinuationLines.AutoSize = true;
this.checkBoxOnlyContinuationLines.Checked = true; this.checkBoxOnlyContinuationLines.Checked = true;
this.checkBoxOnlyContinuationLines.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxOnlyContinuationLines.CheckState = System.Windows.Forms.CheckState.Checked;
@ -194,12 +194,12 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxOnlyContinuationLines.Text = "Only merge continuation lines"; this.checkBoxOnlyContinuationLines.Text = "Only merge continuation lines";
this.checkBoxOnlyContinuationLines.UseVisualStyleBackColor = true; this.checkBoxOnlyContinuationLines.UseVisualStyleBackColor = true;
this.checkBoxOnlyContinuationLines.CheckedChanged += new System.EventHandler(this.checkBoxOnlyContinuationLines_CheckedChanged); this.checkBoxOnlyContinuationLines.CheckedChanged += new System.EventHandler(this.checkBoxOnlyContinuationLines_CheckedChanged);
// //
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowDrop = true; this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.SubtitleListview1.FirstVisibleIndex = -1; 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -212,9 +212,9 @@ namespace Nikse.SubtitleEdit.Forms
this.SubtitleListview1.TabIndex = 4; this.SubtitleListview1.TabIndex = 4;
this.SubtitleListview1.UseCompatibleStateImageBehavior = false; this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
// //
// MergeShortLines // MergeShortLines
// //
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(776, 595); this.ClientSize = new System.Drawing.Size(776, 595);

View File

@ -45,7 +45,7 @@ namespace Nikse.SubtitleEdit.Forms
public void Initialize(Subtitle subtitle) public void Initialize(Subtitle subtitle)
{ {
if (subtitle.Paragraphs.Count > 0) if (subtitle.Paragraphs.Count > 0)
subtitle.Renumber(subtitle.Paragraphs[0].Number); subtitle.Renumber(subtitle.Paragraphs[0].Number);
Text = Configuration.Settings.Language.MergedShortLines.Title; Text = Configuration.Settings.Language.MergedShortLines.Title;
labelMaxCharacters.Text = Configuration.Settings.Language.MergedShortLines.MaximumCharacters; labelMaxCharacters.Text = Configuration.Settings.Language.MergedShortLines.MaximumCharacters;
@ -88,7 +88,7 @@ namespace Nikse.SubtitleEdit.Forms
var mergedIndexes = new List<int>(); var mergedIndexes = new List<int>();
NumberOfMerges = 0; NumberOfMerges = 0;
SubtitleListview1.Items.Clear(); SubtitleListview1.Items.Clear();
SubtitleListview1.BeginUpdate(); SubtitleListview1.BeginUpdate();
int count; int count;
_mergedSubtitle = MergeShortLinesInSubtitle(_subtitle, mergedIndexes, out count, (double)numericUpDownMaxMillisecondsBetweenLines.Value, (int)numericUpDownMaxCharacters.Value, true); _mergedSubtitle = MergeShortLinesInSubtitle(_subtitle, mergedIndexes, out count, (double)numericUpDownMaxMillisecondsBetweenLines.Value, (int)numericUpDownMaxCharacters.Value, true);
@ -98,9 +98,9 @@ namespace Nikse.SubtitleEdit.Forms
foreach(var index in mergedIndexes) foreach(var index in mergedIndexes)
{ {
SubtitleListview1.SetBackgroundColor(index, Color.Green); SubtitleListview1.SetBackgroundColor(index, Color.Green);
} }
SubtitleListview1.EndUpdate(); SubtitleListview1.EndUpdate();
groupBoxLinesFound.Text = string.Format(Configuration.Settings.Language.MergedShortLines.NumberOfMergesX, NumberOfMerges); groupBoxLinesFound.Text = string.Format(Configuration.Settings.Language.MergedShortLines.NumberOfMergesX, NumberOfMerges);
@ -242,7 +242,7 @@ namespace Nikse.SubtitleEdit.Forms
if (!checkBoxOnlyContinuationLines.Checked) if (!checkBoxOnlyContinuationLines.Checked)
return true; return true;
if (isLineContinuation) if (isLineContinuation)
return true; return true;
} }
} }
@ -295,7 +295,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void listViewFixes_ItemChecked(object sender, ItemCheckedEventArgs e) private void listViewFixes_ItemChecked(object sender, ItemCheckedEventArgs e)
{ {
var mergedIndexes = new List<int>(); var mergedIndexes = new List<int>();
NumberOfMerges = 0; NumberOfMerges = 0;

View File

@ -64,9 +64,9 @@
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout(); this.splitContainer1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxLinesFound.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)));
@ -79,9 +79,9 @@
this.groupBoxLinesFound.TabIndex = 8; this.groupBoxLinesFound.TabIndex = 8;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines found: {0}"; this.groupBoxLinesFound.Text = "Lines found: {0}";
// //
// buttonReplacesInverseSelection // buttonReplacesInverseSelection
// //
this.buttonReplacesInverseSelection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonReplacesInverseSelection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonReplacesInverseSelection.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonReplacesInverseSelection.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonReplacesInverseSelection.Location = new System.Drawing.Point(91, 287); this.buttonReplacesInverseSelection.Location = new System.Drawing.Point(91, 287);
@ -91,9 +91,9 @@
this.buttonReplacesInverseSelection.Text = "&Inverse selection"; this.buttonReplacesInverseSelection.Text = "&Inverse selection";
this.buttonReplacesInverseSelection.UseVisualStyleBackColor = true; this.buttonReplacesInverseSelection.UseVisualStyleBackColor = true;
this.buttonReplacesInverseSelection.Click += new System.EventHandler(this.buttonReplacesInverseSelection_Click); this.buttonReplacesInverseSelection.Click += new System.EventHandler(this.buttonReplacesInverseSelection_Click);
// //
// buttonReplacesSelectAll // buttonReplacesSelectAll
// //
this.buttonReplacesSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonReplacesSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonReplacesSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonReplacesSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonReplacesSelectAll.Location = new System.Drawing.Point(10, 287); this.buttonReplacesSelectAll.Location = new System.Drawing.Point(10, 287);
@ -103,9 +103,9 @@
this.buttonReplacesSelectAll.Text = "Select &all"; this.buttonReplacesSelectAll.Text = "Select &all";
this.buttonReplacesSelectAll.UseVisualStyleBackColor = true; this.buttonReplacesSelectAll.UseVisualStyleBackColor = true;
this.buttonReplacesSelectAll.Click += new System.EventHandler(this.buttonReplacesSelectAll_Click); this.buttonReplacesSelectAll.Click += new System.EventHandler(this.buttonReplacesSelectAll_Click);
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewFixes.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)));
@ -123,29 +123,29 @@
this.listViewFixes.TabIndex = 9; this.listViewFixes.TabIndex = 9;
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 48; this.columnHeader4.Width = 48;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 61; this.columnHeader5.Width = 61;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "Before"; this.columnHeader7.Text = "Before";
this.columnHeader7.Width = 330; this.columnHeader7.Width = 330;
// //
// columnHeader8 // columnHeader8
// //
this.columnHeader8.Text = "After"; this.columnHeader8.Text = "After";
this.columnHeader8.Width = 440; this.columnHeader8.Width = 440;
// //
// groupBoxReplaces // groupBoxReplaces
// //
this.groupBoxReplaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxReplaces.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)));
@ -164,9 +164,9 @@
this.groupBoxReplaces.Size = new System.Drawing.Size(922, 297); this.groupBoxReplaces.Size = new System.Drawing.Size(922, 297);
this.groupBoxReplaces.TabIndex = 0; this.groupBoxReplaces.TabIndex = 0;
this.groupBoxReplaces.TabStop = false; this.groupBoxReplaces.TabStop = false;
// //
// buttonUpdate // buttonUpdate
// //
this.buttonUpdate.Location = new System.Drawing.Point(588, 35); this.buttonUpdate.Location = new System.Drawing.Point(588, 35);
this.buttonUpdate.Name = "buttonUpdate"; this.buttonUpdate.Name = "buttonUpdate";
this.buttonUpdate.Size = new System.Drawing.Size(99, 21); this.buttonUpdate.Size = new System.Drawing.Size(99, 21);
@ -174,9 +174,9 @@
this.buttonUpdate.Text = "&Update"; this.buttonUpdate.Text = "&Update";
this.buttonUpdate.UseVisualStyleBackColor = true; this.buttonUpdate.UseVisualStyleBackColor = true;
this.buttonUpdate.Click += new System.EventHandler(this.ButtonUpdateClick); this.buttonUpdate.Click += new System.EventHandler(this.ButtonUpdateClick);
// //
// buttonAdd // buttonAdd
// //
this.buttonAdd.Location = new System.Drawing.Point(483, 35); this.buttonAdd.Location = new System.Drawing.Point(483, 35);
this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.Name = "buttonAdd";
this.buttonAdd.Size = new System.Drawing.Size(99, 21); this.buttonAdd.Size = new System.Drawing.Size(99, 21);
@ -184,35 +184,35 @@
this.buttonAdd.Text = "&Add"; this.buttonAdd.Text = "&Add";
this.buttonAdd.UseVisualStyleBackColor = true; this.buttonAdd.UseVisualStyleBackColor = true;
this.buttonAdd.Click += new System.EventHandler(this.ButtonAddClick); this.buttonAdd.Click += new System.EventHandler(this.ButtonAddClick);
// //
// labelFindWhat // labelFindWhat
// //
this.labelFindWhat.AutoSize = true; this.labelFindWhat.AutoSize = true;
this.labelFindWhat.Location = new System.Drawing.Point(17, 16); this.labelFindWhat.Location = new System.Drawing.Point(17, 16);
this.labelFindWhat.Name = "labelFindWhat"; this.labelFindWhat.Name = "labelFindWhat";
this.labelFindWhat.Size = new System.Drawing.Size(89, 21); this.labelFindWhat.Size = new System.Drawing.Size(89, 21);
this.labelFindWhat.TabIndex = 22; this.labelFindWhat.TabIndex = 22;
this.labelFindWhat.Text = "Find what:"; this.labelFindWhat.Text = "Find what:";
// //
// labelReplaceWith // labelReplaceWith
// //
this.labelReplaceWith.AutoSize = true; this.labelReplaceWith.AutoSize = true;
this.labelReplaceWith.Location = new System.Drawing.Point(247, 16); this.labelReplaceWith.Location = new System.Drawing.Point(247, 16);
this.labelReplaceWith.Name = "labelReplaceWith"; this.labelReplaceWith.Name = "labelReplaceWith";
this.labelReplaceWith.Size = new System.Drawing.Size(112, 21); this.labelReplaceWith.Size = new System.Drawing.Size(112, 21);
this.labelReplaceWith.TabIndex = 21; this.labelReplaceWith.TabIndex = 21;
this.labelReplaceWith.Text = "Replace with:"; this.labelReplaceWith.Text = "Replace with:";
// //
// textBoxReplace // textBoxReplace
// //
this.textBoxReplace.Location = new System.Drawing.Point(250, 35); this.textBoxReplace.Location = new System.Drawing.Point(250, 35);
this.textBoxReplace.Name = "textBoxReplace"; this.textBoxReplace.Name = "textBoxReplace";
this.textBoxReplace.Size = new System.Drawing.Size(227, 27); this.textBoxReplace.Size = new System.Drawing.Size(227, 27);
this.textBoxReplace.TabIndex = 2; this.textBoxReplace.TabIndex = 2;
this.textBoxReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxReplaceKeyDown); this.textBoxReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxReplaceKeyDown);
// //
// radioButtonRegEx // radioButtonRegEx
// //
this.radioButtonRegEx.AutoSize = true; this.radioButtonRegEx.AutoSize = true;
this.radioButtonRegEx.Location = new System.Drawing.Point(286, 62); this.radioButtonRegEx.Location = new System.Drawing.Point(286, 62);
this.radioButtonRegEx.Name = "radioButtonRegEx"; this.radioButtonRegEx.Name = "radioButtonRegEx";
@ -221,9 +221,9 @@
this.radioButtonRegEx.Text = "RegEx"; this.radioButtonRegEx.Text = "RegEx";
this.radioButtonRegEx.UseVisualStyleBackColor = true; this.radioButtonRegEx.UseVisualStyleBackColor = true;
this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonCaseSensitive // radioButtonCaseSensitive
// //
this.radioButtonCaseSensitive.AutoSize = true; this.radioButtonCaseSensitive.AutoSize = true;
this.radioButtonCaseSensitive.Location = new System.Drawing.Point(146, 62); this.radioButtonCaseSensitive.Location = new System.Drawing.Point(146, 62);
this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive"; this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive";
@ -232,9 +232,9 @@
this.radioButtonCaseSensitive.Text = "Case sensitive"; this.radioButtonCaseSensitive.Text = "Case sensitive";
this.radioButtonCaseSensitive.UseVisualStyleBackColor = true; this.radioButtonCaseSensitive.UseVisualStyleBackColor = true;
this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonNormal // radioButtonNormal
// //
this.radioButtonNormal.AutoSize = true; this.radioButtonNormal.AutoSize = true;
this.radioButtonNormal.Checked = true; this.radioButtonNormal.Checked = true;
this.radioButtonNormal.Location = new System.Drawing.Point(22, 62); this.radioButtonNormal.Location = new System.Drawing.Point(22, 62);
@ -245,16 +245,16 @@
this.radioButtonNormal.Text = "Normal"; this.radioButtonNormal.Text = "Normal";
this.radioButtonNormal.UseVisualStyleBackColor = true; this.radioButtonNormal.UseVisualStyleBackColor = true;
this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// textBoxFind // textBoxFind
// //
this.textBoxFind.Location = new System.Drawing.Point(20, 35); this.textBoxFind.Location = new System.Drawing.Point(20, 35);
this.textBoxFind.Name = "textBoxFind"; this.textBoxFind.Name = "textBoxFind";
this.textBoxFind.Size = new System.Drawing.Size(224, 27); this.textBoxFind.Size = new System.Drawing.Size(224, 27);
this.textBoxFind.TabIndex = 1; this.textBoxFind.TabIndex = 1;
// //
// listViewReplaceList // listViewReplaceList
// //
this.listViewReplaceList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewReplaceList.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)));
@ -276,43 +276,43 @@
this.listViewReplaceList.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.ListViewReplaceListItemChecked); this.listViewReplaceList.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.ListViewReplaceListItemChecked);
this.listViewReplaceList.SelectedIndexChanged += new System.EventHandler(this.ListViewReplaceListSelectedIndexChanged); this.listViewReplaceList.SelectedIndexChanged += new System.EventHandler(this.ListViewReplaceListSelectedIndexChanged);
this.listViewReplaceList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewReplaceListKeyDown); this.listViewReplaceList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewReplaceListKeyDown);
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Enabled"; this.columnHeader1.Text = "Enabled";
this.columnHeader1.Width = 70; this.columnHeader1.Width = 70;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "Find what"; this.columnHeader2.Text = "Find what";
this.columnHeader2.Width = 210; this.columnHeader2.Width = 210;
// //
// columnHeader3 // columnHeader3
// //
this.columnHeader3.Text = "Replace with"; this.columnHeader3.Text = "Replace with";
this.columnHeader3.Width = 210; this.columnHeader3.Width = 210;
// //
// columnHeader6 // columnHeader6
// //
this.columnHeader6.Text = "Search type"; this.columnHeader6.Text = "Search type";
this.columnHeader6.Width = 200; this.columnHeader6.Width = 200;
// //
// contextMenuStrip1 // contextMenuStrip1
// //
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.deleteToolStripMenuItem}); this.deleteToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(117, 26); this.contextMenuStrip1.Size = new System.Drawing.Size(117, 26);
// //
// deleteToolStripMenuItem // deleteToolStripMenuItem
// //
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
this.deleteToolStripMenuItem.Size = new System.Drawing.Size(116, 22); this.deleteToolStripMenuItem.Size = new System.Drawing.Size(116, 22);
this.deleteToolStripMenuItem.Text = "Delete"; this.deleteToolStripMenuItem.Text = "Delete";
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.DeleteToolStripMenuItemClick); this.deleteToolStripMenuItem.Click += new System.EventHandler(this.DeleteToolStripMenuItemClick);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(768, 323); this.buttonOK.Location = new System.Drawing.Point(768, 323);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -321,9 +321,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(849, 323); this.buttonCancel.Location = new System.Drawing.Point(849, 323);
@ -332,29 +332,29 @@
this.buttonCancel.TabIndex = 11; this.buttonCancel.TabIndex = 11;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// splitContainer1 // splitContainer1
// //
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0); this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
// splitContainer1.Panel1 // splitContainer1.Panel1
// //
this.splitContainer1.Panel1.Controls.Add(this.groupBoxReplaces); this.splitContainer1.Panel1.Controls.Add(this.groupBoxReplaces);
// //
// splitContainer1.Panel2 // splitContainer1.Panel2
// //
this.splitContainer1.Panel2.Controls.Add(this.groupBoxLinesFound); this.splitContainer1.Panel2.Controls.Add(this.groupBoxLinesFound);
this.splitContainer1.Panel2.Controls.Add(this.buttonOK); this.splitContainer1.Panel2.Controls.Add(this.buttonOK);
this.splitContainer1.Panel2.Controls.Add(this.buttonCancel); this.splitContainer1.Panel2.Controls.Add(this.buttonCancel);
this.splitContainer1.Size = new System.Drawing.Size(933, 667); this.splitContainer1.Size = new System.Drawing.Size(933, 667);
this.splitContainer1.SplitterDistance = 303; this.splitContainer1.SplitterDistance = 303;
this.splitContainer1.TabIndex = 12; this.splitContainer1.TabIndex = 12;
// //
// MultipleReplace // MultipleReplace
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(933, 667); this.ClientSize = new System.Drawing.Size(933, 667);

View File

@ -29,7 +29,7 @@ namespace Nikse.SubtitleEdit.Forms
labelReplaceWith.Text = Configuration.Settings.Language.MultipleReplace.ReplaceWith; labelReplaceWith.Text = Configuration.Settings.Language.MultipleReplace.ReplaceWith;
radioButtonNormal.Text = Configuration.Settings.Language.MultipleReplace.Normal; radioButtonNormal.Text = Configuration.Settings.Language.MultipleReplace.Normal;
radioButtonRegEx.Text = Configuration.Settings.Language.MultipleReplace.RegularExpression; radioButtonRegEx.Text = Configuration.Settings.Language.MultipleReplace.RegularExpression;
radioButtonCaseSensitive.Text = Configuration.Settings.Language.MultipleReplace.CaseSensitive; radioButtonCaseSensitive.Text = Configuration.Settings.Language.MultipleReplace.CaseSensitive;
buttonAdd.Text = Configuration.Settings.Language.MultipleReplace.Add; buttonAdd.Text = Configuration.Settings.Language.MultipleReplace.Add;
buttonUpdate.Text = Configuration.Settings.Language.MultipleReplace.Update; buttonUpdate.Text = Configuration.Settings.Language.MultipleReplace.Update;
listViewReplaceList.Columns[0].Text = Configuration.Settings.Language.MultipleReplace.Enabled; listViewReplaceList.Columns[0].Text = Configuration.Settings.Language.MultipleReplace.Enabled;
@ -109,7 +109,7 @@ namespace Nikse.SubtitleEdit.Forms
AddToReplaceListView(true, textBoxFind.Text, textBoxReplace.Text, EnglishSearchTypeToLocal(searchType)); AddToReplaceListView(true, textBoxFind.Text, textBoxReplace.Text, EnglishSearchTypeToLocal(searchType));
GeneratePreview(); GeneratePreview();
textBoxFind.Text = string.Empty; textBoxFind.Text = string.Empty;
textBoxReplace.Text = string.Empty; textBoxReplace.Text = string.Empty;
textBoxFind.Select(); textBoxFind.Select();
SaveReplaceList(); SaveReplaceList();
} }
@ -168,10 +168,10 @@ namespace Nikse.SubtitleEdit.Forms
while (index >= 0) while (index >= 0)
{ {
if (index < newText.Length) if (index < newText.Length)
newText = newText.Substring(0, index) + replaceWith + newText.Substring(index + findWhat.Length); newText = newText.Substring(0, index) + replaceWith + newText.Substring(index + findWhat.Length);
else else
newText = newText.Substring(0, index) + replaceWith; newText = newText.Substring(0, index) + replaceWith;
hit = true; hit = true;
index = newText.ToLower().IndexOf(findWhat.ToLower(), index+replaceWith.Length); index = newText.ToLower().IndexOf(findWhat.ToLower(), index+replaceWith.Length);
} }
@ -242,7 +242,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void ButtonOkClick(object sender, EventArgs e) private void ButtonOkClick(object sender, EventArgs e)
{ {
ResetUncheckLines(); ResetUncheckLines();
SaveReplaceList(); SaveReplaceList();
DialogResult = DialogResult.OK; DialogResult = DialogResult.OK;
@ -331,7 +331,7 @@ namespace Nikse.SubtitleEdit.Forms
radioButtonNormal.Checked = true; radioButtonNormal.Checked = true;
} }
else else
{ {
buttonUpdate.Enabled = false; buttonUpdate.Enabled = false;
} }
} }

View File

@ -40,9 +40,9 @@
this.textBoxChat = new System.Windows.Forms.TextBox(); this.textBoxChat = new System.Windows.Forms.TextBox();
this.buttonSendChat = new System.Windows.Forms.Button(); this.buttonSendChat = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// listViewChat // listViewChat
// //
this.listViewChat.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewChat.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)));
@ -56,19 +56,19 @@
this.listViewChat.TabIndex = 3; this.listViewChat.TabIndex = 3;
this.listViewChat.UseCompatibleStateImageBehavior = false; this.listViewChat.UseCompatibleStateImageBehavior = false;
this.listViewChat.View = System.Windows.Forms.View.Details; this.listViewChat.View = System.Windows.Forms.View.Details;
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Username"; this.columnHeader1.Text = "Username";
this.columnHeader1.Width = 82; this.columnHeader1.Width = 82;
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Text"; this.columnHeader4.Text = "Text";
this.columnHeader4.Width = 188; this.columnHeader4.Width = 188;
// //
// imageListUsers // imageListUsers
// //
this.imageListUsers.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListUsers.ImageStream"))); this.imageListUsers.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListUsers.ImageStream")));
this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent; this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent;
this.imageListUsers.Images.SetKeyName(0, "person.jpg"); this.imageListUsers.Images.SetKeyName(0, "person.jpg");
@ -79,9 +79,9 @@
this.imageListUsers.Images.SetKeyName(5, "Person6.jpg"); this.imageListUsers.Images.SetKeyName(5, "Person6.jpg");
this.imageListUsers.Images.SetKeyName(6, "Person7.jpg"); this.imageListUsers.Images.SetKeyName(6, "Person7.jpg");
this.imageListUsers.Images.SetKeyName(7, "Person8.jpg"); this.imageListUsers.Images.SetKeyName(7, "Person8.jpg");
// //
// listViewUsers // listViewUsers
// //
this.listViewUsers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listViewUsers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listViewUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listViewUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -94,19 +94,19 @@
this.listViewUsers.TabIndex = 2; this.listViewUsers.TabIndex = 2;
this.listViewUsers.UseCompatibleStateImageBehavior = false; this.listViewUsers.UseCompatibleStateImageBehavior = false;
this.listViewUsers.View = System.Windows.Forms.View.Details; this.listViewUsers.View = System.Windows.Forms.View.Details;
// //
// columnHeaderNick // columnHeaderNick
// //
this.columnHeaderNick.Text = "Username"; this.columnHeaderNick.Text = "Username";
this.columnHeaderNick.Width = 178; this.columnHeaderNick.Width = 178;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "IP"; this.columnHeader2.Text = "IP";
this.columnHeader2.Width = 93; this.columnHeader2.Width = 93;
// //
// textBoxChat // textBoxChat
// //
this.textBoxChat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.textBoxChat.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.textBoxChat.Location = new System.Drawing.Point(3, 352); this.textBoxChat.Location = new System.Drawing.Point(3, 352);
@ -115,9 +115,9 @@
this.textBoxChat.Size = new System.Drawing.Size(188, 46); this.textBoxChat.Size = new System.Drawing.Size(188, 46);
this.textBoxChat.TabIndex = 0; this.textBoxChat.TabIndex = 0;
this.textBoxChat.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxChat_KeyDown); this.textBoxChat.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxChat_KeyDown);
// //
// buttonSendChat // buttonSendChat
// //
this.buttonSendChat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonSendChat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSendChat.Location = new System.Drawing.Point(197, 375); this.buttonSendChat.Location = new System.Drawing.Point(197, 375);
this.buttonSendChat.Name = "buttonSendChat"; this.buttonSendChat.Name = "buttonSendChat";
@ -126,9 +126,9 @@
this.buttonSendChat.Text = "Send message"; this.buttonSendChat.Text = "Send message";
this.buttonSendChat.UseVisualStyleBackColor = true; this.buttonSendChat.UseVisualStyleBackColor = true;
this.buttonSendChat.Click += new System.EventHandler(this.buttonSendChat_Click); this.buttonSendChat.Click += new System.EventHandler(this.buttonSendChat_Click);
// //
// NetworkChat // NetworkChat
// //
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(281, 402); this.ClientSize = new System.Drawing.Size(281, 402);

View File

@ -45,7 +45,7 @@ namespace Nikse.SubtitleEdit.Forms
_networkSession.SendChatMessage(textBoxChat.Text.Trim()); _networkSession.SendChatMessage(textBoxChat.Text.Trim());
AddChatMessage(_networkSession.CurrentUser, textBoxChat.Text.Trim()); AddChatMessage(_networkSession.CurrentUser, textBoxChat.Text.Trim());
listViewChat.EnsureVisible(listViewChat.Items.Count - 1); listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
_networkSession.ChatLog.Add(new NikseWebServiceSession.ChatEntry() { User = _networkSession.CurrentUser, Message = textBoxChat.Text.Trim() }); _networkSession.ChatLog.Add(new NikseWebServiceSession.ChatEntry() { User = _networkSession.CurrentUser, Message = textBoxChat.Text.Trim() });
} }
textBoxChat.Text = string.Empty; textBoxChat.Text = string.Empty;
textBoxChat.Focus(); textBoxChat.Focus();

View File

@ -39,27 +39,27 @@
this.textBoxSessionKey = new System.Windows.Forms.TextBox(); this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.labelSessionKey = new System.Windows.Forms.Label(); this.labelSessionKey = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelStatus // labelStatus
// //
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167); this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus"; this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13); this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 18; this.labelStatus.TabIndex = 18;
this.labelStatus.Text = "labelStatus"; this.labelStatus.Text = "labelStatus";
// //
// labelInfo // labelInfo
// //
this.labelInfo.AutoSize = true; this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13); this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo"; this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(212, 26); this.labelInfo.Size = new System.Drawing.Size(212, 26);
this.labelInfo.TabIndex = 17; this.labelInfo.TabIndex = 17;
this.labelInfo.Text = "Join existing session where multiple persons\r\ncan edit in same subtitle file.\r\n"; this.labelInfo.Text = "Join existing session where multiple persons\r\ncan edit in same subtitle file.\r\n";
// //
// labelWebServiceUrl // labelWebServiceUrl
// //
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112); this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl"; this.labelWebServiceUrl.Name = "labelWebServiceUrl";
@ -67,9 +67,9 @@
this.labelWebServiceUrl.TabIndex = 16; this.labelWebServiceUrl.TabIndex = 16;
this.labelWebServiceUrl.Text = "Web service url"; this.labelWebServiceUrl.Text = "Web service url";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// comboBoxWebServiceUrl // comboBoxWebServiceUrl
// //
this.comboBoxWebServiceUrl.FormattingEnabled = true; this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] { this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx", "http://www.nikse.dk/se/SeService.asmx",
@ -78,9 +78,9 @@
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl"; this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(261, 21); this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(261, 21);
this.comboBoxWebServiceUrl.TabIndex = 2; this.comboBoxWebServiceUrl.TabIndex = 2;
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147); this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -89,16 +89,16 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// textBoxUserName // textBoxUserName
// //
this.textBoxUserName.Location = new System.Drawing.Point(125, 57); this.textBoxUserName.Location = new System.Drawing.Point(125, 57);
this.textBoxUserName.Name = "textBoxUserName"; this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(261, 20); this.textBoxUserName.Size = new System.Drawing.Size(261, 20);
this.textBoxUserName.TabIndex = 0; this.textBoxUserName.TabIndex = 0;
// //
// buttonJoin // buttonJoin
// //
this.buttonJoin.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonJoin.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonJoin.Location = new System.Drawing.Point(231, 147); this.buttonJoin.Location = new System.Drawing.Point(231, 147);
this.buttonJoin.Name = "buttonJoin"; this.buttonJoin.Name = "buttonJoin";
@ -107,9 +107,9 @@
this.buttonJoin.Text = "&Join"; this.buttonJoin.Text = "&Join";
this.buttonJoin.UseVisualStyleBackColor = true; this.buttonJoin.UseVisualStyleBackColor = true;
this.buttonJoin.Click += new System.EventHandler(this.buttonJoin_Click); this.buttonJoin.Click += new System.EventHandler(this.buttonJoin_Click);
// //
// labelUserName // labelUserName
// //
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 60); this.labelUserName.Location = new System.Drawing.Point(5, 60);
this.labelUserName.Name = "labelUserName"; this.labelUserName.Name = "labelUserName";
@ -117,16 +117,16 @@
this.labelUserName.TabIndex = 11; this.labelUserName.TabIndex = 11;
this.labelUserName.Text = "Username"; this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// textBoxSessionKey // textBoxSessionKey
// //
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 83); this.textBoxSessionKey.Location = new System.Drawing.Point(125, 83);
this.textBoxSessionKey.Name = "textBoxSessionKey"; this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(261, 20); this.textBoxSessionKey.Size = new System.Drawing.Size(261, 20);
this.textBoxSessionKey.TabIndex = 1; this.textBoxSessionKey.TabIndex = 1;
// //
// labelSessionKey // labelSessionKey
// //
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 86); this.labelSessionKey.Location = new System.Drawing.Point(5, 86);
this.labelSessionKey.Name = "labelSessionKey"; this.labelSessionKey.Name = "labelSessionKey";
@ -134,9 +134,9 @@
this.labelSessionKey.TabIndex = 19; this.labelSessionKey.TabIndex = 19;
this.labelSessionKey.Text = "Key"; this.labelSessionKey.Text = "Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// NetworkJoin // NetworkJoin
// //
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(402, 185); this.ClientSize = new System.Drawing.Size(402, 185);

View File

@ -38,17 +38,17 @@
this.labelUserName = new System.Windows.Forms.Label(); this.labelUserName = new System.Windows.Forms.Label();
this.textBoxWebServiceUrl = new System.Windows.Forms.TextBox(); this.textBoxWebServiceUrl = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// textBoxSessionKey // textBoxSessionKey
// //
this.textBoxSessionKey.Location = new System.Drawing.Point(157, 16); this.textBoxSessionKey.Location = new System.Drawing.Point(157, 16);
this.textBoxSessionKey.Name = "textBoxSessionKey"; this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.ReadOnly = true; this.textBoxSessionKey.ReadOnly = true;
this.textBoxSessionKey.Size = new System.Drawing.Size(290, 20); this.textBoxSessionKey.Size = new System.Drawing.Size(290, 20);
this.textBoxSessionKey.TabIndex = 1; this.textBoxSessionKey.TabIndex = 1;
// //
// labelSessionKey // labelSessionKey
// //
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(12, 19); this.labelSessionKey.Location = new System.Drawing.Point(12, 19);
this.labelSessionKey.Name = "labelSessionKey"; this.labelSessionKey.Name = "labelSessionKey";
@ -56,18 +56,18 @@
this.labelSessionKey.TabIndex = 21; this.labelSessionKey.TabIndex = 21;
this.labelSessionKey.Text = "Session key"; this.labelSessionKey.Text = "Session key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// labelLog // labelLog
// //
this.labelLog.AutoSize = true; this.labelLog.AutoSize = true;
this.labelLog.Location = new System.Drawing.Point(9, 109); this.labelLog.Location = new System.Drawing.Point(9, 109);
this.labelLog.Name = "labelLog"; this.labelLog.Name = "labelLog";
this.labelLog.Size = new System.Drawing.Size(28, 13); this.labelLog.Size = new System.Drawing.Size(28, 13);
this.labelLog.TabIndex = 24; this.labelLog.TabIndex = 24;
this.labelLog.Text = "Log:"; this.labelLog.Text = "Log:";
// //
// textBoxLog // textBoxLog
// //
this.textBoxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.textBoxLog.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)));
@ -78,9 +78,9 @@
this.textBoxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxLog.Size = new System.Drawing.Size(543, 179); this.textBoxLog.Size = new System.Drawing.Size(543, 179);
this.textBoxLog.TabIndex = 4; this.textBoxLog.TabIndex = 4;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(480, 310); this.buttonOK.Location = new System.Drawing.Point(480, 310);
@ -90,9 +90,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// labelWebServiceUrl // labelWebServiceUrl
// //
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(12, 71); this.labelWebServiceUrl.Location = new System.Drawing.Point(12, 71);
this.labelWebServiceUrl.Name = "labelWebServiceUrl"; this.labelWebServiceUrl.Name = "labelWebServiceUrl";
@ -100,17 +100,17 @@
this.labelWebServiceUrl.TabIndex = 29; this.labelWebServiceUrl.TabIndex = 29;
this.labelWebServiceUrl.Text = "Web service url"; this.labelWebServiceUrl.Text = "Web service url";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// textBoxUserName // textBoxUserName
// //
this.textBoxUserName.Location = new System.Drawing.Point(157, 42); this.textBoxUserName.Location = new System.Drawing.Point(157, 42);
this.textBoxUserName.Name = "textBoxUserName"; this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.ReadOnly = true; this.textBoxUserName.ReadOnly = true;
this.textBoxUserName.Size = new System.Drawing.Size(290, 20); this.textBoxUserName.Size = new System.Drawing.Size(290, 20);
this.textBoxUserName.TabIndex = 2; this.textBoxUserName.TabIndex = 2;
// //
// labelUserName // labelUserName
// //
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(12, 45); this.labelUserName.Location = new System.Drawing.Point(12, 45);
this.labelUserName.Name = "labelUserName"; this.labelUserName.Name = "labelUserName";
@ -118,17 +118,17 @@
this.labelUserName.TabIndex = 28; this.labelUserName.TabIndex = 28;
this.labelUserName.Text = "Username"; this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// textBoxWebServiceUrl // textBoxWebServiceUrl
// //
this.textBoxWebServiceUrl.Location = new System.Drawing.Point(157, 68); this.textBoxWebServiceUrl.Location = new System.Drawing.Point(157, 68);
this.textBoxWebServiceUrl.Name = "textBoxWebServiceUrl"; this.textBoxWebServiceUrl.Name = "textBoxWebServiceUrl";
this.textBoxWebServiceUrl.ReadOnly = true; this.textBoxWebServiceUrl.ReadOnly = true;
this.textBoxWebServiceUrl.Size = new System.Drawing.Size(290, 20); this.textBoxWebServiceUrl.Size = new System.Drawing.Size(290, 20);
this.textBoxWebServiceUrl.TabIndex = 3; this.textBoxWebServiceUrl.TabIndex = 3;
// //
// NetworkLogAndInfo // NetworkLogAndInfo
// //
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(565, 337); this.ClientSize = new System.Drawing.Size(565, 337);

View File

@ -39,9 +39,9 @@
this.labelSessionKey = new System.Windows.Forms.Label(); this.labelSessionKey = new System.Windows.Forms.Label();
this.textBoxSessionKey = new System.Windows.Forms.TextBox(); this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147); this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -50,16 +50,16 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// textBoxUserName // textBoxUserName
// //
this.textBoxUserName.Location = new System.Drawing.Point(125, 83); this.textBoxUserName.Location = new System.Drawing.Point(125, 83);
this.textBoxUserName.Name = "textBoxUserName"; this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(262, 20); this.textBoxUserName.Size = new System.Drawing.Size(262, 20);
this.textBoxUserName.TabIndex = 1; this.textBoxUserName.TabIndex = 1;
// //
// buttonStart // buttonStart
// //
this.buttonStart.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonStart.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonStart.Location = new System.Drawing.Point(231, 147); this.buttonStart.Location = new System.Drawing.Point(231, 147);
this.buttonStart.Name = "buttonStart"; this.buttonStart.Name = "buttonStart";
@ -68,9 +68,9 @@
this.buttonStart.Text = "&Start"; this.buttonStart.Text = "&Start";
this.buttonStart.UseVisualStyleBackColor = true; this.buttonStart.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click); this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
// //
// labelUserName // labelUserName
// //
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 86); this.labelUserName.Location = new System.Drawing.Point(5, 86);
this.labelUserName.Name = "labelUserName"; this.labelUserName.Name = "labelUserName";
@ -78,9 +78,9 @@
this.labelUserName.TabIndex = 3; this.labelUserName.TabIndex = 3;
this.labelUserName.Text = "Username"; this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// comboBoxWebServiceUrl // comboBoxWebServiceUrl
// //
this.comboBoxWebServiceUrl.FormattingEnabled = true; this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] { this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx", "http://www.nikse.dk/se/SeService.asmx",
@ -89,9 +89,9 @@
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl"; this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(262, 21); this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(262, 21);
this.comboBoxWebServiceUrl.TabIndex = 2; this.comboBoxWebServiceUrl.TabIndex = 2;
// //
// labelWebServiceUrl // labelWebServiceUrl
// //
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112); this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl"; this.labelWebServiceUrl.Name = "labelWebServiceUrl";
@ -99,27 +99,27 @@
this.labelWebServiceUrl.TabIndex = 8; this.labelWebServiceUrl.TabIndex = 8;
this.labelWebServiceUrl.Text = "Web service url"; this.labelWebServiceUrl.Text = "Web service url";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// labelInfo // labelInfo
// //
this.labelInfo.AutoSize = true; this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13); this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo"; this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(200, 26); this.labelInfo.Size = new System.Drawing.Size(200, 26);
this.labelInfo.TabIndex = 9; this.labelInfo.TabIndex = 9;
this.labelInfo.Text = "Start new session where multiple persons\r\ncan edit in same subtitle file.\r\n"; this.labelInfo.Text = "Start new session where multiple persons\r\ncan edit in same subtitle file.\r\n";
// //
// labelStatus // labelStatus
// //
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167); this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus"; this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13); this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 10; this.labelStatus.TabIndex = 10;
this.labelStatus.Text = "labelStatus"; this.labelStatus.Text = "labelStatus";
// //
// labelSessionKey // labelSessionKey
// //
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 60); this.labelSessionKey.Location = new System.Drawing.Point(5, 60);
this.labelSessionKey.Name = "labelSessionKey"; this.labelSessionKey.Name = "labelSessionKey";
@ -127,16 +127,16 @@
this.labelSessionKey.TabIndex = 11; this.labelSessionKey.TabIndex = 11;
this.labelSessionKey.Text = "Session Key"; this.labelSessionKey.Text = "Session Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// textBoxSessionKey // textBoxSessionKey
// //
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 57); this.textBoxSessionKey.Location = new System.Drawing.Point(125, 57);
this.textBoxSessionKey.Name = "textBoxSessionKey"; this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(262, 20); this.textBoxSessionKey.Size = new System.Drawing.Size(262, 20);
this.textBoxSessionKey.TabIndex = 0; this.textBoxSessionKey.TabIndex = 0;
// //
// NetworkStart // NetworkStart
// //
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(402, 185); this.ClientSize = new System.Drawing.Size(402, 185);

View File

@ -89,7 +89,7 @@ namespace Nikse.SubtitleEdit.Forms
textBoxSessionKey.Enabled = false; textBoxSessionKey.Enabled = false;
textBoxUserName.Enabled = true; textBoxUserName.Enabled = true;
comboBoxWebServiceUrl.Enabled = true; comboBoxWebServiceUrl.Enabled = true;
labelStatus.Text = string.Empty; labelStatus.Text = string.Empty;
} }
private void buttonCancel_Click(object sender, EventArgs e) private void buttonCancel_Click(object sender, EventArgs e)

View File

@ -59,9 +59,9 @@
((System.ComponentModel.ISupportInitialize)(this.pictureBoxText)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxText)).BeginInit();
this.groupBoxText.SuspendLayout(); this.groupBoxText.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonAbort // buttonAbort
// //
this.buttonAbort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonAbort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAbort.Location = new System.Drawing.Point(623, 442); this.buttonAbort.Location = new System.Drawing.Point(623, 442);
this.buttonAbort.Name = "buttonAbort"; this.buttonAbort.Name = "buttonAbort";
@ -70,18 +70,18 @@
this.buttonAbort.Text = "Abort"; this.buttonAbort.Text = "Abort";
this.buttonAbort.UseVisualStyleBackColor = true; this.buttonAbort.UseVisualStyleBackColor = true;
this.buttonAbort.Click += new System.EventHandler(this.ButtonAbortClick); this.buttonAbort.Click += new System.EventHandler(this.ButtonAbortClick);
// //
// labelWordNotFound // labelWordNotFound
// //
this.labelWordNotFound.AutoSize = true; this.labelWordNotFound.AutoSize = true;
this.labelWordNotFound.Location = new System.Drawing.Point(9, 112); this.labelWordNotFound.Location = new System.Drawing.Point(9, 112);
this.labelWordNotFound.Name = "labelWordNotFound"; this.labelWordNotFound.Name = "labelWordNotFound";
this.labelWordNotFound.Size = new System.Drawing.Size(0, 13); this.labelWordNotFound.Size = new System.Drawing.Size(0, 13);
this.labelWordNotFound.TabIndex = 23; this.labelWordNotFound.TabIndex = 23;
// //
// groupBoxSuggestions // groupBoxSuggestions
// //
this.groupBoxSuggestions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.groupBoxSuggestions.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.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestionAlways); this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestionAlways);
this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestion); this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestion);
@ -92,9 +92,9 @@
this.groupBoxSuggestions.TabIndex = 32; this.groupBoxSuggestions.TabIndex = 32;
this.groupBoxSuggestions.TabStop = false; this.groupBoxSuggestions.TabStop = false;
this.groupBoxSuggestions.Text = "Suggestions"; this.groupBoxSuggestions.Text = "Suggestions";
// //
// buttonUseSuggestionAlways // buttonUseSuggestionAlways
// //
this.buttonUseSuggestionAlways.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonUseSuggestionAlways.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUseSuggestionAlways.Location = new System.Drawing.Point(291, 16); this.buttonUseSuggestionAlways.Location = new System.Drawing.Point(291, 16);
this.buttonUseSuggestionAlways.Name = "buttonUseSuggestionAlways"; this.buttonUseSuggestionAlways.Name = "buttonUseSuggestionAlways";
@ -103,9 +103,9 @@
this.buttonUseSuggestionAlways.Text = "Use always"; this.buttonUseSuggestionAlways.Text = "Use always";
this.buttonUseSuggestionAlways.UseVisualStyleBackColor = true; this.buttonUseSuggestionAlways.UseVisualStyleBackColor = true;
this.buttonUseSuggestionAlways.Click += new System.EventHandler(this.ButtonUseSuggestionAlwaysClick); this.buttonUseSuggestionAlways.Click += new System.EventHandler(this.ButtonUseSuggestionAlwaysClick);
// //
// buttonUseSuggestion // buttonUseSuggestion
// //
this.buttonUseSuggestion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonUseSuggestion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUseSuggestion.Location = new System.Drawing.Point(206, 16); this.buttonUseSuggestion.Location = new System.Drawing.Point(206, 16);
this.buttonUseSuggestion.Name = "buttonUseSuggestion"; this.buttonUseSuggestion.Name = "buttonUseSuggestion";
@ -114,19 +114,19 @@
this.buttonUseSuggestion.Text = "Use"; this.buttonUseSuggestion.Text = "Use";
this.buttonUseSuggestion.UseVisualStyleBackColor = true; this.buttonUseSuggestion.UseVisualStyleBackColor = true;
this.buttonUseSuggestion.Click += new System.EventHandler(this.ButtonUseSuggestionClick); this.buttonUseSuggestion.Click += new System.EventHandler(this.ButtonUseSuggestionClick);
// //
// listBoxSuggestions // listBoxSuggestions
// //
this.listBoxSuggestions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listBoxSuggestions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listBoxSuggestions.FormattingEnabled = true; this.listBoxSuggestions.FormattingEnabled = true;
this.listBoxSuggestions.Location = new System.Drawing.Point(6, 39); this.listBoxSuggestions.Location = new System.Drawing.Point(6, 39);
this.listBoxSuggestions.Name = "listBoxSuggestions"; this.listBoxSuggestions.Name = "listBoxSuggestions";
this.listBoxSuggestions.Size = new System.Drawing.Size(372, 134); this.listBoxSuggestions.Size = new System.Drawing.Size(372, 134);
this.listBoxSuggestions.TabIndex = 30; this.listBoxSuggestions.TabIndex = 30;
// //
// GroupBoxEditWord // GroupBoxEditWord
// //
this.GroupBoxEditWord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.GroupBoxEditWord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.GroupBoxEditWord.Controls.Add(this.buttonAddToDictionary); this.GroupBoxEditWord.Controls.Add(this.buttonAddToDictionary);
this.GroupBoxEditWord.Controls.Add(this.buttonChangeAll); this.GroupBoxEditWord.Controls.Add(this.buttonChangeAll);
@ -141,9 +141,9 @@
this.GroupBoxEditWord.TabIndex = 33; this.GroupBoxEditWord.TabIndex = 33;
this.GroupBoxEditWord.TabStop = false; this.GroupBoxEditWord.TabStop = false;
this.GroupBoxEditWord.Text = "Word not found"; this.GroupBoxEditWord.Text = "Word not found";
// //
// buttonAddToDictionary // buttonAddToDictionary
// //
this.buttonAddToDictionary.Location = new System.Drawing.Point(6, 151); this.buttonAddToDictionary.Location = new System.Drawing.Point(6, 151);
this.buttonAddToDictionary.Name = "buttonAddToDictionary"; this.buttonAddToDictionary.Name = "buttonAddToDictionary";
this.buttonAddToDictionary.Size = new System.Drawing.Size(290, 21); this.buttonAddToDictionary.Size = new System.Drawing.Size(290, 21);
@ -151,9 +151,9 @@
this.buttonAddToDictionary.Text = "Add to user dictionary (not case sensitive)"; this.buttonAddToDictionary.Text = "Add to user dictionary (not case sensitive)";
this.buttonAddToDictionary.UseVisualStyleBackColor = true; this.buttonAddToDictionary.UseVisualStyleBackColor = true;
this.buttonAddToDictionary.Click += new System.EventHandler(this.ButtonAddToDictionaryClick); this.buttonAddToDictionary.Click += new System.EventHandler(this.ButtonAddToDictionaryClick);
// //
// buttonChangeAll // buttonChangeAll
// //
this.buttonChangeAll.Location = new System.Drawing.Point(6, 45); this.buttonChangeAll.Location = new System.Drawing.Point(6, 45);
this.buttonChangeAll.Name = "buttonChangeAll"; this.buttonChangeAll.Name = "buttonChangeAll";
this.buttonChangeAll.Size = new System.Drawing.Size(290, 21); this.buttonChangeAll.Size = new System.Drawing.Size(290, 21);
@ -161,9 +161,9 @@
this.buttonChangeAll.Text = "Change and add to ocr fix list (case sensitive)"; this.buttonChangeAll.Text = "Change and add to ocr fix list (case sensitive)";
this.buttonChangeAll.UseVisualStyleBackColor = true; this.buttonChangeAll.UseVisualStyleBackColor = true;
this.buttonChangeAll.Click += new System.EventHandler(this.ButtonChangeAllClick); this.buttonChangeAll.Click += new System.EventHandler(this.ButtonChangeAllClick);
// //
// buttonChange // buttonChange
// //
this.buttonChange.Location = new System.Drawing.Point(6, 72); this.buttonChange.Location = new System.Drawing.Point(6, 72);
this.buttonChange.Name = "buttonChange"; this.buttonChange.Name = "buttonChange";
this.buttonChange.Size = new System.Drawing.Size(141, 21); this.buttonChange.Size = new System.Drawing.Size(141, 21);
@ -171,9 +171,9 @@
this.buttonChange.Text = "Change once"; this.buttonChange.Text = "Change once";
this.buttonChange.UseVisualStyleBackColor = true; this.buttonChange.UseVisualStyleBackColor = true;
this.buttonChange.Click += new System.EventHandler(this.ButtonChangeClick); this.buttonChange.Click += new System.EventHandler(this.ButtonChangeClick);
// //
// buttonSkipAll // buttonSkipAll
// //
this.buttonSkipAll.Location = new System.Drawing.Point(155, 97); this.buttonSkipAll.Location = new System.Drawing.Point(155, 97);
this.buttonSkipAll.Name = "buttonSkipAll"; this.buttonSkipAll.Name = "buttonSkipAll";
this.buttonSkipAll.Size = new System.Drawing.Size(141, 21); this.buttonSkipAll.Size = new System.Drawing.Size(141, 21);
@ -181,9 +181,9 @@
this.buttonSkipAll.Text = "&Skip all"; this.buttonSkipAll.Text = "&Skip all";
this.buttonSkipAll.UseVisualStyleBackColor = true; this.buttonSkipAll.UseVisualStyleBackColor = true;
this.buttonSkipAll.Click += new System.EventHandler(this.ButtonSkipAllClick); this.buttonSkipAll.Click += new System.EventHandler(this.ButtonSkipAllClick);
// //
// textBoxWord // textBoxWord
// //
this.textBoxWord.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxWord.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxWord.Location = new System.Drawing.Point(6, 19); this.textBoxWord.Location = new System.Drawing.Point(6, 19);
this.textBoxWord.Name = "textBoxWord"; this.textBoxWord.Name = "textBoxWord";
@ -191,9 +191,9 @@
this.textBoxWord.TabIndex = 31; this.textBoxWord.TabIndex = 31;
this.textBoxWord.TextChanged += new System.EventHandler(this.textBoxWord_TextChanged); this.textBoxWord.TextChanged += new System.EventHandler(this.textBoxWord_TextChanged);
this.textBoxWord.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxWordKeyDown); this.textBoxWord.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxWordKeyDown);
// //
// buttonSkipOnce // buttonSkipOnce
// //
this.buttonSkipOnce.Location = new System.Drawing.Point(155, 72); this.buttonSkipOnce.Location = new System.Drawing.Point(155, 72);
this.buttonSkipOnce.Name = "buttonSkipOnce"; this.buttonSkipOnce.Name = "buttonSkipOnce";
this.buttonSkipOnce.Size = new System.Drawing.Size(141, 21); this.buttonSkipOnce.Size = new System.Drawing.Size(141, 21);
@ -201,9 +201,9 @@
this.buttonSkipOnce.Text = "Skip &once"; this.buttonSkipOnce.Text = "Skip &once";
this.buttonSkipOnce.UseVisualStyleBackColor = true; this.buttonSkipOnce.UseVisualStyleBackColor = true;
this.buttonSkipOnce.Click += new System.EventHandler(this.ButtonSkipOnceClick); this.buttonSkipOnce.Click += new System.EventHandler(this.ButtonSkipOnceClick);
// //
// buttonAddToNames // buttonAddToNames
// //
this.buttonAddToNames.Location = new System.Drawing.Point(6, 124); this.buttonAddToNames.Location = new System.Drawing.Point(6, 124);
this.buttonAddToNames.Name = "buttonAddToNames"; this.buttonAddToNames.Name = "buttonAddToNames";
this.buttonAddToNames.Size = new System.Drawing.Size(290, 21); this.buttonAddToNames.Size = new System.Drawing.Size(290, 21);
@ -211,9 +211,9 @@
this.buttonAddToNames.Text = "Add to names/noise list (case sensitive)"; this.buttonAddToNames.Text = "Add to names/noise list (case sensitive)";
this.buttonAddToNames.UseVisualStyleBackColor = true; this.buttonAddToNames.UseVisualStyleBackColor = true;
this.buttonAddToNames.Click += new System.EventHandler(this.ButtonAddToNamesClick); this.buttonAddToNames.Click += new System.EventHandler(this.ButtonAddToNamesClick);
// //
// groupBoxEditWholeText // groupBoxEditWholeText
// //
this.groupBoxEditWholeText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBoxEditWholeText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.groupBoxEditWholeText.Controls.Add(this.buttonSkipText); this.groupBoxEditWholeText.Controls.Add(this.buttonSkipText);
this.groupBoxEditWholeText.Controls.Add(this.buttonChangeWholeText); this.groupBoxEditWholeText.Controls.Add(this.buttonChangeWholeText);
@ -224,9 +224,9 @@
this.groupBoxEditWholeText.TabIndex = 37; this.groupBoxEditWholeText.TabIndex = 37;
this.groupBoxEditWholeText.TabStop = false; this.groupBoxEditWholeText.TabStop = false;
this.groupBoxEditWholeText.Text = "Edit whole text"; this.groupBoxEditWholeText.Text = "Edit whole text";
// //
// buttonSkipText // buttonSkipText
// //
this.buttonSkipText.Location = new System.Drawing.Point(156, 88); this.buttonSkipText.Location = new System.Drawing.Point(156, 88);
this.buttonSkipText.Name = "buttonSkipText"; this.buttonSkipText.Name = "buttonSkipText";
this.buttonSkipText.Size = new System.Drawing.Size(139, 21); this.buttonSkipText.Size = new System.Drawing.Size(139, 21);
@ -234,9 +234,9 @@
this.buttonSkipText.Text = "Skip text"; this.buttonSkipText.Text = "Skip text";
this.buttonSkipText.UseVisualStyleBackColor = true; this.buttonSkipText.UseVisualStyleBackColor = true;
this.buttonSkipText.Click += new System.EventHandler(this.ButtonSkipTextClick); this.buttonSkipText.Click += new System.EventHandler(this.ButtonSkipTextClick);
// //
// buttonChangeWholeText // buttonChangeWholeText
// //
this.buttonChangeWholeText.Location = new System.Drawing.Point(6, 88); this.buttonChangeWholeText.Location = new System.Drawing.Point(6, 88);
this.buttonChangeWholeText.Name = "buttonChangeWholeText"; this.buttonChangeWholeText.Name = "buttonChangeWholeText";
this.buttonChangeWholeText.Size = new System.Drawing.Size(143, 21); this.buttonChangeWholeText.Size = new System.Drawing.Size(143, 21);
@ -244,20 +244,20 @@
this.buttonChangeWholeText.Text = "Change"; this.buttonChangeWholeText.Text = "Change";
this.buttonChangeWholeText.UseVisualStyleBackColor = true; this.buttonChangeWholeText.UseVisualStyleBackColor = true;
this.buttonChangeWholeText.Click += new System.EventHandler(this.ButtonChangeWholeTextClick); this.buttonChangeWholeText.Click += new System.EventHandler(this.ButtonChangeWholeTextClick);
// //
// textBoxWholeText // textBoxWholeText
// //
this.textBoxWholeText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxWholeText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxWholeText.Location = new System.Drawing.Point(6, 19); this.textBoxWholeText.Location = new System.Drawing.Point(6, 19);
this.textBoxWholeText.Multiline = true; this.textBoxWholeText.Multiline = true;
this.textBoxWholeText.Name = "textBoxWholeText"; this.textBoxWholeText.Name = "textBoxWholeText";
this.textBoxWholeText.Size = new System.Drawing.Size(290, 63); this.textBoxWholeText.Size = new System.Drawing.Size(290, 63);
this.textBoxWholeText.TabIndex = 31; this.textBoxWholeText.TabIndex = 31;
// //
// groupBoxTextAsImage // groupBoxTextAsImage
// //
this.groupBoxTextAsImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxTextAsImage.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.groupBoxTextAsImage.Controls.Add(this.pictureBoxText); this.groupBoxTextAsImage.Controls.Add(this.pictureBoxText);
this.groupBoxTextAsImage.Location = new System.Drawing.Point(12, 12); this.groupBoxTextAsImage.Location = new System.Drawing.Point(12, 12);
@ -266,21 +266,21 @@
this.groupBoxTextAsImage.TabIndex = 34; this.groupBoxTextAsImage.TabIndex = 34;
this.groupBoxTextAsImage.TabStop = false; this.groupBoxTextAsImage.TabStop = false;
this.groupBoxTextAsImage.Text = "Image text"; this.groupBoxTextAsImage.Text = "Image text";
// //
// pictureBoxText // pictureBoxText
// //
this.pictureBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.pictureBoxText.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.pictureBoxText.Location = new System.Drawing.Point(6, 18); this.pictureBoxText.Location = new System.Drawing.Point(6, 18);
this.pictureBoxText.Name = "pictureBoxText"; this.pictureBoxText.Name = "pictureBoxText";
this.pictureBoxText.Size = new System.Drawing.Size(684, 127); this.pictureBoxText.Size = new System.Drawing.Size(684, 127);
this.pictureBoxText.TabIndex = 32; this.pictureBoxText.TabIndex = 32;
this.pictureBoxText.TabStop = false; this.pictureBoxText.TabStop = false;
// //
// groupBoxText // groupBoxText
// //
this.groupBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.groupBoxText.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.groupBoxText.Controls.Add(this.richTextBoxParagraph); this.groupBoxText.Controls.Add(this.richTextBoxParagraph);
this.groupBoxText.Controls.Add(this.buttonEditWholeText); this.groupBoxText.Controls.Add(this.buttonEditWholeText);
@ -291,9 +291,9 @@
this.groupBoxText.TabIndex = 38; this.groupBoxText.TabIndex = 38;
this.groupBoxText.TabStop = false; this.groupBoxText.TabStop = false;
this.groupBoxText.Text = "Text"; this.groupBoxText.Text = "Text";
// //
// richTextBoxParagraph // richTextBoxParagraph
// //
this.richTextBoxParagraph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.richTextBoxParagraph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.richTextBoxParagraph.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.richTextBoxParagraph.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.richTextBoxParagraph.Location = new System.Drawing.Point(6, 12); this.richTextBoxParagraph.Location = new System.Drawing.Point(6, 12);
@ -302,9 +302,9 @@
this.richTextBoxParagraph.Size = new System.Drawing.Size(296, 54); this.richTextBoxParagraph.Size = new System.Drawing.Size(296, 54);
this.richTextBoxParagraph.TabIndex = 39; this.richTextBoxParagraph.TabIndex = 39;
this.richTextBoxParagraph.Text = ""; this.richTextBoxParagraph.Text = "";
// //
// buttonEditWholeText // buttonEditWholeText
// //
this.buttonEditWholeText.Location = new System.Drawing.Point(308, 17); this.buttonEditWholeText.Location = new System.Drawing.Point(308, 17);
this.buttonEditWholeText.Name = "buttonEditWholeText"; this.buttonEditWholeText.Name = "buttonEditWholeText";
this.buttonEditWholeText.Size = new System.Drawing.Size(128, 21); this.buttonEditWholeText.Size = new System.Drawing.Size(128, 21);
@ -312,9 +312,9 @@
this.buttonEditWholeText.Text = "Edit whole text"; this.buttonEditWholeText.Text = "Edit whole text";
this.buttonEditWholeText.UseVisualStyleBackColor = true; this.buttonEditWholeText.UseVisualStyleBackColor = true;
this.buttonEditWholeText.Click += new System.EventHandler(this.ButtonEditWholeTextClick); this.buttonEditWholeText.Click += new System.EventHandler(this.ButtonEditWholeTextClick);
// //
// buttonEditWord // buttonEditWord
// //
this.buttonEditWord.Location = new System.Drawing.Point(308, 43); this.buttonEditWord.Location = new System.Drawing.Point(308, 43);
this.buttonEditWord.Name = "buttonEditWord"; this.buttonEditWord.Name = "buttonEditWord";
this.buttonEditWord.Size = new System.Drawing.Size(128, 21); this.buttonEditWord.Size = new System.Drawing.Size(128, 21);
@ -322,9 +322,9 @@
this.buttonEditWord.Text = "Edit word"; this.buttonEditWord.Text = "Edit word";
this.buttonEditWord.UseVisualStyleBackColor = true; this.buttonEditWord.UseVisualStyleBackColor = true;
this.buttonEditWord.Click += new System.EventHandler(this.ButtonEditWordClick); this.buttonEditWord.Click += new System.EventHandler(this.ButtonEditWordClick);
// //
// OcrSpellCheck // OcrSpellCheck
// //
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(720, 473); this.ClientSize = new System.Drawing.Size(720, 473);

View File

@ -96,7 +96,7 @@ namespace Nikse.SubtitleEdit.Forms
for (int i = 0; i < richTextBoxParagraph.Text.Length; i++) for (int i = 0; i < richTextBoxParagraph.Text.Length; i++)
{ {
if (richTextBoxParagraph.Text.Substring(i).StartsWith(word)) if (richTextBoxParagraph.Text.Substring(i).StartsWith(word))
{ {
bool startOk = i == 0; bool startOk = i == 0;
if (!startOk) if (!startOk)
startOk = (" <>-\"”“[]'`´¶()♪¿¡.…—!?,:;/" + Environment.NewLine).Contains(richTextBoxParagraph.Text.Substring(i - 1, 1)); startOk = (" <>-\"”“[]'`´¶()♪¿¡.…—!?,:;/" + Environment.NewLine).Contains(richTextBoxParagraph.Text.Substring(i - 1, 1));
@ -125,7 +125,7 @@ namespace Nikse.SubtitleEdit.Forms
richTextBoxParagraph.SelectionLength = 0; richTextBoxParagraph.SelectionLength = 0;
richTextBoxParagraph.SelectionStart = 0; richTextBoxParagraph.SelectionStart = 0;
} }
} }
private void ButtonEditWholeTextClick(object sender, EventArgs e) private void ButtonEditWholeTextClick(object sender, EventArgs e)

View File

@ -56,9 +56,9 @@
this.groupBoxLinesFound.SuspendLayout(); this.groupBoxLinesFound.SuspendLayout();
this.groupBoxRemoveTextConditions.SuspendLayout(); this.groupBoxRemoveTextConditions.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(523, 480); this.buttonOK.Location = new System.Drawing.Point(523, 480);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -67,9 +67,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(604, 480); this.buttonCancel.Location = new System.Drawing.Point(604, 480);
@ -78,11 +78,11 @@
this.buttonCancel.TabIndex = 3; this.buttonCancel.TabIndex = 3;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxLinesFound.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.groupBoxLinesFound.Controls.Add(this.listViewFixes); this.groupBoxLinesFound.Controls.Add(this.listViewFixes);
this.groupBoxLinesFound.Location = new System.Drawing.Point(12, 222); this.groupBoxLinesFound.Location = new System.Drawing.Point(12, 222);
@ -91,11 +91,11 @@
this.groupBoxLinesFound.TabIndex = 1; this.groupBoxLinesFound.TabIndex = 1;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines found"; this.groupBoxLinesFound.Text = "Lines found";
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.listViewFixes.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.listViewFixes.CheckBoxes = true; this.listViewFixes.CheckBoxes = true;
this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listViewFixes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@ -110,29 +110,29 @@
this.listViewFixes.TabIndex = 0; this.listViewFixes.TabIndex = 0;
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 45; this.columnHeader4.Width = 45;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 61; this.columnHeader5.Width = 61;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "Before"; this.columnHeader7.Text = "Before";
this.columnHeader7.Width = 251; this.columnHeader7.Width = 251;
// //
// columnHeader8 // columnHeader8
// //
this.columnHeader8.Text = "After"; this.columnHeader8.Text = "After";
this.columnHeader8.Width = 266; this.columnHeader8.Width = 266;
// //
// checkBoxRemoveTextBeforeColon // checkBoxRemoveTextBeforeColon
// //
this.checkBoxRemoveTextBeforeColon.AutoSize = true; this.checkBoxRemoveTextBeforeColon.AutoSize = true;
this.checkBoxRemoveTextBeforeColon.Checked = true; this.checkBoxRemoveTextBeforeColon.Checked = true;
this.checkBoxRemoveTextBeforeColon.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBeforeColon.CheckState = System.Windows.Forms.CheckState.Checked;
@ -143,10 +143,10 @@
this.checkBoxRemoveTextBeforeColon.Text = "Remove text before a colon (:)"; this.checkBoxRemoveTextBeforeColon.Text = "Remove text before a colon (:)";
this.checkBoxRemoveTextBeforeColon.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBeforeColon.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBeforeColon.CheckedChanged += new System.EventHandler(this.checkBoxRemoveTextBeforeColon_CheckedChanged); this.checkBoxRemoveTextBeforeColon.CheckedChanged += new System.EventHandler(this.checkBoxRemoveTextBeforeColon_CheckedChanged);
// //
// groupBoxRemoveTextConditions // groupBoxRemoveTextConditions
// //
this.groupBoxRemoveTextConditions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxRemoveTextConditions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxRemoveTextConditions.Controls.Add(this.buttonEditInterjections); this.groupBoxRemoveTextConditions.Controls.Add(this.buttonEditInterjections);
this.groupBoxRemoveTextConditions.Controls.Add(this.checkBoxRemoveInterjections); this.groupBoxRemoveTextConditions.Controls.Add(this.checkBoxRemoveInterjections);
@ -170,9 +170,9 @@
this.groupBoxRemoveTextConditions.TabIndex = 0; this.groupBoxRemoveTextConditions.TabIndex = 0;
this.groupBoxRemoveTextConditions.TabStop = false; this.groupBoxRemoveTextConditions.TabStop = false;
this.groupBoxRemoveTextConditions.Text = "Remove text conditions"; this.groupBoxRemoveTextConditions.Text = "Remove text conditions";
// //
// buttonEditInterjections // buttonEditInterjections
// //
this.buttonEditInterjections.Location = new System.Drawing.Point(377, 137); this.buttonEditInterjections.Location = new System.Drawing.Point(377, 137);
this.buttonEditInterjections.Name = "buttonEditInterjections"; this.buttonEditInterjections.Name = "buttonEditInterjections";
this.buttonEditInterjections.Size = new System.Drawing.Size(103, 23); this.buttonEditInterjections.Size = new System.Drawing.Size(103, 23);
@ -180,9 +180,9 @@
this.buttonEditInterjections.Text = "Edit..."; this.buttonEditInterjections.Text = "Edit...";
this.buttonEditInterjections.UseVisualStyleBackColor = true; this.buttonEditInterjections.UseVisualStyleBackColor = true;
this.buttonEditInterjections.Click += new System.EventHandler(this.buttonEditInterjections_Click); this.buttonEditInterjections.Click += new System.EventHandler(this.buttonEditInterjections_Click);
// //
// checkBoxRemoveInterjections // checkBoxRemoveInterjections
// //
this.checkBoxRemoveInterjections.AutoSize = true; this.checkBoxRemoveInterjections.AutoSize = true;
this.checkBoxRemoveInterjections.Location = new System.Drawing.Point(241, 141); this.checkBoxRemoveInterjections.Location = new System.Drawing.Point(241, 141);
this.checkBoxRemoveInterjections.Name = "checkBoxRemoveInterjections"; this.checkBoxRemoveInterjections.Name = "checkBoxRemoveInterjections";
@ -191,18 +191,18 @@
this.checkBoxRemoveInterjections.Text = "Remove interjections "; this.checkBoxRemoveInterjections.Text = "Remove interjections ";
this.checkBoxRemoveInterjections.UseVisualStyleBackColor = true; this.checkBoxRemoveInterjections.UseVisualStyleBackColor = true;
this.checkBoxRemoveInterjections.CheckedChanged += new System.EventHandler(this.checkBoxRemoveInterjections_CheckedChanged); this.checkBoxRemoveInterjections.CheckedChanged += new System.EventHandler(this.checkBoxRemoveInterjections_CheckedChanged);
// //
// labelRemoveTextBetween // labelRemoveTextBetween
// //
this.labelRemoveTextBetween.AutoSize = true; this.labelRemoveTextBetween.AutoSize = true;
this.labelRemoveTextBetween.Location = new System.Drawing.Point(8, 26); this.labelRemoveTextBetween.Location = new System.Drawing.Point(8, 26);
this.labelRemoveTextBetween.Name = "labelRemoveTextBetween"; this.labelRemoveTextBetween.Name = "labelRemoveTextBetween";
this.labelRemoveTextBetween.Size = new System.Drawing.Size(114, 13); this.labelRemoveTextBetween.Size = new System.Drawing.Size(114, 13);
this.labelRemoveTextBetween.TabIndex = 0; this.labelRemoveTextBetween.TabIndex = 0;
this.labelRemoveTextBetween.Text = "Remove text between"; this.labelRemoveTextBetween.Text = "Remove text between";
// //
// comboBoxRemoveIfTextContains // comboBoxRemoveIfTextContains
// //
this.comboBoxRemoveIfTextContains.FormattingEnabled = true; this.comboBoxRemoveIfTextContains.FormattingEnabled = true;
this.comboBoxRemoveIfTextContains.Items.AddRange(new object[] { this.comboBoxRemoveIfTextContains.Items.AddRange(new object[] {
"¶", "¶",
@ -215,9 +215,9 @@
this.comboBoxRemoveIfTextContains.TabIndex = 13; this.comboBoxRemoveIfTextContains.TabIndex = 13;
this.comboBoxRemoveIfTextContains.Text = "¶"; this.comboBoxRemoveIfTextContains.Text = "¶";
this.comboBoxRemoveIfTextContains.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.comboBoxRemoveIfTextContains.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveWhereContains // checkBoxRemoveWhereContains
// //
this.checkBoxRemoveWhereContains.AutoSize = true; this.checkBoxRemoveWhereContains.AutoSize = true;
this.checkBoxRemoveWhereContains.Location = new System.Drawing.Point(241, 92); this.checkBoxRemoveWhereContains.Location = new System.Drawing.Point(241, 92);
this.checkBoxRemoveWhereContains.Name = "checkBoxRemoveWhereContains"; this.checkBoxRemoveWhereContains.Name = "checkBoxRemoveWhereContains";
@ -226,9 +226,9 @@
this.checkBoxRemoveWhereContains.Text = "Remove text if it contains:"; this.checkBoxRemoveWhereContains.Text = "Remove text if it contains:";
this.checkBoxRemoveWhereContains.UseVisualStyleBackColor = true; this.checkBoxRemoveWhereContains.UseVisualStyleBackColor = true;
this.checkBoxRemoveWhereContains.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveWhereContains.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// comboBoxCustomEnd // comboBoxCustomEnd
// //
this.comboBoxCustomEnd.FormattingEnabled = true; this.comboBoxCustomEnd.FormattingEnabled = true;
this.comboBoxCustomEnd.Items.AddRange(new object[] { this.comboBoxCustomEnd.Items.AddRange(new object[] {
"¶", "¶",
@ -241,9 +241,9 @@
this.comboBoxCustomEnd.TabIndex = 8; this.comboBoxCustomEnd.TabIndex = 8;
this.comboBoxCustomEnd.Text = "¶"; this.comboBoxCustomEnd.Text = "¶";
this.comboBoxCustomEnd.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.comboBoxCustomEnd.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// comboBoxCustomStart // comboBoxCustomStart
// //
this.comboBoxCustomStart.FormattingEnabled = true; this.comboBoxCustomStart.FormattingEnabled = true;
this.comboBoxCustomStart.Items.AddRange(new object[] { this.comboBoxCustomStart.Items.AddRange(new object[] {
"¶", "¶",
@ -256,9 +256,9 @@
this.comboBoxCustomStart.TabIndex = 6; this.comboBoxCustomStart.TabIndex = 6;
this.comboBoxCustomStart.Text = "¶"; this.comboBoxCustomStart.Text = "¶";
this.comboBoxCustomStart.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.comboBoxCustomStart.TextChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBeforeColonOnlyUppercase // checkBoxRemoveTextBeforeColonOnlyUppercase
// //
this.checkBoxRemoveTextBeforeColonOnlyUppercase.AutoSize = true; this.checkBoxRemoveTextBeforeColonOnlyUppercase.AutoSize = true;
this.checkBoxRemoveTextBeforeColonOnlyUppercase.Location = new System.Drawing.Point(261, 46); this.checkBoxRemoveTextBeforeColonOnlyUppercase.Location = new System.Drawing.Point(261, 46);
this.checkBoxRemoveTextBeforeColonOnlyUppercase.Name = "checkBoxRemoveTextBeforeColonOnlyUppercase"; this.checkBoxRemoveTextBeforeColonOnlyUppercase.Name = "checkBoxRemoveTextBeforeColonOnlyUppercase";
@ -267,9 +267,9 @@
this.checkBoxRemoveTextBeforeColonOnlyUppercase.Text = "Only if text is UPPERCASE"; this.checkBoxRemoveTextBeforeColonOnlyUppercase.Text = "Only if text is UPPERCASE";
this.checkBoxRemoveTextBeforeColonOnlyUppercase.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBeforeColonOnlyUppercase.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBeforeColonOnlyUppercase.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBeforeColonOnlyUppercase.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxOnlyIfInSeparateLine // checkBoxOnlyIfInSeparateLine
// //
this.checkBoxOnlyIfInSeparateLine.AutoSize = true; this.checkBoxOnlyIfInSeparateLine.AutoSize = true;
this.checkBoxOnlyIfInSeparateLine.Location = new System.Drawing.Point(21, 172); this.checkBoxOnlyIfInSeparateLine.Location = new System.Drawing.Point(21, 172);
this.checkBoxOnlyIfInSeparateLine.Name = "checkBoxOnlyIfInSeparateLine"; this.checkBoxOnlyIfInSeparateLine.Name = "checkBoxOnlyIfInSeparateLine";
@ -278,9 +278,9 @@
this.checkBoxOnlyIfInSeparateLine.Text = "Only if on separate line"; this.checkBoxOnlyIfInSeparateLine.Text = "Only if on separate line";
this.checkBoxOnlyIfInSeparateLine.UseVisualStyleBackColor = true; this.checkBoxOnlyIfInSeparateLine.UseVisualStyleBackColor = true;
this.checkBoxOnlyIfInSeparateLine.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxOnlyIfInSeparateLine.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBetweenCustomTags // checkBoxRemoveTextBetweenCustomTags
// //
this.checkBoxRemoveTextBetweenCustomTags.AutoSize = true; this.checkBoxRemoveTextBetweenCustomTags.AutoSize = true;
this.checkBoxRemoveTextBetweenCustomTags.Checked = true; this.checkBoxRemoveTextBetweenCustomTags.Checked = true;
this.checkBoxRemoveTextBetweenCustomTags.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBetweenCustomTags.CheckState = System.Windows.Forms.CheckState.Checked;
@ -290,9 +290,9 @@
this.checkBoxRemoveTextBetweenCustomTags.TabIndex = 5; this.checkBoxRemoveTextBetweenCustomTags.TabIndex = 5;
this.checkBoxRemoveTextBetweenCustomTags.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBetweenCustomTags.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBetweenCustomTags.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBetweenCustomTags.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBetweenQuestionMarks // checkBoxRemoveTextBetweenQuestionMarks
// //
this.checkBoxRemoveTextBetweenQuestionMarks.AutoSize = true; this.checkBoxRemoveTextBetweenQuestionMarks.AutoSize = true;
this.checkBoxRemoveTextBetweenQuestionMarks.Checked = true; this.checkBoxRemoveTextBetweenQuestionMarks.Checked = true;
this.checkBoxRemoveTextBetweenQuestionMarks.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBetweenQuestionMarks.CheckState = System.Windows.Forms.CheckState.Checked;
@ -303,9 +303,9 @@
this.checkBoxRemoveTextBetweenQuestionMarks.Text = "\"?\" and \"?\""; this.checkBoxRemoveTextBetweenQuestionMarks.Text = "\"?\" and \"?\"";
this.checkBoxRemoveTextBetweenQuestionMarks.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBetweenQuestionMarks.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBetweenQuestionMarks.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBetweenQuestionMarks.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBetweenParentheses // checkBoxRemoveTextBetweenParentheses
// //
this.checkBoxRemoveTextBetweenParentheses.AutoSize = true; this.checkBoxRemoveTextBetweenParentheses.AutoSize = true;
this.checkBoxRemoveTextBetweenParentheses.Checked = true; this.checkBoxRemoveTextBetweenParentheses.Checked = true;
this.checkBoxRemoveTextBetweenParentheses.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBetweenParentheses.CheckState = System.Windows.Forms.CheckState.Checked;
@ -316,9 +316,9 @@
this.checkBoxRemoveTextBetweenParentheses.Text = "\"(\" and \")\""; this.checkBoxRemoveTextBetweenParentheses.Text = "\"(\" and \")\"";
this.checkBoxRemoveTextBetweenParentheses.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBetweenParentheses.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBetweenParentheses.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBetweenParentheses.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBetweenBrackets // checkBoxRemoveTextBetweenBrackets
// //
this.checkBoxRemoveTextBetweenBrackets.AutoSize = true; this.checkBoxRemoveTextBetweenBrackets.AutoSize = true;
this.checkBoxRemoveTextBetweenBrackets.Checked = true; this.checkBoxRemoveTextBetweenBrackets.Checked = true;
this.checkBoxRemoveTextBetweenBrackets.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBetweenBrackets.CheckState = System.Windows.Forms.CheckState.Checked;
@ -329,9 +329,9 @@
this.checkBoxRemoveTextBetweenBrackets.Text = "\"{\" and \"}\""; this.checkBoxRemoveTextBetweenBrackets.Text = "\"{\" and \"}\"";
this.checkBoxRemoveTextBetweenBrackets.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBetweenBrackets.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBetweenBrackets.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBetweenBrackets.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// checkBoxRemoveTextBetweenSquares // checkBoxRemoveTextBetweenSquares
// //
this.checkBoxRemoveTextBetweenSquares.AutoSize = true; this.checkBoxRemoveTextBetweenSquares.AutoSize = true;
this.checkBoxRemoveTextBetweenSquares.Checked = true; this.checkBoxRemoveTextBetweenSquares.Checked = true;
this.checkBoxRemoveTextBetweenSquares.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxRemoveTextBetweenSquares.CheckState = System.Windows.Forms.CheckState.Checked;
@ -342,18 +342,18 @@
this.checkBoxRemoveTextBetweenSquares.Text = "\"[\" and \"]\""; this.checkBoxRemoveTextBetweenSquares.Text = "\"[\" and \"]\"";
this.checkBoxRemoveTextBetweenSquares.UseVisualStyleBackColor = true; this.checkBoxRemoveTextBetweenSquares.UseVisualStyleBackColor = true;
this.checkBoxRemoveTextBetweenSquares.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged); this.checkBoxRemoveTextBetweenSquares.CheckedChanged += new System.EventHandler(this.CheckBoxRemoveTextBetweenCheckedChanged);
// //
// labelAnd // labelAnd
// //
this.labelAnd.AutoSize = true; this.labelAnd.AutoSize = true;
this.labelAnd.Location = new System.Drawing.Point(85, 141); this.labelAnd.Location = new System.Drawing.Point(85, 141);
this.labelAnd.Name = "labelAnd"; this.labelAnd.Name = "labelAnd";
this.labelAnd.Size = new System.Drawing.Size(25, 13); this.labelAnd.Size = new System.Drawing.Size(25, 13);
this.labelAnd.TabIndex = 7; this.labelAnd.TabIndex = 7;
this.labelAnd.Text = "and"; this.labelAnd.Text = "and";
// //
// FormRemoveTextForHearImpaired // FormRemoveTextForHearImpaired
// //
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(697, 507); this.ClientSize = new System.Drawing.Size(697, 507);

View File

@ -89,7 +89,7 @@ namespace Nikse.SubtitleEdit.Forms
if (s.StartsWith("-") && s.Length > 2) if (s.StartsWith("-") && s.Length > 2)
s = s.TrimStart('-'); s = s.TrimStart('-');
return s.Trim(); return s.Trim();
} }
@ -135,7 +135,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
if (checkBoxRemoveTextBetweenQuestionMarks.Checked) if (checkBoxRemoveTextBetweenQuestionMarks.Checked)
{ {
text = RemoveTextBetweenTags("?", "?:", text); text = RemoveTextBetweenTags("?", "?:", text);
text = RemoveTextBetweenTags("?", "?", text); text = RemoveTextBetweenTags("?", "?", text);
} }
@ -388,10 +388,10 @@ namespace Nikse.SubtitleEdit.Forms
} }
newText = newText.Trim(); newText = newText.Trim();
if (noOfNames > 0 && Utilities.CountTagInText(newText, Environment.NewLine) == 1) if (noOfNames > 0 && Utilities.CountTagInText(newText, Environment.NewLine) == 1)
{ {
int indexOfDialogChar = newText.IndexOf('-'); int indexOfDialogChar = newText.IndexOf('-');
bool insertDash = true; bool insertDash = true;
string[] arr = newText.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries); string[] arr = newText.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
if (arr.Length == 2 && arr[0].Length > 1 && arr[1].Length > 1) if (arr.Length == 2 && arr[0].Length > 1 && arr[1].Length > 1)
{ {
string arr0 = new StripableText(arr[0]).StrippedText; string arr0 = new StripableText(arr[0]).StrippedText;
@ -407,7 +407,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
insertDash = false; insertDash = false;
} }
} }
if (insertDash) if (insertDash)
@ -437,7 +437,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
return newText; return newText;
} }
internal string RemoveTextFromHearImpaired(string text) internal string RemoveTextFromHearImpaired(string text)
{ {
if (checkBoxRemoveWhereContains.Checked && comboBoxRemoveIfTextContains.Text.Length > 0 && text.Contains(comboBoxRemoveIfTextContains.Text)) if (checkBoxRemoveWhereContains.Checked && comboBoxRemoveIfTextContains.Text.Length > 0 && text.Contains(comboBoxRemoveIfTextContains.Text))
@ -526,7 +526,7 @@ namespace Nikse.SubtitleEdit.Forms
text = RemoveHearImpairedTags(text); text = RemoveHearImpairedTags(text);
// fix 3 lines to two liners - if only two lines // fix 3 lines to two liners - if only two lines
if (noOfNamesRemoved >= 1 && Utilities.CountTagInText(text, Environment.NewLine) == 2) if (noOfNamesRemoved >= 1 && Utilities.CountTagInText(text, Environment.NewLine) == 2)
{ {
string[] a = Utilities.RemoveHtmlTags(text).Replace(" ", string.Empty).Split("!?.".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); string[] a = Utilities.RemoveHtmlTags(text).Replace(" ", string.Empty).Split("!?.".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
@ -599,11 +599,11 @@ namespace Nikse.SubtitleEdit.Forms
text = text.ToLower(); text = text.ToLower();
text = text.TrimEnd(" ()[]?{}".ToCharArray()); text = text.TrimEnd(" ()[]?{}".ToCharArray());
text = text.TrimStart(" ()[]?{}".ToCharArray()); text = text.TrimStart(" ()[]?{}".ToCharArray());
if (text == "sighing" || if (text == "sighing" ||
text == "laughs" || text == "laughs" ||
text == "chuckles" || text == "chuckles" ||
text == "scoff" || text == "scoff" ||
text == "sighs" || text == "sighs" ||
text == "whispers" || text == "whispers" ||
text == "whisper" || text == "whisper" ||
@ -631,7 +631,7 @@ namespace Nikse.SubtitleEdit.Forms
result = result.TrimEnd(" ()[]?{}".ToCharArray()); result = result.TrimEnd(" ()[]?{}".ToCharArray());
result = result.TrimStart(" ()[]?{}".ToCharArray()); result = result.TrimStart(" ()[]?{}".ToCharArray());
return result; return result;
} }
private string RemoveInterjections(string text) private string RemoveInterjections(string text)
{ {
@ -639,7 +639,7 @@ namespace Nikse.SubtitleEdit.Forms
foreach (string s in arr) foreach (string s in arr)
{ {
if (text.Contains(s)) if (text.Contains(s))
{ {
Regex regex = new Regex(s); Regex regex = new Regex(s);
Match match = regex.Match(text); Match match = regex.Match(text);
if (match.Success) if (match.Success)
@ -671,7 +671,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
return text; return text;
} }
private string RemoveStartEndTags(string text) private string RemoveStartEndTags(string text)
{ {

View File

@ -39,9 +39,9 @@
this.labelFindWhat = new System.Windows.Forms.Label(); this.labelFindWhat = new System.Windows.Forms.Label();
this.buttonFind = new System.Windows.Forms.Button(); this.buttonFind = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// radioButtonRegEx // radioButtonRegEx
// //
this.radioButtonRegEx.AutoSize = true; this.radioButtonRegEx.AutoSize = true;
this.radioButtonRegEx.Location = new System.Drawing.Point(17, 97); this.radioButtonRegEx.Location = new System.Drawing.Point(17, 97);
this.radioButtonRegEx.Name = "radioButtonRegEx"; this.radioButtonRegEx.Name = "radioButtonRegEx";
@ -50,9 +50,9 @@
this.radioButtonRegEx.Text = "RegEx"; this.radioButtonRegEx.Text = "RegEx";
this.radioButtonRegEx.UseVisualStyleBackColor = true; this.radioButtonRegEx.UseVisualStyleBackColor = true;
this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonCaseSensitive // radioButtonCaseSensitive
// //
this.radioButtonCaseSensitive.AutoSize = true; this.radioButtonCaseSensitive.AutoSize = true;
this.radioButtonCaseSensitive.Location = new System.Drawing.Point(17, 74); this.radioButtonCaseSensitive.Location = new System.Drawing.Point(17, 74);
this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive"; this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive";
@ -61,9 +61,9 @@
this.radioButtonCaseSensitive.Text = "Case sensitive"; this.radioButtonCaseSensitive.Text = "Case sensitive";
this.radioButtonCaseSensitive.UseVisualStyleBackColor = true; this.radioButtonCaseSensitive.UseVisualStyleBackColor = true;
this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// radioButtonNormal // radioButtonNormal
// //
this.radioButtonNormal.AutoSize = true; this.radioButtonNormal.AutoSize = true;
this.radioButtonNormal.Checked = true; this.radioButtonNormal.Checked = true;
this.radioButtonNormal.Location = new System.Drawing.Point(17, 51); this.radioButtonNormal.Location = new System.Drawing.Point(17, 51);
@ -74,9 +74,9 @@
this.radioButtonNormal.Text = "Normal"; this.radioButtonNormal.Text = "Normal";
this.radioButtonNormal.UseVisualStyleBackColor = true; this.radioButtonNormal.UseVisualStyleBackColor = true;
this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged); this.radioButtonNormal.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
// //
// buttonReplace // buttonReplace
// //
this.buttonReplace.Location = new System.Drawing.Point(96, 180); this.buttonReplace.Location = new System.Drawing.Point(96, 180);
this.buttonReplace.Name = "buttonReplace"; this.buttonReplace.Name = "buttonReplace";
this.buttonReplace.Size = new System.Drawing.Size(75, 21); this.buttonReplace.Size = new System.Drawing.Size(75, 21);
@ -84,17 +84,17 @@
this.buttonReplace.Text = "Replace"; this.buttonReplace.Text = "Replace";
this.buttonReplace.UseVisualStyleBackColor = true; this.buttonReplace.UseVisualStyleBackColor = true;
this.buttonReplace.Click += new System.EventHandler(this.ButtonReplaceClick); this.buttonReplace.Click += new System.EventHandler(this.ButtonReplaceClick);
// //
// textBoxFind // textBoxFind
// //
this.textBoxFind.Location = new System.Drawing.Point(15, 25); this.textBoxFind.Location = new System.Drawing.Point(15, 25);
this.textBoxFind.Name = "textBoxFind"; this.textBoxFind.Name = "textBoxFind";
this.textBoxFind.Size = new System.Drawing.Size(262, 21); this.textBoxFind.Size = new System.Drawing.Size(262, 21);
this.textBoxFind.TabIndex = 0; this.textBoxFind.TabIndex = 0;
this.textBoxFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown); this.textBoxFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown);
// //
// buttonReplaceAll // buttonReplaceAll
// //
this.buttonReplaceAll.Location = new System.Drawing.Point(177, 180); this.buttonReplaceAll.Location = new System.Drawing.Point(177, 180);
this.buttonReplaceAll.Name = "buttonReplaceAll"; this.buttonReplaceAll.Name = "buttonReplaceAll";
this.buttonReplaceAll.Size = new System.Drawing.Size(103, 21); this.buttonReplaceAll.Size = new System.Drawing.Size(103, 21);
@ -102,35 +102,35 @@
this.buttonReplaceAll.Text = "Replace all"; this.buttonReplaceAll.Text = "Replace all";
this.buttonReplaceAll.UseVisualStyleBackColor = true; this.buttonReplaceAll.UseVisualStyleBackColor = true;
this.buttonReplaceAll.Click += new System.EventHandler(this.ButtonReplaceAllClick); this.buttonReplaceAll.Click += new System.EventHandler(this.ButtonReplaceAllClick);
// //
// textBoxReplace // textBoxReplace
// //
this.textBoxReplace.Location = new System.Drawing.Point(15, 144); this.textBoxReplace.Location = new System.Drawing.Point(15, 144);
this.textBoxReplace.Name = "textBoxReplace"; this.textBoxReplace.Name = "textBoxReplace";
this.textBoxReplace.Size = new System.Drawing.Size(265, 21); this.textBoxReplace.Size = new System.Drawing.Size(265, 21);
this.textBoxReplace.TabIndex = 4; this.textBoxReplace.TabIndex = 4;
this.textBoxReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown); this.textBoxReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown);
// //
// labelReplaceWith // labelReplaceWith
// //
this.labelReplaceWith.AutoSize = true; this.labelReplaceWith.AutoSize = true;
this.labelReplaceWith.Location = new System.Drawing.Point(12, 127); this.labelReplaceWith.Location = new System.Drawing.Point(12, 127);
this.labelReplaceWith.Name = "labelReplaceWith"; this.labelReplaceWith.Name = "labelReplaceWith";
this.labelReplaceWith.Size = new System.Drawing.Size(72, 13); this.labelReplaceWith.Size = new System.Drawing.Size(72, 13);
this.labelReplaceWith.TabIndex = 14; this.labelReplaceWith.TabIndex = 14;
this.labelReplaceWith.Text = "Replace with:"; this.labelReplaceWith.Text = "Replace with:";
// //
// labelFindWhat // labelFindWhat
// //
this.labelFindWhat.AutoSize = true; this.labelFindWhat.AutoSize = true;
this.labelFindWhat.Location = new System.Drawing.Point(12, 8); this.labelFindWhat.Location = new System.Drawing.Point(12, 8);
this.labelFindWhat.Name = "labelFindWhat"; this.labelFindWhat.Name = "labelFindWhat";
this.labelFindWhat.Size = new System.Drawing.Size(58, 13); this.labelFindWhat.Size = new System.Drawing.Size(58, 13);
this.labelFindWhat.TabIndex = 15; this.labelFindWhat.TabIndex = 15;
this.labelFindWhat.Text = "Find what:"; this.labelFindWhat.Text = "Find what:";
// //
// buttonFind // buttonFind
// //
this.buttonFind.Location = new System.Drawing.Point(15, 180); this.buttonFind.Location = new System.Drawing.Point(15, 180);
this.buttonFind.Name = "buttonFind"; this.buttonFind.Name = "buttonFind";
this.buttonFind.Size = new System.Drawing.Size(75, 21); this.buttonFind.Size = new System.Drawing.Size(75, 21);
@ -138,9 +138,9 @@
this.buttonFind.Text = "Find"; this.buttonFind.Text = "Find";
this.buttonFind.UseVisualStyleBackColor = true; this.buttonFind.UseVisualStyleBackColor = true;
this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick); this.buttonFind.Click += new System.EventHandler(this.ButtonFindClick);
// //
// ReplaceDialog // ReplaceDialog
// //
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(330, 208); this.ClientSize = new System.Drawing.Size(330, 208);

View File

@ -46,7 +46,7 @@ namespace Nikse.SubtitleEdit.Forms
public bool ReplaceAll { get; set; } public bool ReplaceAll { get; set; }
public bool FindOnly { get; set; } public bool FindOnly { get; set; }
public FindType GetFindType() public FindType GetFindType()
{ {
if (radioButtonNormal.Checked) if (radioButtonNormal.Checked)

View File

@ -38,9 +38,9 @@
this.groupBoxLinesFound.SuspendLayout(); this.groupBoxLinesFound.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMinMillisecondsBetweenLines)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMinMillisecondsBetweenLines)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxLinesFound.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)));
@ -51,9 +51,9 @@
this.groupBoxLinesFound.TabIndex = 14; this.groupBoxLinesFound.TabIndex = 14;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Preview"; this.groupBoxLinesFound.Text = "Preview";
// //
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowDrop = true; this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
@ -69,9 +69,9 @@
this.SubtitleListview1.TabIndex = 5; this.SubtitleListview1.TabIndex = 5;
this.SubtitleListview1.UseCompatibleStateImageBehavior = false; this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
// //
// numericUpDownMinMillisecondsBetweenLines // numericUpDownMinMillisecondsBetweenLines
// //
this.numericUpDownMinMillisecondsBetweenLines.Location = new System.Drawing.Point(18, 34); this.numericUpDownMinMillisecondsBetweenLines.Location = new System.Drawing.Point(18, 34);
this.numericUpDownMinMillisecondsBetweenLines.Maximum = new decimal(new int[] { this.numericUpDownMinMillisecondsBetweenLines.Maximum = new decimal(new int[] {
1000, 1000,
@ -93,18 +93,18 @@
0}); 0});
this.numericUpDownMinMillisecondsBetweenLines.ValueChanged += new System.EventHandler(this.numericUpDownMinMillisecondsBetweenLines_ValueChanged); this.numericUpDownMinMillisecondsBetweenLines.ValueChanged += new System.EventHandler(this.numericUpDownMinMillisecondsBetweenLines_ValueChanged);
this.numericUpDownMinMillisecondsBetweenLines.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDownMinMillisecondsBetweenLines_KeyUp); this.numericUpDownMinMillisecondsBetweenLines.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDownMinMillisecondsBetweenLines_KeyUp);
// //
// labelMaxMillisecondsBetweenLines // labelMaxMillisecondsBetweenLines
// //
this.labelMaxMillisecondsBetweenLines.AutoSize = true; this.labelMaxMillisecondsBetweenLines.AutoSize = true;
this.labelMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(15, 18); this.labelMaxMillisecondsBetweenLines.Location = new System.Drawing.Point(15, 18);
this.labelMaxMillisecondsBetweenLines.Name = "labelMaxMillisecondsBetweenLines"; this.labelMaxMillisecondsBetweenLines.Name = "labelMaxMillisecondsBetweenLines";
this.labelMaxMillisecondsBetweenLines.Size = new System.Drawing.Size(172, 13); this.labelMaxMillisecondsBetweenLines.Size = new System.Drawing.Size(172, 13);
this.labelMaxMillisecondsBetweenLines.TabIndex = 35; this.labelMaxMillisecondsBetweenLines.TabIndex = 35;
this.labelMaxMillisecondsBetweenLines.Text = "Mininum milliseconds between lines"; this.labelMaxMillisecondsBetweenLines.Text = "Mininum milliseconds between lines";
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.Location = new System.Drawing.Point(595, 447); this.buttonOK.Location = new System.Drawing.Point(595, 447);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
@ -113,9 +113,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(676, 447); this.buttonCancel.Location = new System.Drawing.Point(676, 447);
@ -125,9 +125,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// checkBoxShowOnlyChangedLines // checkBoxShowOnlyChangedLines
// //
this.checkBoxShowOnlyChangedLines.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxShowOnlyChangedLines.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkBoxShowOnlyChangedLines.AutoSize = true; this.checkBoxShowOnlyChangedLines.AutoSize = true;
this.checkBoxShowOnlyChangedLines.Location = new System.Drawing.Point(18, 448); this.checkBoxShowOnlyChangedLines.Location = new System.Drawing.Point(18, 448);
@ -137,9 +137,9 @@
this.checkBoxShowOnlyChangedLines.Text = "Show only modified lines"; this.checkBoxShowOnlyChangedLines.Text = "Show only modified lines";
this.checkBoxShowOnlyChangedLines.UseVisualStyleBackColor = true; this.checkBoxShowOnlyChangedLines.UseVisualStyleBackColor = true;
this.checkBoxShowOnlyChangedLines.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyChangedLines_CheckedChanged); this.checkBoxShowOnlyChangedLines.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyChangedLines_CheckedChanged);
// //
// SetMinimumDisplayTimeBetweenParagraphs // SetMinimumDisplayTimeBetweenParagraphs
// //
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(754, 480); this.ClientSize = new System.Drawing.Size(754, 480);

View File

@ -49,9 +49,9 @@
this.groupBoxSyncPointTimeCode.SuspendLayout(); this.groupBoxSyncPointTimeCode.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxSyncPointTimeCode // groupBoxSyncPointTimeCode
// //
this.groupBoxSyncPointTimeCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxSyncPointTimeCode.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)));
this.groupBoxSyncPointTimeCode.Controls.Add(this.timeUpDownLine); this.groupBoxSyncPointTimeCode.Controls.Add(this.timeUpDownLine);
@ -61,9 +61,9 @@
this.groupBoxSyncPointTimeCode.TabIndex = 1; this.groupBoxSyncPointTimeCode.TabIndex = 1;
this.groupBoxSyncPointTimeCode.TabStop = false; this.groupBoxSyncPointTimeCode.TabStop = false;
this.groupBoxSyncPointTimeCode.Text = "Sync point time code"; this.groupBoxSyncPointTimeCode.Text = "Sync point time code";
// //
// timeUpDownLine // timeUpDownLine
// //
this.timeUpDownLine.AutoSize = true; this.timeUpDownLine.AutoSize = true;
this.timeUpDownLine.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.timeUpDownLine.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.timeUpDownLine.Location = new System.Drawing.Point(18, 19); this.timeUpDownLine.Location = new System.Drawing.Point(18, 19);
@ -71,9 +71,9 @@
this.timeUpDownLine.Name = "timeUpDownLine"; this.timeUpDownLine.Name = "timeUpDownLine";
this.timeUpDownLine.Size = new System.Drawing.Size(92, 25); this.timeUpDownLine.Size = new System.Drawing.Size(92, 25);
this.timeUpDownLine.TabIndex = 1; this.timeUpDownLine.TabIndex = 1;
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox2.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)));
@ -83,9 +83,9 @@
this.groupBox2.Size = new System.Drawing.Size(554, 182); this.groupBox2.Size = new System.Drawing.Size(554, 182);
this.groupBox2.TabIndex = 10; this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
@ -101,9 +101,9 @@
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.subtitleListView1_MouseDoubleClick); this.subtitleListView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.subtitleListView1_MouseDoubleClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(662, 542); this.buttonCancel.Location = new System.Drawing.Point(662, 542);
@ -113,9 +113,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// buttonSetSyncPoint // buttonSetSyncPoint
// //
this.buttonSetSyncPoint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonSetSyncPoint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSetSyncPoint.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonSetSyncPoint.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonSetSyncPoint.Location = new System.Drawing.Point(533, 542); this.buttonSetSyncPoint.Location = new System.Drawing.Point(533, 542);
@ -125,13 +125,13 @@
this.buttonSetSyncPoint.Text = "&Set sync point"; this.buttonSetSyncPoint.Text = "&Set sync point";
this.buttonSetSyncPoint.UseVisualStyleBackColor = true; this.buttonSetSyncPoint.UseVisualStyleBackColor = true;
this.buttonSetSyncPoint.Click += new System.EventHandler(this.buttonOK_Click); this.buttonSetSyncPoint.Click += new System.EventHandler(this.buttonOK_Click);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// buttonOpenMovie // buttonOpenMovie
// //
this.buttonOpenMovie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOpenMovie.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOpenMovie.Location = new System.Drawing.Point(631, 200); this.buttonOpenMovie.Location = new System.Drawing.Point(631, 200);
this.buttonOpenMovie.Name = "buttonOpenMovie"; this.buttonOpenMovie.Name = "buttonOpenMovie";
@ -140,14 +140,14 @@
this.buttonOpenMovie.Text = "Open movie..."; this.buttonOpenMovie.Text = "Open movie...";
this.buttonOpenMovie.UseVisualStyleBackColor = true; this.buttonOpenMovie.UseVisualStyleBackColor = true;
this.buttonOpenMovie.Click += new System.EventHandler(this.buttonOpenMovie_Click); this.buttonOpenMovie.Click += new System.EventHandler(this.buttonOpenMovie_Click);
// //
// timer1 // timer1
// //
this.timer1.Interval = 50; this.timer1.Interval = 50;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
// //
// labelVideoFileName // labelVideoFileName
// //
this.labelVideoFileName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelVideoFileName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelVideoFileName.AutoSize = true; this.labelVideoFileName.AutoSize = true;
this.labelVideoFileName.Location = new System.Drawing.Point(12, 209); this.labelVideoFileName.Location = new System.Drawing.Point(12, 209);
@ -155,9 +155,9 @@
this.labelVideoFileName.Size = new System.Drawing.Size(98, 13); this.labelVideoFileName.Size = new System.Drawing.Size(98, 13);
this.labelVideoFileName.TabIndex = 21; this.labelVideoFileName.TabIndex = 21;
this.labelVideoFileName.Text = "labelVideoFileName"; this.labelVideoFileName.Text = "labelVideoFileName";
// //
// buttonHalfASecondBack // buttonHalfASecondBack
// //
this.buttonHalfASecondBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonHalfASecondBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonHalfASecondBack.Location = new System.Drawing.Point(12, 526); this.buttonHalfASecondBack.Location = new System.Drawing.Point(12, 526);
this.buttonHalfASecondBack.Name = "buttonHalfASecondBack"; this.buttonHalfASecondBack.Name = "buttonHalfASecondBack";
@ -166,9 +166,9 @@
this.buttonHalfASecondBack.Text = "&½ second <"; this.buttonHalfASecondBack.Text = "&½ second <";
this.buttonHalfASecondBack.UseVisualStyleBackColor = true; this.buttonHalfASecondBack.UseVisualStyleBackColor = true;
this.buttonHalfASecondBack.Click += new System.EventHandler(this.buttonStartHalfASecondBack_Click); this.buttonHalfASecondBack.Click += new System.EventHandler(this.buttonStartHalfASecondBack_Click);
// //
// buttonThreeSecondsBack // buttonThreeSecondsBack
// //
this.buttonThreeSecondsBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonThreeSecondsBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonThreeSecondsBack.Location = new System.Drawing.Point(95, 526); this.buttonThreeSecondsBack.Location = new System.Drawing.Point(95, 526);
this.buttonThreeSecondsBack.Name = "buttonThreeSecondsBack"; this.buttonThreeSecondsBack.Name = "buttonThreeSecondsBack";
@ -177,9 +177,9 @@
this.buttonThreeSecondsBack.Text = "&3 seconds <"; this.buttonThreeSecondsBack.Text = "&3 seconds <";
this.buttonThreeSecondsBack.UseVisualStyleBackColor = true; this.buttonThreeSecondsBack.UseVisualStyleBackColor = true;
this.buttonThreeSecondsBack.Click += new System.EventHandler(this.buttonStartThreeSecondsBack_Click); this.buttonThreeSecondsBack.Click += new System.EventHandler(this.buttonStartThreeSecondsBack_Click);
// //
// buttonThreeSecondsAhead // buttonThreeSecondsAhead
// //
this.buttonThreeSecondsAhead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonThreeSecondsAhead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonThreeSecondsAhead.Location = new System.Drawing.Point(303, 526); this.buttonThreeSecondsAhead.Location = new System.Drawing.Point(303, 526);
this.buttonThreeSecondsAhead.Name = "buttonThreeSecondsAhead"; this.buttonThreeSecondsAhead.Name = "buttonThreeSecondsAhead";
@ -188,9 +188,9 @@
this.buttonThreeSecondsAhead.Text = "3 seconds >"; this.buttonThreeSecondsAhead.Text = "3 seconds >";
this.buttonThreeSecondsAhead.UseVisualStyleBackColor = true; this.buttonThreeSecondsAhead.UseVisualStyleBackColor = true;
this.buttonThreeSecondsAhead.Click += new System.EventHandler(this.buttonStartThreeSecondsAhead_Click); this.buttonThreeSecondsAhead.Click += new System.EventHandler(this.buttonStartThreeSecondsAhead_Click);
// //
// buttonHalfASecondAhead // buttonHalfASecondAhead
// //
this.buttonHalfASecondAhead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonHalfASecondAhead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonHalfASecondAhead.Location = new System.Drawing.Point(386, 526); this.buttonHalfASecondAhead.Location = new System.Drawing.Point(386, 526);
this.buttonHalfASecondAhead.Name = "buttonHalfASecondAhead"; this.buttonHalfASecondAhead.Name = "buttonHalfASecondAhead";
@ -199,9 +199,9 @@
this.buttonHalfASecondAhead.Text = "½ second >"; this.buttonHalfASecondAhead.Text = "½ second >";
this.buttonHalfASecondAhead.UseVisualStyleBackColor = true; this.buttonHalfASecondAhead.UseVisualStyleBackColor = true;
this.buttonHalfASecondAhead.Click += new System.EventHandler(this.buttonStartHalfASecondAhead_Click); this.buttonHalfASecondAhead.Click += new System.EventHandler(this.buttonStartHalfASecondAhead_Click);
// //
// buttonVerify // buttonVerify
// //
this.buttonVerify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonVerify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonVerify.Location = new System.Drawing.Point(178, 526); this.buttonVerify.Location = new System.Drawing.Point(178, 526);
this.buttonVerify.Name = "buttonVerify"; this.buttonVerify.Name = "buttonVerify";
@ -210,9 +210,9 @@
this.buttonVerify.Text = "Play 2 secs and back"; this.buttonVerify.Text = "Play 2 secs and back";
this.buttonVerify.UseVisualStyleBackColor = true; this.buttonVerify.UseVisualStyleBackColor = true;
this.buttonVerify.Click += new System.EventHandler(this.buttonStartVerify_Click); this.buttonVerify.Click += new System.EventHandler(this.buttonStartVerify_Click);
// //
// labelSubtitle // labelSubtitle
// //
this.labelSubtitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.labelSubtitle.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.labelSubtitle.BackColor = System.Drawing.Color.Black; this.labelSubtitle.BackColor = System.Drawing.Color.Black;
@ -224,9 +224,9 @@
this.labelSubtitle.TabIndex = 27; this.labelSubtitle.TabIndex = 27;
this.labelSubtitle.Text = "labelSubtitle"; this.labelSubtitle.Text = "labelSubtitle";
this.labelSubtitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelSubtitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// videoPlayerContainer1 // videoPlayerContainer1
// //
this.videoPlayerContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.videoPlayerContainer1.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.videoPlayerContainer1.BackColor = System.Drawing.Color.Black; this.videoPlayerContainer1.BackColor = System.Drawing.Color.Black;
@ -239,9 +239,9 @@
this.videoPlayerContainer1.TabIndex = 13; this.videoPlayerContainer1.TabIndex = 13;
this.videoPlayerContainer1.VideoPlayer = null; this.videoPlayerContainer1.VideoPlayer = null;
this.videoPlayerContainer1.Volume = 0D; this.videoPlayerContainer1.Volume = 0D;
// //
// SetSyncPoint // SetSyncPoint
// //
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(749, 568); this.ClientSize = new System.Drawing.Size(749, 568);

View File

@ -140,7 +140,7 @@ namespace Nikse.SubtitleEdit.Forms
timer1.Start(); timer1.Start();
videoPlayerContainer1.Pause(); videoPlayerContainer1.Pause();
if (_guess != null && _guess.TotalMilliseconds > 0 && _guess.TotalMilliseconds / 1000.0 < videoPlayerContainer1.VideoPlayer.Duration) if (_guess != null && _guess.TotalMilliseconds > 0 && _guess.TotalMilliseconds / 1000.0 < videoPlayerContainer1.VideoPlayer.Duration)
{ {
videoPlayerContainer1.VideoPlayer.CurrentPosition = _guess.TotalMilliseconds / 1000.0; videoPlayerContainer1.VideoPlayer.CurrentPosition = _guess.TotalMilliseconds / 1000.0;
@ -314,7 +314,7 @@ namespace Nikse.SubtitleEdit.Forms
videoPlayerContainer1.Pause(); videoPlayerContainer1.Pause();
videoPlayerContainer1.CurrentPosition = _subtitle.Paragraphs[index].StartTime.TotalMilliseconds / 1000.0; videoPlayerContainer1.CurrentPosition = _subtitle.Paragraphs[index].StartTime.TotalMilliseconds / 1000.0;
} }
} }
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@ namespace Nikse.SubtitleEdit.Forms
List<string> _wordListNamesEtc = new List<string>(); List<string> _wordListNamesEtc = new List<string>();
List<string> _userWordList = new List<string>(); List<string> _userWordList = new List<string>();
Dictionary<string, string> _ocrFixWords = new Dictionary<string, string>(); Dictionary<string, string> _ocrFixWords = new Dictionary<string, string>();
Dictionary<string, string> _ocrFixPartialLines = new Dictionary<string, string>(); Dictionary<string, string> _ocrFixPartialLines = new Dictionary<string, string>();
class ComboBoxLanguage class ComboBoxLanguage
{ {
@ -35,7 +35,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
public Settings() public Settings()
{ {
InitializeComponent(); InitializeComponent();
labelStatus.Text = string.Empty; labelStatus.Text = string.Empty;
@ -112,7 +112,7 @@ namespace Nikse.SubtitleEdit.Forms
textBoxCustomSearchUrl.Text = Configuration.Settings.VideoControls.CustomSearchUrl; textBoxCustomSearchUrl.Text = Configuration.Settings.VideoControls.CustomSearchUrl;
foreach (var x in System.Drawing.FontFamily.Families) foreach (var x in System.Drawing.FontFamily.Families)
{ {
comboBoxSubtitleFont.Items.Add(x.Name); comboBoxSubtitleFont.Items.Add(x.Name);
if (string.Compare(x.Name, gs.SubtitleFontName, true) == 0) if (string.Compare(x.Name, gs.SubtitleFontName, true) == 0)
comboBoxSubtitleFont.SelectedIndex = comboBoxSubtitleFont.Items.Count - 1; comboBoxSubtitleFont.SelectedIndex = comboBoxSubtitleFont.Items.Count - 1;
@ -184,10 +184,10 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxAutoWrapWhileTyping.Text = language.AutoWrapWhileTyping; checkBoxAutoWrapWhileTyping.Text = language.AutoWrapWhileTyping;
labelSubtitleFont.Text = language.SubtitleFont; labelSubtitleFont.Text = language.SubtitleFont;
labelSubtitleFontSize.Text = language.SubtitleFontSize; labelSubtitleFontSize.Text = language.SubtitleFontSize;
checkBoxSubtitleFontBold.Text = language.SubtitleBold; checkBoxSubtitleFontBold.Text = language.SubtitleBold;
labelSubtitleFontColor.Text = language.SubtitleFontColor; labelSubtitleFontColor.Text = language.SubtitleFontColor;
labelSubtitleFontBackgroundColor.Text = language.SubtitleBackgroundColor; labelSubtitleFontBackgroundColor.Text = language.SubtitleBackgroundColor;
labelSpellChecker.Text = language.SpellChecker; labelSpellChecker.Text = language.SpellChecker;
checkBoxRememberRecentFiles.Text = language.RememberRecentFiles; checkBoxRememberRecentFiles.Text = language.RememberRecentFiles;
checkBoxReopenLastOpened.Text = language.StartWithLastFileLoaded; checkBoxReopenLastOpened.Text = language.StartWithLastFileLoaded;
checkBoxRememberSelectedLine.Text = language.RememberSelectedLine; checkBoxRememberSelectedLine.Text = language.RememberSelectedLine;
@ -344,7 +344,7 @@ namespace Nikse.SubtitleEdit.Forms
comboBoxMergeShortLineLength.Items.Clear(); comboBoxMergeShortLineLength.Items.Clear();
for (int i = 10; i < 100; i++) for (int i = 10; i < 100; i++)
comboBoxMergeShortLineLength.Items.Add(i.ToString()); comboBoxMergeShortLineLength.Items.Add(i.ToString());
if (toolsSettings.MergeLinesShorterThan >= 10 && toolsSettings.MergeLinesShorterThan - 10 < comboBoxMergeShortLineLength.Items.Count) if (toolsSettings.MergeLinesShorterThan >= 10 && toolsSettings.MergeLinesShorterThan - 10 < comboBoxMergeShortLineLength.Items.Count)
comboBoxMergeShortLineLength.SelectedIndex = toolsSettings.MergeLinesShorterThan - 10; comboBoxMergeShortLineLength.SelectedIndex = toolsSettings.MergeLinesShorterThan - 10;
else else
@ -369,7 +369,7 @@ namespace Nikse.SubtitleEdit.Forms
comboBoxToolsMusicSymbol.Items.Clear(); comboBoxToolsMusicSymbol.Items.Clear();
comboBoxToolsMusicSymbol.Items.Add("♪"); comboBoxToolsMusicSymbol.Items.Add("♪");
comboBoxToolsMusicSymbol.Items.Add("♫"); comboBoxToolsMusicSymbol.Items.Add("♫");
comboBoxToolsMusicSymbol.Items.Add("♪♪"); comboBoxToolsMusicSymbol.Items.Add("♪♪");
comboBoxToolsMusicSymbol.Items.Add("*"); comboBoxToolsMusicSymbol.Items.Add("*");
comboBoxToolsMusicSymbol.Items.Add("#"); comboBoxToolsMusicSymbol.Items.Add("#");
@ -393,17 +393,17 @@ namespace Nikse.SubtitleEdit.Forms
{ {
comboBoxToolsMusicSymbol.SelectedIndex = 4; comboBoxToolsMusicSymbol.SelectedIndex = 4;
} }
else else
{ {
comboBoxToolsMusicSymbol.Items.Add(toolsSettings.MusicSymbol); comboBoxToolsMusicSymbol.Items.Add(toolsSettings.MusicSymbol);
comboBoxToolsMusicSymbol.SelectedIndex = 5; comboBoxToolsMusicSymbol.SelectedIndex = 5;
} }
textBoxMusicSymbolsToReplace.Text = toolsSettings.MusicSymbolToReplace; textBoxMusicSymbolsToReplace.Text = toolsSettings.MusicSymbolToReplace;
checkBoxFixCommonOcrErrorsUsingHardcodedRules.Checked = toolsSettings.OcrFixUseHardcodedRules; checkBoxFixCommonOcrErrorsUsingHardcodedRules.Checked = toolsSettings.OcrFixUseHardcodedRules;
checkBoxSpellCheckAutoChangeNames.Checked = toolsSettings.SpellCheckAutoChangeNames; checkBoxSpellCheckAutoChangeNames.Checked = toolsSettings.SpellCheckAutoChangeNames;
buttonOK.Text = Configuration.Settings.Language.General.OK; buttonOK.Text = Configuration.Settings.Language.General.OK;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel; buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
@ -460,7 +460,7 @@ namespace Nikse.SubtitleEdit.Forms
TreeNode SyncNode = new TreeNode(Configuration.Settings.Language.Main.Menu.Synchronization.Title); TreeNode SyncNode = new TreeNode(Configuration.Settings.Language.Main.Menu.Synchronization.Title);
SyncNode.Nodes.Add(Configuration.Settings.Language.Main.Menu.Synchronization.AdjustAllTimes + GetShortcutText(Configuration.Settings.Shortcuts.MainSynchronizationAdjustTimes)); SyncNode.Nodes.Add(Configuration.Settings.Language.Main.Menu.Synchronization.AdjustAllTimes + GetShortcutText(Configuration.Settings.Shortcuts.MainSynchronizationAdjustTimes));
treeViewShortcuts.Nodes.Add(SyncNode); treeViewShortcuts.Nodes.Add(SyncNode);
//<MainListViewItalic>Control+G</MainListViewItalic> //<MainListViewItalic>Control+G</MainListViewItalic>
TreeNode ListViewNode = new TreeNode(Configuration.Settings.Language.Main.Controls.ListView); TreeNode ListViewNode = new TreeNode(Configuration.Settings.Language.Main.Controls.ListView);
ListViewNode.Nodes.Add(Configuration.Settings.Language.General.Italic + GetShortcutText(Configuration.Settings.Shortcuts.MainListViewItalic)); ListViewNode.Nodes.Add(Configuration.Settings.Language.General.Italic + GetShortcutText(Configuration.Settings.Shortcuts.MainListViewItalic));
@ -503,13 +503,13 @@ namespace Nikse.SubtitleEdit.Forms
comboBoxShortcutKey.Items[0] = Configuration.Settings.Language.General.None; comboBoxShortcutKey.Items[0] = Configuration.Settings.Language.General.None;
FixLargeFonts(); FixLargeFonts();
} }
private string GetShortcutText(string shortcut) private string GetShortcutText(string shortcut)
{ {
if (string.IsNullOrEmpty(shortcut)) if (string.IsNullOrEmpty(shortcut))
shortcut = Configuration.Settings.Language.General.None; shortcut = Configuration.Settings.Language.General.None;
return string.Format(" [{0}]", shortcut); return string.Format(" [{0}]", shortcut);
} }
private void FixLargeFonts() private void FixLargeFonts()
@ -568,7 +568,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
if (count > 0) if (count > 0)
{ {
buttonWaveFormsFolderEmpty.Enabled = true; buttonWaveFormsFolderEmpty.Enabled = true;
labelWaveFormsFolderInfo.Text = string.Format(language.WaveformAndSpectrogramsFolderInfo, count, bytes / 1024.0 / 1024.0); labelWaveFormsFolderInfo.Text = string.Format(language.WaveformAndSpectrogramsFolderInfo, count, bytes / 1024.0 / 1024.0);
@ -576,11 +576,11 @@ namespace Nikse.SubtitleEdit.Forms
else else
{ {
buttonWaveFormsFolderEmpty.Enabled = false; buttonWaveFormsFolderEmpty.Enabled = false;
labelWaveFormsFolderInfo.Text = string.Format(language.WaveformAndSpectrogramsFolderInfo, 0, 0); labelWaveFormsFolderInfo.Text = string.Format(language.WaveformAndSpectrogramsFolderInfo, 0, 0);
} }
} }
public void Initialize(Icon icon, Image newFile, Image openFile, Image saveFile, Image SaveFileAs, Image find, Image replace, public void Initialize(Icon icon, Image newFile, Image openFile, Image saveFile, Image SaveFileAs, Image find, Image replace,
Image visualSync, Image spellCheck, Image settings, Image help) Image visualSync, Image spellCheck, Image settings, Image help)
{ {
this.Icon = (Icon)icon.Clone(); this.Icon = (Icon)icon.Clone();
@ -756,7 +756,7 @@ namespace Nikse.SubtitleEdit.Forms
gs.SubtitleLineMaximumLength = 68; gs.SubtitleLineMaximumLength = 68;
} }
gs.AutoWrapLineWhileTyping = checkBoxAutoWrapWhileTyping.Checked; gs.AutoWrapLineWhileTyping = checkBoxAutoWrapWhileTyping.Checked;
if (comboBoxSubtitleFont.SelectedItem != null) if (comboBoxSubtitleFont.SelectedItem != null)
gs.SubtitleFontName = comboBoxSubtitleFont.SelectedItem.ToString(); gs.SubtitleFontName = comboBoxSubtitleFont.SelectedItem.ToString();
@ -1016,7 +1016,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
var cb = comboBoxWordListLanguage.Items[comboBoxWordListLanguage.SelectedIndex] as ComboBoxLanguage; var cb = comboBoxWordListLanguage.Items[comboBoxWordListLanguage.SelectedIndex] as ComboBoxLanguage;
if (cb == null) if (cb == null)
return; return;
_ocrFixWords = new Dictionary<string, string>(); _ocrFixWords = new Dictionary<string, string>();
_ocrFixPartialLines = new Dictionary<string, string>(); _ocrFixPartialLines = new Dictionary<string, string>();
@ -1110,7 +1110,7 @@ namespace Nikse.SubtitleEdit.Forms
listBoxNamesEtc.EndUpdate(); listBoxNamesEtc.EndUpdate();
} }
catch catch
{ {
} }
} }
@ -1300,7 +1300,7 @@ namespace Nikse.SubtitleEdit.Forms
node.InnerText = word; node.InnerText = word;
doc.DocumentElement.AppendChild(node); doc.DocumentElement.AppendChild(node);
} }
doc.Save(userWordFileName); doc.Save(userWordFileName);
LoadUserWords(language, false); // reload LoadUserWords(language, false); // reload
buttonRemoveUserWord.Enabled = false; buttonRemoveUserWord.Enabled = false;
@ -1357,7 +1357,7 @@ namespace Nikse.SubtitleEdit.Forms
var sortedDictionary = new SortedDictionary<string, string>(); var sortedDictionary = new SortedDictionary<string, string>();
foreach (var pair in dictionary) foreach (var pair in dictionary)
sortedDictionary.Add(pair.Key, pair.Value); sortedDictionary.Add(pair.Key, pair.Value);
string replaceListXmlFileName = Utilities.DictionaryFolder + cb.CultureInfo.ThreeLetterISOLanguageName + "_OCRFixReplaceList.xml"; string replaceListXmlFileName = Utilities.DictionaryFolder + cb.CultureInfo.ThreeLetterISOLanguageName + "_OCRFixReplaceList.xml";
var doc = new XmlDocument(); var doc = new XmlDocument();
if (File.Exists(replaceListXmlFileName)) if (File.Exists(replaceListXmlFileName))
@ -1474,13 +1474,13 @@ namespace Nikse.SubtitleEdit.Forms
private void ListBoxKeyDownSearch(object sender, KeyEventArgs e) private void ListBoxKeyDownSearch(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Escape || if (e.KeyCode == Keys.Escape ||
e.KeyCode == Keys.Tab || e.KeyCode == Keys.Tab ||
e.KeyCode == Keys.Return || e.KeyCode == Keys.Return ||
e.KeyCode == Keys.Enter || e.KeyCode == Keys.Enter ||
e.KeyCode == Keys.Down || e.KeyCode == Keys.Down ||
e.KeyCode == Keys.Up || e.KeyCode == Keys.Up ||
e.KeyCode == Keys.PageDown || e.KeyCode == Keys.PageDown ||
e.KeyCode == Keys.PageUp || e.KeyCode == Keys.PageUp ||
e.KeyCode == Keys.None || e.KeyCode == Keys.None ||
e.KeyCode == Keys.F1 || e.KeyCode == Keys.F1 ||
@ -1516,7 +1516,7 @@ namespace Nikse.SubtitleEdit.Forms
if (s.ToLower().StartsWith(_listBoxSearchString.ToLower())) if (s.ToLower().StartsWith(_listBoxSearchString.ToLower()))
{ {
listBox.SelectedIndex = i; listBox.SelectedIndex = i;
break; break;
} }
i++; i++;
} }
@ -1536,7 +1536,7 @@ namespace Nikse.SubtitleEdit.Forms
else if (comboBoxCustomSearch.SelectedIndex == 1) else if (comboBoxCustomSearch.SelectedIndex == 1)
textBoxCustomSearchUrl.Text = "http://dictionary.reference.com/browse/{0}"; textBoxCustomSearchUrl.Text = "http://dictionary.reference.com/browse/{0}";
else if (comboBoxCustomSearch.SelectedIndex == 2) else if (comboBoxCustomSearch.SelectedIndex == 2)
textBoxCustomSearchUrl.Text = "http://www.visuwords.com/?word={0}"; textBoxCustomSearchUrl.Text = "http://www.visuwords.com/?word={0}";
} }
} }
@ -1594,14 +1594,14 @@ namespace Nikse.SubtitleEdit.Forms
foreach (FileInfo fileName in di.GetFiles("*.wav")) foreach (FileInfo fileName in di.GetFiles("*.wav"))
{ {
try try
{ {
File.Delete(fileName.FullName); File.Delete(fileName.FullName);
} }
catch (Exception exception) catch (Exception exception)
{ {
MessageBox.Show(exception.Message); MessageBox.Show(exception.Message);
} }
} }
} }
@ -1721,10 +1721,10 @@ namespace Nikse.SubtitleEdit.Forms
i++; i++;
} }
} }
} }
} }
} }

View File

@ -40,18 +40,18 @@ namespace Nikse.SubtitleEdit.Forms
this.radioButtonSelectedLinesOnly = new System.Windows.Forms.RadioButton(); this.radioButtonSelectedLinesOnly = new System.Windows.Forms.RadioButton();
this.timeUpDownAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown(); this.timeUpDownAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelHoursMinSecsMilliSecs // labelHoursMinSecsMilliSecs
// //
this.labelHoursMinSecsMilliSecs.AutoSize = true; this.labelHoursMinSecsMilliSecs.AutoSize = true;
this.labelHoursMinSecsMilliSecs.Location = new System.Drawing.Point(11, 6); this.labelHoursMinSecsMilliSecs.Location = new System.Drawing.Point(11, 6);
this.labelHoursMinSecsMilliSecs.Name = "labelHoursMinSecsMilliSecs"; this.labelHoursMinSecsMilliSecs.Name = "labelHoursMinSecsMilliSecs";
this.labelHoursMinSecsMilliSecs.Size = new System.Drawing.Size(108, 13); this.labelHoursMinSecsMilliSecs.Size = new System.Drawing.Size(108, 13);
this.labelHoursMinSecsMilliSecs.TabIndex = 18; this.labelHoursMinSecsMilliSecs.TabIndex = 18;
this.labelHoursMinSecsMilliSecs.Text = "Hours:min:sec.msecs"; this.labelHoursMinSecsMilliSecs.Text = "Hours:min:sec.msecs";
// //
// buttonShowLater // buttonShowLater
// //
this.buttonShowLater.Location = new System.Drawing.Point(145, 53); this.buttonShowLater.Location = new System.Drawing.Point(145, 53);
this.buttonShowLater.Name = "buttonShowLater"; this.buttonShowLater.Name = "buttonShowLater";
this.buttonShowLater.Size = new System.Drawing.Size(119, 21); this.buttonShowLater.Size = new System.Drawing.Size(119, 21);
@ -59,9 +59,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonShowLater.Text = "Show later"; this.buttonShowLater.Text = "Show later";
this.buttonShowLater.UseVisualStyleBackColor = true; this.buttonShowLater.UseVisualStyleBackColor = true;
this.buttonShowLater.Click += new System.EventHandler(this.ButtonShowLaterClick); this.buttonShowLater.Click += new System.EventHandler(this.ButtonShowLaterClick);
// //
// buttonShowEarlier // buttonShowEarlier
// //
this.buttonShowEarlier.Location = new System.Drawing.Point(145, 26); this.buttonShowEarlier.Location = new System.Drawing.Point(145, 26);
this.buttonShowEarlier.Name = "buttonShowEarlier"; this.buttonShowEarlier.Name = "buttonShowEarlier";
this.buttonShowEarlier.Size = new System.Drawing.Size(120, 21); this.buttonShowEarlier.Size = new System.Drawing.Size(120, 21);
@ -69,22 +69,22 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonShowEarlier.Text = "Show earlier"; this.buttonShowEarlier.Text = "Show earlier";
this.buttonShowEarlier.UseVisualStyleBackColor = true; this.buttonShowEarlier.UseVisualStyleBackColor = true;
this.buttonShowEarlier.Click += new System.EventHandler(this.ButtonShowEarlierClick); this.buttonShowEarlier.Click += new System.EventHandler(this.ButtonShowEarlierClick);
// //
// labelTotalAdjustment // labelTotalAdjustment
// //
this.labelTotalAdjustment.AutoSize = true; this.labelTotalAdjustment.AutoSize = true;
this.labelTotalAdjustment.Location = new System.Drawing.Point(12, 128); this.labelTotalAdjustment.Location = new System.Drawing.Point(12, 128);
this.labelTotalAdjustment.Name = "labelTotalAdjustment"; this.labelTotalAdjustment.Name = "labelTotalAdjustment";
this.labelTotalAdjustment.Size = new System.Drawing.Size(108, 13); this.labelTotalAdjustment.Size = new System.Drawing.Size(108, 13);
this.labelTotalAdjustment.TabIndex = 38; this.labelTotalAdjustment.TabIndex = 38;
this.labelTotalAdjustment.Text = "labelTotalAdjustment"; this.labelTotalAdjustment.Text = "labelTotalAdjustment";
// //
// timer1 // timer1
// //
this.timer1.Interval = 250; this.timer1.Interval = 250;
// //
// radioButtonAllLines // radioButtonAllLines
// //
this.radioButtonAllLines.AutoSize = true; this.radioButtonAllLines.AutoSize = true;
this.radioButtonAllLines.Location = new System.Drawing.Point(14, 70); this.radioButtonAllLines.Location = new System.Drawing.Point(14, 70);
this.radioButtonAllLines.Name = "radioButtonAllLines"; this.radioButtonAllLines.Name = "radioButtonAllLines";
@ -94,9 +94,9 @@ namespace Nikse.SubtitleEdit.Forms
this.radioButtonAllLines.Text = "All lines"; this.radioButtonAllLines.Text = "All lines";
this.radioButtonAllLines.UseVisualStyleBackColor = true; this.radioButtonAllLines.UseVisualStyleBackColor = true;
this.radioButtonAllLines.CheckedChanged += new System.EventHandler(this.radioButtonAllLines_CheckedChanged); this.radioButtonAllLines.CheckedChanged += new System.EventHandler(this.radioButtonAllLines_CheckedChanged);
// //
// radioButtonSelectedLinesOnly // radioButtonSelectedLinesOnly
// //
this.radioButtonSelectedLinesOnly.AutoSize = true; this.radioButtonSelectedLinesOnly.AutoSize = true;
this.radioButtonSelectedLinesOnly.Location = new System.Drawing.Point(14, 93); this.radioButtonSelectedLinesOnly.Location = new System.Drawing.Point(14, 93);
this.radioButtonSelectedLinesOnly.Name = "radioButtonSelectedLinesOnly"; this.radioButtonSelectedLinesOnly.Name = "radioButtonSelectedLinesOnly";
@ -106,9 +106,9 @@ namespace Nikse.SubtitleEdit.Forms
this.radioButtonSelectedLinesOnly.Text = "Selected lines only"; this.radioButtonSelectedLinesOnly.Text = "Selected lines only";
this.radioButtonSelectedLinesOnly.UseVisualStyleBackColor = true; this.radioButtonSelectedLinesOnly.UseVisualStyleBackColor = true;
this.radioButtonSelectedLinesOnly.CheckedChanged += new System.EventHandler(this.radioButtonAllLines_CheckedChanged); this.radioButtonSelectedLinesOnly.CheckedChanged += new System.EventHandler(this.radioButtonAllLines_CheckedChanged);
// //
// timeUpDownAdjust // timeUpDownAdjust
// //
this.timeUpDownAdjust.AutoSize = true; this.timeUpDownAdjust.AutoSize = true;
this.timeUpDownAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.timeUpDownAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.timeUpDownAdjust.Location = new System.Drawing.Point(12, 23); this.timeUpDownAdjust.Location = new System.Drawing.Point(12, 23);
@ -116,9 +116,9 @@ namespace Nikse.SubtitleEdit.Forms
this.timeUpDownAdjust.Name = "timeUpDownAdjust"; this.timeUpDownAdjust.Name = "timeUpDownAdjust";
this.timeUpDownAdjust.Size = new System.Drawing.Size(92, 25); this.timeUpDownAdjust.Size = new System.Drawing.Size(92, 25);
this.timeUpDownAdjust.TabIndex = 21; this.timeUpDownAdjust.TabIndex = 21;
// //
// ShowEarlierLater // ShowEarlierLater
// //
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(291, 150); this.ClientSize = new System.Drawing.Size(291, 150);

View File

@ -37,9 +37,9 @@
this.buttonCompare = new System.Windows.Forms.Button(); this.buttonCompare = new System.Windows.Forms.Button();
this.buttonCompareHistory = new System.Windows.Forms.Button(); this.buttonCompareHistory = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// listViewHistory // listViewHistory
// //
this.listViewHistory.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.listViewHistory.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1, this.columnHeader1,
this.columnHeader2}); this.columnHeader2});
@ -52,19 +52,19 @@
this.listViewHistory.UseCompatibleStateImageBehavior = false; this.listViewHistory.UseCompatibleStateImageBehavior = false;
this.listViewHistory.View = System.Windows.Forms.View.Details; this.listViewHistory.View = System.Windows.Forms.View.Details;
this.listViewHistory.SelectedIndexChanged += new System.EventHandler(this.ListViewHistorySelectedIndexChanged); this.listViewHistory.SelectedIndexChanged += new System.EventHandler(this.ListViewHistorySelectedIndexChanged);
// //
// columnHeader1 // columnHeader1
// //
this.columnHeader1.Text = "Time"; this.columnHeader1.Text = "Time";
this.columnHeader1.Width = 80; this.columnHeader1.Width = 80;
// //
// columnHeader2 // columnHeader2
// //
this.columnHeader2.Text = "Description"; this.columnHeader2.Text = "Description";
this.columnHeader2.Width = 365; this.columnHeader2.Width = 365;
// //
// buttonRollback // buttonRollback
// //
this.buttonRollback.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonRollback.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonRollback.Location = new System.Drawing.Point(490, 343); this.buttonRollback.Location = new System.Drawing.Point(490, 343);
this.buttonRollback.Name = "buttonRollback"; this.buttonRollback.Name = "buttonRollback";
@ -73,9 +73,9 @@
this.buttonRollback.Text = "&Rollback"; this.buttonRollback.Text = "&Rollback";
this.buttonRollback.UseVisualStyleBackColor = true; this.buttonRollback.UseVisualStyleBackColor = true;
this.buttonRollback.Click += new System.EventHandler(this.ButtonOkClick); this.buttonRollback.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(594, 343); this.buttonCancel.Location = new System.Drawing.Point(594, 343);
@ -84,18 +84,18 @@
this.buttonCancel.TabIndex = 8; this.buttonCancel.TabIndex = 8;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 18); this.label1.Location = new System.Drawing.Point(12, 18);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(171, 13); this.label1.Size = new System.Drawing.Size(171, 13);
this.label1.TabIndex = 10; this.label1.TabIndex = 10;
this.label1.Text = "Select time/description for rollback"; this.label1.Text = "Select time/description for rollback";
// //
// buttonCompare // buttonCompare
// //
this.buttonCompare.Enabled = false; this.buttonCompare.Enabled = false;
this.buttonCompare.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCompare.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCompare.Location = new System.Drawing.Point(490, 198); this.buttonCompare.Location = new System.Drawing.Point(490, 198);
@ -105,9 +105,9 @@
this.buttonCompare.Text = "&Compare with current"; this.buttonCompare.Text = "&Compare with current";
this.buttonCompare.UseVisualStyleBackColor = true; this.buttonCompare.UseVisualStyleBackColor = true;
this.buttonCompare.Click += new System.EventHandler(this.ButtonCompareClick); this.buttonCompare.Click += new System.EventHandler(this.ButtonCompareClick);
// //
// buttonCompareHistory // buttonCompareHistory
// //
this.buttonCompareHistory.Enabled = false; this.buttonCompareHistory.Enabled = false;
this.buttonCompareHistory.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCompareHistory.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCompareHistory.Location = new System.Drawing.Point(490, 171); this.buttonCompareHistory.Location = new System.Drawing.Point(490, 171);
@ -117,9 +117,9 @@
this.buttonCompareHistory.Text = "&Compare history items"; this.buttonCompareHistory.Text = "&Compare history items";
this.buttonCompareHistory.UseVisualStyleBackColor = true; this.buttonCompareHistory.UseVisualStyleBackColor = true;
this.buttonCompareHistory.Click += new System.EventHandler(this.ButtonCompareHistoryClick); this.buttonCompareHistory.Click += new System.EventHandler(this.ButtonCompareHistoryClick);
// //
// ShowHistory // ShowHistory
// //
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(680, 373); this.ClientSize = new System.Drawing.Size(680, 373);

View File

@ -60,8 +60,8 @@ namespace Nikse.SubtitleEdit.Forms
var item = new ListViewItem("") var item = new ListViewItem("")
{ {
Tag = hi, Tag = hi,
Text = string.Format("{0:00}:{1:00}:{2:00}", Text = string.Format("{0:00}:{1:00}:{2:00}",
hi.Timestamp.Hour, hi.Timestamp.Hour,
hi.Timestamp.Minute, hi.Timestamp.Minute,
hi.Timestamp.Second) hi.Timestamp.Second)
}; };
@ -80,7 +80,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ButtonOkClick(object sender, System.EventArgs e) private void ButtonOkClick(object sender, System.EventArgs e)
{ {
if (listViewHistory.SelectedItems.Count > 0) if (listViewHistory.SelectedItems.Count > 0)
{ {
_selectedIndex = listViewHistory.SelectedItems[0].Index; _selectedIndex = listViewHistory.SelectedItems[0].Index;
DialogResult = DialogResult.OK; DialogResult = DialogResult.OK;
} }

View File

@ -59,9 +59,9 @@
this.groupBoxSuggestions.SuspendLayout(); this.groupBoxSuggestions.SuspendLayout();
this.groupBoxEditWholeText.SuspendLayout(); this.groupBoxEditWholeText.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonAddToDictionary // buttonAddToDictionary
// //
this.buttonAddToDictionary.Location = new System.Drawing.Point(20, 131); this.buttonAddToDictionary.Location = new System.Drawing.Point(20, 131);
this.buttonAddToDictionary.Name = "buttonAddToDictionary"; this.buttonAddToDictionary.Name = "buttonAddToDictionary";
this.buttonAddToDictionary.Size = new System.Drawing.Size(250, 21); this.buttonAddToDictionary.Size = new System.Drawing.Size(250, 21);
@ -69,9 +69,9 @@
this.buttonAddToDictionary.Text = "Add to user dictionary (not case sensitive)"; this.buttonAddToDictionary.Text = "Add to user dictionary (not case sensitive)";
this.buttonAddToDictionary.UseVisualStyleBackColor = true; this.buttonAddToDictionary.UseVisualStyleBackColor = true;
this.buttonAddToDictionary.Click += new System.EventHandler(this.ButtonAddToDictionaryClick); this.buttonAddToDictionary.Click += new System.EventHandler(this.ButtonAddToDictionaryClick);
// //
// buttonSkipOnce // buttonSkipOnce
// //
this.buttonSkipOnce.Location = new System.Drawing.Point(20, 75); this.buttonSkipOnce.Location = new System.Drawing.Point(20, 75);
this.buttonSkipOnce.Name = "buttonSkipOnce"; this.buttonSkipOnce.Name = "buttonSkipOnce";
this.buttonSkipOnce.Size = new System.Drawing.Size(122, 21); this.buttonSkipOnce.Size = new System.Drawing.Size(122, 21);
@ -79,9 +79,9 @@
this.buttonSkipOnce.Text = "Skip &once"; this.buttonSkipOnce.Text = "Skip &once";
this.buttonSkipOnce.UseVisualStyleBackColor = true; this.buttonSkipOnce.UseVisualStyleBackColor = true;
this.buttonSkipOnce.Click += new System.EventHandler(this.ButtonSkipOnceClick); this.buttonSkipOnce.Click += new System.EventHandler(this.ButtonSkipOnceClick);
// //
// comboBoxDictionaries // comboBoxDictionaries
// //
this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxDictionaries.FormattingEnabled = true; this.comboBoxDictionaries.FormattingEnabled = true;
this.comboBoxDictionaries.Location = new System.Drawing.Point(317, 33); this.comboBoxDictionaries.Location = new System.Drawing.Point(317, 33);
@ -89,18 +89,18 @@
this.comboBoxDictionaries.Size = new System.Drawing.Size(271, 21); this.comboBoxDictionaries.Size = new System.Drawing.Size(271, 21);
this.comboBoxDictionaries.TabIndex = 8; this.comboBoxDictionaries.TabIndex = 8;
this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.ComboBoxDictionariesSelectedIndexChanged); this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.ComboBoxDictionariesSelectedIndexChanged);
// //
// labelLanguage // labelLanguage
// //
this.labelLanguage.AutoSize = true; this.labelLanguage.AutoSize = true;
this.labelLanguage.Location = new System.Drawing.Point(314, 14); this.labelLanguage.Location = new System.Drawing.Point(314, 14);
this.labelLanguage.Name = "labelLanguage"; this.labelLanguage.Name = "labelLanguage";
this.labelLanguage.Size = new System.Drawing.Size(54, 13); this.labelLanguage.Size = new System.Drawing.Size(54, 13);
this.labelLanguage.TabIndex = 3; this.labelLanguage.TabIndex = 3;
this.labelLanguage.Text = "Language"; this.labelLanguage.Text = "Language";
// //
// richTextBoxParagraph // richTextBoxParagraph
// //
this.richTextBoxParagraph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.richTextBoxParagraph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.richTextBoxParagraph.ContextMenuStrip = this.contextMenuStrip1; this.richTextBoxParagraph.ContextMenuStrip = this.contextMenuStrip1;
this.richTextBoxParagraph.Location = new System.Drawing.Point(11, 33); this.richTextBoxParagraph.Location = new System.Drawing.Point(11, 33);
@ -109,50 +109,50 @@
this.richTextBoxParagraph.Size = new System.Drawing.Size(292, 54); this.richTextBoxParagraph.Size = new System.Drawing.Size(292, 54);
this.richTextBoxParagraph.TabIndex = 4; this.richTextBoxParagraph.TabIndex = 4;
this.richTextBoxParagraph.Text = ""; this.richTextBoxParagraph.Text = "";
// //
// contextMenuStrip1 // contextMenuStrip1
// //
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addXToNamesnoiseListToolStripMenuItem}); this.addXToNamesnoiseListToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(211, 26); this.contextMenuStrip1.Size = new System.Drawing.Size(211, 26);
this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStrip1Opening); this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStrip1Opening);
// //
// addXToNamesnoiseListToolStripMenuItem // addXToNamesnoiseListToolStripMenuItem
// //
this.addXToNamesnoiseListToolStripMenuItem.Name = "addXToNamesnoiseListToolStripMenuItem"; this.addXToNamesnoiseListToolStripMenuItem.Name = "addXToNamesnoiseListToolStripMenuItem";
this.addXToNamesnoiseListToolStripMenuItem.Size = new System.Drawing.Size(210, 22); this.addXToNamesnoiseListToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
this.addXToNamesnoiseListToolStripMenuItem.Text = "Add x to names/noise list"; this.addXToNamesnoiseListToolStripMenuItem.Text = "Add x to names/noise list";
this.addXToNamesnoiseListToolStripMenuItem.Click += new System.EventHandler(this.AddXToNamesnoiseListToolStripMenuItemClick); this.addXToNamesnoiseListToolStripMenuItem.Click += new System.EventHandler(this.AddXToNamesnoiseListToolStripMenuItemClick);
// //
// listBoxSuggestions // listBoxSuggestions
// //
this.listBoxSuggestions.FormattingEnabled = true; this.listBoxSuggestions.FormattingEnabled = true;
this.listBoxSuggestions.Location = new System.Drawing.Point(8, 44); this.listBoxSuggestions.Location = new System.Drawing.Point(8, 44);
this.listBoxSuggestions.Name = "listBoxSuggestions"; this.listBoxSuggestions.Name = "listBoxSuggestions";
this.listBoxSuggestions.Size = new System.Drawing.Size(272, 82); this.listBoxSuggestions.Size = new System.Drawing.Size(272, 82);
this.listBoxSuggestions.TabIndex = 11; this.listBoxSuggestions.TabIndex = 11;
this.listBoxSuggestions.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.ListBoxSuggestionsMouseDoubleClick); this.listBoxSuggestions.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.ListBoxSuggestionsMouseDoubleClick);
// //
// labelFullText // labelFullText
// //
this.labelFullText.AutoSize = true; this.labelFullText.AutoSize = true;
this.labelFullText.Location = new System.Drawing.Point(8, 14); this.labelFullText.Location = new System.Drawing.Point(8, 14);
this.labelFullText.Name = "labelFullText"; this.labelFullText.Name = "labelFullText";
this.labelFullText.Size = new System.Drawing.Size(46, 13); this.labelFullText.Size = new System.Drawing.Size(46, 13);
this.labelFullText.TabIndex = 7; this.labelFullText.TabIndex = 7;
this.labelFullText.Text = "Full text"; this.labelFullText.Text = "Full text";
// //
// textBoxWord // textBoxWord
// //
this.textBoxWord.Location = new System.Drawing.Point(20, 20); this.textBoxWord.Location = new System.Drawing.Point(20, 20);
this.textBoxWord.Name = "textBoxWord"; this.textBoxWord.Name = "textBoxWord";
this.textBoxWord.Size = new System.Drawing.Size(250, 21); this.textBoxWord.Size = new System.Drawing.Size(250, 21);
this.textBoxWord.TabIndex = 1; this.textBoxWord.TabIndex = 1;
this.textBoxWord.TextChanged += new System.EventHandler(this.textBoxWord_TextChanged); this.textBoxWord.TextChanged += new System.EventHandler(this.textBoxWord_TextChanged);
// //
// buttonAbort // buttonAbort
// //
this.buttonAbort.Location = new System.Drawing.Point(510, 308); this.buttonAbort.Location = new System.Drawing.Point(510, 308);
this.buttonAbort.Name = "buttonAbort"; this.buttonAbort.Name = "buttonAbort";
this.buttonAbort.Size = new System.Drawing.Size(85, 21); this.buttonAbort.Size = new System.Drawing.Size(85, 21);
@ -160,9 +160,9 @@
this.buttonAbort.Text = "Abort"; this.buttonAbort.Text = "Abort";
this.buttonAbort.UseVisualStyleBackColor = true; this.buttonAbort.UseVisualStyleBackColor = true;
this.buttonAbort.Click += new System.EventHandler(this.ButtonAbortClick); this.buttonAbort.Click += new System.EventHandler(this.ButtonAbortClick);
// //
// buttonSkipAll // buttonSkipAll
// //
this.buttonSkipAll.Location = new System.Drawing.Point(148, 75); this.buttonSkipAll.Location = new System.Drawing.Point(148, 75);
this.buttonSkipAll.Name = "buttonSkipAll"; this.buttonSkipAll.Name = "buttonSkipAll";
this.buttonSkipAll.Size = new System.Drawing.Size(122, 21); this.buttonSkipAll.Size = new System.Drawing.Size(122, 21);
@ -170,9 +170,9 @@
this.buttonSkipAll.Text = "&Skip all"; this.buttonSkipAll.Text = "&Skip all";
this.buttonSkipAll.UseVisualStyleBackColor = true; this.buttonSkipAll.UseVisualStyleBackColor = true;
this.buttonSkipAll.Click += new System.EventHandler(this.ButtonSkipAllClick); this.buttonSkipAll.Click += new System.EventHandler(this.ButtonSkipAllClick);
// //
// buttonChange // buttonChange
// //
this.buttonChange.Location = new System.Drawing.Point(20, 47); this.buttonChange.Location = new System.Drawing.Point(20, 47);
this.buttonChange.Name = "buttonChange"; this.buttonChange.Name = "buttonChange";
this.buttonChange.Size = new System.Drawing.Size(122, 21); this.buttonChange.Size = new System.Drawing.Size(122, 21);
@ -180,9 +180,9 @@
this.buttonChange.Text = "Change"; this.buttonChange.Text = "Change";
this.buttonChange.UseVisualStyleBackColor = true; this.buttonChange.UseVisualStyleBackColor = true;
this.buttonChange.Click += new System.EventHandler(this.ButtonChangeClick); this.buttonChange.Click += new System.EventHandler(this.ButtonChangeClick);
// //
// buttonUseSuggestion // buttonUseSuggestion
// //
this.buttonUseSuggestion.Location = new System.Drawing.Point(93, 17); this.buttonUseSuggestion.Location = new System.Drawing.Point(93, 17);
this.buttonUseSuggestion.Name = "buttonUseSuggestion"; this.buttonUseSuggestion.Name = "buttonUseSuggestion";
this.buttonUseSuggestion.Size = new System.Drawing.Size(90, 21); this.buttonUseSuggestion.Size = new System.Drawing.Size(90, 21);
@ -190,9 +190,9 @@
this.buttonUseSuggestion.Text = "Use"; this.buttonUseSuggestion.Text = "Use";
this.buttonUseSuggestion.UseVisualStyleBackColor = true; this.buttonUseSuggestion.UseVisualStyleBackColor = true;
this.buttonUseSuggestion.Click += new System.EventHandler(this.ButtonUseSuggestionClick); this.buttonUseSuggestion.Click += new System.EventHandler(this.ButtonUseSuggestionClick);
// //
// buttonChangeAll // buttonChangeAll
// //
this.buttonChangeAll.Location = new System.Drawing.Point(148, 47); this.buttonChangeAll.Location = new System.Drawing.Point(148, 47);
this.buttonChangeAll.Name = "buttonChangeAll"; this.buttonChangeAll.Name = "buttonChangeAll";
this.buttonChangeAll.Size = new System.Drawing.Size(122, 21); this.buttonChangeAll.Size = new System.Drawing.Size(122, 21);
@ -200,9 +200,9 @@
this.buttonChangeAll.Text = "Change all"; this.buttonChangeAll.Text = "Change all";
this.buttonChangeAll.UseVisualStyleBackColor = true; this.buttonChangeAll.UseVisualStyleBackColor = true;
this.buttonChangeAll.Click += new System.EventHandler(this.ButtonChangeAllClick); this.buttonChangeAll.Click += new System.EventHandler(this.ButtonChangeAllClick);
// //
// buttonUseSuggestionAlways // buttonUseSuggestionAlways
// //
this.buttonUseSuggestionAlways.Location = new System.Drawing.Point(189, 17); this.buttonUseSuggestionAlways.Location = new System.Drawing.Point(189, 17);
this.buttonUseSuggestionAlways.Name = "buttonUseSuggestionAlways"; this.buttonUseSuggestionAlways.Name = "buttonUseSuggestionAlways";
this.buttonUseSuggestionAlways.Size = new System.Drawing.Size(90, 21); this.buttonUseSuggestionAlways.Size = new System.Drawing.Size(90, 21);
@ -210,9 +210,9 @@
this.buttonUseSuggestionAlways.Text = "Use always"; this.buttonUseSuggestionAlways.Text = "Use always";
this.buttonUseSuggestionAlways.UseVisualStyleBackColor = true; this.buttonUseSuggestionAlways.UseVisualStyleBackColor = true;
this.buttonUseSuggestionAlways.Click += new System.EventHandler(this.ButtonUseSuggestionAlwaysClick); this.buttonUseSuggestionAlways.Click += new System.EventHandler(this.ButtonUseSuggestionAlwaysClick);
// //
// buttonAddToNames // buttonAddToNames
// //
this.buttonAddToNames.Location = new System.Drawing.Point(20, 103); this.buttonAddToNames.Location = new System.Drawing.Point(20, 103);
this.buttonAddToNames.Name = "buttonAddToNames"; this.buttonAddToNames.Name = "buttonAddToNames";
this.buttonAddToNames.Size = new System.Drawing.Size(250, 21); this.buttonAddToNames.Size = new System.Drawing.Size(250, 21);
@ -220,9 +220,9 @@
this.buttonAddToNames.Text = "Add to names/noise list (case sensitive)"; this.buttonAddToNames.Text = "Add to names/noise list (case sensitive)";
this.buttonAddToNames.UseVisualStyleBackColor = true; this.buttonAddToNames.UseVisualStyleBackColor = true;
this.buttonAddToNames.Click += new System.EventHandler(this.ButtonAddToNamesClick); this.buttonAddToNames.Click += new System.EventHandler(this.ButtonAddToNamesClick);
// //
// groupBoxWordNotFound // groupBoxWordNotFound
// //
this.groupBoxWordNotFound.Controls.Add(this.buttonAddToNames); this.groupBoxWordNotFound.Controls.Add(this.buttonAddToNames);
this.groupBoxWordNotFound.Controls.Add(this.buttonAddToDictionary); this.groupBoxWordNotFound.Controls.Add(this.buttonAddToDictionary);
this.groupBoxWordNotFound.Controls.Add(this.buttonSkipOnce); this.groupBoxWordNotFound.Controls.Add(this.buttonSkipOnce);
@ -236,9 +236,9 @@
this.groupBoxWordNotFound.TabIndex = 13; this.groupBoxWordNotFound.TabIndex = 13;
this.groupBoxWordNotFound.TabStop = false; this.groupBoxWordNotFound.TabStop = false;
this.groupBoxWordNotFound.Text = "Word not found"; this.groupBoxWordNotFound.Text = "Word not found";
// //
// groupBoxSuggestions // groupBoxSuggestions
// //
this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestion); this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestion);
this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestionAlways); this.groupBoxSuggestions.Controls.Add(this.buttonUseSuggestionAlways);
this.groupBoxSuggestions.Controls.Add(this.checkBoxAutoChangeNames); this.groupBoxSuggestions.Controls.Add(this.checkBoxAutoChangeNames);
@ -249,9 +249,9 @@
this.groupBoxSuggestions.TabIndex = 14; this.groupBoxSuggestions.TabIndex = 14;
this.groupBoxSuggestions.TabStop = false; this.groupBoxSuggestions.TabStop = false;
this.groupBoxSuggestions.Text = "Suggestions"; this.groupBoxSuggestions.Text = "Suggestions";
// //
// checkBoxAutoChangeNames // checkBoxAutoChangeNames
// //
this.checkBoxAutoChangeNames.AutoSize = true; this.checkBoxAutoChangeNames.AutoSize = true;
this.checkBoxAutoChangeNames.Location = new System.Drawing.Point(8, 157); this.checkBoxAutoChangeNames.Location = new System.Drawing.Point(8, 157);
this.checkBoxAutoChangeNames.Name = "checkBoxAutoChangeNames"; this.checkBoxAutoChangeNames.Name = "checkBoxAutoChangeNames";
@ -260,9 +260,9 @@
this.checkBoxAutoChangeNames.Text = "Auto fix names where only casing differ"; this.checkBoxAutoChangeNames.Text = "Auto fix names where only casing differ";
this.checkBoxAutoChangeNames.UseVisualStyleBackColor = true; this.checkBoxAutoChangeNames.UseVisualStyleBackColor = true;
this.checkBoxAutoChangeNames.CheckedChanged += new System.EventHandler(this.CheckBoxAutoChangeNamesCheckedChanged); this.checkBoxAutoChangeNames.CheckedChanged += new System.EventHandler(this.CheckBoxAutoChangeNamesCheckedChanged);
// //
// buttonEditWholeText // buttonEditWholeText
// //
this.buttonEditWholeText.Location = new System.Drawing.Point(175, 91); this.buttonEditWholeText.Location = new System.Drawing.Point(175, 91);
this.buttonEditWholeText.Name = "buttonEditWholeText"; this.buttonEditWholeText.Name = "buttonEditWholeText";
this.buttonEditWholeText.Size = new System.Drawing.Size(128, 21); this.buttonEditWholeText.Size = new System.Drawing.Size(128, 21);
@ -270,9 +270,9 @@
this.buttonEditWholeText.Text = "Edit whole text"; this.buttonEditWholeText.Text = "Edit whole text";
this.buttonEditWholeText.UseVisualStyleBackColor = true; this.buttonEditWholeText.UseVisualStyleBackColor = true;
this.buttonEditWholeText.Click += new System.EventHandler(this.ButtonEditWholeTextClick); this.buttonEditWholeText.Click += new System.EventHandler(this.ButtonEditWholeTextClick);
// //
// groupBoxEditWholeText // groupBoxEditWholeText
// //
this.groupBoxEditWholeText.Controls.Add(this.buttonSkipText); this.groupBoxEditWholeText.Controls.Add(this.buttonSkipText);
this.groupBoxEditWholeText.Controls.Add(this.buttonChangeWholeText); this.groupBoxEditWholeText.Controls.Add(this.buttonChangeWholeText);
this.groupBoxEditWholeText.Controls.Add(this.textBoxWholeText); this.groupBoxEditWholeText.Controls.Add(this.textBoxWholeText);
@ -282,9 +282,9 @@
this.groupBoxEditWholeText.TabIndex = 40; this.groupBoxEditWholeText.TabIndex = 40;
this.groupBoxEditWholeText.TabStop = false; this.groupBoxEditWholeText.TabStop = false;
this.groupBoxEditWholeText.Text = "Edit whole text"; this.groupBoxEditWholeText.Text = "Edit whole text";
// //
// buttonSkipText // buttonSkipText
// //
this.buttonSkipText.Location = new System.Drawing.Point(151, 88); this.buttonSkipText.Location = new System.Drawing.Point(151, 88);
this.buttonSkipText.Name = "buttonSkipText"; this.buttonSkipText.Name = "buttonSkipText";
this.buttonSkipText.Size = new System.Drawing.Size(135, 21); this.buttonSkipText.Size = new System.Drawing.Size(135, 21);
@ -292,9 +292,9 @@
this.buttonSkipText.Text = "Skip once"; this.buttonSkipText.Text = "Skip once";
this.buttonSkipText.UseVisualStyleBackColor = true; this.buttonSkipText.UseVisualStyleBackColor = true;
this.buttonSkipText.Click += new System.EventHandler(this.ButtonSkipTextClick); this.buttonSkipText.Click += new System.EventHandler(this.ButtonSkipTextClick);
// //
// buttonChangeWholeText // buttonChangeWholeText
// //
this.buttonChangeWholeText.Location = new System.Drawing.Point(6, 88); this.buttonChangeWholeText.Location = new System.Drawing.Point(6, 88);
this.buttonChangeWholeText.Name = "buttonChangeWholeText"; this.buttonChangeWholeText.Name = "buttonChangeWholeText";
this.buttonChangeWholeText.Size = new System.Drawing.Size(135, 21); this.buttonChangeWholeText.Size = new System.Drawing.Size(135, 21);
@ -302,18 +302,18 @@
this.buttonChangeWholeText.Text = "Change"; this.buttonChangeWholeText.Text = "Change";
this.buttonChangeWholeText.UseVisualStyleBackColor = true; this.buttonChangeWholeText.UseVisualStyleBackColor = true;
this.buttonChangeWholeText.Click += new System.EventHandler(this.ButtonChangeWholeTextClick); this.buttonChangeWholeText.Click += new System.EventHandler(this.ButtonChangeWholeTextClick);
// //
// textBoxWholeText // textBoxWholeText
// //
this.textBoxWholeText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxWholeText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxWholeText.Location = new System.Drawing.Point(6, 19); this.textBoxWholeText.Location = new System.Drawing.Point(6, 19);
this.textBoxWholeText.Multiline = true; this.textBoxWholeText.Multiline = true;
this.textBoxWholeText.Name = "textBoxWholeText"; this.textBoxWholeText.Name = "textBoxWholeText";
this.textBoxWholeText.Size = new System.Drawing.Size(280, 63); this.textBoxWholeText.Size = new System.Drawing.Size(280, 63);
this.textBoxWholeText.TabIndex = 31; this.textBoxWholeText.TabIndex = 31;
// //
// SpellCheck // SpellCheck
// //
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(605, 341); this.ClientSize = new System.Drawing.Size(605, 341);

View File

@ -153,7 +153,7 @@ namespace Nikse.SubtitleEdit.Forms
Match match = regEx.Match(richTextBoxParagraph.Text); Match match = regEx.Match(richTextBoxParagraph.Text);
if (match.Success) if (match.Success)
{ {
richTextBoxParagraph.SelectionStart = match.Index; richTextBoxParagraph.SelectionStart = match.Index;
richTextBoxParagraph.SelectionLength = word.Length; richTextBoxParagraph.SelectionLength = word.Length;
@ -183,7 +183,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ButtonAbortClick(object sender, EventArgs e) private void ButtonAbortClick(object sender, EventArgs e)
{ {
ShowEndStatusMessage(Configuration.Settings.Language.SpellCheck.SpellCheckAborted); ShowEndStatusMessage(Configuration.Settings.Language.SpellCheck.SpellCheckAborted);
DialogResult = DialogResult.Abort; DialogResult = DialogResult.Abort;
} }
private void ButtonChangeClick(object sender, EventArgs e) private void ButtonChangeClick(object sender, EventArgs e)
@ -249,12 +249,12 @@ namespace Nikse.SubtitleEdit.Forms
public bool DoSpell(string word) public bool DoSpell(string word)
{ {
return _hunspell.Spell(word); return _hunspell.Spell(word);
} }
public List<string> DoSuggest(string word) public List<string> DoSuggest(string word)
{ {
return _hunspell.Suggest(word); return _hunspell.Suggest(word);
} }
private void ButtonChangeAllClick(object sender, EventArgs e) private void ButtonChangeAllClick(object sender, EventArgs e)
@ -383,7 +383,7 @@ namespace Nikse.SubtitleEdit.Forms
string s = ChangeWord.Trim().ToLower(); string s = ChangeWord.Trim().ToLower();
if (s.Contains(" ")) if (s.Contains(" "))
_userPhraseList.Add(s); _userPhraseList.Add(s);
else else
_userWordList.Add(s); _userWordList.Add(s);
XmlNode node = _userWordDictionary.CreateElement("word"); XmlNode node = _userWordDictionary.CreateElement("word");
node.InnerText = s; node.InnerText = s;
@ -448,7 +448,7 @@ namespace Nikse.SubtitleEdit.Forms
_words = s.Split(" .,-?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); _words = s.Split(" .,-?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
_wordsIndex = 0; _wordsIndex = 0;
if (_words.Length == 0) if (_words.Length == 0)
{ {
_currentWord = string.Empty; _currentWord = string.Empty;
} }
else else

View File

@ -49,9 +49,9 @@
((System.ComponentModel.ISupportInitialize)(this.numericUpDownSingleLineMaxCharacters)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownSingleLineMaxCharacters)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownLineMaxCharacters)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLineMaxCharacters)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxLinesFound // groupBoxLinesFound
// //
this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxLinesFound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxLinesFound.Controls.Add(this.listViewFixes); this.groupBoxLinesFound.Controls.Add(this.listViewFixes);
@ -61,9 +61,9 @@
this.groupBoxLinesFound.TabIndex = 4; this.groupBoxLinesFound.TabIndex = 4;
this.groupBoxLinesFound.TabStop = false; this.groupBoxLinesFound.TabStop = false;
this.groupBoxLinesFound.Text = "Lines that will be splittet"; this.groupBoxLinesFound.Text = "Lines that will be splittet";
// //
// listViewFixes // listViewFixes
// //
this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.listViewFixes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listViewFixes.CheckBoxes = true; this.listViewFixes.CheckBoxes = true;
@ -79,24 +79,24 @@
this.listViewFixes.UseCompatibleStateImageBehavior = false; this.listViewFixes.UseCompatibleStateImageBehavior = false;
this.listViewFixes.View = System.Windows.Forms.View.Details; this.listViewFixes.View = System.Windows.Forms.View.Details;
this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.listViewFixes_SelectedIndexChanged); this.listViewFixes.SelectedIndexChanged += new System.EventHandler(this.listViewFixes_SelectedIndexChanged);
// //
// columnHeader4 // columnHeader4
// //
this.columnHeader4.Text = "Apply"; this.columnHeader4.Text = "Apply";
this.columnHeader4.Width = 45; this.columnHeader4.Width = 45;
// //
// columnHeader5 // columnHeader5
// //
this.columnHeader5.Text = "Line#"; this.columnHeader5.Text = "Line#";
this.columnHeader5.Width = 122; this.columnHeader5.Width = 122;
// //
// columnHeader7 // columnHeader7
// //
this.columnHeader7.Text = "New text"; this.columnHeader7.Text = "New text";
this.columnHeader7.Width = 500; this.columnHeader7.Width = 500;
// //
// numericUpDownSingleLineMaxCharacters // numericUpDownSingleLineMaxCharacters
// //
this.numericUpDownSingleLineMaxCharacters.Location = new System.Drawing.Point(28, 33); this.numericUpDownSingleLineMaxCharacters.Location = new System.Drawing.Point(28, 33);
this.numericUpDownSingleLineMaxCharacters.Maximum = new decimal(new int[] { this.numericUpDownSingleLineMaxCharacters.Maximum = new decimal(new int[] {
200, 200,
@ -117,27 +117,27 @@
0, 0,
0}); 0});
this.numericUpDownSingleLineMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged); this.numericUpDownSingleLineMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged);
// //
// labelLineMaxLength // labelLineMaxLength
// //
this.labelLineMaxLength.AutoSize = true; this.labelLineMaxLength.AutoSize = true;
this.labelLineMaxLength.Location = new System.Drawing.Point(240, 16); this.labelLineMaxLength.Location = new System.Drawing.Point(240, 16);
this.labelLineMaxLength.Name = "labelLineMaxLength"; this.labelLineMaxLength.Name = "labelLineMaxLength";
this.labelLineMaxLength.Size = new System.Drawing.Size(105, 13); this.labelLineMaxLength.Size = new System.Drawing.Size(105, 13);
this.labelLineMaxLength.TabIndex = 43; this.labelLineMaxLength.TabIndex = 43;
this.labelLineMaxLength.Text = "Line maximum length"; this.labelLineMaxLength.Text = "Line maximum length";
// //
// labelSingleLineMaxLength // labelSingleLineMaxLength
// //
this.labelSingleLineMaxLength.AutoSize = true; this.labelSingleLineMaxLength.AutoSize = true;
this.labelSingleLineMaxLength.Location = new System.Drawing.Point(25, 16); this.labelSingleLineMaxLength.Location = new System.Drawing.Point(25, 16);
this.labelSingleLineMaxLength.Name = "labelSingleLineMaxLength"; this.labelSingleLineMaxLength.Name = "labelSingleLineMaxLength";
this.labelSingleLineMaxLength.Size = new System.Drawing.Size(133, 13); this.labelSingleLineMaxLength.Size = new System.Drawing.Size(133, 13);
this.labelSingleLineMaxLength.TabIndex = 42; this.labelSingleLineMaxLength.TabIndex = 42;
this.labelSingleLineMaxLength.Text = "Single line maximum length"; this.labelSingleLineMaxLength.Text = "Single line maximum length";
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(606, 581); this.buttonOK.Location = new System.Drawing.Point(606, 581);
@ -147,9 +147,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -160,9 +160,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// numericUpDownLineMaxCharacters // numericUpDownLineMaxCharacters
// //
this.numericUpDownLineMaxCharacters.Location = new System.Drawing.Point(243, 33); this.numericUpDownLineMaxCharacters.Location = new System.Drawing.Point(243, 33);
this.numericUpDownLineMaxCharacters.Maximum = new decimal(new int[] { this.numericUpDownLineMaxCharacters.Maximum = new decimal(new int[] {
200, 200,
@ -183,9 +183,9 @@
0, 0,
0}); 0});
this.numericUpDownLineMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged); this.numericUpDownLineMaxCharacters.ValueChanged += new System.EventHandler(this.NumericUpDownMaxCharactersValueChanged);
// //
// labelMaxSingleLineLengthIs // labelMaxSingleLineLengthIs
// //
this.labelMaxSingleLineLengthIs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelMaxSingleLineLengthIs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelMaxSingleLineLengthIs.AutoSize = true; this.labelMaxSingleLineLengthIs.AutoSize = true;
this.labelMaxSingleLineLengthIs.Location = new System.Drawing.Point(9, 579); this.labelMaxSingleLineLengthIs.Location = new System.Drawing.Point(9, 579);
@ -194,9 +194,9 @@
this.labelMaxSingleLineLengthIs.TabIndex = 45; this.labelMaxSingleLineLengthIs.TabIndex = 45;
this.labelMaxSingleLineLengthIs.Text = "Single line maximum length"; this.labelMaxSingleLineLengthIs.Text = "Single line maximum length";
this.labelMaxSingleLineLengthIs.Click += new System.EventHandler(this.labelMaxSingleLineLengthIs_Click); this.labelMaxSingleLineLengthIs.Click += new System.EventHandler(this.labelMaxSingleLineLengthIs_Click);
// //
// labelMaxLineLengthIs // labelMaxLineLengthIs
// //
this.labelMaxLineLengthIs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelMaxLineLengthIs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelMaxLineLengthIs.AutoSize = true; this.labelMaxLineLengthIs.AutoSize = true;
this.labelMaxLineLengthIs.Location = new System.Drawing.Point(9, 597); this.labelMaxLineLengthIs.Location = new System.Drawing.Point(9, 597);
@ -205,9 +205,9 @@
this.labelMaxLineLengthIs.TabIndex = 46; this.labelMaxLineLengthIs.TabIndex = 46;
this.labelMaxLineLengthIs.Text = "Maximum length"; this.labelMaxLineLengthIs.Text = "Maximum length";
this.labelMaxLineLengthIs.Click += new System.EventHandler(this.labelMaxLineLengthIs_Click); this.labelMaxLineLengthIs.Click += new System.EventHandler(this.labelMaxLineLengthIs_Click);
// //
// comboBoxLineContinuationBegin // comboBoxLineContinuationBegin
// //
this.comboBoxLineContinuationBegin.FormattingEnabled = true; this.comboBoxLineContinuationBegin.FormattingEnabled = true;
this.comboBoxLineContinuationBegin.Items.AddRange(new object[] { this.comboBoxLineContinuationBegin.Items.AddRange(new object[] {
"- ", "- ",
@ -217,18 +217,18 @@
this.comboBoxLineContinuationBegin.Size = new System.Drawing.Size(80, 21); this.comboBoxLineContinuationBegin.Size = new System.Drawing.Size(80, 21);
this.comboBoxLineContinuationBegin.TabIndex = 2; this.comboBoxLineContinuationBegin.TabIndex = 2;
this.comboBoxLineContinuationBegin.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged); this.comboBoxLineContinuationBegin.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged);
// //
// labelLineContinuationBeginEnd // labelLineContinuationBeginEnd
// //
this.labelLineContinuationBeginEnd.AutoSize = true; this.labelLineContinuationBeginEnd.AutoSize = true;
this.labelLineContinuationBeginEnd.Location = new System.Drawing.Point(475, 16); this.labelLineContinuationBeginEnd.Location = new System.Drawing.Point(475, 16);
this.labelLineContinuationBeginEnd.Name = "labelLineContinuationBeginEnd"; this.labelLineContinuationBeginEnd.Name = "labelLineContinuationBeginEnd";
this.labelLineContinuationBeginEnd.Size = new System.Drawing.Size(173, 13); this.labelLineContinuationBeginEnd.Size = new System.Drawing.Size(173, 13);
this.labelLineContinuationBeginEnd.TabIndex = 48; this.labelLineContinuationBeginEnd.TabIndex = 48;
this.labelLineContinuationBeginEnd.Text = "Line continuation begin/end strings"; this.labelLineContinuationBeginEnd.Text = "Line continuation begin/end strings";
// //
// comboBoxLineContinuationEnd // comboBoxLineContinuationEnd
// //
this.comboBoxLineContinuationEnd.FormattingEnabled = true; this.comboBoxLineContinuationEnd.FormattingEnabled = true;
this.comboBoxLineContinuationEnd.Items.AddRange(new object[] { this.comboBoxLineContinuationEnd.Items.AddRange(new object[] {
" -", " -",
@ -238,9 +238,9 @@
this.comboBoxLineContinuationEnd.Size = new System.Drawing.Size(80, 21); this.comboBoxLineContinuationEnd.Size = new System.Drawing.Size(80, 21);
this.comboBoxLineContinuationEnd.TabIndex = 3; this.comboBoxLineContinuationEnd.TabIndex = 3;
this.comboBoxLineContinuationEnd.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged); this.comboBoxLineContinuationEnd.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged);
// //
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowDrop = true; this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
@ -256,9 +256,9 @@
this.SubtitleListview1.TabIndex = 5; this.SubtitleListview1.TabIndex = 5;
this.SubtitleListview1.UseCompatibleStateImageBehavior = false; this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
// //
// SplitLongLines // SplitLongLines
// //
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(774, 614); this.ClientSize = new System.Drawing.Size(774, 614);

View File

@ -92,7 +92,7 @@ namespace Nikse.SubtitleEdit.Forms
var autoBreakedIndexes = new List<int>(); var autoBreakedIndexes = new List<int>();
NumberOfSplits = 0; NumberOfSplits = 0;
SubtitleListview1.Items.Clear(); SubtitleListview1.Items.Clear();
SubtitleListview1.BeginUpdate(); SubtitleListview1.BeginUpdate();
int count; int count;
_splittedSubtitle = SplitLongLinesInSubtitle(_subtitle, splittedIndexes, autoBreakedIndexes, out count, (int)numericUpDownLineMaxCharacters.Value, (int)numericUpDownSingleLineMaxCharacters.Value, clearFixes); _splittedSubtitle = SplitLongLinesInSubtitle(_subtitle, splittedIndexes, autoBreakedIndexes, out count, (int)numericUpDownLineMaxCharacters.Value, (int)numericUpDownSingleLineMaxCharacters.Value, clearFixes);
@ -136,7 +136,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
i++; i++;
} }
labelMaxSingleLineLengthIs.Text = string.Format(Configuration.Settings.Language.SplitLongLines.LongestSingleLineIsXAtY, singleLineMaxLength, singleLineMaxLengthIndex + 1); labelMaxSingleLineLengthIs.Text = string.Format(Configuration.Settings.Language.SplitLongLines.LongestSingleLineIsXAtY, singleLineMaxLength, singleLineMaxLengthIndex + 1);
labelMaxSingleLineLengthIs.Tag = singleLineMaxLengthIndex.ToString(); labelMaxSingleLineLengthIs.Tag = singleLineMaxLengthIndex.ToString();
labelMaxLineLengthIs.Text = string.Format(Configuration.Settings.Language.SplitLongLines.LongestLineIsXAtY, maxLength, maxLengthIndex + 1); labelMaxLineLengthIs.Text = string.Format(Configuration.Settings.Language.SplitLongLines.LongestLineIsXAtY, maxLength, maxLengthIndex + 1);
@ -208,7 +208,7 @@ namespace Nikse.SubtitleEdit.Forms
p1Ends = true; p1Ends = true;
if (!p1Ends) if (!p1Ends)
{ {
string post = string.Empty; string post = string.Empty;
if (newParagraph1.Text.EndsWith("</i>")) if (newParagraph1.Text.EndsWith("</i>"))
{ {

View File

@ -38,9 +38,9 @@
this.labelHoursMinSecsMilliSecs = new System.Windows.Forms.Label(); this.labelHoursMinSecsMilliSecs = new System.Windows.Forms.Label();
this.splitTimeUpDownAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown(); this.splitTimeUpDownAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonGetFrameRate // buttonGetFrameRate
// //
this.buttonGetFrameRate.Location = new System.Drawing.Point(137, 69); this.buttonGetFrameRate.Location = new System.Drawing.Point(137, 69);
this.buttonGetFrameRate.Name = "buttonGetFrameRate"; this.buttonGetFrameRate.Name = "buttonGetFrameRate";
this.buttonGetFrameRate.Size = new System.Drawing.Size(24, 22); this.buttonGetFrameRate.Size = new System.Drawing.Size(24, 22);
@ -48,9 +48,9 @@
this.buttonGetFrameRate.Text = "..."; this.buttonGetFrameRate.Text = "...";
this.buttonGetFrameRate.UseVisualStyleBackColor = true; this.buttonGetFrameRate.UseVisualStyleBackColor = true;
this.buttonGetFrameRate.Click += new System.EventHandler(this.buttonGetFrameRate_Click); this.buttonGetFrameRate.Click += new System.EventHandler(this.buttonGetFrameRate_Click);
// //
// buttonDone // buttonDone
// //
this.buttonDone.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonDone.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonDone.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonDone.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonDone.Location = new System.Drawing.Point(239, 109); this.buttonDone.Location = new System.Drawing.Point(239, 109);
@ -59,9 +59,9 @@
this.buttonDone.TabIndex = 18; this.buttonDone.TabIndex = 18;
this.buttonDone.Text = "&Done"; this.buttonDone.Text = "&Done";
this.buttonDone.UseVisualStyleBackColor = true; this.buttonDone.UseVisualStyleBackColor = true;
// //
// buttonSplit // buttonSplit
// //
this.buttonSplit.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonSplit.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonSplit.Location = new System.Drawing.Point(158, 109); this.buttonSplit.Location = new System.Drawing.Point(158, 109);
this.buttonSplit.Name = "buttonSplit"; this.buttonSplit.Name = "buttonSplit";
@ -70,40 +70,40 @@
this.buttonSplit.Text = "&Split"; this.buttonSplit.Text = "&Split";
this.buttonSplit.UseVisualStyleBackColor = true; this.buttonSplit.UseVisualStyleBackColor = true;
this.buttonSplit.Click += new System.EventHandler(this.ButtonFixClick); this.buttonSplit.Click += new System.EventHandler(this.ButtonFixClick);
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12); this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(217, 13); this.label1.Size = new System.Drawing.Size(217, 13);
this.label1.TabIndex = 19; this.label1.TabIndex = 19;
this.label1.Text = "Enter length of first part of video or browse"; this.label1.Text = "Enter length of first part of video or browse";
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(16, 29); this.label2.Location = new System.Drawing.Point(16, 29);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(152, 13); this.label2.Size = new System.Drawing.Size(152, 13);
this.label2.TabIndex = 20; this.label2.TabIndex = 20;
this.label2.Text = "and get length from video file:"; this.label2.Text = "and get length from video file:";
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// labelHoursMinSecsMilliSecs // labelHoursMinSecsMilliSecs
// //
this.labelHoursMinSecsMilliSecs.AutoSize = true; this.labelHoursMinSecsMilliSecs.AutoSize = true;
this.labelHoursMinSecsMilliSecs.Location = new System.Drawing.Point(26, 52); this.labelHoursMinSecsMilliSecs.Location = new System.Drawing.Point(26, 52);
this.labelHoursMinSecsMilliSecs.Name = "labelHoursMinSecsMilliSecs"; this.labelHoursMinSecsMilliSecs.Name = "labelHoursMinSecsMilliSecs";
this.labelHoursMinSecsMilliSecs.Size = new System.Drawing.Size(108, 13); this.labelHoursMinSecsMilliSecs.Size = new System.Drawing.Size(108, 13);
this.labelHoursMinSecsMilliSecs.TabIndex = 22; this.labelHoursMinSecsMilliSecs.TabIndex = 22;
this.labelHoursMinSecsMilliSecs.Text = "Hours:min:sec.msecs"; this.labelHoursMinSecsMilliSecs.Text = "Hours:min:sec.msecs";
// //
// splitTimeUpDownAdjust // splitTimeUpDownAdjust
// //
this.splitTimeUpDownAdjust.AutoSize = true; this.splitTimeUpDownAdjust.AutoSize = true;
this.splitTimeUpDownAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.splitTimeUpDownAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.splitTimeUpDownAdjust.Location = new System.Drawing.Point(29, 69); this.splitTimeUpDownAdjust.Location = new System.Drawing.Point(29, 69);
@ -111,9 +111,9 @@
this.splitTimeUpDownAdjust.Name = "splitTimeUpDownAdjust"; this.splitTimeUpDownAdjust.Name = "splitTimeUpDownAdjust";
this.splitTimeUpDownAdjust.Size = new System.Drawing.Size(92, 25); this.splitTimeUpDownAdjust.Size = new System.Drawing.Size(92, 25);
this.splitTimeUpDownAdjust.TabIndex = 21; this.splitTimeUpDownAdjust.TabIndex = 21;
// //
// SplitSubtitle // SplitSubtitle
// //
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(325, 140); this.ClientSize = new System.Drawing.Size(325, 140);

View File

@ -33,27 +33,27 @@
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(24, 23); this.label1.Location = new System.Drawing.Point(24, 23);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(152, 21); this.label1.Size = new System.Drawing.Size(152, 21);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "Start from number:"; this.label1.Text = "Start from number:";
// //
// textBox1 // textBox1
// //
this.textBox1.Location = new System.Drawing.Point(27, 41); this.textBox1.Location = new System.Drawing.Point(27, 41);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(104, 27); this.textBox1.Size = new System.Drawing.Size(104, 27);
this.textBox1.TabIndex = 0; this.textBox1.TabIndex = 0;
this.textBox1.Text = "1"; this.textBox1.Text = "1";
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox1KeyDown); this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox1KeyDown);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(113, 78); this.buttonCancel.Location = new System.Drawing.Point(113, 78);
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
@ -61,9 +61,9 @@
this.buttonCancel.TabIndex = 2; this.buttonCancel.TabIndex = 2;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// buttonOK // buttonOK
// //
this.buttonOK.Location = new System.Drawing.Point(31, 78); this.buttonOK.Location = new System.Drawing.Point(31, 78);
this.buttonOK.Name = "buttonOK"; this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21); this.buttonOK.Size = new System.Drawing.Size(75, 21);
@ -71,9 +71,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// StartNumberingFrom // StartNumberingFrom
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(261, 113); this.ClientSize = new System.Drawing.Size(261, 113);

View File

@ -43,11 +43,11 @@
this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView(); this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.groupBoxImportResult.SuspendLayout(); this.groupBoxImportResult.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBoxImportResult // groupBoxImportResult
// //
this.groupBoxImportResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBoxImportResult.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.groupBoxImportResult.Controls.Add(this.labelOtherSubtitleFileName); this.groupBoxImportResult.Controls.Add(this.labelOtherSubtitleFileName);
this.groupBoxImportResult.Controls.Add(this.labelSubtitleFileName); this.groupBoxImportResult.Controls.Add(this.labelSubtitleFileName);
@ -63,27 +63,27 @@
this.groupBoxImportResult.Size = new System.Drawing.Size(1096, 434); this.groupBoxImportResult.Size = new System.Drawing.Size(1096, 434);
this.groupBoxImportResult.TabIndex = 16; this.groupBoxImportResult.TabIndex = 16;
this.groupBoxImportResult.TabStop = false; this.groupBoxImportResult.TabStop = false;
// //
// labelOtherSubtitleFileName // labelOtherSubtitleFileName
// //
this.labelOtherSubtitleFileName.AutoSize = true; this.labelOtherSubtitleFileName.AutoSize = true;
this.labelOtherSubtitleFileName.Location = new System.Drawing.Point(626, 17); this.labelOtherSubtitleFileName.Location = new System.Drawing.Point(626, 17);
this.labelOtherSubtitleFileName.Name = "labelOtherSubtitleFileName"; this.labelOtherSubtitleFileName.Name = "labelOtherSubtitleFileName";
this.labelOtherSubtitleFileName.Size = new System.Drawing.Size(136, 13); this.labelOtherSubtitleFileName.Size = new System.Drawing.Size(136, 13);
this.labelOtherSubtitleFileName.TabIndex = 21; this.labelOtherSubtitleFileName.TabIndex = 21;
this.labelOtherSubtitleFileName.Text = "labelOtherSubtitleFileName"; this.labelOtherSubtitleFileName.Text = "labelOtherSubtitleFileName";
// //
// labelSubtitleFileName // labelSubtitleFileName
// //
this.labelSubtitleFileName.AutoSize = true; this.labelSubtitleFileName.AutoSize = true;
this.labelSubtitleFileName.Location = new System.Drawing.Point(6, 17); this.labelSubtitleFileName.Location = new System.Drawing.Point(6, 17);
this.labelSubtitleFileName.Name = "labelSubtitleFileName"; this.labelSubtitleFileName.Name = "labelSubtitleFileName";
this.labelSubtitleFileName.Size = new System.Drawing.Size(108, 13); this.labelSubtitleFileName.Size = new System.Drawing.Size(108, 13);
this.labelSubtitleFileName.TabIndex = 20; this.labelSubtitleFileName.TabIndex = 20;
this.labelSubtitleFileName.Text = "labelSubtitleFileName"; this.labelSubtitleFileName.Text = "labelSubtitleFileName";
// //
// listBoxSyncPoints // listBoxSyncPoints
// //
this.listBoxSyncPoints.Anchor = System.Windows.Forms.AnchorStyles.Right; this.listBoxSyncPoints.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.listBoxSyncPoints.FormattingEnabled = true; this.listBoxSyncPoints.FormattingEnabled = true;
this.listBoxSyncPoints.Location = new System.Drawing.Point(482, 214); this.listBoxSyncPoints.Location = new System.Drawing.Point(482, 214);
@ -91,9 +91,9 @@
this.listBoxSyncPoints.Size = new System.Drawing.Size(140, 82); this.listBoxSyncPoints.Size = new System.Drawing.Size(140, 82);
this.listBoxSyncPoints.TabIndex = 18; this.listBoxSyncPoints.TabIndex = 18;
this.listBoxSyncPoints.SelectedIndexChanged += new System.EventHandler(this.listBoxSyncPoints_SelectedIndexChanged); this.listBoxSyncPoints.SelectedIndexChanged += new System.EventHandler(this.listBoxSyncPoints_SelectedIndexChanged);
// //
// labelNoOfSyncPoints // labelNoOfSyncPoints
// //
this.labelNoOfSyncPoints.Anchor = System.Windows.Forms.AnchorStyles.Right; this.labelNoOfSyncPoints.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.labelNoOfSyncPoints.AutoSize = true; this.labelNoOfSyncPoints.AutoSize = true;
this.labelNoOfSyncPoints.Location = new System.Drawing.Point(481, 196); this.labelNoOfSyncPoints.Location = new System.Drawing.Point(481, 196);
@ -101,9 +101,9 @@
this.labelNoOfSyncPoints.Size = new System.Drawing.Size(75, 13); this.labelNoOfSyncPoints.Size = new System.Drawing.Size(75, 13);
this.labelNoOfSyncPoints.TabIndex = 16; this.labelNoOfSyncPoints.TabIndex = 16;
this.labelNoOfSyncPoints.Text = "Sync points: 0"; this.labelNoOfSyncPoints.Text = "Sync points: 0";
// //
// labelSyncInfo // labelSyncInfo
// //
this.labelSyncInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelSyncInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelSyncInfo.AutoSize = true; this.labelSyncInfo.AutoSize = true;
this.labelSyncInfo.Location = new System.Drawing.Point(6, 415); this.labelSyncInfo.Location = new System.Drawing.Point(6, 415);
@ -111,9 +111,9 @@
this.labelSyncInfo.Size = new System.Drawing.Size(284, 13); this.labelSyncInfo.Size = new System.Drawing.Size(284, 13);
this.labelSyncInfo.TabIndex = 17; this.labelSyncInfo.TabIndex = 17;
this.labelSyncInfo.Text = "Set at least two sync points to make rough syncronization"; this.labelSyncInfo.Text = "Set at least two sync points to make rough syncronization";
// //
// buttonRemoveSyncPoint // buttonRemoveSyncPoint
// //
this.buttonRemoveSyncPoint.Anchor = System.Windows.Forms.AnchorStyles.Right; this.buttonRemoveSyncPoint.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.buttonRemoveSyncPoint.Location = new System.Drawing.Point(484, 170); this.buttonRemoveSyncPoint.Location = new System.Drawing.Point(484, 170);
this.buttonRemoveSyncPoint.Name = "buttonRemoveSyncPoint"; this.buttonRemoveSyncPoint.Name = "buttonRemoveSyncPoint";
@ -122,9 +122,9 @@
this.buttonRemoveSyncPoint.Text = "Remove sync point"; this.buttonRemoveSyncPoint.Text = "Remove sync point";
this.buttonRemoveSyncPoint.UseVisualStyleBackColor = true; this.buttonRemoveSyncPoint.UseVisualStyleBackColor = true;
this.buttonRemoveSyncPoint.Click += new System.EventHandler(this.buttonRemoveSyncPoint_Click); this.buttonRemoveSyncPoint.Click += new System.EventHandler(this.buttonRemoveSyncPoint_Click);
// //
// buttonSetSyncPoint // buttonSetSyncPoint
// //
this.buttonSetSyncPoint.Anchor = System.Windows.Forms.AnchorStyles.Right; this.buttonSetSyncPoint.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.buttonSetSyncPoint.Location = new System.Drawing.Point(484, 143); this.buttonSetSyncPoint.Location = new System.Drawing.Point(484, 143);
this.buttonSetSyncPoint.Name = "buttonSetSyncPoint"; this.buttonSetSyncPoint.Name = "buttonSetSyncPoint";
@ -133,9 +133,9 @@
this.buttonSetSyncPoint.Text = "Set sync point"; this.buttonSetSyncPoint.Text = "Set sync point";
this.buttonSetSyncPoint.UseVisualStyleBackColor = true; this.buttonSetSyncPoint.UseVisualStyleBackColor = true;
this.buttonSetSyncPoint.Click += new System.EventHandler(this.buttonSetSyncPoint_Click); this.buttonSetSyncPoint.Click += new System.EventHandler(this.buttonSetSyncPoint_Click);
// //
// buttonApplySync // buttonApplySync
// //
this.buttonApplySync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonApplySync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonApplySync.Enabled = false; this.buttonApplySync.Enabled = false;
this.buttonApplySync.Location = new System.Drawing.Point(1029, 452); this.buttonApplySync.Location = new System.Drawing.Point(1029, 452);
@ -145,9 +145,9 @@
this.buttonApplySync.Text = "Apply"; this.buttonApplySync.Text = "Apply";
this.buttonApplySync.UseVisualStyleBackColor = true; this.buttonApplySync.UseVisualStyleBackColor = true;
this.buttonApplySync.Click += new System.EventHandler(this.buttonSync_Click); this.buttonApplySync.Click += new System.EventHandler(this.buttonSync_Click);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(948, 452); this.buttonCancel.Location = new System.Drawing.Point(948, 452);
@ -157,9 +157,9 @@
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(867, 452); this.buttonOK.Location = new System.Drawing.Point(867, 452);
@ -169,9 +169,9 @@
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// subtitleListView2 // subtitleListView2
// //
this.subtitleListView2.AllowDrop = true; this.subtitleListView2.AllowDrop = true;
this.subtitleListView2.Anchor = System.Windows.Forms.AnchorStyles.Left; this.subtitleListView2.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.subtitleListView2.DisplayExtraFromExtra = false; this.subtitleListView2.DisplayExtraFromExtra = false;
@ -187,12 +187,12 @@
this.subtitleListView2.TabIndex = 19; this.subtitleListView2.TabIndex = 19;
this.subtitleListView2.UseCompatibleStateImageBehavior = false; this.subtitleListView2.UseCompatibleStateImageBehavior = false;
this.subtitleListView2.View = System.Windows.Forms.View.Details; this.subtitleListView2.View = System.Windows.Forms.View.Details;
// //
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowDrop = true; this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.SubtitleListview1.DisplayExtraFromExtra = false; this.SubtitleListview1.DisplayExtraFromExtra = false;
this.SubtitleListview1.FirstVisibleIndex = -1; this.SubtitleListview1.FirstVisibleIndex = -1;
@ -208,9 +208,9 @@
this.SubtitleListview1.UseCompatibleStateImageBehavior = false; this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick); this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick);
// //
// SyncPointsSync // SyncPointsSync
// //
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(1120, 485); this.ClientSize = new System.Drawing.Size(1120, 485);

View File

@ -27,7 +27,7 @@ namespace Nikse.SubtitleEdit.Forms
Subtitle _otherSubtitle; Subtitle _otherSubtitle;
System.Collections.Generic.SortedDictionary<int, TimeSpan> _syncronizationPoints = new SortedDictionary<int, TimeSpan>(); System.Collections.Generic.SortedDictionary<int, TimeSpan> _syncronizationPoints = new SortedDictionary<int, TimeSpan>();
public string VideoFileName public string VideoFileName
{ {
get { return _videoFileName; } get { return _videoFileName; }
} }
@ -40,7 +40,7 @@ namespace Nikse.SubtitleEdit.Forms
public SyncPointsSync() public SyncPointsSync()
{ {
InitializeComponent(); InitializeComponent();
buttonSetSyncPoint.Text = Configuration.Settings.Language.PointSync.SetSyncPoint; buttonSetSyncPoint.Text = Configuration.Settings.Language.PointSync.SetSyncPoint;
buttonRemoveSyncPoint.Text = Configuration.Settings.Language.PointSync.RemoveSyncPoint; buttonRemoveSyncPoint.Text = Configuration.Settings.Language.PointSync.RemoveSyncPoint;
buttonOK.Text = Configuration.Settings.Language.General.OK; buttonOK.Text = Configuration.Settings.Language.General.OK;
@ -125,7 +125,7 @@ namespace Nikse.SubtitleEdit.Forms
listBoxSyncPoints.Anchor = AnchorStyles.Left; listBoxSyncPoints.Anchor = AnchorStyles.Left;
labelOtherSubtitleFileName.Visible = true; labelOtherSubtitleFileName.Visible = true;
subtitleListView2.Visible = true; subtitleListView2.Visible = true;
Width = subtitleListView2.Width * 2 + 250; Width = subtitleListView2.Width * 2 + 250;
} }
private void RefreshSyncronizationPointsUI() private void RefreshSyncronizationPointsUI()
@ -191,7 +191,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
int index = SubtitleListview1.SelectedItems[0].Index; int index = SubtitleListview1.SelectedItems[0].Index;
int indexOther = subtitleListView2.SelectedItems[0].Index; int indexOther = subtitleListView2.SelectedItems[0].Index;
if (_syncronizationPoints.ContainsKey(index)) if (_syncronizationPoints.ContainsKey(index))
_syncronizationPoints[index] = TimeSpan.FromMilliseconds(_otherSubtitle.Paragraphs[indexOther].StartTime.TotalMilliseconds); _syncronizationPoints[index] = TimeSpan.FromMilliseconds(_otherSubtitle.Paragraphs[indexOther].StartTime.TotalMilliseconds);
else else
@ -279,11 +279,11 @@ namespace Nikse.SubtitleEdit.Forms
int endIndex = -1; int endIndex = -1;
int minIndex = 0; int minIndex = 0;
int maxIndex; int maxIndex;
List<int> syncIndices = new List<int>(); List<int> syncIndices = new List<int>();
foreach (KeyValuePair<int, TimeSpan> kvp in _syncronizationPoints) foreach (KeyValuePair<int, TimeSpan> kvp in _syncronizationPoints)
syncIndices.Add(kvp.Key); syncIndices.Add(kvp.Key);
for (int i = 0; i < syncIndices.Count; i++) for (int i = 0; i < syncIndices.Count; i++)
{ {
if (i == 0) if (i == 0)
{ {
endIndex = syncIndices[i]; endIndex = syncIndices[i];
@ -318,7 +318,7 @@ namespace Nikse.SubtitleEdit.Forms
private void listBoxSyncPoints_SelectedIndexChanged(object sender, EventArgs e) private void listBoxSyncPoints_SelectedIndexChanged(object sender, EventArgs e)
{ {
if (listBoxSyncPoints.SelectedIndex >= 0) if (listBoxSyncPoints.SelectedIndex >= 0)
{ {
ListBoxSyncPoint item = (ListBoxSyncPoint) listBoxSyncPoints.Items[listBoxSyncPoints.SelectedIndex]; ListBoxSyncPoint item = (ListBoxSyncPoint) listBoxSyncPoints.Items[listBoxSyncPoints.SelectedIndex];
SubtitleListview1.SelectIndexAndEnsureVisible(item.Index); SubtitleListview1.SelectIndexAndEnsureVisible(item.Index);
} }
@ -327,7 +327,7 @@ namespace Nikse.SubtitleEdit.Forms
private void SubtitleListview1_MouseDoubleClick(object sender, MouseEventArgs e) private void SubtitleListview1_MouseDoubleClick(object sender, MouseEventArgs e)
{ {
if (SubtitleListview1.SelectedItems.Count == 1) if (SubtitleListview1.SelectedItems.Count == 1)
{ {
int index = SubtitleListview1.SelectedItems[0].Index; int index = SubtitleListview1.SelectedItems[0].Index;
if (_syncronizationPoints.ContainsKey(index)) if (_syncronizationPoints.ContainsKey(index))
buttonRemoveSyncPoint_Click(null, null); buttonRemoveSyncPoint_Click(null, null);

View File

@ -32,18 +32,18 @@
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.richTextBoxMessage = new System.Windows.Forms.RichTextBox(); this.richTextBoxMessage = new System.Windows.Forms.RichTextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelTitle // labelTitle
// //
this.labelTitle.AutoSize = true; this.labelTitle.AutoSize = true;
this.labelTitle.Location = new System.Drawing.Point(15, 25); this.labelTitle.Location = new System.Drawing.Point(15, 25);
this.labelTitle.Name = "labelTitle"; this.labelTitle.Name = "labelTitle";
this.labelTitle.Size = new System.Drawing.Size(114, 13); this.labelTitle.Size = new System.Drawing.Size(114, 13);
this.labelTitle.TabIndex = 0; this.labelTitle.TabIndex = 0;
this.labelTitle.Text = "Unknown subtitle type"; this.labelTitle.Text = "Unknown subtitle type";
// //
// buttonOK // buttonOK
// //
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(262, 115); this.buttonOK.Location = new System.Drawing.Point(262, 115);
@ -52,9 +52,9 @@
this.buttonOK.TabIndex = 8; this.buttonOK.TabIndex = 8;
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
// //
// richTextBoxMessage // richTextBoxMessage
// //
this.richTextBoxMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.richTextBoxMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.richTextBoxMessage.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBoxMessage.BorderStyle = System.Windows.Forms.BorderStyle.None;
@ -67,9 +67,9 @@
this.richTextBoxMessage.TabStop = false; this.richTextBoxMessage.TabStop = false;
this.richTextBoxMessage.Text = "If you want this fixed please send an email to mailto:niksedk@gmail.com and inclu" + this.richTextBoxMessage.Text = "If you want this fixed please send an email to mailto:niksedk@gmail.com and inclu" +
"de a copy of the subtitle."; "de a copy of the subtitle.";
// //
// UnknownSubtitle // UnknownSubtitle
// //
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(349, 148); this.ClientSize = new System.Drawing.Size(349, 148);

View File

@ -30,17 +30,17 @@
{ {
this.panelContainer = new System.Windows.Forms.Panel(); this.panelContainer = new System.Windows.Forms.Panel();
this.SuspendLayout(); this.SuspendLayout();
// //
// panelContainer // panelContainer
// //
this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelContainer.Location = new System.Drawing.Point(0, 0); this.panelContainer.Location = new System.Drawing.Point(0, 0);
this.panelContainer.Name = "panelContainer"; this.panelContainer.Name = "panelContainer";
this.panelContainer.Size = new System.Drawing.Size(458, 311); this.panelContainer.Size = new System.Drawing.Size(458, 311);
this.panelContainer.TabIndex = 2; this.panelContainer.TabIndex = 2;
// //
// VideoControlsUndocked // VideoControlsUndocked
// //
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(458, 311); this.ClientSize = new System.Drawing.Size(458, 311);

View File

@ -34,9 +34,9 @@
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox1.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)));
@ -47,9 +47,9 @@
this.groupBox1.TabIndex = 0; this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Error message"; this.groupBox1.Text = "Error message";
// //
// textBoxError // textBoxError
// //
this.textBoxError.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.textBoxError.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)));
@ -59,9 +59,9 @@
this.textBoxError.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxError.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxError.Size = new System.Drawing.Size(661, 134); this.textBoxError.Size = new System.Drawing.Size(661, 134);
this.textBoxError.TabIndex = 0; this.textBoxError.TabIndex = 0;
// //
// richTextBoxMessage // richTextBoxMessage
// //
this.richTextBoxMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.richTextBoxMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.richTextBoxMessage.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBoxMessage.BorderStyle = System.Windows.Forms.BorderStyle.None;
@ -73,9 +73,9 @@
this.richTextBoxMessage.TabIndex = 1; this.richTextBoxMessage.TabIndex = 1;
this.richTextBoxMessage.Text = ""; this.richTextBoxMessage.Text = "";
this.richTextBoxMessage.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBoxMessage_LinkClicked); this.richTextBoxMessage.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBoxMessage_LinkClicked);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -85,9 +85,9 @@
this.buttonCancel.TabIndex = 11; this.buttonCancel.TabIndex = 11;
this.buttonCancel.Text = "&OK"; this.buttonCancel.Text = "&OK";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// VideoError // VideoError
// //
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(699, 503); this.ClientSize = new System.Drawing.Size(699, 503);

View File

@ -132,10 +132,10 @@ namespace Nikse.SubtitleEdit.Forms
textBoxError.Text = "Message: " + exception.Message + Environment.NewLine + textBoxError.Text = "Message: " + exception.Message + Environment.NewLine +
"Source: " + exception.Source + Environment.NewLine + "Source: " + exception.Source + Environment.NewLine +
Environment.NewLine + Environment.NewLine +
"StackTrace: " + Environment.NewLine + "StackTrace: " + Environment.NewLine +
exception.StackTrace; exception.StackTrace;
} }
Text += fileName; Text += fileName;
} }
private void VideoError_KeyDown(object sender, KeyEventArgs e) private void VideoError_KeyDown(object sender, KeyEventArgs e)

View File

@ -30,18 +30,18 @@
{ {
this.panelContainer = new System.Windows.Forms.Panel(); this.panelContainer = new System.Windows.Forms.Panel();
this.SuspendLayout(); this.SuspendLayout();
// //
// panelContainer // panelContainer
// //
this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelContainer.Location = new System.Drawing.Point(0, 0); this.panelContainer.Location = new System.Drawing.Point(0, 0);
this.panelContainer.Margin = new System.Windows.Forms.Padding(0); this.panelContainer.Margin = new System.Windows.Forms.Padding(0);
this.panelContainer.Name = "panelContainer"; this.panelContainer.Name = "panelContainer";
this.panelContainer.Size = new System.Drawing.Size(614, 323); this.panelContainer.Size = new System.Drawing.Size(614, 323);
this.panelContainer.TabIndex = 0; this.panelContainer.TabIndex = 0;
// //
// VideoPlayerUnDocked // VideoPlayerUnDocked
// //
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(614, 323); this.ClientSize = new System.Drawing.Size(614, 323);

View File

@ -36,13 +36,13 @@ namespace Nikse.SubtitleEdit.Forms
private void VideoPlayerUnDocked_FormClosing(object sender, FormClosingEventArgs e) private void VideoPlayerUnDocked_FormClosing(object sender, FormClosingEventArgs e)
{ {
if (e.CloseReason == CloseReason.UserClosing && panelContainer.Controls.Count > 0) if (e.CloseReason == CloseReason.UserClosing && panelContainer.Controls.Count > 0)
{ {
var control = panelContainer.Controls[0]; var control = panelContainer.Controls[0];
panelContainer.Controls.Clear(); panelContainer.Controls.Clear();
_mainForm.ReDockVideoPlayer(control); _mainForm.ReDockVideoPlayer(control);
_mainForm.SetVideoPlayerToggleOff(); _mainForm.SetVideoPlayerToggleOff();
} }
_positionsAndSizes.SavePositionAndSize(this); _positionsAndSizes.SavePositionAndSize(this);
} }
private void VideoPlayerUnDocked_KeyDown(object sender, KeyEventArgs e) private void VideoPlayerUnDocked_KeyDown(object sender, KeyEventArgs e)
@ -71,7 +71,7 @@ namespace Nikse.SubtitleEdit.Forms
_mainForm.redockVideoControlsToolStripMenuItem_Click(null, null); _mainForm.redockVideoControlsToolStripMenuItem_Click(null, null);
e.SuppressKeyPress = true; e.SuppressKeyPress = true;
} }
else else
{ {
_mainForm.Main_KeyDown(sender, e); _mainForm.Main_KeyDown(sender, e);
} }

View File

@ -65,9 +65,9 @@ namespace Nikse.SubtitleEdit.Forms
this.panelControlsEnd.SuspendLayout(); this.panelControlsEnd.SuspendLayout();
this.groupBoxMovieInfo.SuspendLayout(); this.groupBoxMovieInfo.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonOpenMovie // buttonOpenMovie
// //
this.buttonOpenMovie.Location = new System.Drawing.Point(12, 12); this.buttonOpenMovie.Location = new System.Drawing.Point(12, 12);
this.buttonOpenMovie.Name = "buttonOpenMovie"; this.buttonOpenMovie.Name = "buttonOpenMovie";
this.buttonOpenMovie.Size = new System.Drawing.Size(100, 21); this.buttonOpenMovie.Size = new System.Drawing.Size(100, 21);
@ -75,14 +75,14 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOpenMovie.Text = "Open movie..."; this.buttonOpenMovie.Text = "Open movie...";
this.buttonOpenMovie.UseVisualStyleBackColor = true; this.buttonOpenMovie.UseVisualStyleBackColor = true;
this.buttonOpenMovie.Click += new System.EventHandler(this.ButtonOpenMovieClick); this.buttonOpenMovie.Click += new System.EventHandler(this.ButtonOpenMovieClick);
// //
// timer1 // timer1
// //
this.timer1.Interval = 50; this.timer1.Interval = 50;
this.timer1.Tick += new System.EventHandler(this.Timer1Tick); this.timer1.Tick += new System.EventHandler(this.Timer1Tick);
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOK.Location = new System.Drawing.Point(749, 498); this.buttonOK.Location = new System.Drawing.Point(749, 498);
@ -92,9 +92,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// //
// groupBoxStartScene // groupBoxStartScene
// //
this.groupBoxStartScene.Controls.Add(this.MediaPlayerStart); this.groupBoxStartScene.Controls.Add(this.MediaPlayerStart);
this.groupBoxStartScene.Controls.Add(this.panelControlsStart); this.groupBoxStartScene.Controls.Add(this.panelControlsStart);
this.groupBoxStartScene.Location = new System.Drawing.Point(12, 65); this.groupBoxStartScene.Location = new System.Drawing.Point(12, 65);
@ -104,9 +104,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxStartScene.TabStop = false; this.groupBoxStartScene.TabStop = false;
this.groupBoxStartScene.Text = "Start scene"; this.groupBoxStartScene.Text = "Start scene";
this.groupBoxStartScene.Enter += new System.EventHandler(this.GroupBoxStartSceneEnter); this.groupBoxStartScene.Enter += new System.EventHandler(this.GroupBoxStartSceneEnter);
// //
// MediaPlayerStart // MediaPlayerStart
// //
this.MediaPlayerStart.BackColor = System.Drawing.Color.Black; this.MediaPlayerStart.BackColor = System.Drawing.Color.Black;
this.MediaPlayerStart.CurrentPosition = 0D; this.MediaPlayerStart.CurrentPosition = 0D;
this.MediaPlayerStart.Location = new System.Drawing.Point(6, 34); this.MediaPlayerStart.Location = new System.Drawing.Point(6, 34);
@ -118,9 +118,9 @@ namespace Nikse.SubtitleEdit.Forms
this.MediaPlayerStart.VideoPlayer = null; this.MediaPlayerStart.VideoPlayer = null;
this.MediaPlayerStart.Volume = 0D; this.MediaPlayerStart.Volume = 0D;
this.MediaPlayerStart.OnButtonClicked += new System.EventHandler(this.MediaPlayerStart_OnButtonClicked); this.MediaPlayerStart.OnButtonClicked += new System.EventHandler(this.MediaPlayerStart_OnButtonClicked);
// //
// panelControlsStart // panelControlsStart
// //
this.panelControlsStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelControlsStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.panelControlsStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelControlsStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelControlsStart.Controls.Add(this.buttonStartVerify); this.panelControlsStart.Controls.Add(this.buttonStartVerify);
@ -133,9 +133,9 @@ namespace Nikse.SubtitleEdit.Forms
this.panelControlsStart.Name = "panelControlsStart"; this.panelControlsStart.Name = "panelControlsStart";
this.panelControlsStart.Size = new System.Drawing.Size(438, 68); this.panelControlsStart.Size = new System.Drawing.Size(438, 68);
this.panelControlsStart.TabIndex = 1; this.panelControlsStart.TabIndex = 1;
// //
// buttonStartVerify // buttonStartVerify
// //
this.buttonStartVerify.Location = new System.Drawing.Point(138, 37); this.buttonStartVerify.Location = new System.Drawing.Point(138, 37);
this.buttonStartVerify.Name = "buttonStartVerify"; this.buttonStartVerify.Name = "buttonStartVerify";
this.buttonStartVerify.Size = new System.Drawing.Size(119, 21); this.buttonStartVerify.Size = new System.Drawing.Size(119, 21);
@ -143,9 +143,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonStartVerify.Text = "Play 2 secs and back"; this.buttonStartVerify.Text = "Play 2 secs and back";
this.buttonStartVerify.UseVisualStyleBackColor = true; this.buttonStartVerify.UseVisualStyleBackColor = true;
this.buttonStartVerify.Click += new System.EventHandler(this.ButtonStartVerifyClick); this.buttonStartVerify.Click += new System.EventHandler(this.ButtonStartVerifyClick);
// //
// buttonGotoStartSubtitlePosition // buttonGotoStartSubtitlePosition
// //
this.buttonGotoStartSubtitlePosition.Location = new System.Drawing.Point(263, 37); this.buttonGotoStartSubtitlePosition.Location = new System.Drawing.Point(263, 37);
this.buttonGotoStartSubtitlePosition.Name = "buttonGotoStartSubtitlePosition"; this.buttonGotoStartSubtitlePosition.Name = "buttonGotoStartSubtitlePosition";
this.buttonGotoStartSubtitlePosition.Size = new System.Drawing.Size(90, 21); this.buttonGotoStartSubtitlePosition.Size = new System.Drawing.Size(90, 21);
@ -153,9 +153,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonGotoStartSubtitlePosition.Text = "Goto sub pos"; this.buttonGotoStartSubtitlePosition.Text = "Goto sub pos";
this.buttonGotoStartSubtitlePosition.UseVisualStyleBackColor = true; this.buttonGotoStartSubtitlePosition.UseVisualStyleBackColor = true;
this.buttonGotoStartSubtitlePosition.Click += new System.EventHandler(this.ButtonGotoStartSubtitlePositionClick); this.buttonGotoStartSubtitlePosition.Click += new System.EventHandler(this.ButtonGotoStartSubtitlePositionClick);
// //
// buttonFindTextStart // buttonFindTextStart
// //
this.buttonFindTextStart.Location = new System.Drawing.Point(359, 37); this.buttonFindTextStart.Location = new System.Drawing.Point(359, 37);
this.buttonFindTextStart.Name = "buttonFindTextStart"; this.buttonFindTextStart.Name = "buttonFindTextStart";
this.buttonFindTextStart.Size = new System.Drawing.Size(70, 21); this.buttonFindTextStart.Size = new System.Drawing.Size(70, 21);
@ -163,9 +163,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFindTextStart.Text = "Find text..."; this.buttonFindTextStart.Text = "Find text...";
this.buttonFindTextStart.UseVisualStyleBackColor = true; this.buttonFindTextStart.UseVisualStyleBackColor = true;
this.buttonFindTextStart.Click += new System.EventHandler(this.ButtonFindTextStartClick); this.buttonFindTextStart.Click += new System.EventHandler(this.ButtonFindTextStartClick);
// //
// buttonStartThreeSecondsBack // buttonStartThreeSecondsBack
// //
this.buttonStartThreeSecondsBack.Location = new System.Drawing.Point(6, 37); this.buttonStartThreeSecondsBack.Location = new System.Drawing.Point(6, 37);
this.buttonStartThreeSecondsBack.Name = "buttonStartThreeSecondsBack"; this.buttonStartThreeSecondsBack.Name = "buttonStartThreeSecondsBack";
this.buttonStartThreeSecondsBack.Size = new System.Drawing.Size(60, 21); this.buttonStartThreeSecondsBack.Size = new System.Drawing.Size(60, 21);
@ -173,9 +173,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonStartThreeSecondsBack.Text = "< 3 secs"; this.buttonStartThreeSecondsBack.Text = "< 3 secs";
this.buttonStartThreeSecondsBack.UseVisualStyleBackColor = true; this.buttonStartThreeSecondsBack.UseVisualStyleBackColor = true;
this.buttonStartThreeSecondsBack.Click += new System.EventHandler(this.ButtonStartThreeSecondsBackClick); this.buttonStartThreeSecondsBack.Click += new System.EventHandler(this.ButtonStartThreeSecondsBackClick);
// //
// buttonStartHalfASecondBack // buttonStartHalfASecondBack
// //
this.buttonStartHalfASecondBack.Location = new System.Drawing.Point(72, 37); this.buttonStartHalfASecondBack.Location = new System.Drawing.Point(72, 37);
this.buttonStartHalfASecondBack.Name = "buttonStartHalfASecondBack"; this.buttonStartHalfASecondBack.Name = "buttonStartHalfASecondBack";
this.buttonStartHalfASecondBack.Size = new System.Drawing.Size(60, 21); this.buttonStartHalfASecondBack.Size = new System.Drawing.Size(60, 21);
@ -183,18 +183,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonStartHalfASecondBack.Text = "< ½ sec"; this.buttonStartHalfASecondBack.Text = "< ½ sec";
this.buttonStartHalfASecondBack.UseVisualStyleBackColor = true; this.buttonStartHalfASecondBack.UseVisualStyleBackColor = true;
this.buttonStartHalfASecondBack.Click += new System.EventHandler(this.ButtonStartHalfASecondBackClick); this.buttonStartHalfASecondBack.Click += new System.EventHandler(this.ButtonStartHalfASecondBackClick);
// //
// comboBoxStartTexts // comboBoxStartTexts
// //
this.comboBoxStartTexts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxStartTexts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxStartTexts.FormattingEnabled = true; this.comboBoxStartTexts.FormattingEnabled = true;
this.comboBoxStartTexts.Location = new System.Drawing.Point(7, 10); this.comboBoxStartTexts.Location = new System.Drawing.Point(7, 10);
this.comboBoxStartTexts.Name = "comboBoxStartTexts"; this.comboBoxStartTexts.Name = "comboBoxStartTexts";
this.comboBoxStartTexts.Size = new System.Drawing.Size(422, 21); this.comboBoxStartTexts.Size = new System.Drawing.Size(422, 21);
this.comboBoxStartTexts.TabIndex = 0; this.comboBoxStartTexts.TabIndex = 0;
// //
// groupBoxEndScene // groupBoxEndScene
// //
this.groupBoxEndScene.Controls.Add(this.MediaPlayerEnd); this.groupBoxEndScene.Controls.Add(this.MediaPlayerEnd);
this.groupBoxEndScene.Controls.Add(this.panelControlsEnd); this.groupBoxEndScene.Controls.Add(this.panelControlsEnd);
this.groupBoxEndScene.Location = new System.Drawing.Point(468, 65); this.groupBoxEndScene.Location = new System.Drawing.Point(468, 65);
@ -204,9 +204,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxEndScene.TabStop = false; this.groupBoxEndScene.TabStop = false;
this.groupBoxEndScene.Text = "End scene"; this.groupBoxEndScene.Text = "End scene";
this.groupBoxEndScene.Enter += new System.EventHandler(this.GroupBoxEndSceneEnter); this.groupBoxEndScene.Enter += new System.EventHandler(this.GroupBoxEndSceneEnter);
// //
// MediaPlayerEnd // MediaPlayerEnd
// //
this.MediaPlayerEnd.BackColor = System.Drawing.Color.Black; this.MediaPlayerEnd.BackColor = System.Drawing.Color.Black;
this.MediaPlayerEnd.CurrentPosition = 0D; this.MediaPlayerEnd.CurrentPosition = 0D;
this.MediaPlayerEnd.Location = new System.Drawing.Point(6, 34); this.MediaPlayerEnd.Location = new System.Drawing.Point(6, 34);
@ -218,9 +218,9 @@ namespace Nikse.SubtitleEdit.Forms
this.MediaPlayerEnd.VideoPlayer = null; this.MediaPlayerEnd.VideoPlayer = null;
this.MediaPlayerEnd.Volume = 0D; this.MediaPlayerEnd.Volume = 0D;
this.MediaPlayerEnd.OnButtonClicked += new System.EventHandler(this.MediaPlayerEnd_OnButtonClicked); this.MediaPlayerEnd.OnButtonClicked += new System.EventHandler(this.MediaPlayerEnd_OnButtonClicked);
// //
// panelControlsEnd // panelControlsEnd
// //
this.panelControlsEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelControlsEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.panelControlsEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelControlsEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelControlsEnd.Controls.Add(this.buttonEndVerify); this.panelControlsEnd.Controls.Add(this.buttonEndVerify);
@ -233,9 +233,9 @@ namespace Nikse.SubtitleEdit.Forms
this.panelControlsEnd.Name = "panelControlsEnd"; this.panelControlsEnd.Name = "panelControlsEnd";
this.panelControlsEnd.Size = new System.Drawing.Size(438, 68); this.panelControlsEnd.Size = new System.Drawing.Size(438, 68);
this.panelControlsEnd.TabIndex = 1; this.panelControlsEnd.TabIndex = 1;
// //
// buttonEndVerify // buttonEndVerify
// //
this.buttonEndVerify.Location = new System.Drawing.Point(139, 37); this.buttonEndVerify.Location = new System.Drawing.Point(139, 37);
this.buttonEndVerify.Name = "buttonEndVerify"; this.buttonEndVerify.Name = "buttonEndVerify";
this.buttonEndVerify.Size = new System.Drawing.Size(118, 21); this.buttonEndVerify.Size = new System.Drawing.Size(118, 21);
@ -243,9 +243,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonEndVerify.Text = "Play 2 secs and back"; this.buttonEndVerify.Text = "Play 2 secs and back";
this.buttonEndVerify.UseVisualStyleBackColor = true; this.buttonEndVerify.UseVisualStyleBackColor = true;
this.buttonEndVerify.Click += new System.EventHandler(this.ButtonEndVerifyClick); this.buttonEndVerify.Click += new System.EventHandler(this.ButtonEndVerifyClick);
// //
// buttonGotoEndSubtitlePosition // buttonGotoEndSubtitlePosition
// //
this.buttonGotoEndSubtitlePosition.Location = new System.Drawing.Point(263, 37); this.buttonGotoEndSubtitlePosition.Location = new System.Drawing.Point(263, 37);
this.buttonGotoEndSubtitlePosition.Name = "buttonGotoEndSubtitlePosition"; this.buttonGotoEndSubtitlePosition.Name = "buttonGotoEndSubtitlePosition";
this.buttonGotoEndSubtitlePosition.Size = new System.Drawing.Size(90, 21); this.buttonGotoEndSubtitlePosition.Size = new System.Drawing.Size(90, 21);
@ -253,9 +253,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonGotoEndSubtitlePosition.Text = "Goto sub pos"; this.buttonGotoEndSubtitlePosition.Text = "Goto sub pos";
this.buttonGotoEndSubtitlePosition.UseVisualStyleBackColor = true; this.buttonGotoEndSubtitlePosition.UseVisualStyleBackColor = true;
this.buttonGotoEndSubtitlePosition.Click += new System.EventHandler(this.ButtonGotoEndSubtitlePositionClick); this.buttonGotoEndSubtitlePosition.Click += new System.EventHandler(this.ButtonGotoEndSubtitlePositionClick);
// //
// buttonFindTextEnd // buttonFindTextEnd
// //
this.buttonFindTextEnd.Location = new System.Drawing.Point(359, 37); this.buttonFindTextEnd.Location = new System.Drawing.Point(359, 37);
this.buttonFindTextEnd.Name = "buttonFindTextEnd"; this.buttonFindTextEnd.Name = "buttonFindTextEnd";
this.buttonFindTextEnd.Size = new System.Drawing.Size(70, 21); this.buttonFindTextEnd.Size = new System.Drawing.Size(70, 21);
@ -263,9 +263,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonFindTextEnd.Text = "Find text..."; this.buttonFindTextEnd.Text = "Find text...";
this.buttonFindTextEnd.UseVisualStyleBackColor = true; this.buttonFindTextEnd.UseVisualStyleBackColor = true;
this.buttonFindTextEnd.Click += new System.EventHandler(this.ButtonFindTextEndClick); this.buttonFindTextEnd.Click += new System.EventHandler(this.ButtonFindTextEndClick);
// //
// buttonThreeSecondsBack // buttonThreeSecondsBack
// //
this.buttonThreeSecondsBack.Location = new System.Drawing.Point(7, 37); this.buttonThreeSecondsBack.Location = new System.Drawing.Point(7, 37);
this.buttonThreeSecondsBack.Name = "buttonThreeSecondsBack"; this.buttonThreeSecondsBack.Name = "buttonThreeSecondsBack";
this.buttonThreeSecondsBack.Size = new System.Drawing.Size(60, 21); this.buttonThreeSecondsBack.Size = new System.Drawing.Size(60, 21);
@ -273,9 +273,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonThreeSecondsBack.Text = "< 3 secs"; this.buttonThreeSecondsBack.Text = "< 3 secs";
this.buttonThreeSecondsBack.UseVisualStyleBackColor = true; this.buttonThreeSecondsBack.UseVisualStyleBackColor = true;
this.buttonThreeSecondsBack.Click += new System.EventHandler(this.ButtonThreeSecondsBackClick); this.buttonThreeSecondsBack.Click += new System.EventHandler(this.ButtonThreeSecondsBackClick);
// //
// buttonEndHalfASecondBack // buttonEndHalfASecondBack
// //
this.buttonEndHalfASecondBack.Location = new System.Drawing.Point(73, 37); this.buttonEndHalfASecondBack.Location = new System.Drawing.Point(73, 37);
this.buttonEndHalfASecondBack.Name = "buttonEndHalfASecondBack"; this.buttonEndHalfASecondBack.Name = "buttonEndHalfASecondBack";
this.buttonEndHalfASecondBack.Size = new System.Drawing.Size(60, 21); this.buttonEndHalfASecondBack.Size = new System.Drawing.Size(60, 21);
@ -283,18 +283,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonEndHalfASecondBack.Text = "< ½ sec"; this.buttonEndHalfASecondBack.Text = "< ½ sec";
this.buttonEndHalfASecondBack.UseVisualStyleBackColor = true; this.buttonEndHalfASecondBack.UseVisualStyleBackColor = true;
this.buttonEndHalfASecondBack.Click += new System.EventHandler(this.ButtonEndHalfASecondBackClick); this.buttonEndHalfASecondBack.Click += new System.EventHandler(this.ButtonEndHalfASecondBackClick);
// //
// comboBoxEndTexts // comboBoxEndTexts
// //
this.comboBoxEndTexts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxEndTexts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxEndTexts.FormattingEnabled = true; this.comboBoxEndTexts.FormattingEnabled = true;
this.comboBoxEndTexts.Location = new System.Drawing.Point(7, 10); this.comboBoxEndTexts.Location = new System.Drawing.Point(7, 10);
this.comboBoxEndTexts.Name = "comboBoxEndTexts"; this.comboBoxEndTexts.Name = "comboBoxEndTexts";
this.comboBoxEndTexts.Size = new System.Drawing.Size(422, 21); this.comboBoxEndTexts.Size = new System.Drawing.Size(422, 21);
this.comboBoxEndTexts.TabIndex = 0; this.comboBoxEndTexts.TabIndex = 0;
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(830, 498); this.buttonCancel.Location = new System.Drawing.Point(830, 498);
@ -303,18 +303,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.TabIndex = 4; this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// labelVideoInfo // labelVideoInfo
// //
this.labelVideoInfo.AutoSize = true; this.labelVideoInfo.AutoSize = true;
this.labelVideoInfo.Location = new System.Drawing.Point(6, 16); this.labelVideoInfo.Location = new System.Drawing.Point(6, 16);
this.labelVideoInfo.Name = "labelVideoInfo"; this.labelVideoInfo.Name = "labelVideoInfo";
this.labelVideoInfo.Size = new System.Drawing.Size(84, 13); this.labelVideoInfo.Size = new System.Drawing.Size(84, 13);
this.labelVideoInfo.TabIndex = 13; this.labelVideoInfo.TabIndex = 13;
this.labelVideoInfo.Text = "No video loaded"; this.labelVideoInfo.Text = "No video loaded";
// //
// groupBoxMovieInfo // groupBoxMovieInfo
// //
this.groupBoxMovieInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxMovieInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxMovieInfo.Controls.Add(this.labelVideoInfo); this.groupBoxMovieInfo.Controls.Add(this.labelVideoInfo);
@ -324,9 +324,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxMovieInfo.TabIndex = 14; this.groupBoxMovieInfo.TabIndex = 14;
this.groupBoxMovieInfo.TabStop = false; this.groupBoxMovieInfo.TabStop = false;
this.groupBoxMovieInfo.Text = "Movie info"; this.groupBoxMovieInfo.Text = "Movie info";
// //
// buttonSync // buttonSync
// //
this.buttonSync.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonSync.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonSync.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonSync.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSync.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonSync.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -337,13 +337,13 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonSync.Text = "Sync!"; this.buttonSync.Text = "Sync!";
this.buttonSync.UseVisualStyleBackColor = true; this.buttonSync.UseVisualStyleBackColor = true;
this.buttonSync.Click += new System.EventHandler(this.ButtonSyncClick); this.buttonSync.Click += new System.EventHandler(this.ButtonSyncClick);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// labelTip // labelTip
// //
this.labelTip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelTip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelTip.AutoSize = true; this.labelTip.AutoSize = true;
this.labelTip.ForeColor = System.Drawing.Color.Gray; this.labelTip.ForeColor = System.Drawing.Color.Gray;
@ -352,13 +352,13 @@ namespace Nikse.SubtitleEdit.Forms
this.labelTip.Size = new System.Drawing.Size(332, 13); this.labelTip.Size = new System.Drawing.Size(332, 13);
this.labelTip.TabIndex = 15; this.labelTip.TabIndex = 15;
this.labelTip.Text = "Tip: Use <ctrl+arrow left/right> keys to move 100 ms back/forward"; this.labelTip.Text = "Tip: Use <ctrl+arrow left/right> keys to move 100 ms back/forward";
// //
// timerProgressBarRefresh // timerProgressBarRefresh
// //
this.timerProgressBarRefresh.Tick += new System.EventHandler(this.timerProgressBarRefresh_Tick); this.timerProgressBarRefresh.Tick += new System.EventHandler(this.timerProgressBarRefresh_Tick);
// //
// VisualSync // VisualSync
// //
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(927, 525); this.ClientSize = new System.Drawing.Size(927, 525);

Some files were not shown because too many files have changed in this diff Show More