Commit Graph

282 Commits

Author SHA1 Message Date
Bert
1e84773276 Data driven timeout handling 2011-09-02 04:33:44 +02:00
Bert
bb577d274d Added command to toggle gif animations 2011-08-19 18:46:17 +02:00
Bert
8b3ae5027e Added support for gif animation 2011-08-19 15:22:16 +02:00
Bert
79bd86defb Refactored img_load_gif()
- Corrected handling of transparency settings for individual frames
- Corrected handling of different frame dimensions & offsets
2011-08-19 15:12:30 +02:00
Bert
86a6f00112 Added support for multi-frame images 2011-08-19 15:12:30 +02:00
Bert
1d749382f0 Put event handling back into main.c; events -> commands 2011-08-19 15:02:10 +02:00
Bert
1d7849efc1 Added force parameter to tns_load() to disregard cache 2011-08-19 13:26:58 +02:00
Bert
421f012022 Renamed application modes 2011-08-19 13:09:22 +02:00
Bert
8763f6930f Corrected FSF address in license headers 2011-08-18 01:18:26 +02:00
Bert
ff013dd009 Revised handling of file names & paths 2011-08-18 00:38:55 +02:00
Bert
b8ff1677b1 Major code refactoring
- Configurable key and mouse mappings in config.h
- Put event handling code from main.c into events.[ch]
2011-07-26 18:01:29 +02:00
Bert
a271e16744 Reduced usage of preprocessor macros 2011-07-22 14:49:06 +02:00
Bert
dde2d9d023 Support XK_KP_{Add,Subtract} for zooming 2011-06-28 15:47:48 +02:00
Bert
bd87ae9346 All timeouts in milliseconds 2011-06-28 13:45:57 +02:00
Bert
f52603b31a Small refactoring 2011-06-24 13:28:25 +02:00
Bert
a6100373c1 New mappings: ctrl-[hjkl], pan image one window width/height 2011-06-03 23:39:22 +02:00
Bert
ea23115af4 Use getline instead of readline 2011-05-29 11:45:58 +02:00
Bert
2252a0148d New option: -n, start at given picture 2011-05-25 09:23:23 +02:00
Bert
00e6cd2bd1 Show image dimension in window title 2011-05-22 19:42:33 +02:00
Bert
485e6c863a H/J/K/L mappings to pan to edges 2011-05-16 15:54:09 +02:00
Bert
d54e64faae Fixed background color for non-EWMH-compliant WMs 2011-04-19 14:25:43 +02:00
Bert
ba293b09df Center zoomed area 2011-04-19 13:27:20 +02:00
Bert
548b383f0b Fixed mouse cursor 2011-04-15 11:23:58 +02:00
Bert
c58307ba38 Merged commands.h into config.h 2011-04-14 12:00:35 +02:00
Bert
5f8201110e Slightly changed introductory text 2011-04-11 20:42:08 +02:00
Bert
d15264ea32 Remove invalid images when loading them; refactorings 2011-04-11 16:58:38 +02:00
Bert
5cb6d12a94 Refactored main.c 2011-04-11 11:53:00 +02:00
Bert
bac610ddc4 Merge branch 'tcache'
Conflicts:
	main.c
2011-04-11 08:52:07 +02:00
Bert
dc54981a68 New option: -C, clean thumbnail cache 2011-04-08 14:44:00 +02:00
Bert
a90bd1c833 Refactored recursive directory util functions 2011-04-08 10:23:42 +02:00
Bert
e9996882cb Moved read_dir_rec into util.c 2011-04-07 19:15:00 +02:00
Bert
b2f1b997ed Disable support for external commands by default 2011-04-07 10:17:27 +02:00
Bert
d7c1f0a85d Removed escape key mapping 2011-04-07 00:21:28 +02:00
Bert
fa81707540 New key mapping: D, remove image from file list 2011-04-06 23:33:23 +02:00
Bert
facd7e3b42 New option: -a, do not filter out unsupported files 2011-04-06 19:30:06 +02:00
Bert
426edfb349 Readded file-type check at startup 2011-04-05 00:37:37 +02:00
Bert
8d4e3a57ab Do not check file-type at startup 2011-04-04 20:35:10 +02:00
Bert
87a9828417 Filename cosmetics 2011-03-17 23:39:17 +01:00
Bert
3672c0bc63 Toggle image transparency with A-key 2011-03-10 11:41:40 +01:00
Bert
a82c45431b Use ctrl for ext cmds, disable them in config.h 2011-03-09 10:08:43 +01:00
Bert
00d4b0f7cf Use "/bin/sh -c" for external commands 2011-03-03 10:52:16 +01:00
Bert
c05fd44bdd Support for external commands like mogrify & jpegtran 2011-03-01 18:49:02 +01:00
Bert
955c39a5c5 Shorter typedefs 2011-03-01 14:23:09 +01:00
Bert
9b24f82404 Small refactorings, removed over-ambitious todo 2011-02-27 13:29:24 +01:00
Bert
7334bdfa51 Revert "Save rotated png-files with S-key"
This reverts commit 090ee5405b.
2011-02-27 13:03:16 +01:00
Bert
090ee5405b Save rotated png-files with S-key 2011-02-27 01:48:00 +01:00
Bert
c5f6b2c0d5 Sort directory entries when using -r 2011-02-26 16:57:21 +01:00
Bert
dafe7eac74 Refactored imlib context handling 2011-02-25 12:08:12 +01:00
Bert
4cfb8a204a Correct timeout handling, more complex 2011-02-21 22:05:30 +01:00
Bert
88b5c5f2e4 Fixed cursor hiding after switching to thumb mode 2011-02-21 18:37:24 +01:00
Bert
fde9f5bf85 Hide cursor on redraw or after 1.5s mouse inactivity 2011-02-21 18:26:21 +01:00
Bert
ea80c73520 Fixed title for thumbnail mode 2011-02-21 16:49:34 +01:00
Bert
f2b8a75f6c Always support thumbs; start thumb-mode with single -t 2011-02-21 14:59:29 +01:00
Bert
72e8baf13e Mode-guard in on_motionnotify 2011-02-20 01:41:44 +01:00
Bert
f0f6644fae Replaced -T flag with -tt; default thumbnail size 2011-02-20 00:28:28 +01:00
Bert
a30901210c Mouse-wheel scrolling in thumb mode 2011-02-20 00:08:17 +01:00
Bert
4cc6ca939c g/G key mappings in thumbnail mode 2011-02-19 23:16:01 +01:00
Bert
a345c963f8 Double click thumb to open 2011-02-19 23:07:10 +01:00
Bert
26bb005458 Merge branch 'master' into thumbs
Conflicts:
	main.c
2011-02-19 22:55:40 +01:00
Bert
09335fdc14 Fixed offsets in resize win to image 2011-02-19 22:53:22 +01:00
Bert
a152f82ce6 Sync thumb selection & fileidx; check thumb view 2011-02-19 22:12:08 +01:00
Bert
a367d35ba0 Update title when moving selection 2011-02-19 09:47:53 +01:00
Bert
76cca4ecb6 Activate thumb-mode with Return key 2011-02-17 18:00:02 +01:00
Bert
f235b62741 Fixed cursor when opening thumb 2011-02-17 17:38:48 +01:00
Bert
e2ef9b8323 Variable timeout (2) 2011-02-17 17:32:29 +01:00
Bert
fbfec45b33 Variable timeout 2011-02-17 17:30:38 +01:00
Bert
6adbb3831d Use Button1 to open thumbnail 2011-02-17 17:28:13 +01:00
Bert
f08c24bbb3 Select and open thumbnails 2011-02-17 16:57:55 +01:00
Bert
095217b26f Linked thumbnails to files 2011-02-17 15:58:11 +01:00
Bert
f554cdf60e Made key mappings mode-dependent 2011-02-17 15:08:58 +01:00
Bert
e09a6b5e3f Appropriate title for thumbnail mode 2011-02-17 14:45:54 +01:00
Bert
1c072cc0d0 Fill window before loading thumbs 2011-02-17 14:20:42 +01:00
Bert
b828b55419 Immediately respond to events while loading thumbs 2011-02-17 14:13:18 +01:00
Bert
15041f6100 Merge branch 'master' into thumbs
Conflicts:
	Makefile
2011-02-17 13:10:55 +01:00
Bert
caf982d175 Higher timeout, faster window resizing 2011-02-17 13:09:38 +01:00
Bert
783213c0bb Use watch-cursor while loading thumbnails 2011-02-17 11:08:25 +01:00
Bert
bcc70bd7cb Who needs threads to load thumbnails? 2011-02-17 11:04:58 +01:00
Bert
e0d0892065 Use pthread to load thumbnails 2011-02-16 23:03:42 +01:00
Bert
26c2179be7 Refactored thumbs, new files thumbs.[ch] 2011-02-16 21:40:20 +01:00
Bert
8919204a2e Render thumbnails 2011-02-16 18:16:00 +01:00
Bert
89ec18385b Added app-mode 2011-02-16 17:09:46 +01:00
Bert
7e2c85b04c Fixed thumbnail creation 2011-02-16 16:53:35 +01:00
Bert
7b49740613 First things for thumbnail mode 2011-02-16 16:47:12 +01:00
Bert
e8ed491ba9 Fixed empty lines in readline() 2011-02-15 15:30:37 +01:00
Bert
cfed65d36f More appropriate buffer sizes 2011-02-14 19:22:02 +01:00
Bert
f71ea095bc Fixed indentation 2011-02-14 17:53:46 +01:00
Bert
26cc5aff69 Read filenames from stdin 2011-02-14 17:51:04 +01:00
Bert
8e5835d1fd Handle image remove/rename while running 2011-02-09 16:32:40 +01:00
Bert
d731741f04 Handle WM_DELETE_WINDOW messages correctly, thanks to fungt 2011-02-09 10:01:49 +01:00
Bert
603e664f7c Nicer fit window to image 2011-02-06 17:40:48 +01:00
Bert
8339bb7ee7 New key mapping: W, resize window to fit image 2011-02-04 00:25:57 +01:00
Bert
096c0ed935 Removed some warnings 2011-02-03 22:05:13 +01:00
Bert
414fa567ce Split img_fit into internal/external function 2011-02-03 16:55:24 +01:00
Bert
c6556f8cc7 New key mappings: 0/w, zoom to 100%/to fit window 2011-02-03 16:14:49 +01:00
Bert
bad9a70a48 Display filesize in window title 2011-02-03 14:32:02 +01:00
Bert
12a94cc40e Manual event handling in main.c 2011-02-03 10:55:23 +01:00
Bert
8f4af658ae Refactored, new files util.[ch], C89 2011-02-03 10:15:01 +01:00
Bert
f5c125b3ee Fixed stupid memory leak in read_dir_rec 2011-02-02 20:46:56 +01:00
Bert
bbd7b7d595 New option: -r, open all images in directories 2011-02-02 10:34:14 +01:00
Bert
2afb989cc4 Skeleton for -r 2011-02-02 09:01:05 +01:00
Bert
5a682426b1 New key command: r, reload image 2011-01-31 16:06:40 +01:00
Bert
802c344879 Check file timestamps before loading from cache 2011-01-31 15:51:26 +01:00
Bert
f7a66469e6 Nicer key handling, does not fix problems 2011-01-30 20:46:48 +01:00
Bert
03bfe1015e Explicitly enable printing of warnings 2011-01-30 16:39:16 +01:00
Bert
c52c4fa69e Mouse-panning while pressing button2 2011-01-29 22:37:40 +01:00
Bert
019e2274a8 Map arrow keys to h/j/k/l 2011-01-28 13:42:39 +01:00
Bert
f47092cda2 Complete mouse support 2011-01-26 18:38:54 +01:00
Bert
0497a7f69d Merge remote branch 'falconindy/mouse' 2011-01-26 17:48:11 +01:00
Bert
7834dee6e7 Added a key-mapping for toggle anti-aliasing 2011-01-26 14:59:32 +01:00
Bert
64a5366508 Added <,> mappings to rotate image 2011-01-26 14:42:10 +01:00
Bert
d3da0eb71e Added man page 2011-01-23 18:20:08 +01:00
Bert
2b1c0885fe Implemented fullscreen mode 2011-01-23 16:14:41 +01:00
Dave Reisner
9a35f40224 main.c: add zooming on mousewheel events
Signed-off-by: Dave Reisner <d@falconindy.com>
2011-01-23 09:46:25 -05:00
Bert
6fed8db854 Added [,] mappings for go 10 images back/forward 2011-01-23 12:36:27 +01:00
Bert
2f7bd169ea Added g/G mappings for goto first/last image 2011-01-22 23:37:13 +01:00
Bert
0f714bccda Handle window resize events properly 2011-01-22 23:27:29 +01:00
Bert
b92ebf67ee Implemented panning 2011-01-21 13:48:02 +01:00
Bert
c7860b690b Stricter object encapsulation 2011-01-21 12:57:35 +01:00
Bert
629d37376d Merged img_display() into img_render() 2011-01-21 12:13:52 +01:00
Bert
b900105a4e Removed debug output 2011-01-21 10:41:50 +01:00
Bert
2d5247af4a More robust key handling 2011-01-21 10:30:10 +01:00
Bert
bb12b8c0fb First try on zooming 2011-01-20 23:22:00 +01:00
Bert
029e1208b9 No more expose handling 2011-01-20 21:44:34 +01:00
Bert
08018427c6 Put some useful information in the window title 2011-01-20 17:00:59 +01:00
Bert
a732e75d8a Check all given files before open the first 2011-01-20 16:24:48 +01:00
Bert
004f297ebb Go to next/previous image 2011-01-20 16:04:34 +01:00
Bert
00f32120a6 Handle expose events 2011-01-20 15:39:08 +01:00
Bert
8b3b28300f Made parse_options void 2011-01-19 18:16:44 +01:00
Bert
a7e30bb081 Option handling, merged app.c & events.c into main.c 2011-01-19 14:07:45 +01:00
Bert
544fd83718 Reordered function definitions 2011-01-18 15:33:25 +01:00
Bert
b9cd06df95 Basic main skeleton 2011-01-17 16:41:50 +01:00
Bert
e7bc3bb71b Non-working skeleton 2011-01-17 14:57:59 +01:00