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

49 Commits

Author SHA1 Message Date
poire-z
850be52177
Keep some menus open when Tap or Hold (#4189)
TouchMenu: added options to menu items with the following defaults:
    keep_menu_open = false
    hold_keep_menu_open = true
So, default for Tap callback is to close menu, and for Hold callback
to keep menu open.
In both cases, provide the TouchMenu instance as the 1st argument to
the callback functions (instead of a refresh_menu_func I added in #3941)
so the callback can do more things, like closing, refreshing,
changing menu items text and re-ordering...

ReaderZooming: show symbol for default (like it was done for
ReaderFont, ReaderHyphenation...)
TextEditor plugin: update the previously opened files list in real
time, so the menu can be kept open and used as the TextEditor main
interface.
SSH plugin: keep menu open and update the Start/Stop state in real time
ReadTimer plugin: tried to do what feels right (but I don't use it)

Also remove forgotten cp in the move/paste file code
2018-09-04 23:55:58 +02:00
poire-z
c3a938aad6
bump crengine: alternative TOC, no page break on borders (#4011)
Includes:
- Avoid page break between a node and its borders
- Allow building an alternative TOC from document headings

On CRE documents, allows toggling between original TOC and an
alternative TOC with long-press on the "Table of content" menu
item.

Also update the Wikipedia stylesheet to further avoid
page-breaks between images and their caption, so a full
bordered wikipedia thumbnail is always full on a single page.
2018-06-14 00:46:52 +02:00
Robert
6abc1262dd Screen refresh between chapters (#3989) 2018-05-30 00:28:47 +02:00
poire-z
5e47a83e6a
UIManager: avoid painting widgets covered by a full screen widget (#3770)
Navigating the TOC, viewing a full screen image, browsing
reading stats... would call paintTo() on ReaderUI (so, asking
the engine to render the page) or FileManager (so, rendering cover
images) even though their content is hidden.
Widgets registering to UIManager have to explicitely states
they cover the full screen (UIManager can't know, parts of their
dimen may be transparent, e.g. if it is a CenterContainer).
2018-03-17 23:02:32 +01:00
poire-z
e615345ffa TOC, bookmarks: remember current page so we can go back to it 2018-01-31 14:22:28 +01:00
Robert
d163f8281d Menu: configure number of items per page, wrap entries (#3589)
Configure number of items per page (from 6 to 24) - default is 14
Allow filenames to wrap so that we can see the full name
Used by File browser, History, Search Result, Bookmarks, Table of contents (only single line), File chooser, OPDS catalog
2018-01-13 23:38:53 +01:00
poire-z
b483c54be8 Fix footer, stats, TOC position with cre in scroll mode (#3304)
This gives the page position to these modules even in scroll mode.
Also, in readerrolling: don't query battery/charging status
when crengine does not need it (used only when it shows its top
progress bar).
2017-10-05 21:49:59 +02:00
Frans de Jonge
e1aa57f27e Font: unify font styling 2017-04-29 03:01:38 -07:00
Frans de Jonge
a970a1f034 MenuSorter: fix outside testability (for potential unit tests) 2017-03-26 11:12:44 +02:00
Frans de Jonge
b7b5950e98 MenuSorter: review comments and various bug fixes
* fixed wrongful retention of submenus variable and added return to MenuSorter:findById
* fixed readerfooter_spec.lua error
* fixed review comments
2017-03-26 11:12:44 +02:00
Frans de Jonge
5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
2017-03-26 11:12:44 +02:00
Hzj_jie
f91ad679d9 swithItemTable -> switchItemTable 2017-02-01 06:26:06 -08:00
poire-z
bbba2799a5 Fix: unexpendable TOC in some cases (#2394)
When on a page in a 2nd level section, after switching orientation,
TOC was stuck with the section we're in unexpandable.
2016-12-04 12:03:11 -08:00
Hzj_jie
3df363165a Fix crash in readertoc.lua
This issue has been mentioned in https://github.com/koreader/koreader/issues/2186.
2016-07-29 22:47:44 -07:00
Qingping Hou
59c17ef420 minor: more luacheck fixes 2016-02-15 01:33:48 -08:00
chrox
3a0960d391 goto current toc entry automatically when open TOC window 2015-02-03 15:34:35 +08:00
chrox
1894e71b07 don't expand toc node when it's parent node is collapsed 2015-02-03 12:48:24 +08:00
chrox
e25ca27db3 auto expand the parent TOC node of current page
and fix current item of item not updated when in the last node
This should fix #1396.
2015-02-01 22:50:08 +08:00
chrox
720ab191ab fix crash when opening TOC window in scroll mode of EPUB 2015-02-01 21:52:46 +08:00
chrox
1e8f07629f don't pop-up TOC window 2015-02-01 21:36:22 +08:00
Hans-Werner Hilse
22697adf20 switch from scaleByDPI() to scaleBySize() 2014-11-23 12:13:32 +00: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
91400f8fef expand/collapse for the left one third region should be more resonable 2014-10-21 22:40:43 +08: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
3a42557b19 Merge pull request #1020 from chrox/fix_1013
fix #1013
2014-10-20 17:51:35 +02:00
chrox
1462d382d9 fix #1013 2014-10-20 22:55:39 +08:00
chrox
2ad63fc1a3 expand/collapse TOC only by tap on the icon 2014-10-20 22:19:31 +08:00
chrox
c99288f3ad fix #995 by reseting readertoc on init 2014-10-15 20:47:13 +08:00
chrox
7c9130744c add collapsable TOC menu 2014-10-14 21:34:56 +08:00
chrox
de38ea1199 count only leaf nodes of toc tree when level is zero 2014-10-11 21:10:07 +08:00
chrox
6dd3f99c35 reset ticks cache 2014-10-10 18:14:33 +08:00
chrox
cec8ee3c29 add isChapterBegin/End API for readertoc
and add missing test epub
2014-10-07 17:44:10 +08:00
chrox
b09bb87d4e refactoring readertoc and readerfooter
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
chrox
c5def15558 lift TOC entry in navi tab 2014-08-19 12:11:49 +08:00
WS64
9bdcaa2b46 Added new functions to go to next/previous chapter that also work with 2-page layout 2014-07-15 12:18:24 +02:00
WS64
256bad8203 Made some varaibales local 2014-07-03 19:30:21 +02:00
WS64
cc81d49cc9 New function to count the actual page of the current chapter 2014-07-03 18:19:28 +02:00
WS64
dc78dd9fda Update readertoc.lua 2014-07-02 10:46:26 +02:00
WS64
dee04099d1 Update readertoc.lua
Add "pages left to next chapter" to minibar
2014-07-02 07:07:18 +02:00
chrox
f13a165c4b tweaks of font size 2014-06-10 21:33:31 +08:00
chrox
b8ce85d3de use two finger swipe west/east to close TOC and bookmark respectively 2014-06-10 21:33:31 +08:00
chrox
d6bfbb26ac decrease toc entry indentation 2014-06-08 14:08:18 +08:00
chrox
857bd6fcc8 strings not shown on GUI will not be translated
This may encourage users in transifex to join Koreader project.
2014-06-05 14:59:06 +08:00
nicolua
077b1bdf5a show_parent to menu_container
works in font menu and toc menu on k3
hope on touch the same
2014-05-31 15:43:44 +03:00
nicolua
09d6005bb3 yes
it will better
to show and close one widget
but I found the same problem in documentfont menu
so dancing is continued
2014-05-31 13:50:21 +03:00
nicolua
90d9c3ddb1 menu on k3 2014-05-30 17:11:46 +03:00
chrox
4a32f4415e use borderless flat bookmark/toc window 2014-04-04 23:37:50 +08:00
chrox
ac396e3aa9 highlight current toc entry 2014-04-04 23:02:29 +08:00
Qingping Hou
4b357c1466 move reader code into frontend/apps/reader
it makes more sense to completely separate the UI framework and
application code

also move frontend/ui/configurable.lua to frontend/configurable.lua
2014-04-02 17:02:01 -04:00