Breno G. de Oliveira > Padre-0.45 > Padre::QuickFixProvider

Download:
Padre-0.45.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.45   Source   Latest Release: Padre-0.47

NAME ^

Padre::QuickFixProvider - Padre Quick Fix Provider API

DESCRIPTION ^

Quick Fix (Shortcut: Ctrl-2)

This opens a dialog that lists different actions that relate to fixing the code at the cursor. It will call event_on_quick_fix method passing a Padre::Wx::Editor object on the current Padre document. Please see the following sample implementation:

        sub quick_fix_list {
                my ($self, $editor) = @_;
                
                my @items = ( 
                        {
                                text     => '123...', 
                                listener => sub { 
                                        print "123...\n";
                                } 
                        },
                        {
                                text     => '456...', 
                                listener => sub { 
                                        print "456...\n";
                                } 
                        },
                );
                
                return @items;
        }
syntax highlighting: