line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Padre::Plugin::WxWidgets; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1344
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
63
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
17
|
use base 'Padre::Plugin'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
17242
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
714
|
use Padre::Wx (); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
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__ |