ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/bin/cv
(Generate patch)

Comparing CV/bin/cv (file contents):
Revision 1.47 by root, Wed Jul 20 09:06:37 2005 UTC vs.
Revision 1.51 by root, Sun Aug 14 02:25:44 2005 UTC

4use Encode (); 4use Encode ();
5 5
6use Gtk2 -init; 6use Gtk2 -init;
7use Gtk2::Gdk::Keysyms; 7use Gtk2::Gdk::Keysyms;
8 8
9use Gtk2::CV;
10
9use Gtk2::CV::ImageWindow; 11use Gtk2::CV::ImageWindow;
10use Gtk2::CV::Schnauzer; 12use Gtk2::CV::Schnauzer;
11 13
12use Gtk2::CV; 14BEGIN {
15 require Gtk2::CV::Plugin;
16 require "$ENV{HOME}/.cvrc" if -r "$ENV{HOME}/.cvrc";
17}
18
19use Gtk2::CV::Plugin::NameCluster;
20use Gtk2::CV::Plugin::RCluster;
13 21
14Gtk2::Rc->parse (Gtk2::CV::find_rcfile "gtkrc"); 22Gtk2::Rc->parse (Gtk2::CV::find_rcfile "gtkrc");
15 23
16use File::Spec; 24use File::Spec;
17
18require Gtk2::CV::Plugin;
19require "$ENV{HOME}/.cvrc" if -r "$ENV{HOME}/.cvrc";
20 25
21my $mainwin; 26my $mainwin;
22my $viewer; 27my $viewer;
23my $schnauzer; 28my $schnauzer;
24my $info; 29my $info;
124} 129}
125 130
126if (@ARGV) { 131if (@ARGV) {
127 $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV]); 132 $schnauzer->set_paths ([map Glib::filename_to_unicode $_, @ARGV]);
128 $schnauzer->show_all; 133 $schnauzer->show_all;
129$viewer->show_all;
130 $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []); 134 $schnauzer->handle_key ($Gtk2::Gdk::Keysyms{space}, []);
131} else { 135} else {
132 $schnauzer->set_dir (File::Spec->curdir); 136 $schnauzer->set_dir (File::Spec->curdir);
133 $mainwin->show_all; 137 $mainwin->show_all;
134 $viewer->show_all;
135} 138}
136 139
137$viewer->show_all; 140$viewer->show_all;
138 141
139main Gtk2; 142main Gtk2;
223 226
224=head2 THE IMAGE WINDOW 227=head2 THE IMAGE WINDOW
225 228
226You can use the following keys in the image window: 229You can use the following keys in the image window:
227 230
228 q quit the program 231 q quit the program
229 < half the image size 232 < half the image size
230 > double the image size 233 > double the image size
231 , shrink the image by 10% 234 , shrink the image by 10%
232 . enlarge the image by 10% 235 . enlarge the image by 10%
233 n reset to normal size 236 n reset to normal size
234 m maximize to screensize 237 m maximize to screensize
235 M maximize to screensize, respecting image aspect 238 M maximize to screensize, respecting image aspect
236 ctrl-m toggle maxpect-always mode 239 ctrl-m toggle maxpect-always mode
237 u uncrop 240 u uncrop
238 r set scaling mode to 'nearest' (fastest) 241 r set scaling mode to 'nearest' (fastest)
239 s set scaling mode to 'bilinear' (default) 242 s set scaling mode to 'bilinear' (default)
240 shift-s set scaling mode to 'hyper' (slowest) 243 shift-s set scaling mode to 'hyper' (slowest)
241 t rotate clockwise 90° 244 t rotate clockwise 90°
242 T rotate counterclockwise° 245 T rotate counterclockwise°
243 ctrl-v open a new visual schnauzer window for the current dir 246 ctrl-v open a new visual schnauzer window for the current dir
244 ctrl-e run an editor ($CV_EDITOR or "gimp") on the current image 247 ctrl-e run an editor ($CV_EDITOR or "gimp") on the current image
245 ctrl-p fire up the print fialog 248 ctrl-p fire up the print fialog
246 escape cancel a crop action 249 escape cancel a crop action
247 250
248And when playing movies, these additional keys are active: 251And when playing movies, these additional keys are active:
249 252
250 left rewind by 10 seconds 253 left rewind by 10 seconds
251 right forward by 10 seconds 254 right forward by 10 seconds
252 down rewind by 60 seconds 255 down rewind by 60 seconds
253 up forward by 60 seconds 256 up forward by 60 seconds
254 pg_up rewind by 600 seconds 257 pg_up rewind by 600 seconds
255 pg_down forward by 600 seconds 258 pg_down forward by 600 seconds
256 o toggle on-screen display 259 o toggle on-screen display
257 p pause/unpause 260 p pause/unpause
258 escape stop playing 261 escape stop playing
259 9 turn volume down 262 9 turn volume down
260 0 turn volume up 263 0 turn volume up
261 264
262Any other keys will be sent to the default schnauzer window, which can be 265Any other keys will be sent to the default schnauzer window, which can be
263toggled on and off by right-clicking into the image window. 266toggled on and off by right-clicking into the image window.
264 267
265Left-clicking into the image window will let you crop the image (usually 268Left-clicking into the image window will let you crop the image (usually
268=head2 THE VISUAL SCHNAUZER 271=head2 THE VISUAL SCHNAUZER
269 272
270You can use the following keys in the schnauzer window: 273You can use the following keys in the schnauzer window:
271 274
272 ctrl-space, 275 ctrl-space,
273 space move to and display next image 276 space move to and display next image
274 ctrl-backspace, 277 ctrl-backspace,
275 backspace move to and display previous image 278 backspace move to and display previous image
276 ctrl-return, 279 ctrl-return,
277 return display selected picture, or enter directory 280 return display selected picture, or enter directory
278 281
279 cursor keys move selection 282 cursor keys move selection
280 page-up move one page up 283 page-up move one page up
281 page-down move one page down 284 page-down move one page down
282 home move to first file 285 home move to first file
283 end move to last file 286 end move to last file
284 287
285 ctrl-a select all files 288 ctrl-a select all files
289 ctrl-shift-a select all files currently displayed in the schnauzer window
286 ctrl-d delete selected files WITHOUT ASKING AGAIN 290 ctrl-d delete selected files WITHOUT ASKING AGAIN
287 ctrl-g force generation of thumbnais for the selected files 291 ctrl-g force generation of thumbnais for the selected files
288 ctrl-s rescan current direcory or files updates/deletes etc. 292 ctrl-s rescan current direcory or files updates/deletes etc.
289 ctrl-u update selected (or all) icons if neccessary 293 ctrl-u update selected (or all) icons if neccessary
290 ctrl-l don't use, will become a plug-in eventually 294 ctrl-l don't use, will become a plug-in eventually
291 295
292 0-9, 296 0-9,
293 a-z find the first filename beginning with this letter 297 a-z find the first filename beginning with this letter
294 298
295Right-clicking into the schnauzer window displays a pop-up menu with 299Right-clicking into the schnauzer window displays a pop-up menu with
296additional actions. 300additional actions.
297 301
298=head1 FILES 302=head1 FILES

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines