*neutrino: add toggle item for tv and radio mode to main menue

Note: this menu item is also personalized with red button,
probaly we should use other button

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2016 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-12-28 00:19:52 +00:00
parent 9dc2ef58bc
commit cf9e6dee65
8 changed files with 15 additions and 5 deletions

View File

@@ -649,6 +649,7 @@ mainmenu.settings Einstellungen
mainmenu.shutdown Ausschalten
mainmenu.sleeptimer SleepTimer
mainmenu.tvmode TV-Modus
mainmenu.tvradio_switch TV-Radio Umschaltung
mainsettings.audio Audio
mainsettings.head Einstellungen
mainsettings.keybinding Tasten

View File

@@ -649,6 +649,7 @@ mainmenu.settings Settings
mainmenu.shutdown Shutdown
mainmenu.sleeptimer SleepTimer
mainmenu.tvmode TV-Mode
mainmenu.tvradio_switch TV-Radio Switch
mainsettings.audio Audio
mainsettings.head Settings
mainsettings.keybinding Key Setup

View File

@@ -3521,11 +3521,11 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
switchClockOnOff();
returnval = menu_return::RETURN_EXIT_ALL;
}
// else if (actionKey=="tv_radio_switch")//used in mainmenu
// {
// switchTvRadioMode();
// returnval = menu_return::RETURN_EXIT_ALL;
// }
else if (actionKey=="tv_radio_switch")//used in mainmenu
{
switchTvRadioMode();
returnval = menu_return::RETURN_EXIT_ALL;
}
else if (actionKey=="tv")//used in mainmenu
{
switchTvRadioMode(mode_tv);

View File

@@ -150,6 +150,10 @@ void CNeutrinoApp::InitMenuMain()
CMenuItem *radioswitch = new CMenuForwarder(LOCALE_MAINMENU_RADIOMODE, true, NULL, this, "radio", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
personalize.addItem(MENU_MAIN, radioswitch, &g_settings.personalize[SNeutrinoSettings::P_MAIN_RADIO_MODE]);
//tv <-> radio toggle
CMenuItem *tvradio_switch = new CMenuForwarder(LOCALE_MAINMENU_TVRADIO_SWITCH, true, NULL, this, "tv_radio_switch", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED);
personalize.addItem(MENU_MAIN, tvradio_switch, &g_settings.personalize[SNeutrinoSettings::P_MAIN_TV_RADIO_MODE]);
//timer
CMenuItem *timerlist = new CMenuForwarder(LOCALE_TIMERLIST_NAME, true, NULL, new CTimerList(), NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
personalize.addItem(MENU_MAIN, timerlist, &g_settings.personalize[SNeutrinoSettings::P_MAIN_TIMER]);

View File

@@ -676,6 +676,7 @@ typedef enum
LOCALE_MAINMENU_SHUTDOWN,
LOCALE_MAINMENU_SLEEPTIMER,
LOCALE_MAINMENU_TVMODE,
LOCALE_MAINMENU_TVRADIO_SWITCH,
LOCALE_MAINSETTINGS_AUDIO,
LOCALE_MAINSETTINGS_HEAD,
LOCALE_MAINSETTINGS_KEYBINDING,

View File

@@ -676,6 +676,7 @@ const char * locale_real_names[] =
"mainmenu.shutdown",
"mainmenu.sleeptimer",
"mainmenu.tvmode",
"mainmenu.tvradio_switch",
"mainsettings.audio",
"mainsettings.head",
"mainsettings.keybinding",

View File

@@ -39,6 +39,7 @@ const struct personalize_settings_t personalize_settings[SNeutrinoSettings::P_SE
//main menu
{"personalize_tv_mode" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_tv_radio_mode" , CPersonalizeGui::PERSONALIZE_MODE_NOTVISIBLE}, //toggle
{"personalize_radio_mode" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_timer" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},
{"personalize_media" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE},

View File

@@ -138,6 +138,7 @@ struct SNeutrinoSettings
//main menu
P_MAIN_TV_MODE,
P_MAIN_TV_RADIO_MODE, //togglemode
P_MAIN_RADIO_MODE,
P_MAIN_TIMER,
P_MAIN_MEDIA,