… | |
… | |
43 | |
43 | |
44 | if ($key == $Gtk2::Gdk::Keysyms{q}) { |
44 | if ($key == $Gtk2::Gdk::Keysyms{q}) { |
45 | main_quit Gtk2; |
45 | main_quit Gtk2; |
46 | } elsif ($ctrl && $key == $Gtk2::Gdk::Keysyms{v}) { |
46 | } elsif ($ctrl && $key == $Gtk2::Gdk::Keysyms{v}) { |
47 | my $w = new Gtk2::Window; |
47 | my $w = new Gtk2::Window; |
|
|
48 | |
|
|
49 | $w->set_title ("CV: Schnauzer"); |
48 | $w->add (my $s = new_schnauzer); |
50 | $w->add (my $s = new_schnauzer); |
49 | $s->set_dir (File::Spec->curdir); |
51 | $s->set_dir (File::Spec->curdir); |
50 | $s->set_geometry_hints; |
52 | $s->set_geometry_hints; |
51 | $w->show_all; |
53 | $w->show_all; |
52 | |
54 | |
53 | } elsif ($ctrl && $key == $Gtk2::Gdk::Keysyms{h}) { |
55 | } elsif ($ctrl && $key == $Gtk2::Gdk::Keysyms{h}) { |
54 | unless ($help) { |
56 | unless ($help) { |
55 | require Gtk2::PodViewer; |
57 | require Gtk2::PodViewer; |
56 | |
58 | |
57 | $help = new Gtk2::Window; |
59 | $help = new Gtk2::Window; |
58 | $help->set_title ("CV Help"); |
60 | $help->set_title ("CV: Help"); |
59 | $help->set_default_size (500, 300); |
61 | $help->set_default_size (500, 300); |
60 | $help->signal_connect (delete_event => sub { $help->hide; 1 }); |
62 | $help->signal_connect (delete_event => sub { $help->hide; 1 }); |
61 | |
63 | |
62 | $help->add (my $sw = new Gtk2::ScrolledWindow); |
64 | $help->add (my $sw = new Gtk2::ScrolledWindow); |
63 | $sw->add (my $h = new Gtk2::PodViewer); |
65 | $sw->add (my $h = new Gtk2::PodViewer); |
… | |
… | |
105 | |
107 | |
106 | $schnauzer->set_geometry_hints; |
108 | $schnauzer->set_geometry_hints; |
107 | } |
109 | } |
108 | |
110 | |
109 | if (@ARGV) { |
111 | if (@ARGV) { |
|
|
112 | $_ = Glib::filename_to_unicode $_ for @ARGV; |
110 | $schnauzer->set_paths (\@ARGV); |
113 | $schnauzer->set_paths (\@ARGV); |
|
|
114 | $schnauzer->show_all; |
111 | $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); |
115 | $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); |
112 | } else { |
116 | } else { |
113 | $schnauzer->set_dir (File::Spec->curdir); |
117 | $schnauzer->set_dir (File::Spec->curdir); |
114 | $mainwin->show_all; |
118 | $mainwin->show_all; |
115 | } |
119 | } |
… | |
… | |
142 | , shrink the image by 10% |
146 | , shrink the image by 10% |
143 | . enlarge the image by 10% |
147 | . enlarge the image by 10% |
144 | n reset to normal size |
148 | n reset to normal size |
145 | m maximize to screensize |
149 | m maximize to screensize |
146 | M maxime to screensize, respecting image aspect |
150 | M maxime to screensize, respecting image aspect |
|
|
151 | ctrl-m toggle maxpect-always mode |
147 | u uncrop |
152 | u uncrop |
148 | r set scaling mode to 'nearest' (fastest) |
153 | r set scaling mode to 'nearest' (fastest) |
149 | s set scaling mode to 'bilinear' (default) |
154 | s set scaling mode to 'bilinear' (default) |
150 | S set scaling mode to 'hyper' (slowest) |
155 | S set scaling mode to 'hyper' (slowest) |
151 | t rotate clockwise 90° |
156 | t rotate clockwise 90° |
152 | T rotate counterclockwise° |
157 | T rotate counterclockwise° |
153 | ctrl-v open a new visual schnauzer window for the current dir |
158 | ctrl-v open a new visual schnauzer window for the current dir |
|
|
159 | ctrl-s rescan visual schnauzer files for updates/deletes etc. |
|
|
160 | ctrl-e run an editor ($CV_EDITOR or "gimp") on the current image. |
|
|
161 | |
|
|
162 | And when playing movies, these additional keys are active: |
|
|
163 | |
|
|
164 | left rewind by 10 seconds |
|
|
165 | right forward by 10 seconds |
|
|
166 | down rewind by 60 seconds |
|
|
167 | up forward by 60 seconds |
|
|
168 | pg_up rewind by 600 seconds |
|
|
169 | pg_down forward by 600 seconds |
|
|
170 | o toggle on-screen display |
|
|
171 | p pause/unpause |
|
|
172 | escape stop playing |
|
|
173 | 9 turn volume down |
|
|
174 | 0 turn volume up |
154 | |
175 | |
155 | The following keys are redirected to the default visual schnauzer window: |
176 | The following keys are redirected to the default visual schnauzer window: |
156 | |
177 | |
157 | space next image |
178 | space next image |
158 | backspace last image |
179 | backspace last image |
… | |
… | |
172 | end move to last file |
193 | end move to last file |
173 | |
194 | |
174 | ctrl-d delete selected files WITHOUT ASKING AGAIN |
195 | ctrl-d delete selected files WITHOUT ASKING AGAIN |
175 | ctrl-g generate icons for the selected files |
196 | ctrl-g generate icons for the selected files |
176 | ctrl-u update selected (or all) icons if neccessary |
197 | ctrl-u update selected (or all) icons if neccessary |
|
|
198 | ctrl-a select all files |
|
|
199 | |
|
|
200 | =head1 ENVIRONMENT |
|
|
201 | |
|
|
202 | =over 4 |
|
|
203 | |
|
|
204 | =item CV_PRINT_DESTINATION |
|
|
205 | |
|
|
206 | The default (perl-style) destination to use in the print dialog. |
|
|
207 | |
|
|
208 | =back |
177 | |
209 | |
178 | =head1 SECURITY CONSIDERATIONS |
210 | =head1 SECURITY CONSIDERATIONS |
179 | |
211 | |
180 | CV uses Pixbuf to load images. Pixbuf is not considered safe for this |
212 | CV uses Pixbuf to load images. Pixbuf is not considered safe for this |
181 | purpose, though (from the gtk-2.2 release notes): |
213 | purpose, though (from the gtk-2.2 release notes): |