summaryrefslogtreecommitdiff
path: root/apps/root_menu.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2014-02-13 22:01:13 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2014-02-13 22:11:23 +1100
commit6dbfd44b6e6a4e01066ff3a99748e586d7cd458a (patch)
tree0570c0dbe96277cb8e31a6797b3b8628aea1e5b0 /apps/root_menu.h
parent1210de217ebdbd35734f57d82a6e935ef60e6555 (diff)
downloadrockbox-6dbfd44b6e6a4e01066ff3a99748e586d7cd458a.tar.gz
rockbox-6dbfd44b6e6a4e01066ff3a99748e586d7cd458a.zip
main_menu_config: New plugin to configur the main menu order
Plugins/Applications/main_menu_config allows you to edit the main menu order without having to manually edit config.cfg. Press the standard OK button to access the internal menu which allows you to move items up/down in the order and toggle their visibility. Exit via this menu to have the order saved. (Suggestions welcome to improve this UI) Change-Id: I59715ef1ca265aeb6f9666ef27026bc1093f2579
Diffstat (limited to 'apps/root_menu.h')
-rw-r--r--apps/root_menu.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/root_menu.h b/apps/root_menu.h
index 32385d9530..6004a43f34 100644
--- a/apps/root_menu.h
+++ b/apps/root_menu.h
@@ -25,6 +25,12 @@
25#include "gcc_extensions.h" 25#include "gcc_extensions.h"
26 26
27void root_menu(void) NORETURN_ATTR; 27void root_menu(void) NORETURN_ATTR;
28struct menu_table {
29 char *string;
30 const struct menu_item_ex *item;
31};
32
33struct menu_table *root_menu_get_options(int *nb_options);
28 34
29enum { 35enum {
30 /* from old menu api, but still required*/ 36 /* from old menu api, but still required*/
@@ -60,7 +66,7 @@ enum {
60 GO_TO_SYSTEM_SCREEN, 66 GO_TO_SYSTEM_SCREEN,
61 GO_TO_SHORTCUTMENU 67 GO_TO_SHORTCUTMENU
62}; 68};
63 69#ifndef PLUGIN
64extern struct menu_item_ex root_menu_; 70extern struct menu_item_ex root_menu_;
65 71
66extern void previous_music_is_wps(void); 72extern void previous_music_is_wps(void);
@@ -69,7 +75,7 @@ void root_menu_load_from_cfg(void* setting, char *value);
69char* root_menu_write_to_cfg(void* setting, char*buf, int buf_len); 75char* root_menu_write_to_cfg(void* setting, char*buf, int buf_len);
70void root_menu_set_default(void* setting, void* defaultval); 76void root_menu_set_default(void* setting, void* defaultval);
71bool root_menu_is_changed(void* setting, void* defaultval); 77bool root_menu_is_changed(void* setting, void* defaultval);
72 78#endif
73 79
74 80
75#endif /* __ROOT_MENU_H__ */ 81#endif /* __ROOT_MENU_H__ */