mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
a9d4e97115
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. |
||
---|---|---|
.. | ||
avoid_flashing_ui.lua | ||
common_info_menu_table.lua | ||
common_settings_menu_table.lua | ||
filemanager_menu_order.lua | ||
flash_keyboard.lua | ||
flash_ui.lua | ||
font_settings.lua | ||
font-test-sample-default.html | ||
mass_storage.lua | ||
menu_activate.lua | ||
menu_keyboard_layout.lua | ||
reader_menu_order.lua | ||
refresh_menu_table.lua | ||
screen_android.lua | ||
screen_color_menu_table.lua | ||
screen_disable_double_tap_table.lua | ||
screen_dpi_menu_table.lua | ||
screen_eink_opt_menu_table.lua | ||
screen_toggle_gsensor.lua | ||
screensaver_menu.lua |