mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
1210de217e
commit
6dbfd44b6e
7 changed files with 233 additions and 6 deletions
|
@ -25,6 +25,12 @@
|
|||
#include "gcc_extensions.h"
|
||||
|
||||
void root_menu(void) NORETURN_ATTR;
|
||||
struct menu_table {
|
||||
char *string;
|
||||
const struct menu_item_ex *item;
|
||||
};
|
||||
|
||||
struct menu_table *root_menu_get_options(int *nb_options);
|
||||
|
||||
enum {
|
||||
/* from old menu api, but still required*/
|
||||
|
@ -60,7 +66,7 @@ enum {
|
|||
GO_TO_SYSTEM_SCREEN,
|
||||
GO_TO_SHORTCUTMENU
|
||||
};
|
||||
|
||||
#ifndef PLUGIN
|
||||
extern struct menu_item_ex root_menu_;
|
||||
|
||||
extern void previous_music_is_wps(void);
|
||||
|
@ -69,7 +75,7 @@ void root_menu_load_from_cfg(void* setting, char *value);
|
|||
char* root_menu_write_to_cfg(void* setting, char*buf, int buf_len);
|
||||
void root_menu_set_default(void* setting, void* defaultval);
|
||||
bool root_menu_is_changed(void* setting, void* defaultval);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __ROOT_MENU_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue