Snippet/FBP/Preferences.pm untested

filter: Statementstmt 0.0% 0 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 49 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Padre::Plugin::Snippet::FBP::Preferences;
2  
3 ## no critic
4  
5 # This module was generated by Padre::Plugin::FormBuilder::Perl.
6 # To change this module edit the original .fbp file and regenerate.
7 # DO NOT MODIFY THIS FILE BY HAND!
8  
9 use 5.008005;
10 use utf8;
11 use strict;
12 use warnings;
13 use Padre::Wx ();
14 use Padre::Wx::Role::Main ();
15  
16 our $VERSION = '0.01';
17 our @ISA = qw{
18 Padre::Wx::Role::Main
19 Wx::Dialog
20 };
21  
22 sub new {
23 my $class = shift;
24 my $parent = shift;
25  
26 my $self = $class->SUPER::new(
27 $parent,
28 -1,
29 Wx::gettext("Snippet Preferences"),
30 Wx::DefaultPosition,
31 [ 245, 120 ],
32 Wx::DEFAULT_DIALOG_STYLE,
33 );
34  
35 $self->{snippets_checkbox} = Wx::CheckBox->new(
36 $self,
37 -1,
38 Wx::gettext("Enable Snippets?"),
39 Wx::DefaultPosition,
40 Wx::DefaultSize,
41 );
42  
43 $self->{static_line} = Wx::StaticLine->new(
44 $self,
45 -1,
46 Wx::DefaultPosition,
47 Wx::DefaultSize,
48 Wx::LI_HORIZONTAL,
49 );
50  
51 $self->{ok_button} = Wx::Button->new(
52 $self,
53 Wx::ID_OK,
54 Wx::gettext("OK"),
55 Wx::DefaultPosition,
56 Wx::DefaultSize,
57 );
58  
59 $self->{cancel_button} = Wx::Button->new(
60 $self,
61 Wx::ID_CANCEL,
62 Wx::gettext("Cancel"),
63 Wx::DefaultPosition,
64 Wx::DefaultSize,
65 );
66  
67 my $generated_code_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL);
68  
69 my $button_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL);
70 $button_sizer->Add( 0, 0, 1, Wx::EXPAND, 5 );
71 $button_sizer->Add( $self->{ok_button}, 0, Wx::ALL, 5 );
72 $button_sizer->Add( $self->{cancel_button}, 0, Wx::ALL, 5 );
73  
74 my $sizer = Wx::BoxSizer->new(Wx::VERTICAL);
75 $sizer->Add( $generated_code_sizer, 0, Wx::EXPAND, 5 );
76 $sizer->Add( $self->{snippets_checkbox}, 0, Wx::ALL, 5 );
77 $sizer->Add( $self->{static_line}, 0, Wx::EXPAND | Wx::ALL, 5 );
78 $sizer->Add( $button_sizer, 0, Wx::EXPAND, 5 );
79  
80 $self->SetSizer($sizer);
81 $self->Layout;
82  
83 return $self;
84 }
85  
86 1;
87  
88 # Copyright 2008-2012 The Padre development team as listed in Padre.pm.
89 # LICENSE
90 # This program is free software; you can redistribute it and/or
91 # modify it under the same terms as Perl 5 itself.
92