main menu: Add the ability to hide and reorder the main menu items.

To change the shown menu items add the line "root_menu_order:<items>" into your config.cfg
<items> can be any of:
bookmarks, files, database, wps, settings, recording, radio, playlists, plugins, system_menu, shortcuts

Manual entry by Alexander Levin

Change-Id: Ie7f4bfb0f795184de094d05fc341a6cedd1c0cde
Reviewed-on: http://gerrit.rockbox.org/104
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
This commit is contained in:
Jonathan Gordon 2012-02-09 21:21:40 +11:00
parent 8125877f60
commit 13412f67ca
5 changed files with 142 additions and 13 deletions

View file

@ -61,8 +61,15 @@ enum {
GO_TO_SHORTCUTMENU
};
extern const struct menu_item_ex root_menu_;
extern struct menu_item_ex root_menu_;
extern void previous_music_is_wps(void);
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 /* __ROOT_MENU_H__ */