A few minor improvements for find and replace - thx Adem :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1259 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-06-17 17:40:27 +00:00
parent e69bbbbc19
commit f4c7cb6815
4 changed files with 30 additions and 21 deletions

View File

@ -18,9 +18,13 @@ Subtitle Edit Changelog
* IMPROVED:
* Added extra options for double click on list view line - thx Fredrik + TaeGyun
* Added extra options for export as text
* Added many new possible shortcut keys
* Find and replace, better undo, faster + a little UI - thx Adem
* Fix common errors -> Start with uppercase letter after colon/semicolon moved to
seperate fix item (no longer in "Start with uppercase after paragraph/period")
* FIXED:
* Auto-translate now works for English to Portuguese - thx w.tambley
* Fixed shortcuts with numbers (0-9)
3.2.8 (3rd June 2012)
* NEW:

View File

@ -3431,7 +3431,12 @@ namespace Nikse.SubtitleEdit.Forms
{
textBoxListViewText.Visible = true;
_subtitleListViewIndex = -1;
SubtitleListview1.SelectIndexAndEnsureVisible(firstIndex, true);
if (firstIndex >= 0 && firstIndex < SubtitleListview1.Items.Count)
{
SubtitleListview1.Items[firstIndex].Selected = true;
SubtitleListview1.Items[firstIndex].Focused = true;
SubtitleListview1.Focus();
}
ShowStatus(string.Format(_language.NoMatchFoundX, _findHelper.FindText));
if (_replaceStartLineIndex >= 1) // Prompt for start over

View File

@ -43,10 +43,10 @@
// radioButtonRegEx
//
this.radioButtonRegEx.AutoSize = true;
this.radioButtonRegEx.Location = new System.Drawing.Point(17, 97);
this.radioButtonRegEx.Location = new System.Drawing.Point(15, 149);
this.radioButtonRegEx.Name = "radioButtonRegEx";
this.radioButtonRegEx.Size = new System.Drawing.Size(56, 17);
this.radioButtonRegEx.TabIndex = 3;
this.radioButtonRegEx.TabIndex = 4;
this.radioButtonRegEx.Text = "RegEx";
this.radioButtonRegEx.UseVisualStyleBackColor = true;
this.radioButtonRegEx.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
@ -54,10 +54,10 @@
// radioButtonCaseSensitive
//
this.radioButtonCaseSensitive.AutoSize = true;
this.radioButtonCaseSensitive.Location = new System.Drawing.Point(17, 74);
this.radioButtonCaseSensitive.Location = new System.Drawing.Point(15, 126);
this.radioButtonCaseSensitive.Name = "radioButtonCaseSensitive";
this.radioButtonCaseSensitive.Size = new System.Drawing.Size(94, 17);
this.radioButtonCaseSensitive.TabIndex = 2;
this.radioButtonCaseSensitive.TabIndex = 3;
this.radioButtonCaseSensitive.Text = "Case sensitive";
this.radioButtonCaseSensitive.UseVisualStyleBackColor = true;
this.radioButtonCaseSensitive.CheckedChanged += new System.EventHandler(this.RadioButtonCheckedChanged);
@ -66,10 +66,10 @@
//
this.radioButtonNormal.AutoSize = true;
this.radioButtonNormal.Checked = true;
this.radioButtonNormal.Location = new System.Drawing.Point(17, 51);
this.radioButtonNormal.Location = new System.Drawing.Point(15, 103);
this.radioButtonNormal.Name = "radioButtonNormal";
this.radioButtonNormal.Size = new System.Drawing.Size(58, 17);
this.radioButtonNormal.TabIndex = 1;
this.radioButtonNormal.TabIndex = 2;
this.radioButtonNormal.TabStop = true;
this.radioButtonNormal.Text = "Normal";
this.radioButtonNormal.UseVisualStyleBackColor = true;
@ -105,16 +105,16 @@
//
// textBoxReplace
//
this.textBoxReplace.Location = new System.Drawing.Point(15, 144);
this.textBoxReplace.Location = new System.Drawing.Point(15, 71);
this.textBoxReplace.Name = "textBoxReplace";
this.textBoxReplace.Size = new System.Drawing.Size(265, 21);
this.textBoxReplace.TabIndex = 4;
this.textBoxReplace.TabIndex = 1;
this.textBoxReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBoxFindKeyDown);
//
// labelReplaceWith
//
this.labelReplaceWith.AutoSize = true;
this.labelReplaceWith.Location = new System.Drawing.Point(12, 127);
this.labelReplaceWith.Location = new System.Drawing.Point(12, 54);
this.labelReplaceWith.Name = "labelReplaceWith";
this.labelReplaceWith.Size = new System.Drawing.Size(72, 13);
this.labelReplaceWith.TabIndex = 14;
@ -126,7 +126,7 @@
this.labelFindWhat.Location = new System.Drawing.Point(12, 8);
this.labelFindWhat.Name = "labelFindWhat";
this.labelFindWhat.Size = new System.Drawing.Size(58, 13);
this.labelFindWhat.TabIndex = 15;
this.labelFindWhat.TabIndex = 9;
this.labelFindWhat.Text = "Find what:";
//
// buttonFind

View File

@ -365,9 +365,9 @@ namespace Nikse.SubtitleEdit.Logic
{
Title = "Find",
Find = "Find",
Normal = "Normal",
CaseSensitive = "Case sensitive",
RegularExpression = "Regular expression",
Normal = "&Normal",
CaseSensitive = "&Case sensitive",
RegularExpression = "Regular e&xpression",
};
FindSubtitleLine = new LanguageStructure.FindSubtitleLine
@ -1086,9 +1086,9 @@ namespace Nikse.SubtitleEdit.Logic
Title = "Multiple replace",
FindWhat = "Find what",
ReplaceWith = "Replace with",
Normal = "Normal",
CaseSensitive = "Case sensitive",
RegularExpression = "Regular expression",
Normal = "&Normal",
CaseSensitive = "&Case sensitive",
RegularExpression = "Regular e&xpression",
LineNumber = "Line#",
Before = "Before",
After = "After",
@ -1155,9 +1155,9 @@ can edit in same subtitle file (collaboration)",
{
Title = "Replace",
FindWhat = "Find what:",
Normal = "Normal",
CaseSensitive = "Case sensitive",
RegularExpression = "Regular expression",
Normal = "&Normal",
CaseSensitive = "&Case sensitive",
RegularExpression = "Regular e&xpression",
ReplaceWith = "Replace with",
Find = "&Find",
Replace = "&Replace",