forked from dk/Prima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
160 lines (115 loc) · 3.96 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
DESCRIPTION
===========
PRIMA is a general purpose extensible graphical user interface toolkit with a
rich set of standard widgets and an emphasis on 2D image processing tasks. A
Perl program using PRIMA looks and behaves identically on X11 and Win32.
PREREQUISITES
=============
Prima can use several graphic libraries to handle image files. Compiling Prima
with at least one library, preferably for GIF files is strongly recommended,
because internal library images are stored in GIFs. Support for the following
libraries can be compiled in on all platforms:
- libXpm
- libpng
- libjpeg
- libungif
- libtiff
- libX11 - support for native X11 bitmap files
For Win32, CPAN contains binary distributions that can
be installed just for this purpose:
http://search.cpan.org/~karasik/Prima-codecs-win32/
http://search.cpan.org/~karasik/Prima-codecs-win64/
it should work for all MSVC and GCC compilers and for native,
cygwin, and mingw/strawberry perl runtimes.
SOURCE DISTRIBUTION INSTALLATION
================================
Create a makefile by running Makefile.PL using perl and then run make ( or
gmake, or nmake for Win32):
perl Makefile.PL
make
make test
make install
If 'perl Makefile.PL' fails, the compilation history along with errors can be
found in makefile.log.
If make fails with message
** No image codecs found
that means you don't have image libraries that Prima supports in your path.
See PREREQUISITES section.
If some of the required libraries or include files can not be found,
INC=-I/some/include and LIBS=-L/some/lib semantics should be used to tell
Makefile.PL about these. Check ExtUtils::MakeMaker for more.
GTK2
----
Prima can be compiled width GTK2 on unix systems. To do so run
perl Makefile.PL WITH_GTK2=1
If successful, Prima will display GTK file dialogs.
BINARY DISTRIBUTION INSTALLATION
================================
Available only for MSWin32. Please use installation from source for
the other platforms.
To install the toolkit from the binary distribution run
perl ms_install.pl
You have to patch Prima::Config.pm manually if you need to compile
prima-dependent modules.
USAGE EXAMPLES
==============
Try running the toolkit examples, by default installed in
INSTALLSITEARCH/Prima/examples directory ( find it by running perl
-V:installsitearch ). All examples and programs included into the distribution
can be run either by their name or with perl as argument - for example,
..../generic or perl ..../generic . ( perl ..../generic.bat for win32 )
Typical code starts with
use Prima qw(Application);
and ends with
run Prima;
which is an event loop call. Start from the following code:
use Prima qw(Application Buttons);
new Prima::MainWindow(
text => 'Hello world!',
size => [ 200, 200],
)-> insert( Button =>
centered => 1,
text => 'Hello world!',
onClick => sub { $::application-> close },
);
run Prima;
Or, alternatively, start the VB program, which is the toolkit visual builder.
MORE INFORMATION
================
The toolkit contains set of POD files describing its features, and the
programming interfaces. Run 'podview Prima' or 'perldoc Prima' command to
start with the main manual page.
Visit http://www.prima.eu.org/ for the recent versions of the toolkit. You can
use cvs update feature to keep in touch. The mailing list on the toolkit is
available, you can ask questions there. See the Prima homepage for details.
COPYRIGHT
=========
(c) 1997-2003 The Protein Laboratory, University of Copenhagen
AUTHORS
=======
Dmitry Karasik <[email protected]>
Anton Berezin <[email protected]>
Vadim Belman <[email protected]>
CREDITS
=======
David Scott
Teo Sankaro
Kai Fiebach
Johannes Blankenstein
Mike Castle
H.Merijn Brand
Richard Morgan
Kevin Ryde
Chris Marshall
Slaven Rezic
Waldemar Biernacki
Andreas Hernitscheck
David Mertens
Teo Sankaro
Gabor Szabo
Fabio D'Alfonso
Rob "Sisyphus"
Chris Marshall
Reini Urban
Nadim Khemir
Vikas N Kumar