mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
ran tabspace
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1922 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
0ad0d8d784
commit
5716b56e2c
@ -638,7 +638,7 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
pen = new Pen(new SolidBrush(Color.FromArgb(135, 0, 100, 0)));
|
||||
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
e.Graphics.DrawLine(pen, currentRegionRight, 0, currentRegionRight, e.Graphics.VisibleClipBounds.Height);
|
||||
|
||||
|
||||
var n = _zoomFactor * _wavePeaks.Header.SampleRate;
|
||||
if (Configuration.Settings != null && Configuration.Settings.General.UseTimeFormatHHMMSSFF)
|
||||
{
|
||||
@ -736,13 +736,13 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
}
|
||||
else if (!AllowNewSelection)
|
||||
{
|
||||
Cursor = Cursors.Default;
|
||||
Cursor = Cursors.Default;
|
||||
}
|
||||
if (p == null)
|
||||
SetMinMaxViaSeconds(seconds);
|
||||
NewSelectionParagraph = null;
|
||||
_mouseMoveStartX = e.X;
|
||||
_mouseMoveEndX = e.X;
|
||||
_mouseMoveEndX = e.X;
|
||||
}
|
||||
_mouseDown = true;
|
||||
}
|
||||
@ -907,7 +907,7 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
{
|
||||
if (Control.ModifierKeys == Keys.Shift)
|
||||
return AllowOverlap;
|
||||
return !AllowOverlap;
|
||||
return !AllowOverlap;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
}
|
||||
|
||||
private void GeneratePreview()
|
||||
{
|
||||
@ -88,7 +88,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
SubtitleListview1.SetBackgroundColor(index, Color.Green);
|
||||
SubtitleListview1.EndUpdate();
|
||||
groupBoxLinesFound.Text = string.Format(Configuration.Settings.Language.DurationsBridgeGaps.GapsBridgedX, count);
|
||||
}
|
||||
}
|
||||
|
||||
private void numericUpDownMaxMs_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonOK_Click(object sender, EventArgs e)
|
||||
|
@ -939,7 +939,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (sf.IsFrameBased && !sub.WasLoadedWithFrameNumbers)
|
||||
sub.CalculateFrameNumbersFromTimeCodesNoCheck(Configuration.Settings.General.CurrentFrameRate);
|
||||
else if (sf.IsTimeBased && sub.WasLoadedWithFrameNumbers)
|
||||
sub.CalculateTimeCodesFromFrameNumbers(Configuration.Settings.General.CurrentFrameRate);
|
||||
sub.CalculateTimeCodesFromFrameNumbers(Configuration.Settings.General.CurrentFrameRate);
|
||||
File.WriteAllText(outputFileName, sub.ToText(sf), targetEncoding);
|
||||
if (format.GetType() == typeof(Sami) || format.GetType() == typeof(SamiModern))
|
||||
{
|
||||
@ -17281,7 +17281,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_subtitle.Paragraphs.Clear();
|
||||
foreach (Paragraph p in form.FixedSubtitle.Paragraphs)
|
||||
_subtitle.Paragraphs.Add(p);
|
||||
|
||||
|
||||
SubtitleListview1.Fill(_subtitle, _subtitleAlternate);
|
||||
SubtitleListview1.SelectIndexAndEnsureVisible(index);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonOK.Text = Configuration.Settings.Language.General.OK;
|
||||
|
||||
_defaultBackColor = textBoxInput.BackColor;
|
||||
textBoxInput.Text = "1";
|
||||
textBoxInput.Text = "1";
|
||||
|
||||
comboBoxFrom.Items.Add(l.Fahrenheit);
|
||||
comboBoxFrom.Items.Add(l.Celsius);
|
||||
@ -341,7 +341,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
return;
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
r = new Regex(findWhat, RegexOptions.Compiled | RegexOptions.Multiline);
|
||||
_compiledRegExList.Add(findWhat, r);
|
||||
}
|
||||
}
|
||||
|
||||
string result = r.Replace(newText, replaceWith);
|
||||
if (result != newText)
|
||||
|
@ -31,7 +31,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
public LanguageStructure.ColumnPaste ColumnPaste;
|
||||
public LanguageStructure.CompareSubtitles CompareSubtitles;
|
||||
public LanguageStructure.DCinemaProperties DCinemaProperties;
|
||||
public LanguageStructure.DurationsBridgeGaps DurationsBridgeGaps;
|
||||
public LanguageStructure.DurationsBridgeGaps DurationsBridgeGaps;
|
||||
public LanguageStructure.DvdSubRip DvdSubrip;
|
||||
public LanguageStructure.DvdSubRipChooseLanguage DvdSubRipChooseLanguage;
|
||||
public LanguageStructure.EbuSaveOtpions EbuSaveOtpions;
|
||||
|
@ -655,7 +655,7 @@
|
||||
public string TextFiles { get; set; }
|
||||
public string PreviewLinesModifiedX { get; set; }
|
||||
public string TimeCodes { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class Interjections
|
||||
{
|
||||
|
@ -2348,7 +2348,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
textWriter.WriteElementString("GenerateTimeCodePatterns", settings.Tools.GenerateTimeCodePatterns);
|
||||
textWriter.WriteElementString("MusicSymbolStyle", settings.Tools.MusicSymbolStyle);
|
||||
textWriter.WriteElementString("BridgeGapMilliseconds", settings.Tools.BridgeGapMilliseconds.ToString());
|
||||
|
||||
|
||||
textWriter.WriteEndElement();
|
||||
|
||||
textWriter.WriteStartElement("SubtitleSettings", "");
|
||||
|
@ -1099,7 +1099,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
{
|
||||
_codePage = -2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
byte[] previewBuffer = null;
|
||||
|
||||
|
@ -108,7 +108,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
{
|
||||
_errorCount += 10;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (line.Trim().Length == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user