| 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__ | ||