mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
- neutrino-menu: change position of avinput; add hint and icons
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -154,6 +154,8 @@
|
||||
|
||||
/* media */
|
||||
#define NEUTRINO_ICON_HINT_APLAY "hint_aplay"
|
||||
#define NEUTRINO_ICON_HINT_AVINPUTMODE "hint_avinputmode"
|
||||
#define NEUTRINO_ICON_HINT_AVINPUTMODE_PIP "hint_avinputmode_pip"
|
||||
#define NEUTRINO_ICON_HINT_INET_RADIO "hint_inetradio"
|
||||
#define NEUTRINO_ICON_HINT_MOVIE "hint_movie"
|
||||
#define NEUTRINO_ICON_HINT_PICVIEW "hint_picview"
|
||||
|
@@ -158,19 +158,6 @@ void CNeutrinoApp::InitMenuMain()
|
||||
radioswitch->setHint(NEUTRINO_ICON_HINT_RADIOMODE, LOCALE_MENU_HINT_RADIOMODE);
|
||||
personalize.addItem(MENU_MAIN, radioswitch, &g_settings.personalize[SNeutrinoSettings::P_MAIN_RADIO_MODE], false, CPersonalizeGui::PERSONALIZE_SHOW_AS_ITEM_OPTION, tvradio_switch, DCOND_MODE_RADIO | DCOND_MODE_TS); //observed
|
||||
|
||||
//avinput mode
|
||||
if ((g_info.hw_caps->has_SCART_input) || (g_info.hw_caps->has_HDMI_input)) {
|
||||
CMenuForwarder *avinputmode = new CMenuForwarder(LOCALE_MAINMENU_AVINPUTMODE, true, NULL, this, "avinput", g_settings.personalize[SNeutrinoSettings::P_MAIN_TV_RADIO_MODE] != 0 ? CRCInput::RC_green : CRCInput::RC_nokey);
|
||||
//avinputmode->setHint(NEUTRINO_ICON_HINT_AVINPUTMODE, LOCALE_MAINMENU_HINT_AVINPUTMODE);
|
||||
personalize.addItem(MENU_MAIN, avinputmode, &g_settings.personalize[SNeutrinoSettings::P_MAIN_AVINPUT]);
|
||||
|
||||
#ifdef ENABLE_PIP
|
||||
CMenuForwarder *avinputmode_pip = new CMenuForwarder(LOCALE_MAINMENU_AVINPUTMODE_PIP, true, NULL, this, "avinput_pip", false /*CRCInput::RC_nokey*/);
|
||||
//avinputmode_pip->setHint(NEUTRINO_ICON_HINT_AVINPUTMODE_PIP, LOCALE_MAINMENU_HINT_AVINPUTMODE_PIP);
|
||||
personalize.addItem(MENU_MAIN, avinputmode_pip, &g_settings.personalize[SNeutrinoSettings::P_MAIN_AVINPUT_PIP]);
|
||||
#endif
|
||||
}
|
||||
|
||||
//timer
|
||||
CMenuForwarder *timerlist = new CMenuForwarder(LOCALE_TIMERLIST_NAME, true, NULL, new CTimerList(), NULL, CRCInput::RC_yellow);
|
||||
timerlist->setHint(NEUTRINO_ICON_HINT_TIMERS, LOCALE_MENU_HINT_TIMERS);
|
||||
@@ -181,6 +168,20 @@ void CNeutrinoApp::InitMenuMain()
|
||||
media->setHint(NEUTRINO_ICON_HINT_MEDIA, LOCALE_MENU_HINT_MEDIA);
|
||||
personalize.addItem(MENU_MAIN, media, &g_settings.personalize[SNeutrinoSettings::P_MAIN_MEDIA]);
|
||||
|
||||
//avinput mode
|
||||
if ((g_info.hw_caps->has_SCART_input) || (g_info.hw_caps->has_HDMI_input)) {
|
||||
personalize.addSeparator(MENU_MAIN);
|
||||
CMenuForwarder *avinputmode = new CMenuForwarder(LOCALE_MAINMENU_AVINPUTMODE, true, NULL, this, "avinput");
|
||||
avinputmode->setHint(NEUTRINO_ICON_HINT_AVINPUTMODE, LOCALE_MENU_HINT_AVINPUTMODE);
|
||||
personalize.addItem(MENU_MAIN, avinputmode, &g_settings.personalize[SNeutrinoSettings::P_MAIN_AVINPUT]);
|
||||
|
||||
#ifdef ENABLE_PIP
|
||||
CMenuForwarder *avinputmode_pip = new CMenuForwarder(LOCALE_MAINMENU_AVINPUTMODE_PIP, true, NULL, this, "avinput_pip");
|
||||
avinputmode_pip->setHint(NEUTRINO_ICON_HINT_AVINPUTMODE_PIP, LOCALE_MENU_HINT_AVINPUTMODE_PIP);
|
||||
personalize.addItem(MENU_MAIN, avinputmode_pip, &g_settings.personalize[SNeutrinoSettings::P_MAIN_AVINPUT_PIP]);
|
||||
#endif
|
||||
}
|
||||
|
||||
CMenuForwarder * mf;
|
||||
//games
|
||||
bool show_games = g_Plugins->hasPlugin(CPlugins::P_TYPE_GAME);
|
||||
|
@@ -1277,6 +1277,8 @@ typedef enum
|
||||
LOCALE_MENU_HINT_AUTO_LANG,
|
||||
LOCALE_MENU_HINT_AUTO_SUBS,
|
||||
LOCALE_MENU_HINT_AUTO_UPDATE_CHECK,
|
||||
LOCALE_MENU_HINT_AVINPUTMODE,
|
||||
LOCALE_MENU_HINT_AVINPUTMODE_PIP,
|
||||
LOCALE_MENU_HINT_BACK,
|
||||
LOCALE_MENU_HINT_BACK_BRIEF,
|
||||
LOCALE_MENU_HINT_BACKLIGHT,
|
||||
|
@@ -1277,6 +1277,8 @@ const char * locale_real_names[] =
|
||||
"menu.hint_auto_lang",
|
||||
"menu.hint_auto_subs",
|
||||
"menu.hint_auto_update_check",
|
||||
"menu.hint_avinputmode",
|
||||
"menu.hint_avinputmode_pip",
|
||||
"menu.hint_back",
|
||||
"menu.hint_back_brief",
|
||||
"menu.hint_backlight",
|
||||
|
Reference in New Issue
Block a user