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

1054 Commits

Author SHA1 Message Date
Qingping Hou
6eca26f610 fix(screensaver): lastfile will be nil for fresh installation 2014-11-05 01:02:12 -05:00
Hans-Werner Hilse
3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
2014-11-02 21:19:04 +01:00
chrox
a32991d898 add new sorting methods for file list in filemanager
Now files can be sorted by filename or last accessed time
2014-10-30 22:41:52 +08:00
chrox
84029e9694 add modal widget type that will stay on the top of window stack
ConfirmBox and InfoMessage are default to be modal.
Now returning to filamanager after highlighting a PDF page
the confirmbox asking users to save the document will not be hidden by
the filamanager window.
And it's tested on Kindle that #791 is already been solved probably by
out refacorting of MuPDF backend.
2014-10-30 16:01:04 +08:00
chrox
dfcd67c5bf move screenshot settings to submenu of Screenshot entry in readermenu
And also fix a touchmenu bug that prevent some menu entries
(always at the bottom of the menu) from showing submenus. The reason is
that the onTapSelect method of TouchMenuItem doesn't return true, so that
the tap gesture will propagate to the parent widget and be captured by
touchmenu itself. But at this time the dimen of touchmenu is changed to
the submenu of the tapped menuitem. If the submenu is short enough the
tap will be outside of touchmenu which will cause a TapCloseAllMenus
event and the submenu will never be shown.
2014-10-30 15:51:35 +08:00
chrox
68265336f4 fix #1034 by refactoring path chooser to a download manager
Now directories visible in the filemanager should also
be visible in the path chooser
2014-10-28 17:14:06 +08:00
Michael Hall
79cb75b153 Added option for proportional cover image screensaver 2014-10-26 14:47:48 +00:00
Huang Xin
2dcf65c912 Merge pull request #1049 from gontofe/wifi_toggle
Leave both readerconfig and readermenu open on wifi toggle
2014-10-26 19:27:44 +08:00
Michael Hall
dd80d61155 Leave both readerconfig and readermenu open on wifi toggle 2014-10-26 09:41:28 +00:00
Qingping Hou
b0682b0470 chore: code clean up 2014-10-26 03:05:17 -04:00
Qingping Hou
394c847e2b fix(app): initilize menu properly in reader and filemanager 2014-10-25 05:46:02 -04:00
Qingping Hou
d1627337e0 fix(ui): fix dynamic menu height calculation 2014-10-25 04:03:37 -04:00
Hans-Werner Hilse
ba40cc56e9 fill background of intermediary blitbuffers
we need to explicitly fill those buffers, now that white is not "0"
anymore.
2014-10-24 13:48:42 +02:00
Hans-Werner Hilse
5982e24d57 unify color specification
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
2014-10-24 13:48:42 +02:00
chrox
c994e30cff fix #1024
if toc item has expand/collapse state and tap select on the left side
the state switch action is triggered, otherwise goto the
linked page.
2014-10-21 22:18:07 +08:00
HW
1cb3c85f34 Merge pull request #1021 from chrox/fix_1011
fix #1011
2014-10-21 12:42:16 +02:00
chrox
07ae0cba81 fix #1011
The #1011 bug is caused by the `contains` check of link box with
visible area. When the link is at the very right (left?) of
the page, enlarged link box often exceeds the page bound rendering
the mentioned `contains` check failed. This patch uses an `intersectWith`
test to check if the link is in current page.
2014-10-21 17:26:16 +08:00
Hans-Werner Hilse
e0868826ad use new FFI based mupdf API
This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface
2014-10-20 16:49:10 +02:00
chrox
2ad63fc1a3 expand/collapse TOC only by tap on the icon 2014-10-20 22:19:31 +08:00
Qingping Hou
c1c3bcb3fe fix: various fixes for kindle dxg 2014-10-20 02:17:57 -04:00
Frans de Jonge
f3d5d5b030 Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3) 2014-10-17 13:25:13 +02:00
Frans de Jonge
7117235414 Kobo Aura H2O: fix bezel. 2014-10-16 15:17:31 +02:00
Frans de Jonge
c50bdfd11c Kobo Aura H2O detection: slight code refactoring. 2014-10-16 10:59:11 +02:00
Frans de Jonge
629c32f6ba Changes for Kobo Aura H2O. 2014-10-15 18:28:13 +02:00
chrox
f3417c5488 fix #987 2014-10-15 18:17:16 +08:00
chrox
96960cd554 don't dim icon button by default 2014-10-14 21:34:56 +08:00
chrox
7c9130744c add collapsable TOC menu 2014-10-14 21:34:56 +08:00
chrox
46963df0bb don't need to rebuild ota installed package if it's detected 2014-10-14 21:34:56 +08:00
chrox
b09bb87d4e refactoring readertoc and readerfooter
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
Qingping Hou
a44cc3150d fix: use correct entry for Ukrainian in language menu 2014-10-07 01:32:04 -04:00
Qingping Hou
16b393ff47 chore(device.lua): remove frontlight hack for kobo 2014-10-07 01:32:04 -04:00
chrox
330e5a2789 don't open SDL if input device is dummy 2014-10-06 21:23:54 +08:00
Qingping Hou
05e47c8c9c Merge pull request #955 from chrox/network_proxy
http proxy support by setting NETWORK_PROXY variable
2014-10-05 01:14:48 -07:00
Qingping Hou
55cb0271cb Merge pull request #954 from chrox/fix_950
get rid of query filed of baseurl when building href
2014-10-05 01:08:02 -07:00
chrox
3147ffb08a http proxy support by setting NETWORK_PROXY variable
This should implement feature request in #919.
2014-10-05 16:04:52 +08:00
chrox
549f54ab07 get rid of query filed of baseurl when building href
otherwise there will be "?offset=90" query in downloading href
for calibre opds server which doesn't accept the url

This should fix #950.
2014-10-05 15:47:36 +08:00
chrox
7b78d70c74 fix fgcolor of inputbox is always 0.0 2014-10-05 14:00:38 +08:00
chrox
6152198e88 still needs button bgcolor
This bgcolor is for framecontainer background color.
2014-10-04 22:01:09 +08:00
Hans-Werner Hilse
7b1777e095 adapt widgets and text rendering to new font rendering
no background for text rendering anymore
2014-10-04 15:54:03 +02:00
Qingping Hou
7df2e0fb28 Merge pull request #944 from chrox/lazy_loading
refactoring: lazy loading of unused modules
2014-10-03 19:08:39 -07:00
evgsh
aae2c4de27 Added acquisition relation types , fixes issue #940 2014-10-03 17:22:37 +03:00
chrox
14e2bf3d69 refatoring: lazy loading of packages 2014-10-03 16:13:34 +08:00
chrox
9adf8ac327 also paint widget if any widget underneath is dirty 2014-09-29 14:23:38 +08:00
chrox
508cf94f98 fix run out of memory when receiving large files from Calibre 2014-09-29 14:22:33 +08:00
Hans-Werner Hilse
e47b43e8b5 add implementation of a container widget with alpha-blitting
This is a container that will honor a given alpha value (0..1)
when painting, so it will be translucent for values < 1.
2014-09-28 21:48:06 +02:00
Hans-Werner Hilse
adbcdddb56 undo wrong use of addblitFrom()
rendertext.lua did use addblitFrom() for rendering text - i.e. blitting
the letters to a BlitBuffer. However, it used intensity=1.0, which is
the same as doing a (faster, more efficient) blitFrom(). So use that
instead.

What was probably intented here is a different kind of blitting - using
the bitbuffer of the glyph as a mask.
2014-09-28 21:11:03 +02:00
chrox
97e7a90865 encode lfs.dir iterated file path to UTF-8 2014-09-25 22:33:43 +08:00
chrox
a0cd4816a7 no mkfifo on Windows 2014-09-25 22:33:31 +08:00
chrox
7d22318641 don't require ssl.https since it cannot yet be built for win32 2014-09-25 22:33:06 +08:00
evgsh
aabee1f3bc Update opdsbrowser.lua 2014-09-19 13:43:58 +03:00