2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/frontend/ui/elements
yparitcher a9d4e97115
[plugin] Dispatcher: for profiles & gestures (#6106)
add a Dispatcher module that allows for dispatching multiple events at once.
This will allow for profiles & for gestures that do multiple things.

it has 2 methods:
Execute which is given a kv table of settings to change and fires an event for each of them.
addSubMenu adds a menu item to a menu to allow for modifying which events are called
it also has settingsList which is a master table of all allowed setting and their corresponding info
(it is mostly from ReaderGesture and needs a lot of work)

to allow for a new setting all one has to do is add a entry to settingsList with a corresponding event and it will work out of the box.

the profile plugin is right now still a stub, just to test Dispatcher. the plan is to finish it and eventually refactor ReaderGesture to rely on this.
This also needs effort to move many functions out of reader gesture into events where they belong.
2020-06-19 23:38:53 +02:00
..
avoid_flashing_ui.lua
common_info_menu_table.lua [chore, UX] Move some 'permanent' settings inside more_tools (#6282) 2020-06-19 20:40:40 +02:00
common_settings_menu_table.lua android: add a toggle to ignore back button events (#6269) 2020-06-15 07:43:37 +02:00
filemanager_menu_order.lua [chore, UX] Move some 'permanent' settings inside more_tools (#6282) 2020-06-19 20:40:40 +02:00
flash_keyboard.lua
flash_ui.lua
font_settings.lua Allow toggling use of additional fallback fonts (#6095) 2020-04-28 23:57:10 +02:00
font-test-sample-default.html Font test sample: tweak footnote links 2020-05-09 23:29:49 +02:00
mass_storage.lua
menu_activate.lua
menu_keyboard_layout.lua [feat, UX] Pick keyboard layout from keyboard (#5583) 2019-11-18 17:16:06 +01:00
reader_menu_order.lua [plugin] Dispatcher: for profiles & gestures (#6106) 2020-06-19 23:38:53 +02:00
refresh_menu_table.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
screen_android.lua tweak timeouts, add haptic feedback support 2019-10-08 18:22:56 +02:00
screen_color_menu_table.lua Warn if color rendering is enabled on a grayscale device. (#5871) 2020-02-18 02:24:48 +01:00
screen_disable_double_tap_table.lua
screen_dpi_menu_table.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
screen_eink_opt_menu_table.lua
screen_toggle_gsensor.lua More robust Gyro toggle (#5104) 2019-07-01 17:12:24 +02:00
screensaver_menu.lua [feat] Allow message to be overlaid on other screensavers (#6238) 2020-06-06 19:23:16 +02:00