Changeset 8594
- Timestamp:
- 10/03/09 13:23:42 (2 years ago)
- Location:
- trunk/Padre-Plugin-Parrot
- Files:
-
- 3 edited
-
Changes (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/Padre/Plugin/Parrot.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Parrot/Changes
r8489 r8594 1 1 Revision history for Padre-Plugin-Parrot 2 3 - Add menu option to open one of the installed example files. 2 4 3 5 0.26 2009.10.02 -
trunk/Padre-Plugin-Parrot/Makefile.PL
r8508 r8594 30 30 31 31 #requires => 'Parrot::Embed' => 0; 32 requires => 'File::ShareDir' => 0; 32 33 test_requires 'Test::More' => '0.47'; 33 34 no_index 'directory' => qw{ t xt eg share inc privinc}; -
trunk/Padre-Plugin-Parrot/lib/Padre/Plugin/Parrot.pm
r8502 r8594 220 220 my $self = shift; 221 221 return $self->plugin_name => [ 222 'About' => sub { $self->about }, 223 'PIR 2 PBC' => sub { $self->pir2pbc }, 222 'About' => sub { $self->about }, 223 'Open Example' => sub { $self->open_example }, 224 'PIR 2 PBC' => sub { $self->pir2pbc }, 224 225 225 226 #'Help' => \&show_help, … … 400 401 } 401 402 403 sub open_example { 404 require File::ShareDir; 405 my $dir = File::Spec->catdir( 406 File::ShareDir::dist_dir('Padre-Plugin-Parrot'), 407 'examples'); 408 409 my $main = Padre->ide->wx->main; 410 return $main->open_file_dialog( $dir ); 411 } 412 402 413 sub about { 403 my ($main) = @_;404 405 414 my $about = Wx::AboutDialogInfo->new; 406 415 $about->SetName(__PACKAGE__);
Note: See TracChangeset
for help on using the changeset viewer.
