- neutrino_menue: add own personalize item to standby item

This commit is contained in:
svenhoefer
2014-06-28 14:26:18 +02:00
parent 5670e87d77
commit aad8c86cb8
3 changed files with 4 additions and 1 deletions

View File

@@ -282,7 +282,8 @@ void CNeutrinoApp::InitMenuMain()
// standby // standby
mf = new CMenuForwarder(LOCALE_MAINMENU_STANDBY, true, NULL, this, "standby", CRCInput::RC_red , NEUTRINO_ICON_BUTTON_RED); mf = new CMenuForwarder(LOCALE_MAINMENU_STANDBY, true, NULL, this, "standby", CRCInput::RC_red , NEUTRINO_ICON_BUTTON_RED);
mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_STANDBY); mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_STANDBY);
personalize.addItem(MENU_SHUTDOWN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_SLEEPTIMER]); personalize.addItem(MENU_SHUTDOWN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_STANDBY]);
//sleeptimer //sleeptimer
mf = new CMenuForwarder(LOCALE_MAINMENU_SLEEPTIMER, true, NULL, new CSleepTimerWidget, NULL, CRCInput::RC_green , NEUTRINO_ICON_BUTTON_GREEN); mf = new CMenuForwarder(LOCALE_MAINMENU_SLEEPTIMER, true, NULL, new CSleepTimerWidget, NULL, CRCInput::RC_green , NEUTRINO_ICON_BUTTON_GREEN);
mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_SLEEPTIMER); mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_SLEEPTIMER);

View File

@@ -53,6 +53,7 @@ const struct personalize_settings_t personalize_settings[SNeutrinoSettings::P_SE
{"personalize_settings" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED}, {"personalize_settings" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED},
{"personalize_service" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED}, {"personalize_service" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED},
{"personalize_sleeptimer" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_sleeptimer" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_standby" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_reboot" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_reboot" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_shutdown" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_shutdown" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_infomenu_main" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_infomenu_main" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},

View File

@@ -190,6 +190,7 @@ struct SNeutrinoSettings
P_MAIN_SETTINGS, P_MAIN_SETTINGS,
P_MAIN_SERVICE, P_MAIN_SERVICE,
P_MAIN_SLEEPTIMER, P_MAIN_SLEEPTIMER,
P_MAIN_STANDBY,
P_MAIN_REBOOT, P_MAIN_REBOOT,
P_MAIN_SHUTDOWN, P_MAIN_SHUTDOWN,
P_MAIN_INFOMENU, P_MAIN_INFOMENU,