A few new settings

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@147 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-11-13 21:03:54 +00:00
parent c1f1251c6f
commit 18a5b7ba85
3 changed files with 23 additions and 1 deletions

View File

@ -603,7 +603,10 @@ namespace Nikse.SubtitleEdit.Logic
InvalidVobSubHeader = "Header not valid VobSub file: {0}", InvalidVobSubHeader = "Header not valid VobSub file: {0}",
OpenVobSubFile = "Open VobSub (sub/idx) subtitle...", OpenVobSubFile = "Open VobSub (sub/idx) subtitle...",
VobSubFiles = "VobSub subtitle files", VobSubFiles = "VobSub subtitle files",
OpenBluRaySupFile = "Open BluRay .sup file...",
BluRaySupFiles = "BluRay .sup files",
BeforeImportingVobSubFile = "Before importing VobSub subtitle", BeforeImportingVobSubFile = "Before importing VobSub subtitle",
BeforeImportingBluRaySupFile = "Before importing BluRay sup file",
BeforeShowSelectedLinesEarlierLater = "Before show selected lines earlier/later", BeforeShowSelectedLinesEarlierLater = "Before show selected lines earlier/later",
ShowSelectedLinesEarlierLaterPerformed = "Show earlier/later performed on selected lines", ShowSelectedLinesEarlierLaterPerformed = "Show earlier/later performed on selected lines",
DoubleWordsViaRegEx = "Double words via regex {0}", DoubleWordsViaRegEx = "Double words via regex {0}",
@ -648,6 +651,7 @@ namespace Nikse.SubtitleEdit.Logic
Compare = "&Compare...", Compare = "&Compare...",
ImportOcrFromDvd = "Import/OCR subtitle from vob/ifo (dvd) ...", ImportOcrFromDvd = "Import/OCR subtitle from vob/ifo (dvd) ...",
ImportOcrVobSubSubtitle = "Import/OCR VobSub (sub/idx) subtitle...", ImportOcrVobSubSubtitle = "Import/OCR VobSub (sub/idx) subtitle...",
ImportBluRaySupFile = "Import/OCR BluRay sup file...",
ImportSubtitleFromMatroskaFile = "Import subtitle from Matroska file...", ImportSubtitleFromMatroskaFile = "Import subtitle from Matroska file...",
ImportSubtitleWithManualChosenEncoding = "Import subtitle with manual chosen encoding...", ImportSubtitleWithManualChosenEncoding = "Import subtitle with manual chosen encoding...",
ImportText = "Import plain text...", ImportText = "Import plain text...",
@ -1147,6 +1151,7 @@ namespace Nikse.SubtitleEdit.Logic
VobSubOcr = new LanguageStructure.VobSubOcr VobSubOcr = new LanguageStructure.VobSubOcr
{ {
Title = "Import/OCR VobSub (sub/idx) subtitle", Title = "Import/OCR VobSub (sub/idx) subtitle",
TitleBluRay = "Import/OCR BluRay (.sup) subtitle",
OcrMethod = "OCR method", OcrMethod = "OCR method",
OcrViaModi = "OCR via Microsoft Office Document Imaging (MODI). Requires MS Office", OcrViaModi = "OCR via Microsoft Office Document Imaging (MODI). Requires MS Office",
Language = "Language", Language = "Language",

View File

@ -536,7 +536,10 @@
public string InvalidVobSubHeader { get; set; } public string InvalidVobSubHeader { get; set; }
public string OpenVobSubFile { get; set; } public string OpenVobSubFile { get; set; }
public string VobSubFiles { get; set; } public string VobSubFiles { get; set; }
public string OpenBluRaySupFile { get; set; }
public string BluRaySupFiles { get; set; }
public string BeforeImportingVobSubFile { get; set; } public string BeforeImportingVobSubFile { get; set; }
public string BeforeImportingBluRaySupFile { get; set; }
public string BeforeShowSelectedLinesEarlierLater { get; set; } public string BeforeShowSelectedLinesEarlierLater { get; set; }
public string ShowSelectedLinesEarlierLaterPerformed { get; set; } public string ShowSelectedLinesEarlierLaterPerformed { get; set; }
public string DoubleWordsViaRegEx { get; set; } public string DoubleWordsViaRegEx { get; set; }
@ -581,6 +584,7 @@
public string Compare { get; set; } public string Compare { get; set; }
public string ImportOcrFromDvd { get; set; } public string ImportOcrFromDvd { get; set; }
public string ImportOcrVobSubSubtitle { get; set; } public string ImportOcrVobSubSubtitle { get; set; }
public string ImportBluRaySupFile { get; set; }
public string ImportSubtitleFromMatroskaFile { get; set; } public string ImportSubtitleFromMatroskaFile { get; set; }
public string ImportSubtitleWithManualChosenEncoding { get; set; } public string ImportSubtitleWithManualChosenEncoding { get; set; }
public string ImportText { get; set; } public string ImportText { get; set; }
@ -1087,6 +1091,7 @@
public class VobSubOcr public class VobSubOcr
{ {
public string Title { get; set; } public string Title { get; set; }
public string TitleBluRay { get; set; }
public string OcrMethod { get; set; } public string OcrMethod { get; set; }
public string OcrViaModi { get; set; } public string OcrViaModi { get; set; }
public string OcrViaTesseract { get; set; } public string OcrViaTesseract { get; set; }

View File

@ -199,6 +199,8 @@ namespace Nikse.SubtitleEdit.Logic
public int ListViewDoubleClickAction { get; set; } public int ListViewDoubleClickAction { get; set; }
public string UppercaseLetters { get; set; } public string UppercaseLetters { get; set; }
public int DefaultAdjustMilliseconds { get; set; } public int DefaultAdjustMilliseconds { get; set; }
public bool AutoRepeatOn { get; set; }
public bool AutoContinueOn { get; set; }
public GeneralSettings() public GeneralSettings()
{ {
@ -237,6 +239,8 @@ namespace Nikse.SubtitleEdit.Logic
ListViewDoubleClickAction = 1; ListViewDoubleClickAction = 1;
UppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWZYXÆØÃÅÄÖÉÈÁÂÀÇÉÊÍÓÔÕÚŁ"; UppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWZYXÆØÃÅÄÖÉÈÁÂÀÇÉÊÍÓÔÕÚŁ";
DefaultAdjustMilliseconds = 1000; DefaultAdjustMilliseconds = 1000;
AutoRepeatOn = true;
AutoContinueOn = false;
} }
} }
@ -523,6 +527,12 @@ namespace Nikse.SubtitleEdit.Logic
subNode = node.SelectSingleNode("DefaultAdjustMilliseconds"); subNode = node.SelectSingleNode("DefaultAdjustMilliseconds");
if (subNode != null) if (subNode != null)
settings.General.DefaultAdjustMilliseconds = Convert.ToInt32(subNode.InnerText); 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(); settings.Tools = new Nikse.SubtitleEdit.Logic.ToolsSettings();
node = doc.DocumentElement.SelectSingleNode("Tools"); node = doc.DocumentElement.SelectSingleNode("Tools");
@ -797,6 +807,8 @@ namespace Nikse.SubtitleEdit.Logic
textWriter.WriteElementString("ListViewDoubleClickAction", settings.General.ListViewDoubleClickAction.ToString()); textWriter.WriteElementString("ListViewDoubleClickAction", settings.General.ListViewDoubleClickAction.ToString());
textWriter.WriteElementString("UppercaseLetters", settings.General.UppercaseLetters); 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.WriteEndElement();
textWriter.WriteStartElement("Tools", ""); textWriter.WriteStartElement("Tools", "");