Changeset 7483
- Timestamp:
- 08/23/09 06:58:54 (2 years ago)
- Location:
- trunk/Padre/lib/Padre
- Files:
-
- 2 edited
-
QuickFixProvider.pm (modified) (1 diff)
-
Wx/Menu/Edit.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/QuickFixProvider.pm
r7481 r7483 38 38 =head1 DESCRIPTION 39 39 40 =head2 Quick Fix (Shortcut: Ctrl-2) 41 42 This opens a dialog that lists different actions that relate to 43 fixing the code at the cursor. It will call B<event_on_quick_fix> method 44 passing a L<Padre::Wx::Editor> object on the current Padre document. 45 Please 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 40 70 The B<Padre::QuickFixProvider> class provides a base class, default implementation 41 71 and API documentation for quick fix provision support in L<Padre>. -
trunk/Padre/lib/Padre/Wx/Menu/Edit.pm
r7480 r7483 218 218 ); 219 219 $editor->UserListShow( 1, $words ); 220 221 =pod222 =head2 Quick Fix (Shortcut: Ctrl + Shift + 1)223 224 This opens a dialog that lists different actions that relate to225 fixing the code at the cursor. It will call B<event_on_quick_fix> method226 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 =cut251 252 220 }, 253 221 );
Note: See TracChangeset
for help on using the changeset viewer.
