Commit Graph

1420 Commits (3066c86e38c8297c4c534a31c9631bb8bd6535cf)

Author SHA1 Message Date
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.
10 years ago
chrox a32991d898 add new sorting methods for file list in filemanager
Now files can be sorted by filename or last accessed time
10 years ago
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.
10 years ago
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.
10 years ago
chrox f48c073357 persistent cache item now need an explicit persistent flag 10 years ago
chrox 8c9751744e fix #1064 by adding timestamp of document in cache key
so that when document is modified the persistent cache will
be invalidated automatically because the cache key will not
be matched. There is no perfermance overhead here at all. We
even don't need to check the modification time of the cache item
on disk, because the name of the on disk cache is a md5sum of the
cacheitem key, now the filename of the cache files contains the
modification time information.
If the document is modified since one rendered page is cached to disk,
the cache key won't match the cache file. And the cache file will
be discarded without the need to open the cache file or to check
the modification time of the cache file itself.
10 years ago
chrox 72f9449de8 ignore more markup tags in dictionary window 10 years ago
HW a3dec7d088 Merge pull request #1058 from chrox/reader_history
add history view in the info panel of reader menu
10 years ago
HW 776f61d9eb Merge pull request #1057 from chrox/fix_1034
fix #1034 by refactoring path chooser to a download manager
10 years ago
chrox bdebe90412 keep only one readerui instance running 10 years ago
chrox 4897d70b1f add reader history in the info panel 10 years ago
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
10 years ago
chrox 6b2768f801 fix cannot set default dictionary 10 years ago
chrox fea7b93b62 fix #1035 by CDATA tidy 10 years ago
chrox c2726a8f62 save two blitbuffer memory allocations for crengine on each page turn
One for drawbuffer at CreDocument:drawCurrentView and another for
resizing of drawBuf at cre.drawCurrentPage.
10 years ago
Hans-Werner Hilse 0a74dc6072 add needed ffi module when saving annotations 10 years ago
Michael Hall 79cb75b153 Added option for proportional cover image screensaver 10 years ago
Huang Xin 2dcf65c912 Merge pull request #1049 from gontofe/wifi_toggle
Leave both readerconfig and readermenu open on wifi toggle
10 years ago
Michael Hall dd80d61155 Leave both readerconfig and readermenu open on wifi toggle 10 years ago
Qingping Hou b0682b0470 chore: code clean up 10 years ago
Qingping Hou 6aabc62f73 fix(reader): crash on closing reader menu 10 years ago
Qingping Hou 394c847e2b fix(app): initilize menu properly in reader and filemanager 10 years ago
Qingping Hou d1627337e0 fix(ui): fix dynamic menu height calculation 10 years ago
Hans-Werner Hilse ba40cc56e9 fill background of intermediary blitbuffers
we need to explicitly fill those buffers, now that white is not "0"
anymore.
10 years ago
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.
10 years ago
chrox 281df50da5 fix #1028 10 years ago
chrox 2ff12af50c protected call of mupdf.renderImage 10 years ago
chrox 91400f8fef expand/collapse for the left one third region should be more resonable 10 years ago
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.
10 years ago
HW 1cb3c85f34 Merge pull request #1021 from chrox/fix_1011
fix #1011
10 years ago
Huang Xin 3c1d2c69df Merge pull request #1014 from hwhw/master
use new FFI based mupdf API
10 years ago
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.
10 years ago
chrox 2050c0aa66 fix renderImage invocation 10 years ago
HW 3a42557b19 Merge pull request #1020 from chrox/fix_1013
fix #1013
10 years ago
chrox 1462d382d9 fix #1013 10 years ago
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
10 years ago
chrox 2ad63fc1a3 expand/collapse TOC only by tap on the icon 10 years ago
chrox 0a863f07c7 show 50 ticks on the mini progress bar at most 10 years ago
Qingping Hou c1c3bcb3fe fix: various fixes for kindle dxg 10 years ago
Frans de Jonge 3334903e8c Actually flush stdio rather than all io. 10 years ago
Frans de Jonge 65d3cacd7c Flush stdio to prevent buffering multiple debugging messages when redirecting output to file. 10 years ago
Frans de Jonge f3d5d5b030 Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3) 10 years ago
Frans de Jonge 7117235414 Kobo Aura H2O: fix bezel. 10 years ago
Frans de Jonge c50bdfd11c Kobo Aura H2O detection: slight code refactoring. 10 years ago
HW 0f40042e57 Merge pull request #999 from Frenzie/master
Changes for Kobo Aura H2O.
10 years ago
Frans de Jonge 629c32f6ba Changes for Kobo Aura H2O. 10 years ago
Paulo Matias 8bbdf03ccb Merge pull request #998 from chrox/fix_970
fix #970
10 years ago
Paulo Matias 2843bf362d Merge pull request #996 from chrox/djvu_render_mode
add djvu render mode options in readermenu
10 years ago
chrox 834c994ed8 fix #970
by rendering full page if bbox is larger than native page size when
zooming mode is fit to content*
10 years ago
chrox c99288f3ad fix #995 by reseting readertoc on init 10 years ago