Skip to content

Commit 31a63a5

Browse files
committed
Add "More..." button to Quick Find
1 parent 846d257 commit 31a63a5

6 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎FlashDevelop/Controls/QuickFind.cs‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class QuickFind : ToolStripEx, IEventHandler
3333
private ToolStripControlHost matchCaseHost;
3434
private ToolStripControlHost highlightHost;
3535
private ToolStripButton previousButton;
36+
private ToolStripButton moreButton;
3637
private EscapeTextBox findTextBox;
3738
private ToolStripLabel findLabel;
3839
private ToolStripLabel infoLabel;
@@ -78,6 +79,7 @@ public void InitializeComponent()
7879
this.highlightCheckBox = new CheckBox();
7980
this.nextButton = new ToolStripButton();
8081
this.closeButton = new ToolStripButton();
82+
this.moreButton = new ToolStripButton();
8183
this.highlightHost = new ToolStripControlHost(this.highlightCheckBox);
8284
this.matchCaseHost = new ToolStripControlHost(this.matchCaseCheckBox);
8385
this.wholeWordHost = new ToolStripControlHost(this.wholeWordCheckBox);
@@ -159,6 +161,13 @@ public void InitializeComponent()
159161
this.findTextBox.OnKeyEscape += new KeyEscapeEvent(this.FindTextBoxOnKeyEscape);
160162
this.findTextBox.Margin = new Padding(0, 1, 7, 2);
161163
//
164+
// moreButton
165+
//
166+
this.moreButton.Click += new EventHandler(this.MoreButtonClick);
167+
this.moreButton.Text = TextHelper.GetString("Label.More");
168+
this.moreButton.Alignment = ToolStripItemAlignment.Right;
169+
this.moreButton.Margin = new Padding(0, 1, 5, 2);
170+
//
162171
// QuickFind
163172
//
164173
this.Items.Add(this.closeButton);
@@ -170,6 +179,7 @@ public void InitializeComponent()
170179
this.Items.Add(this.wholeWordHost);
171180
this.Items.Add(this.highlightHost);
172181
this.Items.Add(this.infoLabel);
182+
this.Items.Add(this.moreButton);
173183
this.GripStyle = ToolStripGripStyle.Hidden;
174184
this.Renderer = new QuickFindRenderer();
175185
this.Padding = new Padding(4, 4, 0, 3);
@@ -528,6 +538,15 @@ private void CloseButtonClick(Object sender, EventArgs e)
528538
this.ApplyFixedDocumentPadding();
529539
}
530540

541+
/// <summary>
542+
/// Open the Find And Replace dialog
543+
/// </summary>
544+
private void MoreButtonClick(Object sender, EventArgs e)
545+
{
546+
this.CloseButtonClick(null, null);
547+
PluginBase.MainForm.CallCommand("FindAndReplaceFrom", this.findTextBox.Text);
548+
}
549+
531550
/// <summary>
532551
/// Adds highlights to the correct sci control
533552
/// </summary>

‎PluginCore/PluginCore/Resources/de_DE.resX‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,10 @@ Ansonsten kann Adobe Flash Professional auch zum Überprüfen der Syntax verwend
12971297
<data name="FlashDevelop.Label.WholeWord" xml:space="preserve">
12981298
<value>&amp;Ganzes Wort</value>
12991299
</data>
1300+
<data name="FlashDevelop.Label.More" xml:space="preserve">
1301+
<value>&amp;Mehr...</value>
1302+
<comment>Added after 4.7.0</comment>
1303+
</data>
13001304
<data name="FlashDevelop.Label.WindowsExplorer" xml:space="preserve">
13011305
<value>Windows &amp;Explorer</value>
13021306
</data>

‎PluginCore/PluginCore/Resources/en_US.resX‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,10 @@ Alternatively, Adobe Flash Professional can also be used for syntax checking - p
12801280
<data name="FlashDevelop.Label.WholeWord" xml:space="preserve">
12811281
<value>&amp;Whole word</value>
12821282
</data>
1283+
<data name="FlashDevelop.Label.More" xml:space="preserve">
1284+
<value>&amp;More...</value>
1285+
<comment>Added after 4.7.0</comment>
1286+
</data>
12831287
<data name="FlashDevelop.Label.WindowsExplorer" xml:space="preserve">
12841288
<value>Windows &amp;Explorer</value>
12851289
</data>

‎PluginCore/PluginCore/Resources/eu_ES.resX‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,10 @@ Alternatiba gisa, Adobe Flash Professional ere sintaxi egiaztapenerako erabil da
12791279
<data name="FlashDevelop.Label.WholeWord" xml:space="preserve">
12801280
<value>Hitz osoa</value>
12811281
</data>
1282+
<data name="FlashDevelop.Label.More" xml:space="preserve">
1283+
<value>&amp;More...</value>
1284+
<comment>Added after 4.7.0</comment>
1285+
</data>
12821286
<data name="FlashDevelop.Label.WindowsExplorer" xml:space="preserve">
12831287
<value>Windows Arakatzailea</value>
12841288
</data>

‎PluginCore/PluginCore/Resources/ja_JP.resX‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,10 @@
12871287
<data name="FlashDevelop.Label.WholeWord" xml:space="preserve">
12881288
<value>単語単位(&amp;W)</value>
12891289
</data>
1290+
<data name="FlashDevelop.Label.More" xml:space="preserve">
1291+
<value>&amp;More...</value>
1292+
<comment>Added after 4.7.0</comment>
1293+
</data>
12901294
<data name="FlashDevelop.Label.WindowsExplorer" xml:space="preserve">
12911295
<value>エクスプローラー(&amp;E)</value>
12921296
</data>

‎PluginCore/PluginCore/Resources/zh_CN.resx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,10 @@
12801280
<data name="FlashDevelop.Label.WholeWord" xml:space="preserve">
12811281
<value>整个字符(&amp;W)</value>
12821282
</data>
1283+
<data name="FlashDevelop.Label.More" xml:space="preserve">
1284+
<value>&amp;More...</value>
1285+
<comment>Added after 4.7.0</comment>
1286+
</data>
12831287
<data name="FlashDevelop.Label.WindowsExplorer" xml:space="preserve">
12841288
<value>Windows 资源管理器(&amp;E)</value>
12851289
</data>

0 commit comments

Comments
 (0)