mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Added some extra options to batch-convert
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1639 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
d731d5dfb5
commit
3bfffbdd1e
208
src/Forms/BatchConvert.Designer.cs
generated
208
src/Forms/BatchConvert.Designer.cs
generated
@ -28,15 +28,26 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.buttonConvert = new System.Windows.Forms.Button();
|
||||
this.buttonCancel = new System.Windows.Forms.Button();
|
||||
this.groupBoxConvertOptions = new System.Windows.Forms.GroupBox();
|
||||
this.checkBoxFixAloneLowercaseI = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxChangeFrameRate = new System.Windows.Forms.GroupBox();
|
||||
this.comboBoxFrameRateTo = new System.Windows.Forms.ComboBox();
|
||||
this.labelToFrameRate = new System.Windows.Forms.Label();
|
||||
this.comboBoxFrameRateFrom = new System.Windows.Forms.ComboBox();
|
||||
this.labelFromFrameRate = new System.Windows.Forms.Label();
|
||||
this.groupBoxOffsetTimeCodes = new System.Windows.Forms.GroupBox();
|
||||
this.timeUpDownAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.labelHoursMinSecsMilliSecs = new System.Windows.Forms.Label();
|
||||
this.checkBoxFixItalics = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxFixCasing = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxRemoveTextForHI = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxRemoveFormatting = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxBreakLongLines = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxOutput = new System.Windows.Forms.GroupBox();
|
||||
this.linkLabelOpenOutputFolder = new System.Windows.Forms.LinkLabel();
|
||||
this.buttonStyles = new System.Windows.Forms.Button();
|
||||
this.checkBoxOverwrite = new System.Windows.Forms.CheckBox();
|
||||
this.comboBoxSubtitleFormats = new System.Windows.Forms.ComboBox();
|
||||
@ -54,19 +65,24 @@
|
||||
this.columnHeaderSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderFormat = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderStatus = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.contextMenuStripFiles = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.buttonOpenOutputFolder = new System.Windows.Forms.Button();
|
||||
this.groupBoxConvertOptions.SuspendLayout();
|
||||
this.groupBoxChangeFrameRate.SuspendLayout();
|
||||
this.groupBoxOffsetTimeCodes.SuspendLayout();
|
||||
this.groupBoxOutput.SuspendLayout();
|
||||
this.groupBoxInput.SuspendLayout();
|
||||
this.contextMenuStripFiles.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonConvert
|
||||
//
|
||||
this.buttonConvert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonConvert.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.buttonConvert.Location = new System.Drawing.Point(782, 452);
|
||||
this.buttonConvert.Location = new System.Drawing.Point(857, 547);
|
||||
this.buttonConvert.Name = "buttonConvert";
|
||||
this.buttonConvert.Size = new System.Drawing.Size(98, 21);
|
||||
this.buttonConvert.TabIndex = 2;
|
||||
@ -78,7 +94,7 @@
|
||||
//
|
||||
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.Location = new System.Drawing.Point(886, 452);
|
||||
this.buttonCancel.Location = new System.Drawing.Point(961, 547);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
@ -90,18 +106,108 @@
|
||||
//
|
||||
this.groupBoxConvertOptions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxFixAloneLowercaseI);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.groupBoxChangeFrameRate);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.groupBoxOffsetTimeCodes);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxFixItalics);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxFixCasing);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxRemoveTextForHI);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxRemoveFormatting);
|
||||
this.groupBoxConvertOptions.Controls.Add(this.checkBoxBreakLongLines);
|
||||
this.groupBoxConvertOptions.Location = new System.Drawing.Point(702, 19);
|
||||
this.groupBoxConvertOptions.Location = new System.Drawing.Point(494, 19);
|
||||
this.groupBoxConvertOptions.Name = "groupBoxConvertOptions";
|
||||
this.groupBoxConvertOptions.Size = new System.Drawing.Size(241, 147);
|
||||
this.groupBoxConvertOptions.Size = new System.Drawing.Size(524, 193);
|
||||
this.groupBoxConvertOptions.TabIndex = 9;
|
||||
this.groupBoxConvertOptions.TabStop = false;
|
||||
this.groupBoxConvertOptions.Text = "Convert options";
|
||||
//
|
||||
// checkBoxFixAloneLowercaseI
|
||||
//
|
||||
this.checkBoxFixAloneLowercaseI.AutoSize = true;
|
||||
this.checkBoxFixAloneLowercaseI.Location = new System.Drawing.Point(16, 139);
|
||||
this.checkBoxFixAloneLowercaseI.Name = "checkBoxFixAloneLowercaseI";
|
||||
this.checkBoxFixAloneLowercaseI.Size = new System.Drawing.Size(193, 17);
|
||||
this.checkBoxFixAloneLowercaseI.TabIndex = 7;
|
||||
this.checkBoxFixAloneLowercaseI.Text = "Fix alone lowercase \'i\' to \'I\' (English)";
|
||||
this.checkBoxFixAloneLowercaseI.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxChangeFrameRate
|
||||
//
|
||||
this.groupBoxChangeFrameRate.Controls.Add(this.comboBoxFrameRateTo);
|
||||
this.groupBoxChangeFrameRate.Controls.Add(this.labelToFrameRate);
|
||||
this.groupBoxChangeFrameRate.Controls.Add(this.comboBoxFrameRateFrom);
|
||||
this.groupBoxChangeFrameRate.Controls.Add(this.labelFromFrameRate);
|
||||
this.groupBoxChangeFrameRate.Location = new System.Drawing.Point(240, 12);
|
||||
this.groupBoxChangeFrameRate.Name = "groupBoxChangeFrameRate";
|
||||
this.groupBoxChangeFrameRate.Size = new System.Drawing.Size(279, 87);
|
||||
this.groupBoxChangeFrameRate.TabIndex = 6;
|
||||
this.groupBoxChangeFrameRate.TabStop = false;
|
||||
this.groupBoxChangeFrameRate.Text = "Change frame rate";
|
||||
//
|
||||
// comboBoxFrameRateTo
|
||||
//
|
||||
this.comboBoxFrameRateTo.FormattingEnabled = true;
|
||||
this.comboBoxFrameRateTo.Location = new System.Drawing.Point(150, 47);
|
||||
this.comboBoxFrameRateTo.Name = "comboBoxFrameRateTo";
|
||||
this.comboBoxFrameRateTo.Size = new System.Drawing.Size(121, 21);
|
||||
this.comboBoxFrameRateTo.TabIndex = 9;
|
||||
//
|
||||
// labelToFrameRate
|
||||
//
|
||||
this.labelToFrameRate.Location = new System.Drawing.Point(8, 47);
|
||||
this.labelToFrameRate.Name = "labelToFrameRate";
|
||||
this.labelToFrameRate.Size = new System.Drawing.Size(142, 17);
|
||||
this.labelToFrameRate.TabIndex = 12;
|
||||
this.labelToFrameRate.Text = "To frame rate";
|
||||
this.labelToFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// comboBoxFrameRateFrom
|
||||
//
|
||||
this.comboBoxFrameRateFrom.FormattingEnabled = true;
|
||||
this.comboBoxFrameRateFrom.Location = new System.Drawing.Point(150, 18);
|
||||
this.comboBoxFrameRateFrom.Name = "comboBoxFrameRateFrom";
|
||||
this.comboBoxFrameRateFrom.Size = new System.Drawing.Size(121, 21);
|
||||
this.comboBoxFrameRateFrom.TabIndex = 10;
|
||||
//
|
||||
// labelFromFrameRate
|
||||
//
|
||||
this.labelFromFrameRate.Location = new System.Drawing.Point(5, 18);
|
||||
this.labelFromFrameRate.Name = "labelFromFrameRate";
|
||||
this.labelFromFrameRate.Size = new System.Drawing.Size(145, 21);
|
||||
this.labelFromFrameRate.TabIndex = 11;
|
||||
this.labelFromFrameRate.Text = "From frame rate";
|
||||
this.labelFromFrameRate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// groupBoxOffsetTimeCodes
|
||||
//
|
||||
this.groupBoxOffsetTimeCodes.Controls.Add(this.timeUpDownAdjust);
|
||||
this.groupBoxOffsetTimeCodes.Controls.Add(this.labelHoursMinSecsMilliSecs);
|
||||
this.groupBoxOffsetTimeCodes.Location = new System.Drawing.Point(240, 105);
|
||||
this.groupBoxOffsetTimeCodes.Name = "groupBoxOffsetTimeCodes";
|
||||
this.groupBoxOffsetTimeCodes.Size = new System.Drawing.Size(279, 70);
|
||||
this.groupBoxOffsetTimeCodes.TabIndex = 5;
|
||||
this.groupBoxOffsetTimeCodes.TabStop = false;
|
||||
this.groupBoxOffsetTimeCodes.Text = "Offset time codes";
|
||||
//
|
||||
// timeUpDownAdjust
|
||||
//
|
||||
this.timeUpDownAdjust.AutoSize = true;
|
||||
this.timeUpDownAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownAdjust.Location = new System.Drawing.Point(7, 33);
|
||||
this.timeUpDownAdjust.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownAdjust.Name = "timeUpDownAdjust";
|
||||
this.timeUpDownAdjust.Size = new System.Drawing.Size(92, 24);
|
||||
this.timeUpDownAdjust.TabIndex = 23;
|
||||
//
|
||||
// labelHoursMinSecsMilliSecs
|
||||
//
|
||||
this.labelHoursMinSecsMilliSecs.AutoSize = true;
|
||||
this.labelHoursMinSecsMilliSecs.Location = new System.Drawing.Point(6, 16);
|
||||
this.labelHoursMinSecsMilliSecs.Name = "labelHoursMinSecsMilliSecs";
|
||||
this.labelHoursMinSecsMilliSecs.Size = new System.Drawing.Size(107, 13);
|
||||
this.labelHoursMinSecsMilliSecs.TabIndex = 22;
|
||||
this.labelHoursMinSecsMilliSecs.Text = "Hours:min:sec.msecs";
|
||||
//
|
||||
// checkBoxFixItalics
|
||||
//
|
||||
this.checkBoxFixItalics.AutoSize = true;
|
||||
@ -156,9 +262,9 @@
|
||||
//
|
||||
this.groupBoxOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxOutput.Controls.Add(this.linkLabelOpenOutputFolder);
|
||||
this.groupBoxOutput.Controls.Add(this.buttonStyles);
|
||||
this.groupBoxOutput.Controls.Add(this.checkBoxOverwrite);
|
||||
this.groupBoxOutput.Controls.Add(this.buttonOpenOutputFolder);
|
||||
this.groupBoxOutput.Controls.Add(this.comboBoxSubtitleFormats);
|
||||
this.groupBoxOutput.Controls.Add(this.labelEncoding);
|
||||
this.groupBoxOutput.Controls.Add(this.comboBoxEncoding);
|
||||
@ -167,23 +273,34 @@
|
||||
this.groupBoxOutput.Controls.Add(this.labelChooseOutputFolder);
|
||||
this.groupBoxOutput.Controls.Add(this.buttonChooseFolder);
|
||||
this.groupBoxOutput.Controls.Add(this.textBoxOutputFolder);
|
||||
this.groupBoxOutput.Location = new System.Drawing.Point(12, 267);
|
||||
this.groupBoxOutput.Location = new System.Drawing.Point(12, 316);
|
||||
this.groupBoxOutput.Name = "groupBoxOutput";
|
||||
this.groupBoxOutput.Size = new System.Drawing.Size(952, 172);
|
||||
this.groupBoxOutput.Size = new System.Drawing.Size(1027, 218);
|
||||
this.groupBoxOutput.TabIndex = 1;
|
||||
this.groupBoxOutput.TabStop = false;
|
||||
this.groupBoxOutput.Text = "Output";
|
||||
//
|
||||
// linkLabelOpenOutputFolder
|
||||
//
|
||||
this.linkLabelOpenOutputFolder.AutoSize = true;
|
||||
this.linkLabelOpenOutputFolder.Location = new System.Drawing.Point(434, 44);
|
||||
this.linkLabelOpenOutputFolder.Name = "linkLabelOpenOutputFolder";
|
||||
this.linkLabelOpenOutputFolder.Size = new System.Drawing.Size(42, 13);
|
||||
this.linkLabelOpenOutputFolder.TabIndex = 10;
|
||||
this.linkLabelOpenOutputFolder.TabStop = true;
|
||||
this.linkLabelOpenOutputFolder.Text = "Open...";
|
||||
this.linkLabelOpenOutputFolder.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabelOpenOutputFolderLinkClicked);
|
||||
//
|
||||
// buttonStyles
|
||||
//
|
||||
this.buttonStyles.Location = new System.Drawing.Point(326, 100);
|
||||
this.buttonStyles.Location = new System.Drawing.Point(311, 100);
|
||||
this.buttonStyles.Name = "buttonStyles";
|
||||
this.buttonStyles.Size = new System.Drawing.Size(116, 23);
|
||||
this.buttonStyles.TabIndex = 6;
|
||||
this.buttonStyles.Text = "Style...";
|
||||
this.buttonStyles.UseVisualStyleBackColor = true;
|
||||
this.buttonStyles.Visible = false;
|
||||
this.buttonStyles.Click += new System.EventHandler(this.buttonStyles_Click);
|
||||
this.buttonStyles.Click += new System.EventHandler(this.ButtonStylesClick);
|
||||
//
|
||||
// checkBoxOverwrite
|
||||
//
|
||||
@ -203,7 +320,7 @@
|
||||
this.comboBoxSubtitleFormats.Name = "comboBoxSubtitleFormats";
|
||||
this.comboBoxSubtitleFormats.Size = new System.Drawing.Size(225, 21);
|
||||
this.comboBoxSubtitleFormats.TabIndex = 5;
|
||||
this.comboBoxSubtitleFormats.SelectedIndexChanged += new System.EventHandler(this.comboBoxSubtitleFormats_SelectedIndexChanged);
|
||||
this.comboBoxSubtitleFormats.SelectedIndexChanged += new System.EventHandler(this.ComboBoxSubtitleFormatsSelectedIndexChanged);
|
||||
//
|
||||
// labelEncoding
|
||||
//
|
||||
@ -220,7 +337,7 @@
|
||||
this.comboBoxEncoding.FormattingEnabled = true;
|
||||
this.comboBoxEncoding.Location = new System.Drawing.Point(80, 134);
|
||||
this.comboBoxEncoding.Name = "comboBoxEncoding";
|
||||
this.comboBoxEncoding.Size = new System.Drawing.Size(221, 21);
|
||||
this.comboBoxEncoding.Size = new System.Drawing.Size(225, 21);
|
||||
this.comboBoxEncoding.TabIndex = 8;
|
||||
//
|
||||
// labelOutputFormat
|
||||
@ -243,7 +360,7 @@
|
||||
//
|
||||
// buttonChooseFolder
|
||||
//
|
||||
this.buttonChooseFolder.Location = new System.Drawing.Point(494, 39);
|
||||
this.buttonChooseFolder.Location = new System.Drawing.Point(402, 39);
|
||||
this.buttonChooseFolder.Name = "buttonChooseFolder";
|
||||
this.buttonChooseFolder.Size = new System.Drawing.Size(26, 23);
|
||||
this.buttonChooseFolder.TabIndex = 1;
|
||||
@ -255,7 +372,7 @@
|
||||
//
|
||||
this.textBoxOutputFolder.Location = new System.Drawing.Point(11, 41);
|
||||
this.textBoxOutputFolder.Name = "textBoxOutputFolder";
|
||||
this.textBoxOutputFolder.Size = new System.Drawing.Size(477, 20);
|
||||
this.textBoxOutputFolder.Size = new System.Drawing.Size(385, 20);
|
||||
this.textBoxOutputFolder.TabIndex = 0;
|
||||
//
|
||||
// groupBoxInput
|
||||
@ -268,7 +385,7 @@
|
||||
this.groupBoxInput.Controls.Add(this.listViewInputFiles);
|
||||
this.groupBoxInput.Location = new System.Drawing.Point(15, 12);
|
||||
this.groupBoxInput.Name = "groupBoxInput";
|
||||
this.groupBoxInput.Size = new System.Drawing.Size(949, 249);
|
||||
this.groupBoxInput.Size = new System.Drawing.Size(1024, 298);
|
||||
this.groupBoxInput.TabIndex = 0;
|
||||
this.groupBoxInput.TabStop = false;
|
||||
this.groupBoxInput.Text = "Input";
|
||||
@ -276,7 +393,7 @@
|
||||
// buttonInputBrowse
|
||||
//
|
||||
this.buttonInputBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonInputBrowse.Location = new System.Drawing.Point(914, 41);
|
||||
this.buttonInputBrowse.Location = new System.Drawing.Point(989, 41);
|
||||
this.buttonInputBrowse.Name = "buttonInputBrowse";
|
||||
this.buttonInputBrowse.Size = new System.Drawing.Size(26, 23);
|
||||
this.buttonInputBrowse.TabIndex = 5;
|
||||
@ -304,16 +421,18 @@
|
||||
this.columnHeaderSize,
|
||||
this.columnHeaderFormat,
|
||||
this.columnHeaderStatus});
|
||||
this.listViewInputFiles.ContextMenuStrip = this.contextMenuStripFiles;
|
||||
this.listViewInputFiles.FullRowSelect = true;
|
||||
this.listViewInputFiles.HideSelection = false;
|
||||
this.listViewInputFiles.Location = new System.Drawing.Point(6, 41);
|
||||
this.listViewInputFiles.Name = "listViewInputFiles";
|
||||
this.listViewInputFiles.Size = new System.Drawing.Size(903, 200);
|
||||
this.listViewInputFiles.Size = new System.Drawing.Size(978, 249);
|
||||
this.listViewInputFiles.TabIndex = 1;
|
||||
this.listViewInputFiles.UseCompatibleStateImageBehavior = false;
|
||||
this.listViewInputFiles.View = System.Windows.Forms.View.Details;
|
||||
this.listViewInputFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.listViewInputFiles_DragDrop);
|
||||
this.listViewInputFiles.DragEnter += new System.Windows.Forms.DragEventHandler(this.listViewInputFiles_DragEnter);
|
||||
this.listViewInputFiles.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewInputFilesKeyDown);
|
||||
//
|
||||
// columnHeaderFName
|
||||
//
|
||||
@ -335,32 +454,45 @@
|
||||
this.columnHeaderStatus.Text = "Status";
|
||||
this.columnHeaderStatus.Width = 124;
|
||||
//
|
||||
// contextMenuStripFiles
|
||||
//
|
||||
this.contextMenuStripFiles.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.removeToolStripMenuItem,
|
||||
this.removeAllToolStripMenuItem});
|
||||
this.contextMenuStripFiles.Name = "contextMenuStripStyles";
|
||||
this.contextMenuStripFiles.Size = new System.Drawing.Size(133, 48);
|
||||
this.contextMenuStripFiles.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripFilesOpening);
|
||||
//
|
||||
// removeToolStripMenuItem
|
||||
//
|
||||
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
|
||||
this.removeToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
|
||||
this.removeToolStripMenuItem.Text = "Remove";
|
||||
this.removeToolStripMenuItem.Click += new System.EventHandler(this.RemoveToolStripMenuItemClick);
|
||||
//
|
||||
// removeAllToolStripMenuItem
|
||||
//
|
||||
this.removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
|
||||
this.removeAllToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
|
||||
this.removeAllToolStripMenuItem.Text = "Remove all";
|
||||
this.removeAllToolStripMenuItem.Click += new System.EventHandler(this.RemoveAllToolStripMenuItemClick);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.FileName = "openFileDialog1";
|
||||
//
|
||||
// buttonOpenOutputFolder
|
||||
//
|
||||
this.buttonOpenOutputFolder.Location = new System.Drawing.Point(526, 39);
|
||||
this.buttonOpenOutputFolder.Name = "buttonOpenOutputFolder";
|
||||
this.buttonOpenOutputFolder.Size = new System.Drawing.Size(102, 23);
|
||||
this.buttonOpenOutputFolder.TabIndex = 2;
|
||||
this.buttonOpenOutputFolder.Text = "Open...";
|
||||
this.buttonOpenOutputFolder.UseVisualStyleBackColor = true;
|
||||
this.buttonOpenOutputFolder.Click += new System.EventHandler(this.buttonOpenOutputFolder_Click);
|
||||
//
|
||||
// BatchConvert
|
||||
//
|
||||
this.AllowDrop = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(973, 485);
|
||||
this.ClientSize = new System.Drawing.Size(1048, 580);
|
||||
this.Controls.Add(this.groupBoxOutput);
|
||||
this.Controls.Add(this.groupBoxInput);
|
||||
this.Controls.Add(this.buttonConvert);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.KeyPreview = true;
|
||||
this.MinimumSize = new System.Drawing.Size(900, 500);
|
||||
this.MinimumSize = new System.Drawing.Size(1024, 578);
|
||||
this.Name = "BatchConvert";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
@ -368,10 +500,14 @@
|
||||
this.Text = "Batch convert";
|
||||
this.groupBoxConvertOptions.ResumeLayout(false);
|
||||
this.groupBoxConvertOptions.PerformLayout();
|
||||
this.groupBoxChangeFrameRate.ResumeLayout(false);
|
||||
this.groupBoxOffsetTimeCodes.ResumeLayout(false);
|
||||
this.groupBoxOffsetTimeCodes.PerformLayout();
|
||||
this.groupBoxOutput.ResumeLayout(false);
|
||||
this.groupBoxOutput.PerformLayout();
|
||||
this.groupBoxInput.ResumeLayout(false);
|
||||
this.groupBoxInput.PerformLayout();
|
||||
this.contextMenuStripFiles.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -406,7 +542,19 @@
|
||||
private System.Windows.Forms.CheckBox checkBoxOverwrite;
|
||||
private System.Windows.Forms.Button buttonStyles;
|
||||
private System.Windows.Forms.CheckBox checkBoxFixItalics;
|
||||
private System.Windows.Forms.Button buttonOpenOutputFolder;
|
||||
private System.Windows.Forms.GroupBox groupBoxOffsetTimeCodes;
|
||||
private System.Windows.Forms.GroupBox groupBoxChangeFrameRate;
|
||||
private Controls.TimeUpDown timeUpDownAdjust;
|
||||
private System.Windows.Forms.Label labelHoursMinSecsMilliSecs;
|
||||
private System.Windows.Forms.ComboBox comboBoxFrameRateTo;
|
||||
private System.Windows.Forms.Label labelToFrameRate;
|
||||
private System.Windows.Forms.ComboBox comboBoxFrameRateFrom;
|
||||
private System.Windows.Forms.Label labelFromFrameRate;
|
||||
private System.Windows.Forms.LinkLabel linkLabelOpenOutputFolder;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStripFiles;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeAllToolStripMenuItem;
|
||||
private System.Windows.Forms.CheckBox checkBoxFixAloneLowercaseI;
|
||||
|
||||
}
|
||||
}
|
@ -15,11 +15,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
FormRemoveTextForHearImpaired _removeForHI = new FormRemoveTextForHearImpaired();
|
||||
ChangeCasing _changeCasing = new ChangeCasing();
|
||||
ChangeCasingNames _changeCasingNames = new ChangeCasingNames();
|
||||
bool _converting = false;
|
||||
|
||||
public BatchConvert()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
var l = Configuration.Settings.Language.BatchConvert;
|
||||
Text = l.Title;
|
||||
groupBoxInput.Text = l.Input;
|
||||
@ -36,14 +37,21 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
checkBoxRemoveFormatting.Text = l.RemoveFormatting;
|
||||
checkBoxFixCasing.Text = l.ReDoCasing;
|
||||
checkBoxRemoveTextForHI.Text = l.RemoveTextForHI;
|
||||
checkBoxFixAloneLowercaseI.Text = Configuration.Settings.Language.FixCommonErrors.FixLowercaseIToUppercaseI;
|
||||
columnHeaderFName.Text = Configuration.Settings.Language.JoinSubtitles.FileName;
|
||||
columnHeaderFormat.Text = Configuration.Settings.Language.Main.Controls.SubtitleFormat;
|
||||
columnHeaderSize.Text = Configuration.Settings.Language.General.Size;
|
||||
columnHeaderStatus.Text = l.Status;
|
||||
buttonOpenOutputFolder.Text = Configuration.Settings.Language.Main.Menu.File.Open;
|
||||
linkLabelOpenOutputFolder.Text = Configuration.Settings.Language.Main.Menu.File.Open;
|
||||
buttonConvert.Text = l.Convert;
|
||||
buttonCancel.Text = Configuration.Settings.Language.General.OK;
|
||||
|
||||
groupBoxChangeFrameRate.Text = Configuration.Settings.Language.ChangeFrameRate.Title;
|
||||
groupBoxOffsetTimeCodes.Text = Configuration.Settings.Language.ShowEarlierLater.TitleAll;
|
||||
labelFromFrameRate.Text = Configuration.Settings.Language.ChangeFrameRate.FromFrameRate;
|
||||
labelToFrameRate.Text = Configuration.Settings.Language.ChangeFrameRate.ToFrameRate;
|
||||
labelHoursMinSecsMilliSecs.Text = Configuration.Settings.Language.General.HourMinutesSecondsMilliseconds;
|
||||
|
||||
comboBoxSubtitleFormats.Left = labelOutputFormat.Left + labelOutputFormat.Width + 3;
|
||||
comboBoxEncoding.Left = labelEncoding.Left + labelEncoding.Width + 3;
|
||||
if (comboBoxSubtitleFormats.Left > comboBoxEncoding.Left)
|
||||
@ -56,6 +64,19 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
buttonStyles.Left = comboBoxSubtitleFormats.Left + comboBoxSubtitleFormats.Width + 5;
|
||||
|
||||
timeUpDownAdjust.MaskedTextBox.Text = "000000000";
|
||||
|
||||
comboBoxFrameRateFrom.Items.Add((23.976).ToString());
|
||||
comboBoxFrameRateFrom.Items.Add((24.0).ToString());
|
||||
comboBoxFrameRateFrom.Items.Add((25.0).ToString());
|
||||
comboBoxFrameRateFrom.Items.Add((29.97).ToString());
|
||||
|
||||
comboBoxFrameRateTo.Items.Add((23.976).ToString());
|
||||
comboBoxFrameRateTo.Items.Add((24.0).ToString());
|
||||
comboBoxFrameRateTo.Items.Add((25.0).ToString());
|
||||
comboBoxFrameRateTo.Items.Add((29.97).ToString());
|
||||
|
||||
|
||||
FixLargeFonts();
|
||||
|
||||
foreach (SubtitleFormat f in SubtitleFormat.AllSubtitleFormats)
|
||||
@ -323,6 +344,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
_converting = true;
|
||||
string toFormat = comboBoxSubtitleFormats.Text;
|
||||
int count = 0;
|
||||
int converted = 0;
|
||||
@ -474,6 +496,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
p.Text = Utilities.FixInvalidItalicTags(p.Text);
|
||||
}
|
||||
if (checkBoxFixAloneLowercaseI.Checked)
|
||||
{
|
||||
p.Text = FixCommonErrors.FixAloneLowercaseIToUppercaseLine(FixCommonErrors.FixAloneLowercaseIToUppercaseIRE, p.Text, p.Text, 'i');
|
||||
}
|
||||
}
|
||||
if (checkBoxFixCasing.Checked)
|
||||
{
|
||||
@ -482,6 +508,19 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_changeCasingNames.FixCasing();
|
||||
}
|
||||
|
||||
double fromFrameRate;
|
||||
double toFrameRate;
|
||||
if (double.TryParse(comboBoxFrameRateFrom.Text, out fromFrameRate) &&
|
||||
double.TryParse(comboBoxFrameRateTo.Text, out toFrameRate))
|
||||
{
|
||||
sub.ChangeFramerate(fromFrameRate, toFrameRate);
|
||||
}
|
||||
|
||||
if (timeUpDownAdjust.TimeCode.Milliseconds > 0.00001)
|
||||
{
|
||||
sub.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(timeUpDownAdjust.TimeCode.TotalMilliseconds));
|
||||
}
|
||||
|
||||
int oldConverted = converted;
|
||||
Main.BatchConvertSave(toFormat, null, GetCurrentEncoding(), textBoxOutputFolder.Text, count, ref converted, ref errors, allFormats, fileName, sub, format, checkBoxOverwrite.Checked);
|
||||
if (converted == oldConverted + 1)
|
||||
@ -502,9 +541,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
}
|
||||
}
|
||||
_converting = false;
|
||||
}
|
||||
|
||||
private void comboBoxSubtitleFormats_SelectedIndexChanged(object sender, EventArgs e)
|
||||
private void ComboBoxSubtitleFormatsSelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (comboBoxSubtitleFormats.Text == new AdvancedSubStationAlpha().Name || comboBoxSubtitleFormats.Text == new SubStationAlpha().Name)
|
||||
{
|
||||
@ -518,7 +558,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_ssaStyle = null;
|
||||
}
|
||||
|
||||
private void buttonStyles_Click(object sender, EventArgs e)
|
||||
private void ButtonStylesClick(object sender, EventArgs e)
|
||||
{
|
||||
if (comboBoxSubtitleFormats.Text == new AdvancedSubStationAlpha().Name)
|
||||
{
|
||||
@ -541,6 +581,51 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LinkLabelOpenOutputFolderLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
if (System.IO.Directory.Exists(textBoxOutputFolder.Text))
|
||||
System.Diagnostics.Process.Start(textBoxOutputFolder.Text);
|
||||
else
|
||||
MessageBox.Show(string.Format(Configuration.Settings.Language.SplitSubtitle.FolderNotFoundX, textBoxOutputFolder.Text));
|
||||
}
|
||||
|
||||
private void ContextMenuStripFilesOpening(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
if (listViewInputFiles.Items.Count == 0)
|
||||
{
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
removeToolStripMenuItem.Visible = listViewInputFiles.SelectedItems.Count > 0;
|
||||
}
|
||||
|
||||
private void RemoveAllToolStripMenuItemClick(object sender, EventArgs e)
|
||||
{
|
||||
listViewInputFiles.Items.Clear();
|
||||
}
|
||||
|
||||
private void RemoveSelectedFiles()
|
||||
{
|
||||
if (_converting)
|
||||
return;
|
||||
|
||||
for (int i = listViewInputFiles.SelectedIndices.Count-1; i>=0; i--)
|
||||
{
|
||||
listViewInputFiles.Items.RemoveAt(listViewInputFiles.SelectedIndices[i]);
|
||||
}
|
||||
}
|
||||
|
||||
private void RemoveToolStripMenuItemClick(object sender, EventArgs e)
|
||||
{
|
||||
RemoveSelectedFiles();
|
||||
}
|
||||
|
||||
private void ListViewInputFilesKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Delete)
|
||||
RemoveSelectedFiles();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStripFiles.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>326, 17</value>
|
||||
</metadata>
|
||||
<metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
@ -68,7 +68,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
static readonly Regex RemoveSpaceBetweenNumbersRegEx = new Regex(@"\d \d", RegexOptions.Compiled);
|
||||
|
||||
static readonly Regex FixAloneLowercaseIToUppercaseIRE = new Regex(@"\bi\b", RegexOptions.Compiled);
|
||||
public static readonly Regex FixAloneLowercaseIToUppercaseIRE = new Regex(@"\bi\b", RegexOptions.Compiled);
|
||||
|
||||
Keys _goToLine = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainEditGoToLineNumber);
|
||||
Keys _preview = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainToolsFixCommonErrorsPreview);
|
||||
|
Loading…
Reference in New Issue
Block a user