Commit Graph

76 Commits

Author SHA1 Message Date
chrox 8e4516b824 add regional zoom mode in pdf/djvu page
In regional zoom mode double tap will zoom to the tapped
region(paragraph or column, etc., detected optically via libk2pdfopt).
As the first demo, this feature is only turned on in flipping mode by
tapping the top-left corner of the screen. Eventually we may incorporate
this feature in "free" zoom mode.
2014-01-02 11:14:26 +08:00
chrox 1cbc6b9669 move crereader margin options into defaults.lua 2013-12-28 18:39:42 +08:00
chrox ee8838960b add auto save settings option 2013-12-27 23:18:16 +08:00
chrox b5fd38f897 delayed calling of gotoXPointer when internal properties are changed
This should fix #400 and fix #300.
2013-12-26 06:24:36 +08:00
chrox 3b9eaafadd add dictionary lookup in crereader 2013-12-25 01:43:28 +08:00
chrox 93866822d0 always show progress bar in flipping mode
tap on progress bar in flipping mode will goto corresponding page
2013-12-17 22:42:31 +08:00
chrox f0039cbb02 customizable tap zones for page flipping and bookmarking 2013-12-17 19:53:43 +08:00
chrox 5dd96b8756 tap on reader footer will toggle time display 2013-12-15 20:19:06 +08:00
chrox 153d0866d5 remove auto "contentwidth" in landscape
This should fix #365.
2013-11-29 17:18:50 +08:00
HW 09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +02:00
HW ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
chrox 7a5ce55b8d fix extra page rendering when starts up in landscape mode 2013-10-13 22:13:04 +08:00
chrox 4660a3532b synchronize hightlights in non-/reflowing modes
and there is no need to OCR word if we can extract text from
original page in reflowing mode thanks to the rect maps between
normal page and reflowed page.
2013-10-12 23:07:13 +08:00
Qingping Hou 94e89e8e38 add missing import for group widget in readerview 2013-08-14 12:13:48 -04:00
chrox 52c4ada111 save rotation mode in doc settings 2013-07-13 13:57:02 +08:00
Qingping Hou 0d902a1a4c add scrollmode and fullscreen mode to defaults 2013-07-03 02:19:10 -04:00
Qingping Hou 561c7902ca move defaults.lua to root directory 2013-07-01 02:55:28 -04:00
Qingping Hou 18122fe067 add defaults.lua 2013-07-01 02:41:33 -04:00
chrox 94526fa26d add page margin options in CREOptions 2013-06-28 17:12:04 +08:00
chrox 8ae528629c bugfix: make a fresh copy of Geom before transforming 2013-06-16 18:59:11 +08:00
chrox c116b34e71 parameterize lighten color in displaying saved highlights 2013-06-16 17:10:54 +08:00
chrox eb4c76bd15 add highlight in pdf reader 2013-06-15 23:16:53 +08:00
Qingping Hou cc411efc92 update rolling status after cre view mode change 2013-05-18 13:35:12 -04:00
chrox 81294e804a fix page rect to screen rect transform when scale is larger than 1 2013-05-01 23:42:30 +08:00
chrox bda282ffa4 fix ineffective default options of full screen and scroll mode 2013-05-01 10:46:20 +08:00
chrox ecb797a097 enlarge hightlight box in readerhightlight.lus 2013-04-30 13:48:50 +08:00
chrox 936dfc6fd1 add text highlight in both reflow and non-reflow mode 2013-04-24 06:59:52 +08:00
chrox 7f53ddacbe add activity indicator when configuring in reflow mode
For now pillow activityIndicator is used to draw animated waiting icon
at the upper left corner of the screen. So pillow service should be
enabled to use this feature, but eventually we should implement an
activity indicator that is independent of native system.
2013-04-21 16:54:59 +08:00
Qingping Hou b011bc405b fix: set ReaderView.view_mode instead of ReaderUi.view_mode 2013-04-21 05:51:28 +08:00
chrox 8df55b8318 recalculate zoom when changing font size 2013-04-20 16:17:38 +08:00
chrox fb05f9a428 add auto page crop 2013-04-14 15:16:42 +08:00
Qingping Hou 3602c61b1f add gettext to all reader widgets 2013-04-08 15:22:04 +08:00
Qingping Hou 28e5907d51 use scaleByDPI in all widgets 2013-03-15 20:03:50 -04:00
chrox a6609119ec disable hinting temporarily in config dialog and flipping mode and cropping dialog
Since hinting is of little use in these situations.
2013-03-12 20:28:01 +08:00
chrox 824de2cb9c bugfix: send SetDimensions event when toggling full screen on/off 2013-03-11 16:30:48 +08:00
chrox 418ba943ed bugfix: recalculate screen offset 2013-03-10 16:46:56 +08:00
chrox 63e5e7e577 add scroll mode for pdf/djvu reader 2013-03-10 14:23:26 +08:00
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.
2013-03-03 22:23:28 +08:00
chrox 01c5bcff8c set page background color to white in pdf/djvu reader 2013-02-24 20:44:55 +08:00
chrox 3dfa9aa51d add a dog-ear-like icon at the above right corner of bookmarked page
And tap the above right corner will toggle the bookmark on this page on/off.
2013-02-24 19:49:23 +08:00
chrox 86dab2ebee rename footer.lua to readerfooter.lua 2013-02-24 15:25:08 +08:00
chrox c5b4d958bb add reading progress bar at the bottom of ReaderView for pdf/djvu reader
And there is also a toggle full screen option to turn on/off the progress bar.
2013-02-24 02:25:57 +08:00
chrox 46357d617c cleanup: lookup reader view states like pageno and screen offset directly in self.view 2013-02-20 19:39:09 +08:00
chrox 85dafd6e25 set zoom mode to contentwidth after rotating screen to landscape
As most pages are portrait there is no reason to fit "portrait" page
on "landscape" screen. And "pagewidth" is used less often than "contentwidth".
So "contentwidth" is choosed to set zoom mode on landscape screen.
2013-02-20 18:30:31 +08:00
chrox 9efdefb22f add gamma correction for pdf/djvu reader 2013-02-20 14:32:51 +08:00
chrox 438c828e98 cleanup: use postInitCallback to restore screen mode 2013-02-12 00:59:28 +08:00
chrox 0137fe7af4 add screen mode restoration for each document 2013-02-11 00:09:33 +08:00
Qingping Hou ae6c4bd03a Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
Conflicts:
	frontend/ui/reader/readerconfig.lua
2013-02-04 15:00:17 +08:00
Qingping Hou 0dba667937 rename setScreenViewMode to setScreenMode 2013-02-03 13:13:46 +08:00
chrox a1aa41136c add manual page crop for pdf/djvu documents 2013-02-03 04:42:59 +08:00