Padre::Document::Perl.3pm

Langue: en

Version: 2010-06-11 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

get_command

Returns the full command (interpreter, file name (maybe temporary) and arguments for both of them) for running the current document.

Accepts one optional argument: a debug flag.

beginner_check

Run the beginner error checks on the current document.

Shows a pop-up message for the first error.

Always returns 1 (true).

autocomplete

This method is called on two events:
Manually using the autocomplete-action (via menu, toolbar, hot key)
on every char typed by the user if the autocomplete-always configuration option is active

Arguments: The event object (optional)

Returns the prefix length and an array of suggestions. "prefix_length" is the number of characters left to the cursor position which need to be replaced if a suggestion is accepted.

WARNING: This method runs very often (on each keypress), keep it as efficient
         and fast as possible!

event_on_char

This event fires once for every char which should be added to the editor window.

Typing this line fired it about 41 times!

Arguments: Current editor object, current event object

Returns nothing useful.

Notice: The char being typed has not been inserted into the editor at the run
        time of this method. It could be read using "$event->GetUnicodeKey"

WARNING: This method runs very often (on each keypress), keep it as efficient
         and fast as possible!

project_tagsfile

No arguments.

Returns the full path and file name of the Perl tags file for the current document.

project_create_tagsfile

Creates a tags file for the project of the current document. Includes all Perl source files within the project excluding blib.