NAME
Padre::Wx::Dialog::Replace - Find and Replace Widget
DESCRIPTION
Padre::Wx:Main
implements Padre's Find and Replace dialog box.
METHODS
new
my $find = Padre::Wx::Dialog::Replace->new($main);
Create and return a Padre::Wx::Dialog::Replace
search and replace widget.
cancel
$self->cancel
Hide dialog when pressed cancel button.
find
$self->find
Grab currently selected text, if any, and place it in find combo box. Bring up the dialog or perform search for strings' next occurence if dialog is already displayed.
TODO: if selection is more than one line then consider it as the limit of the search and not as the string to be used.
find_clicked
$self->find_clicked
Executed when Find button is clicked.
Performs search on the term specified in the dialog.
find_next
$self->find_next
Search for given string's next occurence. If no string is available (either as a selected text in editor, if Quick Find is on, or from search history) run find
method.
find_previous
$self->find_previous
Perform backward search for string fetched from search history or run find
method if search history is empty.
search
$self->search
Perform actual search. Highlight (set as selected) found string.
replace_clicked
$self->replace_clicked;
Executed when the Replace button is clicked.
Replaces one appearance of the Find Text with the Replace Text.
If search window is still open, run search
on the whole text, again.
replace_all
$self->replace_all;
Executed when Replace All button is clicked.
Replace all appearances of given string in the current document.
$self->replace;
Perform actual single replace. Highlight (set as selected) found string.
COPYRIGHT & LICENSE
Copyright 2008-2009 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.