Changeset 2201


Ignore:
Timestamp:
12/26/08 01:56:53 (3 years ago)
Author:
szabgab
Message:

add the menu name of the plugin explicitly
add about box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-CPAN/lib/Padre/Plugin/CPAN.pm

    r2093 r2201  
    1414} 
    1515 
     16sub plugin_name { 
     17    'CPAN'; 
     18} 
     19 
    1620sub menu_plugins_simple { 
    1721    'CPAN' => [ 
    18         'Edit Config',    \&edit_config, 
    19         'Install Module', \&install_module, 
     22        'Edit Config',               \&edit_config, 
     23        'Install Module',            \&install_module, 
    2024        'Upgrade All Padre Plugins', \&upgrade_all_plugins, 
     25        'About',                     \&about, 
    2126    ]; 
    2227} 
     
    138143} 
    139144 
     145 
     146sub about { 
     147    my ($main) = @_; 
     148 
     149    my $about = Wx::AboutDialogInfo->new; 
     150    $about->SetName("Padre::Plugin::CPAN"); 
     151    $about->SetDescription( 
     152        "Interface to install modules from CPAN\n" 
     153    ); 
     154    $about->SetVersion($VERSION); 
     155    Wx::AboutBox( $about ); 
     156    return; 
     157} 
     158 
     159 
    1401601; 
    141161__END__ 
Note: See TracChangeset for help on using the changeset viewer.