line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Kephra::Dialog::Info;
|
2
|
|
|
|
|
|
|
our $VERSION = '0.08';
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1009
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
70
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
580
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub combined {
|
8
|
0
|
|
|
0
|
0
|
|
return simple();
|
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
my $info_win = Wx::Frame->new(
|
11
|
|
|
|
|
|
|
Kephra::App::Window::_ref(), -1,
|
12
|
|
|
|
|
|
|
" Info About Kephra",
|
13
|
|
|
|
|
|
|
[ 100, 100 ],
|
14
|
|
|
|
|
|
|
[ 460, 260 ],
|
15
|
|
|
|
|
|
|
&Wx::wxSYSTEM_MENU | &Wx::wxCAPTION | &Wx::wxMINIMIZE_BOX | &Wx::wxCLOSE_BOX,
|
16
|
|
|
|
|
|
|
);
|
17
|
0
|
|
|
|
|
|
Kephra::App::Window::load_icon( $info_win,
|
18
|
|
|
|
|
|
|
Kephra::API::settings()->{app}{window}{icon} );
|
19
|
0
|
|
|
|
|
|
$info_win->SetBackgroundColour( Wx::Colour->new( 0xed, 0xeb, 0xdb ) );
|
20
|
|
|
|
|
|
|
# Wx::HyperlinkCtrl->new($win,-1,label,url,pos,size,wxHL_CONTEXTMENU)
|
21
|
0
|
|
|
|
|
|
$info_win->Centre(&Wx::wxBOTH);
|
22
|
0
|
|
|
|
|
|
$info_win->Show(1);
|
23
|
|
|
|
|
|
|
}
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub simple {
|
26
|
0
|
|
|
0
|
0
|
|
my $info = Kephra::Config::Localisation::strings()->{dialog}{info};
|
27
|
0
|
|
|
|
|
|
my $sciv = 'Scintilla ';
|
28
|
0
|
|
|
|
|
|
my $v = substr(&Wx::wxVERSION_STRING ,-5);
|
29
|
0
|
0
|
|
|
|
|
if ($v eq '2.4.2'){$sciv .= '1.54'}
|
|
0
|
0
|
|
|
|
|
|
|
0
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
elsif ($v eq '2.6.2'){$sciv .= '1.62'}
|
31
|
0
|
|
|
|
|
|
elsif ($v eq '2.6.3'){$sciv .= '1.62'}
|
32
|
0
|
|
|
|
|
|
elsif ($v eq '2.8.4'){$sciv .= '1.70'}
|
33
|
0
|
|
|
|
|
|
elsif ($v eq '2.8.7'){$sciv .= '1.70'}
|
34
|
|
|
|
|
|
|
elsif ($v eq '2.8.10'){$sciv .= '1.70'}
|
35
|
0
|
|
|
|
|
|
my $content = "Kephra, $info->{motto}\n"
|
36
|
|
|
|
|
|
|
. $info->{mady_by} . " Herbert Breunung\n\n"
|
37
|
|
|
|
|
|
|
. $info->{licensed} . " GPL (GNU Public License) \n"
|
38
|
|
|
|
|
|
|
. " ( $info->{detail} \n $info->{more} ) \n"
|
39
|
|
|
|
|
|
|
. "$info->{homepage} http://kephra.sf.net\n\n"
|
40
|
|
|
|
|
|
|
. $info->{contains} . ": \n"
|
41
|
|
|
|
|
|
|
. " - Perl ". substr($],0,1).'.'.int(substr($],3,2)).'.'.substr($],7,1)."\n"
|
42
|
|
|
|
|
|
|
. " - WxPerl $Wx::VERSION $info->{wrappes} \n"
|
43
|
|
|
|
|
|
|
. " - " . &Wx::wxVERSION_STRING . " $info->{and} $sciv\n"
|
44
|
|
|
|
|
|
|
. " - Config::General $Config::General::VERSION \n"
|
45
|
|
|
|
|
|
|
. " - YAML::Tiny $YAML::Tiny::VERSION \n"
|
46
|
|
|
|
|
|
|
."\n\n $info->{dedication}"
|
47
|
|
|
|
|
|
|
. "";
|
48
|
0
|
|
|
|
|
|
my $title = "$info->{title} $Kephra::NAME $Kephra::VERSION";
|
49
|
0
|
0
|
|
|
|
|
$title .= ' pl ' . $Kephra::PATCHLEVEL if $Kephra::PATCHLEVEL;
|
50
|
0
|
|
|
|
|
|
Kephra::Dialog::msg_box( $content, $title );
|
51
|
|
|
|
|
|
|
}
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1;
|
54
|
|
|
|
|
|
|
|