Changeset 7483


Ignore:
Timestamp:
08/23/09 06:58:54 (2 years ago)
Author:
azawawi
Message:

[Padre] Moved & fixed pod docs

Location:
trunk/Padre/lib/Padre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/QuickFixProvider.pm

    r7481 r7483  
    3838=head1 DESCRIPTION 
    3939 
     40=head2 Quick Fix (Shortcut: Ctrl-2) 
     41 
     42This opens a dialog that lists different actions that relate to  
     43fixing the code at the cursor. It will call B<event_on_quick_fix> method  
     44passing a L<Padre::Wx::Editor> object on the current Padre document.  
     45Please see the following sample implementation: 
     46 
     47    sub quick_fix_list { 
     48        my ($self, $editor) = @_; 
     49         
     50        my @items = (  
     51            { 
     52                text     => '123...',  
     53                listener => sub {  
     54                    print "123...\n"; 
     55                }  
     56            }, 
     57            { 
     58                text     => '456...',  
     59                listener => sub {  
     60                    print "456...\n"; 
     61                }  
     62            }, 
     63        ); 
     64         
     65        return @items; 
     66    } 
     67 
     68=cut 
     69 
    4070The B<Padre::QuickFixProvider> class provides a base class, default implementation 
    4171and API documentation for quick fix provision support in L<Padre>. 
  • trunk/Padre/lib/Padre/Wx/Menu/Edit.pm

    r7480 r7483  
    218218            ); 
    219219            $editor->UserListShow( 1, $words ); 
    220  
    221 =pod 
    222 =head2 Quick Fix (Shortcut: Ctrl + Shift + 1) 
    223  
    224 This opens a dialog that lists different actions that relate to  
    225 fixing the code at the cursor. It will call B<event_on_quick_fix> method  
    226 passing a L<Padre::Wx::Editor> object on the current Padre document.  
    227 Please see the following sample implementation: 
    228  
    229     sub event_on_quick_fix { 
    230         my ($self, $editor) = @_; 
    231          
    232         my @items = (  
    233             { 
    234                 text     => '123...',  
    235                 listener => sub {  
    236                     print "123...\n"; 
    237                 }  
    238             }, 
    239             { 
    240                 text     => '456...',  
    241                 listener => sub {  
    242                     print "456...\n"; 
    243                 }  
    244             }, 
    245         ); 
    246          
    247         return @items; 
    248     } 
    249  
    250 =cut 
    251  
    252220        }, 
    253221    ); 
Note: See TracChangeset for help on using the changeset viewer.