line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tkx::TclTk::Bind::ImageLibrary; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ############################################################################## |
4
|
|
|
|
|
|
|
# # Script : Tkx::TclTk::Bind::ImageLibrary.pm # |
5
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
6
|
|
|
|
|
|
|
# # Sprache : PERL 5 (V) 5.8.xx - 5.16.xx # |
7
|
|
|
|
|
|
|
# # Standards : Perl-Best-Practices severity 1 (brutal) # |
8
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
9
|
|
|
|
|
|
|
# # Autoren : Jürgen von Brietzke JvBSoft # |
10
|
|
|
|
|
|
|
# # Version : 1.2.01 16.Jun.2013 # |
11
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
12
|
|
|
|
|
|
|
# # Aufgabe : Bindet die TclTk 'Img1.4.0.4' Bibliothek an Perl::Tkx # |
13
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
14
|
|
|
|
|
|
|
# # Pragmas : strict, warnings # |
15
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
16
|
|
|
|
|
|
|
# # Module : Tkx::TclTk::Bind Private-Module # |
17
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
18
|
|
|
|
|
|
|
# # Copyright : Frei unter GNU General Public License bzw. Artistic License # |
19
|
|
|
|
|
|
|
# # -------------------------------------------------------------------------- # |
20
|
|
|
|
|
|
|
# # TODO : POD - Documentation # |
21
|
|
|
|
|
|
|
# ############################################################################## |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
27268
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
24
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
our $VERSION = q{1.2.01}; |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
|
3983
|
use Tkx::TclTk::Bind qw{ &load_library }; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub BEGIN { |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my $path_to_image_library; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $temp_dir = load_library( 'image', 'Img1.4.0.4' ); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# --- Steuervariablen belegen ----------------------------------------------- |
37
|
|
|
|
|
|
|
$path_to_image_library = File::Spec->catfile( $temp_dir, 'Img1.4.0.4' ); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# --- Image-Library in Tkx binden ------------------------------------------- |
40
|
|
|
|
|
|
|
Tkx::lappend( '::auto_path', $path_to_image_library ); |
41
|
|
|
|
|
|
|
Tkx::package_require('img::bmp'); |
42
|
|
|
|
|
|
|
Tkx::package_require('img::gif'); |
43
|
|
|
|
|
|
|
Tkx::package_require('img::ico'); |
44
|
|
|
|
|
|
|
Tkx::package_require('img::jpeg'); |
45
|
|
|
|
|
|
|
Tkx::package_require('img::pcx'); |
46
|
|
|
|
|
|
|
Tkx::package_require('img::pixmap'); |
47
|
|
|
|
|
|
|
Tkx::package_require('img::png'); |
48
|
|
|
|
|
|
|
Tkx::package_require('img::ppm'); |
49
|
|
|
|
|
|
|
Tkx::package_require('img::ps'); |
50
|
|
|
|
|
|
|
Tkx::package_require('img::sgi'); |
51
|
|
|
|
|
|
|
Tkx::package_require('img::sun'); |
52
|
|
|
|
|
|
|
Tkx::package_require('img::tga'); |
53
|
|
|
|
|
|
|
Tkx::package_require('img::tiff'); |
54
|
|
|
|
|
|
|
Tkx::package_require('img::window'); |
55
|
|
|
|
|
|
|
Tkx::package_require('img::xbm'); |
56
|
|
|
|
|
|
|
Tkx::package_require('img::xpm'); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
} # end of sub BEGIN |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
# ############################################################################## |
61
|
|
|
|
|
|
|
# # E N D # |
62
|
|
|
|
|
|
|
# ############################################################################## |
63
|
|
|
|
|
|
|
1; |
64
|
|
|
|
|
|
|
__END__ |