diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-03 11:11:07 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-03 11:11:07 +0000 |
commit | edcacaa787d770cd5b944c18082b5b80128f7e4e (patch) | |
tree | c9c15530510a02327bcd20808ac470304781879e /apps/menus | |
parent | 5395957549c9b04fefa87a0aedb6bc15bf360739 (diff) |
FS#9515 - customisable quickscreen. Allows you to choose which setting you want displayed on the quickscreen.
Allows almost every available setting. (change the options in settings > general settings > quickscreen items)
Not every setting will work perfectly, some might need aditional handling if the change doesnt take effect straight away (let us know which are problematic so they can be fixed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18984 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/settings_menu.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 60fc9c0cc0..1610cfbef1 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -49,6 +49,7 @@ #if CONFIG_RTC #include "screens.h" #endif +#include "quickscreen.h" /***********************************/ /* TAGCACHE MENU */ @@ -486,7 +487,25 @@ MAKE_MENU(voice_settings_menu, ID2P(LANG_VOICE), 0, Icon_Voice, /* VOICE MENU */ /***********************************/ +#ifdef HAVE_QUICKSCREEN /***********************************/ +/* CUSTOMISABLE QUICKSCREEN CODE */ + +MENUITEM_FUNCTION(qs_left_item, MENU_FUNC_USEPARAM, ID2P(LANG_LEFT), + (menu_function)quickscreen_set_option, (intptr_t*)QUICKSCREEN_LEFT, NULL, + Icon_Menu_setting); +MENUITEM_FUNCTION(qs_right_item, MENU_FUNC_USEPARAM, ID2P(LANG_RIGHT), + (menu_function)quickscreen_set_option, (intptr_t*)QUICKSCREEN_RIGHT, NULL, + Icon_Menu_setting); +MENUITEM_FUNCTION(qs_bottom_item, MENU_FUNC_USEPARAM, ID2P(LANG_BOTTOM), + (menu_function)quickscreen_set_option, (intptr_t*)QUICKSCREEN_BOTTOM, NULL, + Icon_Menu_setting); + +MAKE_MENU(quickscreen_settings, ID2P(LANG_QS_ITEMS), NULL, Icon_Config, + &qs_left_item, &qs_right_item, &qs_bottom_item); +/* CUSTOMISABLE QUICKSCREEN CODE */ +/***********************************/ +#endif /***********************************/ /* SETTINGS MENU */ @@ -500,6 +519,9 @@ MENUITEM_FUNCTION(browse_langs, 0, ID2P(LANG_LANGUAGE), language_browse, MAKE_MENU(settings_menu_item, ID2P(LANG_GENERAL_SETTINGS), 0, Icon_General_settings_menu, &playlist_settings, &file_menu, +#ifdef HAVE_QUICKSCREEN + &quickscreen_settings, +#endif #ifdef HAVE_TAGCACHE &tagcache_menu, #endif |