ran tabspace

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1922 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2013-07-10 15:39:47 +00:00
parent 0ad0d8d784
commit 5716b56e2c
11 changed files with 17 additions and 17 deletions

View File

@ -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;
}
}

View File

@ -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)
{

View File

@ -79,7 +79,7 @@ namespace Nikse.SubtitleEdit.Forms
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
private void buttonOK_Click(object sender, EventArgs e)

View File

@ -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);
}

View File

@ -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;
}
}
}
}

View File

@ -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)

View File

@ -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;

View File

@ -655,7 +655,7 @@
public string TextFiles { get; set; }
public string PreviewLinesModifiedX { get; set; }
public string TimeCodes { get; set; }
}
}
public class Interjections
{

View File

@ -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", "");

View File

@ -1099,7 +1099,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{
_codePage = -2;
return;
}
}
byte[] previewBuffer = null;

View File

@ -108,7 +108,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{
_errorCount += 10;
return;
}
}
}
else if (line.Trim().Length == 0)
{