usermenu: add youtube player

Origin commit data
------------------
Commit: 47a2cf0e54
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-01-02 (Thu, 02 Jan 2014)

Origin message was:
------------------
- usermenu: add youtube player
This commit is contained in:
vanhofen
2014-01-02 21:10:34 +01:00
parent 381792da05
commit b188f045df
3 changed files with 13 additions and 1 deletions

View File

@@ -372,6 +372,16 @@ bool CUserMenu::showUserMenu(int button)
menu->addItem(menu_item, false); menu->addItem(menu_item, false);
} }
break; break;
case SNeutrinoSettings::ITEM_YOUTUBE:
{
menu_items++;
menu_prev = SNeutrinoSettings::ITEM_YOUTUBE;
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_MOVIEPLAYER_YTPLAYBACK, true, NULL, &CMoviePlayerGui::getInstance(), "ytplayback", key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_YTPLAY, LOCALE_MENU_HINT_YTPLAY);
menu->addItem(menu_item, 0);
}
break;
#if 0 // FIXME not supported yet #if 0 // FIXME not supported yet
case SNeutrinoSettings::ITEM_MOVIEPLAYER_TS: case SNeutrinoSettings::ITEM_MOVIEPLAYER_TS:

View File

@@ -88,7 +88,8 @@ const CMenuOptionChooser::keyval USERMENU_ITEM_OPTIONS[USERMENU_ITEM_OPTION_COUN
{ SNeutrinoSettings::ITEM_CLOCK, LOCALE_CLOCK_SWITCH_ON }, { SNeutrinoSettings::ITEM_CLOCK, LOCALE_CLOCK_SWITCH_ON },
{ SNeutrinoSettings::ITEM_GAMES, LOCALE_MAINMENU_GAMES }, { SNeutrinoSettings::ITEM_GAMES, LOCALE_MAINMENU_GAMES },
{ SNeutrinoSettings::ITEM_SCRIPTS, LOCALE_MAINMENU_SCRIPTS }, { SNeutrinoSettings::ITEM_SCRIPTS, LOCALE_MAINMENU_SCRIPTS },
{ SNeutrinoSettings::ITEM_RECORD, LOCALE_TIMERLIST_TYPE_RECORD } { SNeutrinoSettings::ITEM_RECORD, LOCALE_TIMERLIST_TYPE_RECORD },
{ SNeutrinoSettings::ITEM_YOUTUBE, LOCALE_MOVIEPLAYER_YTPLAYBACK }
}; };
int CUserMenuSetup::exec(CMenuTarget* parent, const std::string &) int CUserMenuSetup::exec(CMenuTarget* parent, const std::string &)

View File

@@ -654,6 +654,7 @@ struct SNeutrinoSettings
ITEM_CLOCK = 19, ITEM_CLOCK = 19,
ITEM_GAMES = 20, ITEM_GAMES = 20,
ITEM_SCRIPTS = 21, ITEM_SCRIPTS = 21,
ITEM_YOUTUBE = 22,
#if 0 #if 0
ITEM_MOVIEPLAYER_TS, ITEM_MOVIEPLAYER_TS,
#endif #endif