mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
neutrino multimedia menu: multimedia menu moved into it's own modules
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1063 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: e32355f559
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-01-26 (Wed, 26 Jan 2011)
Origin message was:
------------------
*neutrino multimedia menu: multimedia menu moved into it's own modules
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1063 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -53,6 +53,7 @@ libneutrino_gui_a_SOURCES = \
|
|||||||
imageinfo.cpp \
|
imageinfo.cpp \
|
||||||
infoviewer.cpp \
|
infoviewer.cpp \
|
||||||
keybind_setup.cpp \
|
keybind_setup.cpp \
|
||||||
|
mediaplayer.cpp \
|
||||||
moviebrowser.cpp \
|
moviebrowser.cpp \
|
||||||
movieinfo.cpp \
|
movieinfo.cpp \
|
||||||
movieplayer.cpp \
|
movieplayer.cpp \
|
||||||
|
@@ -2037,7 +2037,6 @@ void CNeutrinoApp::setupRecordingDevice(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CMenuWidget * gmoviePlayer;
|
|
||||||
#if 0
|
#if 0
|
||||||
CPipSetup * g_Pip0;
|
CPipSetup * g_Pip0;
|
||||||
#endif
|
#endif
|
||||||
@@ -2201,10 +2200,8 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
CMenuWidget audioplPicSettings (LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL, NEUTRINO_ICON_SETTINGS);
|
CMenuWidget audioplPicSettings (LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL, NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget _scanSettings (LOCALE_SERVICEMENU_SCANTS , NEUTRINO_ICON_SETTINGS);
|
CMenuWidget _scanSettings (LOCALE_SERVICEMENU_SCANTS , NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget service (LOCALE_SERVICEMENU_HEAD , NEUTRINO_ICON_SETTINGS);
|
CMenuWidget service (LOCALE_SERVICEMENU_HEAD , NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget moviePlayer (LOCALE_MOVIEPLAYER_HEAD , NEUTRINO_ICON_STREAMING);
|
|
||||||
gmoviePlayer = &moviePlayer;
|
|
||||||
|
|
||||||
InitMainMenu(mainMenu, mainSettings, miscSettings, service, audioplPicSettings, streamingSettings, moviePlayer);
|
InitMainMenu(mainMenu, mainSettings, miscSettings, service, audioplPicSettings, streamingSettings);
|
||||||
|
|
||||||
InitServiceSettings(service, _scanSettings);
|
InitServiceSettings(service, _scanSettings);
|
||||||
InitAudioplPicSettings(audioplPicSettings);
|
InitAudioplPicSettings(audioplPicSettings);
|
||||||
|
@@ -176,7 +176,7 @@ private:
|
|||||||
void InitAudioplPicSettings(CMenuWidget &);
|
void InitAudioplPicSettings(CMenuWidget &);
|
||||||
void InitMiscSettings(CMenuWidget &);
|
void InitMiscSettings(CMenuWidget &);
|
||||||
void InitScanSettings(CMenuWidget &);
|
void InitScanSettings(CMenuWidget &);
|
||||||
void InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings, CMenuWidget &moviePlayer);
|
void InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings);
|
||||||
|
|
||||||
void SetupFrameBuffer();
|
void SetupFrameBuffer();
|
||||||
void SelectAPID();
|
void SelectAPID();
|
||||||
|
@@ -88,6 +88,7 @@
|
|||||||
#include "gui/imageinfo.h"
|
#include "gui/imageinfo.h"
|
||||||
#include "gui/infoviewer.h"
|
#include "gui/infoviewer.h"
|
||||||
#include "gui/keybind_setup.h"
|
#include "gui/keybind_setup.h"
|
||||||
|
#include "gui/mediaplayer.h"
|
||||||
#include "gui/motorcontrol.h"
|
#include "gui/motorcontrol.h"
|
||||||
#include "gui/movieplayer.h"
|
#include "gui/movieplayer.h"
|
||||||
#include "gui/network_setup.h"
|
#include "gui/network_setup.h"
|
||||||
@@ -106,7 +107,6 @@
|
|||||||
#endif /*TEST_MENU*/
|
#endif /*TEST_MENU*/
|
||||||
#include "gui/timerlist.h"
|
#include "gui/timerlist.h"
|
||||||
#include "gui/update.h"
|
#include "gui/update.h"
|
||||||
#include "gui/upnpbrowser.h"
|
|
||||||
#include "gui/user_menue_setup.h"
|
#include "gui/user_menue_setup.h"
|
||||||
#include "gui/user_menue_setup.h"
|
#include "gui/user_menue_setup.h"
|
||||||
#include "gui/vfd_setup.h"
|
#include "gui/vfd_setup.h"
|
||||||
@@ -151,7 +151,6 @@
|
|||||||
|
|
||||||
extern CFrontend * frontend;
|
extern CFrontend * frontend;
|
||||||
extern CAudioPlayerGui * audioPlayer;
|
extern CAudioPlayerGui * audioPlayer;
|
||||||
extern CMoviePlayerGui* moviePlayerGui;
|
|
||||||
extern CPlugins * g_PluginList;
|
extern CPlugins * g_PluginList;
|
||||||
extern bool has_hdd;
|
extern bool has_hdd;
|
||||||
extern CZapitClient::SatelliteList satList;
|
extern CZapitClient::SatelliteList satList;
|
||||||
@@ -178,7 +177,7 @@ extern bool autoshift;
|
|||||||
* CNeutrinoApp - init main menu *
|
* CNeutrinoApp - init main menu *
|
||||||
**************************************************************************************/
|
**************************************************************************************/
|
||||||
void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &miscSettings,
|
void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &miscSettings,
|
||||||
CMenuWidget &service, CMenuWidget &audiopl_picSettings, CMenuWidget &/*streamingSettings*/, CMenuWidget &moviePlayer)
|
CMenuWidget &service, CMenuWidget &audiopl_picSettings, CMenuWidget &/*streamingSettings*/)
|
||||||
{
|
{
|
||||||
unsigned int system_rev = cs_get_revision();
|
unsigned int system_rev = cs_get_revision();
|
||||||
|
|
||||||
@@ -193,52 +192,10 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
if (g_PluginList->hasPlugin(CPlugins::P_TYPE_GAME))
|
if (g_PluginList->hasPlugin(CPlugins::P_TYPE_GAME))
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_GAMES, true, NULL, new CPluginList(LOCALE_MAINMENU_GAMES,CPlugins::P_TYPE_GAME), "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_GAMES, true, NULL, new CPluginList(LOCALE_MAINMENU_GAMES,CPlugins::P_TYPE_GAME), "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
||||||
|
|
||||||
audioPlayer = new CAudioPlayerGui();
|
//multimedia menu
|
||||||
moviePlayerGui = new CMoviePlayerGui();
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_MEDIA, true, NULL, new CMediaPlayerMenu(), NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE));
|
||||||
|
|
||||||
moviePlayer.addIntroItems();
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_HEAD, true, NULL, moviePlayerGui, "tsmoviebrowser", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_FILEPLAYBACK, true, NULL, moviePlayerGui, "fileplayback", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
CMenuWidget *media = new CMenuWidget(LOCALE_MAINMENU_MEDIA, NEUTRINO_ICON_MULTIMEDIA);
|
|
||||||
media->addIntroItems();
|
|
||||||
audioPlayer = new CAudioPlayerGui();
|
|
||||||
media->addItem(new CMenuForwarder(LOCALE_MAINMENU_AUDIOPLAYER, true, NULL, audioPlayer, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
|
||||||
audioPlayer = new CAudioPlayerGui(true);
|
|
||||||
media->addItem(new CMenuForwarder(LOCALE_INETRADIO_NAME, true, NULL, audioPlayer, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
|
||||||
media->addItem(new CMenuForwarder(LOCALE_MAINMENU_MOVIEPLAYER, true, NULL, &moviePlayer, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
|
||||||
media->addItem(new CMenuForwarder(LOCALE_MAINMENU_PICTUREVIEWER, true, NULL, new CPictureViewerGui(), NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE));
|
|
||||||
media->addItem(new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::convertDigitToKey(0)));
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_MEDIA, true, NULL, media, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE));
|
|
||||||
#else
|
|
||||||
mainMenu.addItem(GenericMenuSeparatorLine);
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_AUDIOPLAYER, true, NULL, audioPlayer, NULL, CRCInput::convertDigitToKey(shortcut++)));
|
|
||||||
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_MOVIEPLAYER, true, NULL, &moviePlayer, NULL, CRCInput::convertDigitToKey(shortcut++)));
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_PICTUREVIEWER, true, NULL, new CPictureViewerGui(), NULL, CRCInput::convertDigitToKey(shortcut++)));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
moviePlayer.addItem(GenericMenuSeparator);
|
|
||||||
moviePlayer.addItem(GenericMenuBack);
|
|
||||||
moviePlayer.addItem(GenericMenuSeparatorLine);
|
|
||||||
|
|
||||||
//moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_PESPLAYBACK, true, NULL, moviePlayerGui, "pesplayback"));
|
|
||||||
//moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_TSPLAYBACK_PC, true, NULL, moviePlayerGui, "tsplayback_pc"));
|
|
||||||
moviePlayer.addItem(new CLockedMenuForwarder(LOCALE_MOVIEBROWSER_HEAD, g_settings.parentallock_pincode, false, true, NULL, moviePlayerGui, "tsmoviebrowser"));
|
|
||||||
moviePlayer.addItem(new CLockedMenuForwarder(LOCALE_MOVIEPLAYER_TSPLAYBACK, g_settings.parentallock_pincode, false, true, NULL, moviePlayerGui, "tsplayback", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
|
||||||
|
|
||||||
moviePlayer.addItem(new CLockedMenuForwarder(LOCALE_MOVIEPLAYER_BOOKMARK, g_settings.parentallock_pincode, false, true, NULL, moviePlayerGui, "bookmarkplayback"));
|
|
||||||
moviePlayer.addItem(GenericMenuSeparator);
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_FILEPLAYBACK, true, NULL, moviePlayerGui, "fileplayback", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_DVDPLAYBACK, true, NULL, moviePlayerGui, "dvdplayback", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MOVIEPLAYER_VCDPLAYBACK, true, NULL, moviePlayerGui, "vcdplayback", CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE));
|
|
||||||
moviePlayer.addItem(GenericMenuSeparatorLine);
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, &streamingSettings, NULL, CRCInput::RC_help, NEUTRINO_ICON_BUTTON_HELP_SMALL));
|
|
||||||
moviePlayer.addItem(new CMenuForwarder(LOCALE_NFSMENU_HEAD, true, NULL, new CNFSSmallMenu(), NULL, CRCInput::RC_setup, NEUTRINO_ICON_BUTTON_DBOX_SMALL));
|
|
||||||
#endif
|
|
||||||
if (g_PluginList->hasPlugin(CPlugins::P_TYPE_SCRIPT))
|
if (g_PluginList->hasPlugin(CPlugins::P_TYPE_SCRIPT))
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SCRIPTS, true, NULL, new CPluginList(LOCALE_MAINMENU_SCRIPTS,CPlugins::P_TYPE_SCRIPT), "",
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SCRIPTS, true, NULL, new CPluginList(LOCALE_MAINMENU_SCRIPTS,CPlugins::P_TYPE_SCRIPT), "",
|
||||||
CRCInput::convertDigitToKey(shortcut++)));
|
CRCInput::convertDigitToKey(shortcut++)));
|
||||||
@@ -246,8 +203,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, &mainSettings, NULL,
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, &mainSettings, NULL,
|
||||||
CRCInput::convertDigitToKey(shortcut++)));
|
CRCInput::convertDigitToKey(shortcut++)));
|
||||||
mainMenu.addItem(new CLockedMenuForwarder(LOCALE_MAINMENU_SERVICE, g_settings.parentallock_pincode, false, true, NULL, &service, NULL,
|
mainMenu.addItem(new CLockedMenuForwarder(LOCALE_MAINMENU_SERVICE, g_settings.parentallock_pincode, false, true, NULL, &service, NULL, CRCInput::convertDigitToKey(shortcut++)));
|
||||||
CRCInput::convertDigitToKey(shortcut++)));
|
|
||||||
mainMenu.addItem(GenericMenuSeparatorLine);
|
mainMenu.addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SLEEPTIMER, true, NULL, new CSleepTimerWidget, "",
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SLEEPTIMER, true, NULL, new CSleepTimerWidget, "",
|
||||||
@@ -1541,7 +1497,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
menu_items++;
|
menu_items++;
|
||||||
menu_prev = SNeutrinoSettings::ITEM_MOVIEPLAYER_MB;
|
menu_prev = SNeutrinoSettings::ITEM_MOVIEPLAYER_MB;
|
||||||
keyhelper.get(&key,&icon,CRCInput::RC_green);
|
keyhelper.get(&key,&icon,CRCInput::RC_green);
|
||||||
menu_item = new CMenuForwarder(LOCALE_MOVIEBROWSER_HEAD, true, NULL, moviePlayerGui, "tsmoviebrowser", key, icon);
|
menu_item = new CMenuForwarder(LOCALE_MOVIEBROWSER_HEAD, true, NULL, new CMoviePlayerGui(), "tsmoviebrowser", key, icon);
|
||||||
menu->addItem(menu_item, false);
|
menu->addItem(menu_item, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user