Commit Graph

50 Commits (936dfc6fd17c513cb154c61c01f75323af843dd4)

Author SHA1 Message Date
chrox 936dfc6fd1 add text highlight in both reflow and non-reflow mode 11 years ago
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.
11 years ago
Qingping Hou b011bc405b fix: set ReaderView.view_mode instead of ReaderUi.view_mode 11 years ago
chrox 8df55b8318 recalculate zoom when changing font size 11 years ago
chrox fb05f9a428 add auto page crop 11 years ago
Qingping Hou 3602c61b1f add gettext to all reader widgets 11 years ago
Qingping Hou 28e5907d51 use scaleByDPI in all widgets 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 824de2cb9c bugfix: send SetDimensions event when toggling full screen on/off 11 years ago
chrox 418ba943ed bugfix: recalculate screen offset 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
chrox 01c5bcff8c set page background color to white in pdf/djvu reader 11 years ago
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.
11 years ago
chrox 86dab2ebee rename footer.lua to readerfooter.lua 11 years ago
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.
11 years ago
chrox 46357d617c cleanup: lookup reader view states like pageno and screen offset directly in self.view 11 years ago
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.
11 years ago
chrox 9efdefb22f add gamma correction for pdf/djvu reader 11 years ago
chrox 438c828e98 cleanup: use postInitCallback to restore screen mode 11 years ago
chrox 0137fe7af4 add screen mode restoration for each document 11 years ago
Qingping Hou ae6c4bd03a Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
Conflicts:
	frontend/ui/reader/readerconfig.lua
11 years ago
Qingping Hou 0dba667937 rename setScreenViewMode to setScreenMode 11 years ago
chrox a1aa41136c add manual page crop for pdf/djvu documents 11 years ago
Qingping Hou f02d8fa7b5 add SetScreenViewMode event and related handler in ReaderView 11 years ago
Qingping Hou d4ff6f9291 first demo of screen rotate 11 years ago
Qingping Hou 50e8750db4 fix: check number of pages before calling hintPage
otherwise, we will reach out page limit when reached last page
11 years ago
Qingping Hou 688540c25b singla UpdatePos event on view mode change
this event also force renew toc
12 years ago
Qingping Hou 79839021ed Merge branch 'new_ui_code' into hint_page_fix
Conflicts:
	frontend/ui/reader/readerview.lua
12 years ago
Qingping Hou 1fa0d886bd add render mode to hint page 12 years ago
Qingping Hou 204cfb2b17 return true in event handlers
we should do that when we know a event handler is only used in
that widget
12 years ago
Qingping Hou 2f36d6604b add setViewMode handler for readerrolling and readerview 12 years ago
chrox 12a76fee33 add pre-rendering in pdf/djvu readers
"HintPage" tasks are scheduled into the execution stack of UIManager
after each page drawing. These tasks should be checked immediately after
screen is refreshed so tasks are double-checked in the main loop.
12 years ago
Qingping Hou 120f7b0252 bug fix: signal ViewRecalculate event after panning
This make sure ReaderPaging get correct visible_area when
turnning to previous page.
12 years ago
Qingping Hou 93abd2fee7 add page status to readerrolling for better page view_mode support
* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
12 years ago
Qingping Hou 1675d8667b add cre view mode support in frontend 12 years ago
Qingping Hou e98a89f8d5 demo for dimming on page overlap 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 7b707ab367 add usedbbox support 12 years ago
{Qingping,Dave} Hou 267ed42be6 Merge pull request #638 from houqp/new_ui_code_fix
zoom mode support in reader menu & menu module bug fix
12 years ago
chrox 4dd9232194 recalculate page size after each call of drawPage
Only after renderPage is called can koptdocument update
reflowed page size. And the recalculate acts as a page
size updater here.
12 years ago
Qingping Hou ba3973b2ac add all zoom modes support to reader menu 12 years ago
Qingping Hou ea022b651f add rendermode support for djvu documents 12 years ago
Qingping Hou 51ed793d14 add screen rotate support 12 years ago
Qingping Hou 0ddc9f6e99 add back readerfont.lua 12 years ago
Qingping Hou acaf8d660e font menu for readerui 12 years ago
HW ce5614ef6f cleanup, also removal of G_* constants
a bit of cleanup, switched width/height combo over to use
Geom() objects, moved framebuffer handling to Screen object,
callback syntax sanitizing, lots of small changes
12 years ago
Qingping Hou e7d16de4e2 first demo for credocument 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