Settings: Small helper window to calc gap in frames

Related to comment https://github.com/SubtitleEdit/subtitleedit/issues/4078#issuecomment-624194352 in #4078
This commit is contained in:
Nikolaj Olsson 2020-05-06 08:43:32 +02:00
parent cbe5eedcd2
commit 7bf7abe39c
10 changed files with 457 additions and 20 deletions

View File

@ -2177,6 +2177,9 @@ Continue?</RestoreDefaultSettingsMsg>
<UncheckInsertsLowercase>Detect and uncheck single titles, or lyrics, in lowercase</UncheckInsertsLowercase> <UncheckInsertsLowercase>Detect and uncheck single titles, or lyrics, in lowercase</UncheckInsertsLowercase>
<HideContinuationCandidatesWithoutName>Hide unlikely continuation sentences</HideContinuationCandidatesWithoutName> <HideContinuationCandidatesWithoutName>Hide unlikely continuation sentences</HideContinuationCandidatesWithoutName>
<IgnoreLyrics>Ignore lyrics between music symbols</IgnoreLyrics> <IgnoreLyrics>Ignore lyrics between music symbols</IgnoreLyrics>
<MinFrameGap>Min. gap in frames</MinFrameGap>
<XFramesAtYFrameRateGivesZMs>{0} frames at a frame rate of {1} gives {2} milliseconds.</XFramesAtYFrameRateGivesZMs>
<UseXAsNewGap>Use "{0}" milliseconds as new minimum gap?</UseXAsNewGap>
</Settings> </Settings>
<SettingsMpv> <SettingsMpv>
<Title>Settings for mpv</Title> <Title>Settings for mpv</Title>

View File

@ -2470,7 +2470,10 @@ can edit in same subtitle file (collaboration)",
UncheckInsertsItalic = "Detect and uncheck italic single titles, or lyrics", UncheckInsertsItalic = "Detect and uncheck italic single titles, or lyrics",
UncheckInsertsLowercase = "Detect and uncheck single titles, or lyrics, in lowercase", UncheckInsertsLowercase = "Detect and uncheck single titles, or lyrics, in lowercase",
HideContinuationCandidatesWithoutName = "Hide unlikely continuation sentences", HideContinuationCandidatesWithoutName = "Hide unlikely continuation sentences",
IgnoreLyrics = "Ignore lyrics between music symbols" IgnoreLyrics = "Ignore lyrics between music symbols",
MinFrameGap = "Min. gap in frames",
XFramesAtYFrameRateGivesZMs = "{0} frames at a frame rate of {1} gives {2} milliseconds.",
UseXAsNewGap = "Use \"{0}\" milliseconds as new minimum gap?",
}; };
SettingsMpv = new LanguageStructure.SettingsMpv SettingsMpv = new LanguageStructure.SettingsMpv

View File

@ -5941,6 +5941,15 @@ namespace Nikse.SubtitleEdit.Core
case "Settings/IgnoreLyrics": case "Settings/IgnoreLyrics":
language.Settings.IgnoreLyrics = reader.Value; language.Settings.IgnoreLyrics = reader.Value;
break; break;
case "Settings/MinFrameGap":
language.Settings.MinFrameGap = reader.Value;
break;
case "Settings/XFramesAtYFrameRateGivesZMs":
language.Settings.XFramesAtYFrameRateGivesZMs = reader.Value;
break;
case "Settings/UseXAsNewGap":
language.Settings.UseXAsNewGap = reader.Value;
break;
case "SettingsMpv/Title": case "SettingsMpv/Title":
language.SettingsMpv.Title = reader.Value; language.SettingsMpv.Title = reader.Value;
break; break;

View File

@ -2339,6 +2339,9 @@
public string UncheckInsertsLowercase { get; set; } public string UncheckInsertsLowercase { get; set; }
public string HideContinuationCandidatesWithoutName { get; set; } public string HideContinuationCandidatesWithoutName { get; set; }
public string IgnoreLyrics { get; set; } public string IgnoreLyrics { get; set; }
public string MinFrameGap { get; set; }
public string XFramesAtYFrameRateGivesZMs { get; set; }
public string UseXAsNewGap { get; set; }
} }
public class SettingsMpv public class SettingsMpv

View File

@ -180,6 +180,8 @@
this.buttonWaveformsFolderEmpty = new System.Windows.Forms.Button(); this.buttonWaveformsFolderEmpty = new System.Windows.Forms.Button();
this.labelWaveformsFolderInfo = new System.Windows.Forms.Label(); this.labelWaveformsFolderInfo = new System.Windows.Forms.Label();
this.groupBoxWaveformAppearence = new System.Windows.Forms.GroupBox(); this.groupBoxWaveformAppearence = new System.Windows.Forms.GroupBox();
this.panelWaveformCursorColor = new System.Windows.Forms.Panel();
this.buttonWaveformCursorColor = new System.Windows.Forms.Button();
this.checkBoxWaveformSnapToSceneChanges = new System.Windows.Forms.CheckBox(); this.checkBoxWaveformSnapToSceneChanges = new System.Windows.Forms.CheckBox();
this.checkBoxWaveformSingleClickSelect = new System.Windows.Forms.CheckBox(); this.checkBoxWaveformSingleClickSelect = new System.Windows.Forms.CheckBox();
this.checkBoxWaveformShowWpm = new System.Windows.Forms.CheckBox(); this.checkBoxWaveformShowWpm = new System.Windows.Forms.CheckBox();
@ -382,8 +384,7 @@
this.openFileDialogFFmpeg = new System.Windows.Forms.OpenFileDialog(); this.openFileDialogFFmpeg = new System.Windows.Forms.OpenFileDialog();
this.buttonReset = new System.Windows.Forms.Button(); this.buttonReset = new System.Windows.Forms.Button();
this.toolTipContinuationPreview = new System.Windows.Forms.ToolTip(this.components); this.toolTipContinuationPreview = new System.Windows.Forms.ToolTip(this.components);
this.panelWaveformCursorColor = new System.Windows.Forms.Panel(); this.buttonGapChoose = new System.Windows.Forms.Button();
this.buttonWaveformCursorColor = new System.Windows.Forms.Button();
this.tabControlSettings.SuspendLayout(); this.tabControlSettings.SuspendLayout();
this.tabPageGeneral.SuspendLayout(); this.tabPageGeneral.SuspendLayout();
this.groupBoxMiscellaneous.SuspendLayout(); this.groupBoxMiscellaneous.SuspendLayout();
@ -617,6 +618,7 @@
// //
// groupBoxGeneralRules // groupBoxGeneralRules
// //
this.groupBoxGeneralRules.Controls.Add(this.buttonGapChoose);
this.groupBoxGeneralRules.Controls.Add(this.comboBoxContinuationStyle); this.groupBoxGeneralRules.Controls.Add(this.comboBoxContinuationStyle);
this.groupBoxGeneralRules.Controls.Add(this.labelContinuationStyle); this.groupBoxGeneralRules.Controls.Add(this.labelContinuationStyle);
this.groupBoxGeneralRules.Controls.Add(this.labelDialogStyle); this.groupBoxGeneralRules.Controls.Add(this.labelDialogStyle);
@ -2464,6 +2466,25 @@
this.groupBoxWaveformAppearence.TabStop = false; this.groupBoxWaveformAppearence.TabStop = false;
this.groupBoxWaveformAppearence.Text = "Waveform appearance"; this.groupBoxWaveformAppearence.Text = "Waveform appearance";
// //
// panelWaveformCursorColor
//
this.panelWaveformCursorColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelWaveformCursorColor.Location = new System.Drawing.Point(138, 136);
this.panelWaveformCursorColor.Name = "panelWaveformCursorColor";
this.panelWaveformCursorColor.Size = new System.Drawing.Size(21, 20);
this.panelWaveformCursorColor.TabIndex = 34;
this.panelWaveformCursorColor.Click += new System.EventHandler(this.buttonWaveformCursorColor_Click);
//
// buttonWaveformCursorColor
//
this.buttonWaveformCursorColor.Location = new System.Drawing.Point(16, 135);
this.buttonWaveformCursorColor.Name = "buttonWaveformCursorColor";
this.buttonWaveformCursorColor.Size = new System.Drawing.Size(112, 21);
this.buttonWaveformCursorColor.TabIndex = 4;
this.buttonWaveformCursorColor.Text = "Cursor color";
this.buttonWaveformCursorColor.UseVisualStyleBackColor = true;
this.buttonWaveformCursorColor.Click += new System.EventHandler(this.buttonWaveformCursorColor_Click);
//
// checkBoxWaveformSnapToSceneChanges // checkBoxWaveformSnapToSceneChanges
// //
this.checkBoxWaveformSnapToSceneChanges.AutoSize = true; this.checkBoxWaveformSnapToSceneChanges.AutoSize = true;
@ -4640,24 +4661,15 @@
this.toolTipContinuationPreview.InitialDelay = 500; this.toolTipContinuationPreview.InitialDelay = 500;
this.toolTipContinuationPreview.ReshowDelay = 100; this.toolTipContinuationPreview.ReshowDelay = 100;
// //
// panelWaveformCursorColor // buttonGapChoose
// //
this.panelWaveformCursorColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.buttonGapChoose.Location = new System.Drawing.Point(265, 213);
this.panelWaveformCursorColor.Location = new System.Drawing.Point(138, 136); this.buttonGapChoose.Name = "buttonGapChoose";
this.panelWaveformCursorColor.Name = "panelWaveformCursorColor"; this.buttonGapChoose.Size = new System.Drawing.Size(28, 23);
this.panelWaveformCursorColor.Size = new System.Drawing.Size(21, 20); this.buttonGapChoose.TabIndex = 46;
this.panelWaveformCursorColor.TabIndex = 34; this.buttonGapChoose.Text = "...";
this.panelWaveformCursorColor.Click += new System.EventHandler(this.buttonWaveformCursorColor_Click); this.buttonGapChoose.UseVisualStyleBackColor = true;
// this.buttonGapChoose.Click += new System.EventHandler(this.buttonGapChoose_Click);
// buttonWaveformCursorColor
//
this.buttonWaveformCursorColor.Location = new System.Drawing.Point(16, 135);
this.buttonWaveformCursorColor.Name = "buttonWaveformCursorColor";
this.buttonWaveformCursorColor.Size = new System.Drawing.Size(112, 21);
this.buttonWaveformCursorColor.TabIndex = 4;
this.buttonWaveformCursorColor.Text = "Cursor color";
this.buttonWaveformCursorColor.UseVisualStyleBackColor = true;
this.buttonWaveformCursorColor.Click += new System.EventHandler(this.buttonWaveformCursorColor_Click);
// //
// Settings // Settings
// //
@ -5154,5 +5166,6 @@
private System.Windows.Forms.ToolTip toolTipContinuationPreview; private System.Windows.Forms.ToolTip toolTipContinuationPreview;
private System.Windows.Forms.Panel panelWaveformCursorColor; private System.Windows.Forms.Panel panelWaveformCursorColor;
private System.Windows.Forms.Button buttonWaveformCursorColor; private System.Windows.Forms.Button buttonWaveformCursorColor;
private System.Windows.Forms.Button buttonGapChoose;
} }
} }

View File

@ -3358,5 +3358,16 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }
private void buttonGapChoose_Click(object sender, EventArgs e)
{
using (var form = new SettingsGapChoose())
{
if (form.ShowDialog(this) == DialogResult.OK)
{
numericUpDownMinGapMs.Value = form.MinGapMs;
}
}
}
} }
} }

173
src/Forms/SettingsGapChoose.Designer.cs generated Normal file
View File

@ -0,0 +1,173 @@
namespace Nikse.SubtitleEdit.Forms
{
partial class SettingsGapChoose
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonOK = new System.Windows.Forms.Button();
this.comboBoxFrameRate = new System.Windows.Forms.ComboBox();
this.labelFrameRate = new System.Windows.Forms.Label();
this.numericUpDownFrames = new System.Windows.Forms.NumericUpDown();
this.labelFrames = new System.Windows.Forms.Label();
this.labelCalcInfo = new System.Windows.Forms.Label();
this.labelUseCalc = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownFrames)).BeginInit();
this.SuspendLayout();
//
// buttonCancel
//
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.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(385, 219);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 10;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// buttonOK
//
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.Location = new System.Drawing.Point(304, 219);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 9;
this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// comboBoxFrameRate
//
this.comboBoxFrameRate.FormattingEnabled = true;
this.comboBoxFrameRate.Location = new System.Drawing.Point(15, 43);
this.comboBoxFrameRate.Name = "comboBoxFrameRate";
this.comboBoxFrameRate.Size = new System.Drawing.Size(121, 21);
this.comboBoxFrameRate.TabIndex = 11;
this.comboBoxFrameRate.SelectedIndexChanged += new System.EventHandler(this.comboBoxFrameRate_SelectedIndexChanged);
this.comboBoxFrameRate.TextChanged += new System.EventHandler(this.comboBoxFrameRate_TextChanged);
//
// labelFrameRate
//
this.labelFrameRate.AutoSize = true;
this.labelFrameRate.Location = new System.Drawing.Point(12, 27);
this.labelFrameRate.Name = "labelFrameRate";
this.labelFrameRate.Size = new System.Drawing.Size(57, 13);
this.labelFrameRate.TabIndex = 12;
this.labelFrameRate.Text = "Frame rate";
//
// numericUpDownFrames
//
this.numericUpDownFrames.Location = new System.Drawing.Point(15, 94);
this.numericUpDownFrames.Maximum = new decimal(new int[] {
25,
0,
0,
0});
this.numericUpDownFrames.Name = "numericUpDownFrames";
this.numericUpDownFrames.Size = new System.Drawing.Size(56, 20);
this.numericUpDownFrames.TabIndex = 52;
this.numericUpDownFrames.Value = new decimal(new int[] {
2,
0,
0,
0});
this.numericUpDownFrames.ValueChanged += new System.EventHandler(this.numericUpDownFrames_ValueChanged);
//
// labelFrames
//
this.labelFrames.AutoSize = true;
this.labelFrames.Location = new System.Drawing.Point(12, 78);
this.labelFrames.Name = "labelFrames";
this.labelFrames.Size = new System.Drawing.Size(196, 13);
this.labelFrames.TabIndex = 51;
this.labelFrames.Text = "Min. number of frames between subtitles";
//
// labelCalcInfo
//
this.labelCalcInfo.AutoSize = true;
this.labelCalcInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelCalcInfo.Location = new System.Drawing.Point(12, 144);
this.labelCalcInfo.Name = "labelCalcInfo";
this.labelCalcInfo.Size = new System.Drawing.Size(68, 13);
this.labelCalcInfo.TabIndex = 53;
this.labelCalcInfo.Text = "labelCalcInfo";
//
// labelUseCalc
//
this.labelUseCalc.AutoSize = true;
this.labelUseCalc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelUseCalc.Location = new System.Drawing.Point(12, 168);
this.labelUseCalc.Name = "labelUseCalc";
this.labelUseCalc.Size = new System.Drawing.Size(81, 13);
this.labelUseCalc.TabIndex = 54;
this.labelUseCalc.Text = "labelUseCalc";
//
// SettingsGapChoose
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(472, 254);
this.Controls.Add(this.labelUseCalc);
this.Controls.Add(this.labelCalcInfo);
this.Controls.Add(this.numericUpDownFrames);
this.Controls.Add(this.labelFrames);
this.Controls.Add(this.labelFrameRate);
this.Controls.Add(this.comboBoxFrameRate);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "SettingsGapChoose";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Gap between subtitles";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SettingsGapChoose_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.numericUpDownFrames)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.ComboBox comboBoxFrameRate;
private System.Windows.Forms.Label labelFrameRate;
private System.Windows.Forms.NumericUpDown numericUpDownFrames;
private System.Windows.Forms.Label labelFrames;
private System.Windows.Forms.Label labelCalcInfo;
private System.Windows.Forms.Label labelUseCalc;
}
}

View File

@ -0,0 +1,93 @@
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Globalization;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public partial class SettingsGapChoose : Form
{
public int MinGapMs { get; internal set; }
public SettingsGapChoose()
{
UiUtil.PreInitialize(this);
InitializeComponent();
UiUtil.FixFonts(this);
comboBoxFrameRate.Items.Clear();
comboBoxFrameRate.Items.Add(23.976.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(24.0.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(25.0.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(29.97.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(30.00.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(50.00.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(59.94.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.Items.Add(60.00.ToString(CultureInfo.CurrentCulture));
comboBoxFrameRate.SelectedIndex = 0;
numericUpDownFrames.Value = 2;
Text = Configuration.Settings.Language.Settings.MinimumGapMilliseconds;
labelFrameRate.Text = Configuration.Settings.Language.General.FrameRate;
labelFrames.Text = Configuration.Settings.Language.Settings.MinFrameGap;
buttonOK.Text = Configuration.Settings.Language.General.Ok;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonOK);
CalcMilliseconds();
}
private void CalcMilliseconds()
{
var frameRate = GetFrameRate();
MinGapMs = (int)Math.Round(1000.0 / frameRate * (double)numericUpDownFrames.Value);
labelCalcInfo.Text = string.Format(Configuration.Settings.Language.Settings.XFramesAtYFrameRateGivesZMs, numericUpDownFrames.Value, frameRate, MinGapMs);
labelUseCalc.Text = string.Format(Configuration.Settings.Language.Settings.UseXAsNewGap, MinGapMs);
}
private double GetFrameRate()
{
if (double.TryParse(comboBoxFrameRate.Text, NumberStyles.AllowDecimalPoint, CultureInfo.CurrentCulture, out var frameRate))
{
return frameRate;
}
return Configuration.Settings.General.CurrentFrameRate;
}
private void buttonOK_Click(object sender, System.EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void buttonCancel_Click(object sender, System.EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void SettingsGapChoose_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
DialogResult = DialogResult.Cancel;
}
}
private void comboBoxFrameRate_SelectedIndexChanged(object sender, EventArgs e)
{
CalcMilliseconds();
}
private void numericUpDownFrames_ValueChanged(object sender, EventArgs e)
{
CalcMilliseconds();
}
private void comboBoxFrameRate_TextChanged(object sender, EventArgs e)
{
CalcMilliseconds();
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -743,6 +743,12 @@
<Compile Include="Forms\SettingsFixContinuationStyle.Designer.cs"> <Compile Include="Forms\SettingsFixContinuationStyle.Designer.cs">
<DependentUpon>SettingsFixContinuationStyle.cs</DependentUpon> <DependentUpon>SettingsFixContinuationStyle.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\SettingsGapChoose.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\SettingsGapChoose.Designer.cs">
<DependentUpon>SettingsGapChoose.cs</DependentUpon>
</Compile>
<Compile Include="Forms\SettingsLineWidth.cs"> <Compile Include="Forms\SettingsLineWidth.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1432,6 +1438,9 @@
<EmbeddedResource Include="Forms\SettingsFixContinuationStyle.resx"> <EmbeddedResource Include="Forms\SettingsFixContinuationStyle.resx">
<DependentUpon>SettingsFixContinuationStyle.cs</DependentUpon> <DependentUpon>SettingsFixContinuationStyle.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\SettingsGapChoose.resx">
<DependentUpon>SettingsGapChoose.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\SettingsLineWidth.resx"> <EmbeddedResource Include="Forms\SettingsLineWidth.resx">
<DependentUpon>SettingsLineWidth.cs</DependentUpon> <DependentUpon>SettingsLineWidth.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>