Padre::Wx::Dialog::Replace - Find and Replace Widget


Padre documentation  | view source Contained in the Padre distribution.

Index


NAME

Top

Padre::Wx::Dialog::Replace - Find and Replace Widget

DESCRIPTION

Top

Padre::Wx:Main implements Padre's Find and Replace dialog box.

METHODS

Top

new

  my $find = Padre::Wx::Dialog::Replace->new($main);
Create and return a C<Padre::Wx::Dialog::Replace> search and replace widget.

find

  $self->find

Grab currently selected text, if any, and place it in find combo box. Bring up the dialog or perform search for string's next occurrence if dialog is already displayed.

TO DO: 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_button

  $self->find_button

Executed when Find button is clicked.

Performs search on the term specified in the dialog.

close

  $self->close

Hide dialog.

replace_button

  $self->replace_button;

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.

Integration with Padre::Search. Generates a search instance for the currently configured information in the Find dialog.

Returns a Padre::Search object, or undef if current state of the dialog does not result in a valid search.

COPYRIGHT & LICENSE

Top


Padre documentation  | view source Contained in the Padre distribution.