line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Wrangler::Wx::App; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1676
|
use Wx qw(:everything); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use base 'Wx::App'; |
8
|
|
|
|
|
|
|
use Wrangler::Wx::Main; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub OnInit { # Called from $app automatically |
11
|
|
|
|
|
|
|
Wrangler::debug("Wrangler::Wx::App::OnInit"); |
12
|
|
|
|
|
|
|
return 1; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub create { |
16
|
|
|
|
|
|
|
Wrangler::debug("Wrangler::Wx::App::create"); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
$_[0]->{wrangler} = $_[1]; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# create the top level window |
21
|
|
|
|
|
|
|
return Wrangler::Wx::Main->new($_[0]->{wrangler}); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
## following methods are mostly unused, we might lose them soon |
25
|
|
|
|
|
|
|
sub wrangler { |
26
|
|
|
|
|
|
|
$_[0]->{wrangler}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub config { |
30
|
|
|
|
|
|
|
$_[0]->{wrangler}->config; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub main { |
34
|
|
|
|
|
|
|
$_[0]->{main}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |