2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
Qingping Hou
6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 2012-03-02 18:38:34 +08:00
Qingping Hou
aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
2012-03-02 13:58:39 +08:00
Qingping Hou
53d4016c64 fix: move shiftmode and altmode to global
now shiftmode and altmode is recoreded in Keys module.  So all the UIs
are sharing these two mode instead of remembering their own. These fix
the bug in UI switchings.

For instance, you use combo 'Alt'+'b' to fire up some menu in pdfreader,
the altmode is set, but the alt key was released after the menu show
up. Then the key release event will only be captured by the menu. So
after you exit from the menu, the altmode is still set in pdfreader,
which is not what we want.
2012-03-02 13:46:15 +08:00
HW
6698cf157c Merge pull request #21 from dpavlin/master
implement new two-column zoom mode (F)
2012-03-01 15:16:36 -08:00
Dobrica Pavlinusic
5de749f457 adjust fiveway rotation 2012-03-01 23:04:17 +01:00
Dobrica Pavlinusic
de1725d395 fiveway left in pan mode with position to bottom of column 2012-03-01 00:20:46 +01:00
Dobrica Pavlinusic
a839f82bac change pages with just left/right fiveway 2012-02-29 23:48:27 +01:00
Dobrica Pavlinusic
321181052a fine-tune offsets and panning
It's better to leave small margin at top, and remove margin when
panning left-right since we have margins anyway
2012-02-29 23:37:16 +01:00
Dobrica Pavlinusic
54e7ae3296 implement new zoom mode (F) for two-colum layout
It zooms to left column and turns on panning mode, so simple sequence
of down,down...,right,down,down... will get you through whole page
2012-02-29 23:19:31 +01:00
Dobrica Pavlinusic
33829e1815 save pan position when entering pan_by_page 2012-02-29 20:47:21 +01:00
HW
9aedee416c Merge pull request #20 from dpavlin/master
Reset panning when changing pages
2012-02-29 11:13:01 -08:00
Dobrica Pavlinusic
4481fc5178 reset x and y position when moving between pages in pan_by_page mode 2012-02-29 19:39:03 +01:00
Dobrica Pavlinusic
ba13e6b410 make up/down levels same
I use addition and substraction instead of multipiciation with factor
to make zoom deterministic (and this, one zoom up too many can be undone
with simple zoom out which wasn't the case).
2012-02-29 19:32:03 +01:00
HW
22042f1b09 Merge pull request #19 from dpavlin/master
fix panning on page in ZOOM_BY_VALUE mode
2012-02-29 09:59:14 -08:00
Dobrica Pavlinusic
12fee4f7c5 reset y panning when moving left or right
This makes this pan mode really useful, because you don't need
to go all the way to top of page when you get to bottom of first
column.
2012-02-29 18:56:03 +01:00
Dobrica Pavlinusic
ffc411096e fix pan by one screen in manual zoom mode 2012-02-29 16:54:06 +01:00
Qingping Hou
f4f5e38823 mod: switch ALT+BACK and BACK bindings 2012-02-28 22:49:37 +08:00
Qingping Hou
b33720a567 mod: change shortcut for jumpstack & fix: inputbox 2012-02-26 11:39:36 +08:00
Qingping Hou
15b8f4d574 mod: fontchooser and pdfreader code clean up 2012-02-26 10:42:04 +08:00
Qingping Hou
fa5b0c9874 mod: toc and jumpstack refactored 2012-02-26 09:47:54 +08:00
Qingping Hou
02713ae2ab add: demo for jumpstack 2012-02-26 08:28:03 +08:00
Qingping Hou
ea498e7a5a add: toc menu 2012-02-21 22:30:02 +08:00
Qingping Hou
e60242d3f6 initial demo, only one level support 2012-02-21 21:42:52 +08:00
Qingping Hou
72397af9c2 mod: listen event for KEY_LPBCK and KEY_LPFWD 2012-02-18 20:39:26 +08:00
Dobrica Pavlinusic
70ae351702 fix zomming with alt 2012-01-19 18:39:15 +01:00
Dobrica Pavlinusic
c2207f0e67 rotate page using J and K keys 2011-12-23 20:48:02 +01:00
HW
b6f6af55d7 clamp panning to actual boundaries 2011-12-12 00:04:04 +01:00
HW
16a5f40bc5 fit-to-content only if smaller size than bounding box 2011-12-11 23:34:38 +01:00
HW
e0e422c75a fixed bug: cache was cleaned, meminfo not updated 2011-12-11 23:11:56 +01:00
HW
11d9fc9989 added storing gamma setting in doc-specific state storage 2011-12-09 00:23:35 +01:00
HW
1af5ce3d04 reordered freeing of resources, error handling for doc open 2011-12-09 00:10:54 +01:00
HW
78f6fa4530 fixed small bug 2011-12-09 00:03:31 +01:00
HW
d89fd83235 fixed small oversights while refactoring 2011-12-08 17:59:08 +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