From edcacaa787d770cd5b944c18082b5b80128f7e4e Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 3 Nov 2008 11:11:07 +0000 Subject: 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 --- apps/menus/settings_menu.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'apps/menus/settings_menu.c') diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 60fc9c0..1610cfb 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 -- cgit v1.1