Changes between Version 5 and Version 6 of PadrePluginCookbook01


Ignore:
Timestamp:
Jun 4, 2011, 8:00:13 PM (4 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginCookbook01

    v5 v6  
    144144== Step 4 Perl Plug-in Code 
    145145* Read POD for {{{Padre::Plugin}}} 
    146 * Read POD for Cookbook01.pm and Main.pm 
     146* Read POD for Cookbook01.pm and Main.pm. 
     147 * Cookbook01 Required methods with minimum requirements 
     148{{{#!perl 
     149sub padre_interfaces { 
     150        return ( 
     151                # Default, required 
     152                'Padre::Plugin'         => 0.84, 
     153                # used by MainFB by Padre::Plugin::FormBuilder 
     154                'Padre::Wx::Role::Main' => 0.84, 
     155                # used by MainFb by Padre::Plugin::FormBuilder 
     156                'Wx::Dialog'            => 0.00, 
     157                ); 
     158} 
     159# Called by Padre::Wx::Dialog::PluginManager 
     160# my @needs = $plugin->padre_interfaces; 
     161 
     162sub plugin_name { 
     163        return 'Cookbook01'; 
     164} 
     165 
     166# Called by Padre::Wx::Dialog::PluginManager 
     167# Updating plug-in name in right pane 
     168# $self->{label}->SetLabel( $plugin->plugin_name ); 
     169}}} 
    147170* Run Tests, note results, //critiques welcome.   
    148171