blib/lib/Padre/Plugin/WxWidgets.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 CC 1 SCAR 0.7
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
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__
↑ Summary