| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package CPANPLUS::Shell::Wx; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Module name: CPANPLUS::Shell::Wx |
|
4
|
|
|
|
|
|
|
# Author: Skaman Sam Tyler |
|
5
|
|
|
|
|
|
|
# Date: May 9th, 2008 |
|
6
|
|
|
|
|
|
|
# Description: This is a perl Module which is a frontend to CPANPLUS. |
|
7
|
|
|
|
|
|
|
# |
|
8
|
|
|
|
|
|
|
# NOTES: |
|
9
|
|
|
|
|
|
|
# NOTE I have used the methods contained in CPANPLUS::Shell::Tk to create |
|
10
|
|
|
|
|
|
|
# my skeleton code for this module. |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Preloaded methods go here. |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
CPANPLUS::Shell::Wx - A CPANPLUS GUI Shell written in wxWidgets |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 AUTHOR |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Skaman Sam Tyler |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
perl -MCPANPLUS -eshell(Wx); |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This is a GUI shell for CPANPLUS. |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 FURTHER HELP |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
There is full online documentation, accessible via the help menu. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
CPAN, CPANPLUS, CPANPLUS::Shell::Tk |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
website: http://wxcpan.googlecode.com |
|
41
|
|
|
|
|
|
|
mailing-list: wxcpan@googlegroups.com |
|
42
|
|
|
|
|
|
|
mailing-list website: http://groups.google.com/group/wxcpan |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Skaman Sam Tyler, Eskamansam@gmail.comE |
|
47
|
|
|
|
|
|
|
website: http://rbe.homeip.net |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Copyright (C) 2008 by Skaman Sam Tyler |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
54
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
|
55
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
|
58
|
|
|
|
|
|
|
|
|
59
|
1
|
|
|
1
|
|
572018
|
use 5.005; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
42
|
|
|
60
|
1
|
|
|
1
|
|
6
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
38
|
|
|
61
|
|
|
|
|
|
|
|
|
62
|
1
|
|
|
1
|
|
5
|
use CPANPLUS::Error; |
|
|
1
|
|
|
|
|
6
|
|
|
|
1
|
|
|
|
|
84
|
|
|
63
|
1
|
|
|
1
|
|
6
|
use CPANPLUS::Backend; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
24
|
|
|
64
|
1
|
|
|
1
|
|
1150
|
use CPANPLUS::Configure::Setup; |
|
|
1
|
|
|
|
|
34674
|
|
|
|
1
|
|
|
|
|
36
|
|
|
65
|
1
|
|
|
1
|
|
9
|
use CPANPLUS::Internals::Constants; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
443
|
|
|
66
|
1
|
|
|
1
|
|
6
|
use CPANPLUS::Internals::Constants::Report qw[GRADE_FAIL]; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
64
|
|
|
67
|
|
|
|
|
|
|
|
|
68
|
1
|
|
|
1
|
|
5
|
use Cwd; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
56
|
|
|
69
|
1
|
|
|
1
|
|
5
|
use IPC::Cmd; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
40
|
|
|
70
|
1
|
|
|
1
|
|
6
|
use Data::Dumper; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
78
|
|
|
71
|
1
|
|
|
1
|
|
450
|
use Wx; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
use Module::Load qw[load]; |
|
74
|
|
|
|
|
|
|
use Params::Check qw[check]; |
|
75
|
|
|
|
|
|
|
use Module::Load::Conditional qw[can_load check_install]; |
|
76
|
|
|
|
|
|
|
use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
use CPANPLUS::Shell::Wx::App; |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
local $Params::Check::VERBOSE = 1; |
|
81
|
|
|
|
|
|
|
local $Data::Dumper::Indent = 1; # for dumpering from ! |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
#---- where we begin! |
|
84
|
|
|
|
|
|
|
BEGIN { |
|
85
|
|
|
|
|
|
|
use vars qw( @ISA $VERSION ); |
|
86
|
|
|
|
|
|
|
@ISA = qw( CPANPLUS::Shell::_Base CPANPLUS::Backend); |
|
87
|
|
|
|
|
|
|
$VERSION = '0.04'; |
|
88
|
|
|
|
|
|
|
} |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
#initialize the class |
|
91
|
|
|
|
|
|
|
sub new { |
|
92
|
|
|
|
|
|
|
my $proto = shift; |
|
93
|
|
|
|
|
|
|
my $class = ref($proto) || $proto; |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
my $self ={}; |
|
96
|
|
|
|
|
|
|
bless $self,$class; |
|
97
|
|
|
|
|
|
|
return $self; |
|
98
|
|
|
|
|
|
|
} |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
#create the shell and start the app |
|
101
|
|
|
|
|
|
|
sub shell{ |
|
102
|
|
|
|
|
|
|
my $self=shift; |
|
103
|
|
|
|
|
|
|
my $app=CPANPLUS::Shell::Wx::App->new(); |
|
104
|
|
|
|
|
|
|
$app->MainLoop; |
|
105
|
|
|
|
|
|
|
} |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
1; |