lib/Kephra.pm

filter: Statementstmt 75.0% 6 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 81.8% 9 / 11 CC 1 SCAR 0.9
CC
1
Cov
75%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« lib/Kephra/Config/Default.pm ↑ Summary lib/Kephra/App/Dialog.pm »
1 #!usr/bin/perl
2 1 ▶use v5.12;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶use Wx;
Subroutine BEGIN: called CC=1 SCAR=2.6
5 use Kephra::App::Window;
6 use Kephra::Config;
7  
8 package Kephra;
9  
10 our $VERSION = '0.406';
11 our $NAME = 'Kephra';
12 our $STAGE = 'less';
13  
14 use base qw(Wx::App);
15  
16 sub OnInit {
17 my $app = shift;
18 my $config = $app->{'config'} = Kephra::Config->new();
19 my $window = $app->{'window'} = Kephra::App::Window->new( $app );
20 $window->Center();
21 $window->Show(1);
22 $app->SetTopWindow( $window );
23 1;
24 }
25  
26 sub close { $_[0]->{'window'}->Close() }
27  
28 sub OnExit {
29 my $app = shift;
30 Wx::wxTheClipboard->Flush;
31 $app->{'config'}->write;
32 # $app->{'window'}->Destroy;
33 1;
34 }
35  
36 1;
37  
38 __END__
« lib/Kephra/Config/Default.pm ↑ Summary lib/Kephra/App/Dialog.pm »