Commit Graph

43 Commits (ef111b99c620a412d27544ba3c0aeb58f19183e6)

Author SHA1 Message Date
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox 0b7554b1d8 add DSHOWOVERLAP in defaults.lua
Turn off "show overlap" by default since scroll mode can replace it
in most cases where "show overlap" is used. And the dimmed area often
make new users confused. It's better to leave this feature to more
advanced users.
11 years ago
chrox 75eb0e6f23 bugfix: fix screen ghosting after swiping north/south in scroll mode
As swiping north/south will generate several pan gestures which will
set refresh mode to WAVEFORM_MODE_A2, we should explicitly do a full
refresh in order to switch refresh waveform from WAVEFORM_MODE_A2
to WAVEFORM_MODE_GC16 as in OnPanRelease.
11 years ago
chrox 196f72a053 add onGotoPage handler in readerpaging 11 years ago
chrox 07de799237 set fast refresh mode in setDirty method 11 years ago
chrox f2a6b7c4e3 use WAVEFORM_MODE_A2 when scrolling page 11 years ago
chrox 7b97ce4eeb comment revision 11 years ago
chrox b85a39d3f6 add reading position on each page
Page position is a fractional number ranging from 0 to 1, indicating the read percentage on
certain page. With the position information on each page whenever users change font size,
page margin or line spacing or close and reopen the book, the page view will be roughly the same.
11 years ago
chrox d505f39c79 recalculate zoom when toggling flipping mode 11 years ago
chrox 4fbebe0d4c horizontal swipe in flipping mode will use stepped paging
Proportional to swipe distance the page increment is stepped as
0, 1, 2, 5, 10, 20, 50 and 100.
11 years ago
chrox d24131b13b add panning of page in scroll mode 11 years ago
{Qingping,Dave} Hou e7fe768497 Merge pull request #28 from chrox/flipping_tweak
disable reflow in flipping mode
11 years ago
chrox dd19d446cf disable reflow in flipping mode 11 years ago
chrox df308a895f set active area for config menu to 1/12 of screen height 11 years ago
chrox ae40aad56e use new directions in pan/swipe gesture 11 years ago
chrox dbe663de46 use two finger swipe gesture to return to original page in flipping mode 11 years ago
chrox ceae778c0d bugfix: update current pageno to the very last part in current view 11 years ago
chrox a16dba8daa rewind current page after initiating the scroll page states 11 years ago
chrox cd52704b62 remove original page when toggling flip mode off 11 years ago
Qingping Hou 28e5907d51 use scaleByDPI in all widgets 11 years ago
chrox e2b16a18a3 comments for clamping scroll offsets 11 years ago
chrox 94792a4574 bugfix: clamp scroll offsets 11 years ago
chrox d3c9b6866a bugfix: fix loop scrolling at the beginning/end of the document 11 years ago
chrox bf303093ed bugfix: fix loop scrolling in shorter pages 11 years ago
chrox a6609119ec disable hinting temporarily in config dialog and flipping mode and cropping dialog
Since hinting is of little use in these situations.
11 years ago
chrox 3660625cca bugfix: detect pan release to update flipping page on which the page
calculation of the following flip is based.
11 years ago
chrox 63e5e7e577 add scroll mode for pdf/djvu reader 11 years ago
chrox 1bd8dfcee1 add flipping mode in pdf/djvu reader
By tapping on the upper left corner of the reader one can toggling flipping mode on/off.
In flipping mode swiping right/down and left/up  will paging backward and forward
accordingly with pages proportional to swiping distance.
11 years ago
Qingping Hou f3452234ea add math.lua, move all math related helpers in to it 11 years ago
Qingping Hou d4ff6f9291 first demo of screen rotate 11 years ago
Qingping Hou db49f1b09c add ReaderRolling:onRedrawCurrentView() 12 years ago
chrox c4bc6e3cd3 add percent_finished for KPVBooklet and restore original last_percent 12 years ago
chrox f41f645465 add last_percent field in pdf/djvu document history
And normalize last_percent for cre document
12 years ago
chrox 349bcb996e use koptinterface to reflow text in pdf/djvu readers 12 years ago
chrox 138def10c3 Demo version of koptreader config dialog. 12 years ago
Qingping Hou e98a89f8d5 demo for dimming on page overlap 12 years ago
Qingping Hou 90f6dfefb4 code tide up in readerpaging 12 years ago
Qingping Hou d077bafb6d fix bug no default zoom mode bug in readerpaging
reported by @chrox, see #647
12 years ago
Qingping Hou ae1c489a0f implement full pageturn by viewport for all modes
* add notIntersectWith method for Geom
* add math.roundAwayFromZero in geometry.lua
* Readerview:recalculate now signals ViewRecalculate event.
  For now, this event is only usefull for ReaderPaging
12 years ago
Qingping Hou d4e5b4cb06 add readerpaging and readermenu touch support 12 years ago
Qingping Hou 1c216b6458 add last read page/percent setting support 12 years ago
HW 60ccd7441e fixed menu info displaying, replaced debug() by DEBUG()
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
12 years ago
HW 9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
12 years ago