2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1693 Commits

Author SHA1 Message Date
chrox
291f088d94 update koreader-base for multi-touch support on PocketBook 2015-01-18 14:26:33 +08:00
chrox
d94d7d3aa7 fix PgFwd/PgBack cannot turn page in PDF scroll mode 2015-01-18 04:34:19 +08:00
chrox
6a06cfaea5 refactor out flush settings when device goes into screensaver 2015-01-18 00:58:08 +08:00
chrox
a5b90588ae add powerd for PocketBook device 2015-01-17 23:54:49 +08:00
chrox
96e9bb0701 partial refresh screen when koreader goes to forground 2015-01-17 23:17:46 +08:00
chrox
5c4651a3d9 auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook 2015-01-17 09:09:36 +08:00
chrox
7ac36a460c handle keyboard events in pocketbook 2015-01-15 22:23:03 +08:00
chrox
6894c11640 fix typo 2015-01-13 00:18:59 +08:00
chrox
1cba495fe0 add PocketBook port of Koreader 2015-01-13 00:15:18 +08:00
Hans-Werner Hilse
d016858d75 only device event0 and event1 do exist, remove others. 2015-01-09 15:55:04 +00:00
Hans-Werner Hilse
c28d973941 fix: load input driver before configuring it 2015-01-09 15:46:33 +00:00
Hans-Werner Hilse
0b5545f125 rump implementation for PocketBook devices, to be extended. 2015-01-09 14:10:25 +00:00
Michael Hall
9a66805b5a Handle Kobo Touch Key 2014-12-26 11:45:09 +00:00
Hans-Werner Hilse
f789913702 read global default value for margin size
The global configuration wasn't evaluated before
2014-12-19 14:03:56 +00:00
Hans-Werner Hilse
a4571c297e read global default value for using embedded stylesheets
The global configuration wasn't evaluated before.
Fixes #1364.
2014-12-19 13:58:03 +00:00
Qingping Hou
6ed8f30f35 fix: empty item_table crashes menu widget 2014-12-18 03:16:11 -05:00
chrox
b403a45228 fix OTA server broken on checking stable release 2014-12-06 20:14:10 +08:00
Hans-Werner Hilse
05503791b4 issue a full refresh when changing rotation 2014-12-05 21:25:32 +00:00
chrox
8555f24c45 make sure refresh_count is incremented by only once at most for each repaint 2014-12-04 15:46:47 +08:00
chrox
b3d79b053a workaround to fix #1340 2014-12-04 10:09:09 +08:00
chrox
d9fa97df5a fix #1336 by ignoring uncompatiable saved highlights 2014-12-04 09:13:56 +08:00
Hans-Werner Hilse
bb5254022d fix: save properly last open menu in reader
20fd6f902e missed the saving part when
renaming the configuration variable.

Fixes #1335.
2014-12-03 16:14:30 +00:00
Hans-Werner Hilse
7c1c072b21 fix for rotated document to file manager transition: do a refresh
fixes part 2 of #1333
2014-12-03 15:59:48 +00:00
chrox
b0e2ce2a8b update comment about reverting full refresh in onPanRelease 2014-12-03 18:37:00 +08:00
chrox
35545169a6 zoom mode is meaningless when reflowing, so disable zoom mode options in reflow mode 2014-12-03 16:33:21 +08:00
chrox
c43885b917 show debug info when JSON data cannot be decoded 2014-12-03 14:26:00 +08:00
chrox
846836dceb fix #1275
Full refresh when highlighting text is quite annoying, I fixed it by
using 'ui' refresh type.
And this patch also fixed a bug that after cleaning temporary highlights
the screen is not refreshed.
2014-12-03 14:06:46 +08:00
chrox
b767394fc2 fix #1150 by adding FOLLOW_LINK_TIMEOUT variable 2014-12-03 12:55:53 +08:00
chrox
ef6235e4ae fix #1305 2014-12-03 11:33:54 +08:00
chrox
6c9b7facbe fix crash when removing highlighted bookmarks in PDF 2014-12-03 11:12:15 +08:00
variousvirgil
9c69c1f14e Fix #1299 2014-12-02 20:30:55 +08:00
Hans-Werner Hilse
3d73ff5ae7 only open frontlight device on Kobo devices that actually have light 2014-12-02 11:18:19 +01:00
chrox
eea6f97796 fix #1319 2014-12-02 10:35:55 +08:00
chrox
aa9566205b fix filemanager cannot remember sorting order 2014-12-02 09:52:05 +08:00
Hans-Werner Hilse
ff0fbbdb4b fix widget closing 2014-12-01 16:21:42 +00:00
Hans-Werner Hilse
844c1babf7 UIManager:_refresh(): no more default refresh
If no refresh type is specified, don't do a refresh.
There should be now refresh types specified in all relevant places.
2014-12-01 16:03:41 +00:00
Hans-Werner Hilse
94ce08937a clean up refreshes
This is a larger clean-up of the refresh situation.
The general shift is that refreshes are now mainly triggered by
the (top-level) widgets when they get shown or closed via UIManager.

All refreshes for the widgets when they are in use were handled by
themselves before. This adds the case of showing/closing.

It is the desired result of not having UIManager:show()/:close()
do (full screen) refreshes on its own.
2014-12-01 16:03:40 +00:00
Hans-Werner Hilse
9c4088a3ac small change of UIManager:show(): No more automatic refresh
This eliminates the API difference between the extra parameters of
UIManager:show() and setDirty(). They work the same now.
Note that this also eliminates the automatic refresh that took place
before when using show() without refresh options. It always refreshed
the full screen, which led to too big refresh regions all over the
place. Thus, refresh has now explicitly to be asked for, hopefully
encouraging to implement it in the widget that gets shown (and is
aware about the screen region it covers).

Also add an event that is triggered when a widget is closed:
CloseWidget. So a widget can implement "onCloseWidget()" to trigger
actions upon closing - most commonly, this is a refresh for the area
previously taken by the widget. That way, the widget's user does not
have to take measures to ensure that the area is refreshed later.
2014-12-01 14:42:38 +00:00
chrox
20fd6f902e fix #1175 2014-12-01 15:32:12 +08:00
Huang Xin
ddae003925 Merge pull request #1310 from hwhw/master
fixes for scrolling, fix for double-refresh, misc stuff
2014-12-01 09:56:04 +08:00
Hans-Werner Hilse
e8642fbad7 use API for refresh when closing widgets in message popups 2014-11-30 22:35:08 +00:00
Hans-Werner Hilse
1091a8a3b9 add refresh control to UIManager:close() 2014-11-30 22:35:07 +00:00
Hans-Werner Hilse
e7f7417cd3 refresh only dialog part of the screen for multi-word selection window 2014-11-30 22:33:38 +00:00
Hans-Werner Hilse
143c56c48c record ButtonDialog.dimen 2014-11-30 22:33:38 +00:00
Hans-Werner Hilse
8376e2f821 dictionary window triggers refresh itself, not via show() 2014-11-30 22:33:37 +00:00
Hans-Werner Hilse
afb59667c0 allow for more control on refreshes when show()ing widgets
for now, we have show() automatically call setDirty() for the new
widget, as before. However, now show() takes two arguments for
refresh configuration that will get passed on to setDirty().

For compatibility, the default is here in show() to do a partial
refresh. So if you want no refresh triggered (via this show() call),
add a function that doesn't return anything.
2014-11-30 22:33:36 +00:00
Frans de Jonge
47d7a48555 OPDS: refactored unit test and fixed a minor bug with undefined image_rel 2014-11-30 21:44:47 +01:00
Hans-Werner Hilse
3f9dc46315 fix dict window refresh
was still using old API
also, move this to another place.
2014-11-30 18:38:03 +00:00
Hans-Werner Hilse
c4a9903162 on finish of pan gesture when scrolling, do partial refresh
it was set to a full refresh. However, we want to behave as if in
non-scrolling mode and issue a partial refresh. That might get
updated to a full refresh if the full-refresh counter has reached
the limit - which is configurable.
2014-11-30 18:38:03 +00:00
Hans-Werner Hilse
745e3837e0 updating the screen in tap handler of readerfooter is not needed
Was a hack anyway, c.f.
https://github.com/koreader/koreader/pull/1306#discussion_r21057461

Seems to be not needed anymore. If some areas are now not refreshed
anymore, that ought to be fixed in another place.

This also gets rid of redundant screen flashes.
2014-11-30 18:38:02 +00:00