| 1 | package Padre::Plugin::WxWidgets; | ||
| 2 | |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | our $VERSION = '0.05'; | ||
| 7 | |||
| 8 | 1 | ▶ | use base 'Padre::Plugin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 0 | ▶ | use Padre::Wx (); |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 11 | |||
| 12 | ####### | ||
| 13 | # Define Plugin Name required | ||
| 14 | ####### | ||
| 15 | sub plugin_name { | ||
| 16 | return Wx::gettext('wxWidgets Support'); | ||
| 17 | } | ||
| 18 | |||
| 19 | sub padre_interfaces { | ||
| 20 | 'Padre::Plugin' => '0.91',; | ||
| 21 | } | ||
| 22 | |||
| 23 | sub menu_plugins_simple { | ||
| 24 | my $self = shift; | ||
| 25 | |||
| 26 | return ( | ||
| 27 | Wx::gettext('wxWidgets Support') => [ | ||
| 28 | Wx::gettext('About'), sub { $self->show_about }, | ||
| 29 | ] | ||
| 30 | ); | ||
| 31 | } | ||
| 32 | |||
| 33 | sub show_about { | ||
| 34 | my $about = Wx::AboutDialogInfo->new; | ||
| 35 | $about->SetName("Padre::Plugin::WxWidgets"); | ||
| 36 | $about->SetDescription( Wx::gettext('wxWidgets support for Padre') ); | ||
| 37 | $about->SetVersion($Padre::Plugin::WxWidgets::VERSION); | ||
| 38 | Wx::AboutBox($about); | ||
| 39 | return; | ||
| 40 | } | ||
| 41 | |||
| 42 | |||
| 43 | 1; | ||
| 44 | __END__ | ||