Commit Graph

49 Commits (850be52177a08114013fa6af11a36f1e4081918a)

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
6 years ago
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.
6 years ago
Robert 6abc1262dd Screen refresh between chapters (#3989) 6 years ago
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).
6 years ago
poire-z e615345ffa TOC, bookmarks: remember current page so we can go back to it 6 years ago
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
6 years ago
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).
7 years ago
Frans de Jonge e1aa57f27e Font: unify font styling 7 years ago
Frans de Jonge a970a1f034 MenuSorter: fix outside testability (for potential unit tests) 7 years ago
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
7 years ago
Frans de Jonge 5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
7 years ago
Hzj_jie f91ad679d9 swithItemTable -> switchItemTable 7 years ago
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.
8 years ago
Hzj_jie 3df363165a Fix crash in readertoc.lua
This issue has been mentioned in https://github.com/koreader/koreader/issues/2186.
8 years ago
Qingping Hou 59c17ef420 minor: more luacheck fixes 8 years ago
chrox 3a0960d391 goto current toc entry automatically when open TOC window 9 years ago
chrox 1894e71b07 don't expand toc node when it's parent node is collapsed 9 years ago
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.
9 years ago
chrox 720ab191ab fix crash when opening TOC window in scroll mode of EPUB 9 years ago
chrox 1e8f07629f don't pop-up TOC window 9 years ago
Hans-Werner Hilse 22697adf20 switch from scaleByDPI() to scaleBySize() 10 years ago
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 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 3a42557b19 Merge pull request #1020 from chrox/fix_1013
fix #1013
10 years ago
chrox 1462d382d9 fix #1013 10 years ago
chrox 2ad63fc1a3 expand/collapse TOC only by tap on the icon 10 years ago
chrox c99288f3ad fix #995 by reseting readertoc on init 10 years ago
chrox 7c9130744c add collapsable TOC menu 10 years ago
chrox de38ea1199 count only leaf nodes of toc tree when level is zero 10 years ago
chrox 6dd3f99c35 reset ticks cache 10 years ago
chrox cec8ee3c29 add isChapterBegin/End API for readertoc
and add missing test epub
10 years ago
chrox b09bb87d4e refactoring readertoc and readerfooter
so that they don't repeat themselves.
10 years ago
chrox c5def15558 lift TOC entry in navi tab 10 years ago
WS64 9bdcaa2b46 Added new functions to go to next/previous chapter that also work with 2-page layout 10 years ago
WS64 256bad8203 Made some varaibales local 10 years ago
WS64 cc81d49cc9 New function to count the actual page of the current chapter 10 years ago
WS64 dc78dd9fda Update readertoc.lua 10 years ago
WS64 dee04099d1 Update readertoc.lua
Add "pages left to next chapter" to minibar
10 years ago
chrox f13a165c4b tweaks of font size 10 years ago
chrox b8ce85d3de use two finger swipe west/east to close TOC and bookmark respectively 10 years ago
chrox d6bfbb26ac decrease toc entry indentation 10 years ago
chrox 857bd6fcc8 strings not shown on GUI will not be translated
This may encourage users in transifex to join Koreader project.
10 years ago
nicolua 077b1bdf5a show_parent to menu_container
works in font menu and toc menu on k3
hope on touch the same
10 years ago
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
10 years ago
nicolua 90d9c3ddb1 menu on k3 10 years ago
chrox 4a32f4415e use borderless flat bookmark/toc window 10 years ago
chrox ac396e3aa9 highlight current toc entry 10 years ago
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
10 years ago