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

457 Commits

Author SHA1 Message Date
Frans de Jonge
ba7377065e Doc: miscellaneous improvements. 2016-12-13 14:40:16 -08:00
Frans de Jonge
7f318c0762 Merge pull request #2416 from koreader/houqp-master
doc: event propagation for widgets
2016-12-12 09:21:24 +01:00
poire-z
1708fd5e1c Dictionary and wikipedia enhancements (#2393)
Stardict:
- remove duplicate results
- better cleaning of selection
- append results from a 2nd query of a 2nd set of dictionaries
  in data/dict_ext/

Wikipedia:
- use the search API for better results
- allow viewing the full page content of a result in a bigger window
- allow queries for multiple languages
- available languages can be set in settings.reader.lua :
    ["wikipedia_languages"] = {"en", "fr", "it"}
- "Wikipedia lookup" added to Tools menu

For both:
- allow selection of multiple words for a new lookup (so one can
  actually browse wikipedia)
- allow continuous reading with Tap
- display "current result / total number of results"

Details in #2393
2016-12-11 14:32:02 -08:00
poire-z
5040bfe4c5 textboxwidget and scrolltextwidget enhancements (#2393)
util: made isSplitable() accept an optional next_char
for wiser decision

textboxwidget: speed up rendering, enhanced text wrapping,
allow selection of multiple words with Hold.

scrolltextwidget: allow scrolling with Tap.

Details in #2393
2016-12-11 14:32:02 -08:00
Qingping Hou
09564d4b4d doc: event propagation for widgets 2016-12-11 12:20:59 -08:00
Qingping Hou
11f55d2aff doc: Event and WidgetContainer 2016-12-10 16:06:51 -08:00
Qingping Hou
329fd55302 filemanager: show new books in bold 2016-12-10 16:06:51 -08:00
Qingping Hou
0c49b915de refactor: add touch zone subsystem to inputcontainer
Touch zone decouples screen size from gesture event registration.

The win here is each individual widget does not need to update
gesture range on screen rotate/resize anymore.

Another advantage is we now have a centralized ordered array to handle
all registered touch event listeners, makes it much easier to resolve
gesture range conflicts between multiple widgets.

This patch also includes the following changes:

* migrate readerpaging to use readerui's touch zone
* migrate readerfooter to use readerui's touch zone
* move inverse read direction setting to touch menu's setting tab
* moved kobolight widget from readerview into readerui
* various dead code cleanups and comments
2016-12-10 16:06:51 -08:00
Robert
93e075feb6 Adding the buttondialogtitle widget and show long filename in filemanager (#2414) 2016-12-10 16:06:10 -08:00
robert00s
e0ad600bc7 Fix: prevent step_min lower than fl_min 2016-12-07 00:36:13 -08:00
poire-z
0aa19d72a0 FileManager: show files with sidecar dir in bold (#2391)
docsettings : added hasSidecarDir() and made getSidecarDir() more robust
widget/menu : allow items to specify themselves to be displayed in bold
2016-12-04 15:51:12 -08:00
poire-z
e1c3448d0e ImageWidget optimisations (#2394)
Avoid multiple renderings.
Don't cache big images (ie: screensaver images)
2016-12-04 12:03:11 -08:00
poire-z
0145ab0410 Fix: crash if wpa_supplicant has already connected (#2394) 2016-12-04 12:03:11 -08:00
Robert
fdbab3e11d frontlightwidget(fix): prog_button does not honor powerd.fl_min (#2396) 2016-12-03 12:21:31 -08:00
Robert
64a79f6892 Frontlight progress bar (#2385) 2016-12-01 09:58:06 -08:00
poire-z
4ec7efb2d0 Fix selection in dictionary window (#2126)
Fix #2126 (hold on a word on the 2nd page of a definition was triggering
lookup of the word at the same place in 1st page).
2016-11-30 10:36:30 -08:00
Robert
171d40d287 feat: Would you like to read the downloaded book for OPDS (#2370) 2016-11-27 07:06:24 -08:00
robert00s
2cfce6f369 OPDS - fix opds catalog for Wolne Lektury 2016-11-21 09:30:00 +01:00
Qingping Hou
b7cdf103e3 chore: fix luacheck error & add comment to release-ip.sh 2016-11-19 13:11:23 -08:00
Qingping Hou
17b453cd02 doc: add more doc for imagewidget 2016-11-19 12:15:27 -08:00
Qingping Hou
b2e1d9dc42 dictquicklookup(chore): simplify logic that disables wikipedia button 2016-11-13 00:06:54 -08:00
robert00s
2238fdc882 Fix #2328 2016-11-10 12:21:42 +01:00
robert00s
09f2db3729 Fix long filename text in history textbox (#2322)
Fix long filename text in history textbox
2016-11-08 10:05:34 -08:00
Qingping Hou
efae2ed16f network(fix): automaticallly obtain IP if network is already authenticated 2016-11-06 23:56:29 -08:00
robert00s
8a9811804d Add Polish keyboard (#2319)
Add Polish keyboard


* Optimization
2016-11-06 02:01:28 -08:00
Qingping Hou
c998120a78 progressbar(performance): reuse calcauted value for ticks loop 2016-10-08 15:53:58 -07:00
Qingping Hou
ca21ab4be5 fix(defaults): type casting for user input 2016-09-21 23:57:45 -07:00
chrox
9ab005a1d3 fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework.

Now `make testfront` won't retry on failure and testing files are
ordered in each run so that it's possible to reproduce testing failure.

And this patch also fix flush settings not working before suspend issue:
at some point the `FlushSettings` event is sent to `UIManager` instead
of `ReaderUI`, but `UIManager` only delegated events to active widgets
and `ReaderUI` is actually not an active widgets thus will miss the event.

This patch also add a verbose debug mode with "-v" as a switch to turn
on this mode. With verbose mode on, event handling will be logged.
2016-08-12 17:05:07 +08:00
Qingping Hou
29578d74eb touchmenu(fix): reset page num before switching to sub menu 2016-07-31 18:22:41 -07:00
Qingping Hou
086dbdb657 scrolltextwidget(fix): add moveCursor method 2016-07-18 22:38:54 -07:00
Qingping Hou
4cdafedcc8 Merge pull request #2147 from koreader/houqp-master
move setDirty call from TextWidget:setText to FileManager
2016-07-13 10:52:32 -07:00
Huang Xin
b8f23d162d filemanager(fix): refresh banner in filemanager insteand of TextWidget 2016-07-12 21:34:17 -07:00
Qingping Hou
20eb36a03d feat: add network management UI for kobo 2016-07-11 23:50:19 -07:00
Qingping Hou
a10a4f65a5 minor: use predefined color instead of gray method 2016-07-10 23:25:32 -07:00
Hzj_jie
273a0cb7ee We should set TextWidget.parent as dirty. 2016-07-07 22:38:24 -07:00
Hzj_jie
3bc5e90a52 TextWidget should set dirty region in setText function. 2016-07-06 23:53:55 -07:00
Hzj_jie
493ff00609 Add path in file manager 2016-07-04 17:38:04 -07:00
chrox
1c5c7d3a7c fix #1682 by closing all dict windows when holding close icon 2016-06-29 00:35:00 +08:00
chrox
71bf9efc7c split accient greek words with spacing character
This should fix #1705.
2016-06-28 23:50:25 +08:00
chrox
6ec30376a6 fix two crashes 2016-06-28 00:45:01 +08:00
chrox
f1b76d41d9 fix crash when clearing inputbox 2016-06-26 22:43:40 +08:00
chrox
6b43233c4a fix #2092
And fix several other bugs introduced in #2028:
1. hint messages are back instead of the "Demo hint"
2. cursor now only presents in the focused inputbox in a multiinput dialog
3. moving cursor now works in multiinput dialog
2016-06-26 01:33:18 +08:00
chrox
40858c670a restrict dictionary window inside of screen especially in landscape mode
This should fix #2020.
2016-06-17 00:04:47 +08:00
Qingping Hou
e58198fbe2 widgetcontainer(fix): crash when getting widget size 2016-06-05 16:38:07 -07:00
Qingping Hou
301925e34a textboxwidget(fix): handle onHoldWord event 2016-06-05 00:37:54 -07:00
Qingping Hou
adf5ffdd26 dictquicklookup(fix): use self.region for matching hold event 2016-06-05 00:08:23 -07:00
Huang Xin
fd39016c87 Merge pull request #2028 from union2find/master
Add cursor functionality for inputtext widget
2016-06-01 08:34:42 -05:00
Huang Xin
ffca77af40 Merge pull request #2032 from koreader/keyboard
russian keyboard layout improvement from mergen3107
2016-06-01 08:32:54 -05:00
Qingping Hou
6a1fa7f612 move keyboard layout into data modules
also changed keyboard mode for number to 4
2016-05-28 17:46:31 -07:00
Qingping Hou
56a9bad23b russian keyboard layout improvement from mergen3107 2016-05-26 21:01:42 -07:00