1 | #!/opt/bin/perl |
1 | #!/opt/bin/perl |
|
|
2 | |
|
|
3 | =head1 NAME |
|
|
4 | |
|
|
5 | cv - a fast gtk+ image viewer modeled after xv |
|
|
6 | |
|
|
7 | =head1 SYNOPSIS |
|
|
8 | |
|
|
9 | cv [file...] |
|
|
10 | |
|
|
11 | =head1 DESCRIPTION |
|
|
12 | |
|
|
13 | None yet. |
|
|
14 | |
|
|
15 | =head2 THE IMAGE WINDOW |
|
|
16 | |
|
|
17 | You can use the following keys in the image window: |
|
|
18 | |
|
|
19 | q quit the program |
|
|
20 | < half the image size |
|
|
21 | > double the image size |
|
|
22 | , shrink the image by 10% |
|
|
23 | . enlarge the image by 10% |
|
|
24 | n reset to normal size |
|
|
25 | m maximize to screensize |
|
|
26 | M maxime to screensize, respecting image aspect |
|
|
27 | u uncrop |
|
|
28 | r set scaling mode to 'nearest' (fastest) |
|
|
29 | s set scaling mode to 'bilinear' (default) |
|
|
30 | S set scaling mode to 'hyper' (slowest) |
|
|
31 | t rotate clockwise 90° |
|
|
32 | T rotate counterclockwise° |
|
|
33 | ctrl-v open a new visual schnauzer window for the current dir |
|
|
34 | |
|
|
35 | The following keys are redirected to the default visual schnauzer window: |
|
|
36 | |
|
|
37 | space next image |
|
|
38 | backspace last image |
|
|
39 | |
|
|
40 | =head2 THE VISUAL SCHNAUZER |
|
|
41 | |
|
|
42 | You can use the following keys in the schnauzer window: |
|
|
43 | |
|
|
44 | space move to and display next image |
|
|
45 | backspace move to and display previous image |
|
|
46 | return display selected picture |
|
|
47 | |
|
|
48 | cursor keys move selection |
|
|
49 | page-up move one page up |
|
|
50 | page-down move one page down |
|
|
51 | home move to first file |
|
|
52 | end move to last file |
|
|
53 | |
|
|
54 | ctrl-g generate icons for the selected files |
|
|
55 | ctrl-d delete selected files WITHOUT ASKING AGAIN |
|
|
56 | |
|
|
57 | =head1 BUGS/TODO |
|
|
58 | |
|
|
59 | rotate on disk |
|
|
60 | print |
|
|
61 | lots of ui issues |
|
|
62 | save(?) |
|
|
63 | preferences |
|
|
64 | |
|
|
65 | =head1 AUTHOR |
|
|
66 | |
|
|
67 | Marc Lehmann <cv@plan9.de>. |
|
|
68 | |
|
|
69 | =cut |
2 | |
70 | |
3 | use Gtk2 -init; |
71 | use Gtk2 -init; |
4 | use Gtk2::Gdk::Keysyms; |
72 | use Gtk2::Gdk::Keysyms; |
5 | |
73 | |
6 | use Gtk2::CV::ImageWindow; |
74 | use Gtk2::CV::ImageWindow; |