2017-03-05 12:46:27 +01:00
|
|
|
local order = {
|
|
|
|
|
["KOMenu:menu_buttons"] = {
|
|
|
|
|
"navi",
|
|
|
|
|
"typeset",
|
|
|
|
|
"setting",
|
|
|
|
|
"tools",
|
|
|
|
|
"search",
|
|
|
|
|
"filemanager",
|
|
|
|
|
"main",
|
|
|
|
|
},
|
|
|
|
|
navi = {
|
|
|
|
|
"table_of_contents",
|
|
|
|
|
"bookmarks",
|
2017-09-23 18:25:22 +02:00
|
|
|
"bookmark_browsing_mode",
|
2017-04-06 14:56:40 +02:00
|
|
|
"----------------------------",
|
2017-03-05 12:46:27 +01:00
|
|
|
"go_to",
|
|
|
|
|
"skim_to",
|
2017-04-06 14:56:40 +02:00
|
|
|
"----------------------------",
|
2018-01-17 20:28:33 +01:00
|
|
|
"go_to_previous_location",
|
2017-03-05 12:46:27 +01:00
|
|
|
"follow_links",
|
|
|
|
|
},
|
|
|
|
|
typeset = {
|
|
|
|
|
"set_render_style",
|
2018-05-12 23:24:43 +02:00
|
|
|
"style_tweaks",
|
2017-04-06 14:56:40 +02:00
|
|
|
"----------------------------",
|
2017-03-05 12:46:27 +01:00
|
|
|
"change_font",
|
|
|
|
|
"hyphenation",
|
2018-05-14 20:35:49 +02:00
|
|
|
"floating_punctuation",
|
2017-04-06 14:56:40 +02:00
|
|
|
"----------------------------",
|
2018-05-14 20:35:49 +02:00
|
|
|
"switch_zoom_mode",
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"page_overlap",
|
2017-04-06 14:56:40 +02:00
|
|
|
"speed_reading_module_perception_expander",
|
2018-05-14 20:35:49 +02:00
|
|
|
"----------------------------",
|
|
|
|
|
"highlight_options",
|
2017-03-05 12:46:27 +01:00
|
|
|
},
|
|
|
|
|
setting = {
|
|
|
|
|
"read_from_right_to_left",
|
|
|
|
|
-- common settings
|
|
|
|
|
-- those that don't exist will simply be skipped during menu gen
|
|
|
|
|
"frontlight", -- if Device:hasFrontlight()
|
|
|
|
|
"night_mode",
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"network",
|
|
|
|
|
"screen",
|
|
|
|
|
"screensaver",
|
2018-01-30 12:12:52 +01:00
|
|
|
"document",
|
2018-04-09 09:22:16 +02:00
|
|
|
"navigation",
|
2017-03-05 12:46:27 +01:00
|
|
|
"----------------------------",
|
|
|
|
|
"language",
|
2017-08-15 19:54:02 +02:00
|
|
|
"time",
|
2017-03-05 12:46:27 +01:00
|
|
|
"----------------------------",
|
|
|
|
|
"djvu_render_mode",
|
|
|
|
|
"status_bar",
|
|
|
|
|
},
|
2018-05-13 21:27:52 +02:00
|
|
|
network = {
|
|
|
|
|
"network_wifi",
|
|
|
|
|
"network_proxy",
|
|
|
|
|
"network_restore",
|
|
|
|
|
"network_info",
|
|
|
|
|
"network_before_wifi_action",
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"ssh",
|
|
|
|
|
},
|
2017-03-05 12:46:27 +01:00
|
|
|
tools = {
|
2017-04-06 02:12:35 -07:00
|
|
|
"read_timer",
|
2017-03-05 12:46:27 +01:00
|
|
|
"calibre_wireless_connection",
|
|
|
|
|
"evernote",
|
|
|
|
|
"statistics",
|
|
|
|
|
"progress_sync",
|
|
|
|
|
"zsync",
|
2017-05-08 22:15:42 +02:00
|
|
|
"news_downloader",
|
2018-02-23 00:02:32 +01:00
|
|
|
"send2ebook",
|
2017-06-24 00:55:31 -07:00
|
|
|
"----------------------------",
|
|
|
|
|
"more_plugins",
|
|
|
|
|
},
|
|
|
|
|
more_plugins = {
|
|
|
|
|
"auto_frontlight",
|
|
|
|
|
"frontlight_gesture_controller",
|
|
|
|
|
"battery_statistics",
|
|
|
|
|
"synchronize_time",
|
|
|
|
|
"keep_alive",
|
2017-04-01 23:50:24 -07:00
|
|
|
"terminal",
|
2017-06-24 00:55:31 -07:00
|
|
|
"storage_stat",
|
2017-03-05 12:46:27 +01:00
|
|
|
},
|
|
|
|
|
search = {
|
|
|
|
|
"dictionary_lookup",
|
2017-10-07 22:13:46 +02:00
|
|
|
"dictionary_lookup_history",
|
2017-08-22 17:24:31 +02:00
|
|
|
"dictionary_settings",
|
2017-07-02 23:29:11 -07:00
|
|
|
"----------------------------",
|
2017-03-05 12:46:27 +01:00
|
|
|
"wikipedia_lookup",
|
2017-12-17 13:02:08 +01:00
|
|
|
"wikipedia_history",
|
2017-08-22 17:24:31 +02:00
|
|
|
"wikipedia_settings",
|
2017-04-06 14:56:40 +02:00
|
|
|
"----------------------------",
|
|
|
|
|
"goodreads",
|
|
|
|
|
"----------------------------",
|
2017-03-05 12:46:27 +01:00
|
|
|
"fulltext_search",
|
|
|
|
|
},
|
|
|
|
|
filemanager = {},
|
|
|
|
|
main = {
|
|
|
|
|
"history",
|
|
|
|
|
"book_status",
|
2017-07-01 12:11:44 +02:00
|
|
|
"book_info",
|
2017-03-05 12:46:27 +01:00
|
|
|
"----------------------------",
|
2017-09-03 15:40:50 +02:00
|
|
|
"system_statistics",
|
|
|
|
|
"----------------------------",
|
2017-05-14 18:43:08 +02:00
|
|
|
"ota_update", --[[ if Device:isKindle() or Device:isKobo() or
|
|
|
|
|
Device:isPocketBook() or Device:isAndroid() ]]--
|
2017-03-05 12:46:27 +01:00
|
|
|
"version",
|
|
|
|
|
"help",
|
2017-05-14 18:43:08 +02:00
|
|
|
"----------------------------",
|
2017-09-03 15:40:50 +02:00
|
|
|
"exit_menu",
|
2017-03-05 12:46:27 +01:00
|
|
|
},
|
2017-04-03 23:52:47 +02:00
|
|
|
help = {
|
2017-04-15 14:45:56 +02:00
|
|
|
"quickstart_guide",
|
|
|
|
|
"----------------------------",
|
2017-04-03 23:52:47 +02:00
|
|
|
"report_bug",
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"about",
|
|
|
|
|
},
|
2017-09-03 15:40:50 +02:00
|
|
|
exit_menu = {
|
|
|
|
|
"restart_koreader",
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"sleep", -- if Device:isKindle() or Device:isKobo()
|
|
|
|
|
"poweroff", -- if Device:isKobo()
|
|
|
|
|
"reboot", -- if Device:isKobo()
|
|
|
|
|
"----------------------------",
|
|
|
|
|
"exit",
|
|
|
|
|
}
|
2017-03-05 12:46:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return order
|