mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
A few new settings
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@147 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
c1f1251c6f
commit
18a5b7ba85
@ -603,7 +603,10 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
InvalidVobSubHeader = "Header not valid VobSub file: {0}",
|
||||
OpenVobSubFile = "Open VobSub (sub/idx) subtitle...",
|
||||
VobSubFiles = "VobSub subtitle files",
|
||||
OpenBluRaySupFile = "Open BluRay .sup file...",
|
||||
BluRaySupFiles = "BluRay .sup files",
|
||||
BeforeImportingVobSubFile = "Before importing VobSub subtitle",
|
||||
BeforeImportingBluRaySupFile = "Before importing BluRay sup file",
|
||||
BeforeShowSelectedLinesEarlierLater = "Before show selected lines earlier/later",
|
||||
ShowSelectedLinesEarlierLaterPerformed = "Show earlier/later performed on selected lines",
|
||||
DoubleWordsViaRegEx = "Double words via regex {0}",
|
||||
@ -648,6 +651,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
Compare = "&Compare...",
|
||||
ImportOcrFromDvd = "Import/OCR subtitle from vob/ifo (dvd) ...",
|
||||
ImportOcrVobSubSubtitle = "Import/OCR VobSub (sub/idx) subtitle...",
|
||||
ImportBluRaySupFile = "Import/OCR BluRay sup file...",
|
||||
ImportSubtitleFromMatroskaFile = "Import subtitle from Matroska file...",
|
||||
ImportSubtitleWithManualChosenEncoding = "Import subtitle with manual chosen encoding...",
|
||||
ImportText = "Import plain text...",
|
||||
@ -1147,6 +1151,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
VobSubOcr = new LanguageStructure.VobSubOcr
|
||||
{
|
||||
Title = "Import/OCR VobSub (sub/idx) subtitle",
|
||||
TitleBluRay = "Import/OCR BluRay (.sup) subtitle",
|
||||
OcrMethod = "OCR method",
|
||||
OcrViaModi = "OCR via Microsoft Office Document Imaging (MODI). Requires MS Office",
|
||||
Language = "Language",
|
||||
|
@ -536,7 +536,10 @@
|
||||
public string InvalidVobSubHeader { get; set; }
|
||||
public string OpenVobSubFile { get; set; }
|
||||
public string VobSubFiles { get; set; }
|
||||
public string OpenBluRaySupFile { get; set; }
|
||||
public string BluRaySupFiles { get; set; }
|
||||
public string BeforeImportingVobSubFile { get; set; }
|
||||
public string BeforeImportingBluRaySupFile { get; set; }
|
||||
public string BeforeShowSelectedLinesEarlierLater { get; set; }
|
||||
public string ShowSelectedLinesEarlierLaterPerformed { get; set; }
|
||||
public string DoubleWordsViaRegEx { get; set; }
|
||||
@ -581,6 +584,7 @@
|
||||
public string Compare { get; set; }
|
||||
public string ImportOcrFromDvd { get; set; }
|
||||
public string ImportOcrVobSubSubtitle { get; set; }
|
||||
public string ImportBluRaySupFile { get; set; }
|
||||
public string ImportSubtitleFromMatroskaFile { get; set; }
|
||||
public string ImportSubtitleWithManualChosenEncoding { get; set; }
|
||||
public string ImportText { get; set; }
|
||||
@ -1087,6 +1091,7 @@
|
||||
public class VobSubOcr
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string TitleBluRay { get; set; }
|
||||
public string OcrMethod { get; set; }
|
||||
public string OcrViaModi { get; set; }
|
||||
public string OcrViaTesseract { get; set; }
|
||||
|
@ -199,6 +199,8 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
public int ListViewDoubleClickAction { get; set; }
|
||||
public string UppercaseLetters { get; set; }
|
||||
public int DefaultAdjustMilliseconds { get; set; }
|
||||
public bool AutoRepeatOn { get; set; }
|
||||
public bool AutoContinueOn { get; set; }
|
||||
|
||||
public GeneralSettings()
|
||||
{
|
||||
@ -237,6 +239,8 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
ListViewDoubleClickAction = 1;
|
||||
UppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWZYXÆØÃÅÄÖÉÈÁÂÀÇÉÊÍÓÔÕÚŁ";
|
||||
DefaultAdjustMilliseconds = 1000;
|
||||
AutoRepeatOn = true;
|
||||
AutoContinueOn = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -523,6 +527,12 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
subNode = node.SelectSingleNode("DefaultAdjustMilliseconds");
|
||||
if (subNode != null)
|
||||
settings.General.DefaultAdjustMilliseconds = Convert.ToInt32(subNode.InnerText);
|
||||
subNode = node.SelectSingleNode("AutoRepeatOn");
|
||||
if (subNode != null)
|
||||
settings.General.AutoRepeatOn = Convert.ToBoolean(subNode.InnerText);
|
||||
subNode = node.SelectSingleNode("AutoContinueOn");
|
||||
if (subNode != null)
|
||||
settings.General.AutoContinueOn = Convert.ToBoolean(subNode.InnerText);
|
||||
|
||||
settings.Tools = new Nikse.SubtitleEdit.Logic.ToolsSettings();
|
||||
node = doc.DocumentElement.SelectSingleNode("Tools");
|
||||
@ -796,7 +806,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
textWriter.WriteElementString("ListViewLineSeparatorString", settings.General.ListViewLineSeparatorString);
|
||||
textWriter.WriteElementString("ListViewDoubleClickAction", settings.General.ListViewDoubleClickAction.ToString());
|
||||
textWriter.WriteElementString("UppercaseLetters", settings.General.UppercaseLetters);
|
||||
textWriter.WriteElementString("DefaultAdjustMilliseconds", settings.General.DefaultAdjustMilliseconds.ToString());
|
||||
textWriter.WriteElementString("DefaultAdjustMilliseconds", settings.General.DefaultAdjustMilliseconds.ToString());
|
||||
textWriter.WriteElementString("AutoRepeatOn", settings.General.AutoRepeatOn.ToString());
|
||||
textWriter.WriteElementString("AutoContinueOn", settings.General.AutoContinueOn.ToString());
|
||||
textWriter.WriteEndElement();
|
||||
|
||||
textWriter.WriteStartElement("Tools", "");
|
||||
|
Loading…
Reference in New Issue
Block a user