Qingping Hou
b318ca08e3
mod: merge djvu branch with master
2012-03-05 09:46:16 +08:00
traycold
04184a5950
improved filechooser; enable "single file" mode of kindlepdfviewer
...
with this mode it's possible to start kindlepdfviewer opening last
viewed file, bypassing filechooser
2012-03-04 23:03:04 +01:00
HW
4f46f9fa7a
proper exit when pressing HOME, store settings etc
2012-03-04 21:39:34 +01:00
Qingping Hou
e4e0eb45ee
mod: adapt pdfreader and djvureader to unireader
2012-03-04 19:34:19 +08:00
Qingping Hou
2f9a44bfc6
code clean up for first demo
2012-03-03 22:56:54 +08:00
Qingping Hou
516e32bc46
mod: call different reader in reader.lua
...
call PDFReader or DJVUReader according to filetype
2012-03-03 19:51:49 +08:00
Qingping Hou
e258371134
mod: add closePage and demo for filechooser
2012-03-03 17:17:35 +08:00
Qingping Hou
4a1a5233c0
Merge branch 'master' into djvu
...
Conflicts:
reader.lua
2012-03-03 17:08:06 +08:00
Qingping Hou
1713e2ab0b
fix: refresh screen more elegantly after reader exit
2012-03-02 14:22:27 +08:00
Qingping Hou
c4d0cd26ae
half done djvu support
2012-03-01 21:04:46 +08:00
Qingping Hou
dc3ea10fd9
initial commit for djvu
2012-02-29 22:49:52 +08:00
HW
e1a916d48c
Merge pull request #16 from dpavlin/master
...
Open Kindle 3 volume via /dev/input/event2 so gamma change works
2012-02-27 12:33:19 -08:00
Qingping Hou
0366e8b8c2
mod: use settings module to save font configuration
2012-02-24 00:30:02 +08:00
Qingping Hou
f26adf97f0
trigger KEY_HOME after exit to refresh screen
2012-02-23 12:44:49 +08:00
Dobrica Pavlinusic
70dd8c8b07
open /dev/input/event2 to route volume keys to gamma on auto-detected Kindle 3
2012-02-19 22:51:56 +01:00
Dobrica Pavlinusic
287aa58731
document --device emu option
2012-01-19 18:17:16 +01:00
Dobrica Pavlinusic
1a2f51cafb
auto-detect Kindle 3 based on /dev/input/event2
...
This is somewhat important, because if we are started without
explicit -d k3 all key mappings are wrong, and user can't exit
2011-12-23 23:27:29 +01:00
HW
1af5ce3d04
reordered freeing of resources, error handling for doc open
2011-12-09 00:10:54 +01:00
HW
c47512a01d
slight refactoring of filechooser so it remembers state
2011-12-08 19:01:40 +01:00
HW
c869ee0a95
added file chooser
2011-12-08 01:17:33 +01:00
HW
affc3b231a
major overhaul of the code structure, more OO like
2011-12-08 00:45:39 +01:00
HW
1cc44feb6f
factored out settings into own class
...
also started using OO paradigm
2011-12-05 22:31:40 +01:00
HW
f739baff5f
moved blitting over to blitbuffer API
...
the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
2011-12-02 01:31:13 +01:00
HW
ff38118a89
added exemplary storing of last read page
2011-11-29 00:54:38 +01:00
Dobrica Pavlinusic
31a487e746
fix direction of up/down pan
2011-11-26 16:32:24 +01:00
Dobrica Pavlinusic
04087c072f
added altmode for smaller pans and zooms
2011-11-26 15:52:20 +01:00
Dobrica Pavlinusic
95952f7b11
enable panning over zoomed page
...
This works only in ZOOM_BY_VALUE mode invoked by Shift+Page< or Shift+Page>
Panning is modal: in normal mode, you move using fiveway but
when you press fiveway you switch to move-by-screen mode
(which is useful after you centered first column of article
and you just want to move around)
At any time you can press fiveway with shift to move in even smaller
increments
2011-11-26 15:41:11 +01:00
Dobrica Pavlinusic
bdda25f284
move gamma controlls to volume or F11/F12 in emu
...
Idea is to fee 5way presses for pan/zoom operations in future
2011-11-21 19:30:17 +01:00
HW
e54ce6a358
changed gamma handling: now we multiply.
2011-11-21 01:18:10 +01:00
HW
a6541596ce
added multiple zoom variants
...
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page
SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out
A = fit to page
S = fit to page width
D = fit to page height
SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height
SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
2011-11-21 01:02:03 +01:00
HW
d96666f4b1
new cache organization in preparation for more complex tile data
...
in order to use the tile cache for variable zoomed tiles, we need more
flexibility. thus, now cache tiles are hashed (well, in fact it's a
concatenation) of their metadata.
also, we close pages right after opening them - there was no re-use
before and now we have opening and closing at one place. this should
also make it easier for the garbage collector.
2011-11-20 22:36:31 +01:00
HW
a07ea2f8b8
factored out key config and tilecache
2011-11-20 21:40:56 +01:00
Dobrica Pavlinusic
0d9de55944
modify_gamma now use cache correctly
...
This exposed small bug in checkcache which checked just page no
which didn't get invalidated when closing page, so we now check if page
is also not nil
2011-11-20 00:32:18 +01:00
Dobrica Pavlinusic
1d7dc7ffee
naive modify_gamma implementation
2011-11-17 18:37:08 +01:00
Dobrica Pavlinusic
0bff614525
device emu for emulated /tmp/input
2011-11-17 18:25:15 +01:00
Dobrica Pavlinusic
f56c122e49
make long-form --goto page work
2011-11-17 11:58:49 +01:00
HW
32b85d2035
reader.lua changes to reflect new emulator
2011-11-17 00:14:36 +01:00
Dobrica Pavlinusic
716d81a28b
add missing d (device) option
2011-11-17 07:09:37 +08:00
Dobrica Pavlinusic
83cfaad621
added --goto page comamnd-line argument
2011-11-17 07:08:57 +08:00
HW
d10b73d81a
fixed non-initialization bug for dc->gamma
2011-11-16 17:26:34 +01:00
HW
ade5c4892d
better argument parsing and option for gamma correction
...
included MIT-licensed alt_getopt implementation:
http://files.luaforge.net/releases/alt-getopt/alt-getopt/alt-getopt-0.7.0
created example use of gamma correction.
reader.lua now has usage notes for its invocation syntax.
2011-11-16 17:13:08 +01:00
HW
0c24e3c7e0
initial project, basic reader working
2011-11-14 18:30:16 +01:00