mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
usermenu class removed, now found in it's own module
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@897 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: b202813b62
Author: Thilo Graf <dbt@novatux.de>
Date: 2010-11-28 (Sun, 28 Nov 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -838,63 +838,7 @@ uint64_t getcurrenttime()
|
||||
gettimeofday( &tv, NULL );
|
||||
return (uint64_t) tv.tv_usec + (uint64_t)((uint64_t) tv.tv_sec * (uint64_t) 1000000);
|
||||
}
|
||||
// USERMENU
|
||||
#define USERMENU_ITEM_OPTION_COUNT SNeutrinoSettings::ITEM_MAX
|
||||
const CMenuOptionChooser::keyval USERMENU_ITEM_OPTIONS[USERMENU_ITEM_OPTION_COUNT] =
|
||||
{
|
||||
{ SNeutrinoSettings::ITEM_NONE, LOCALE_USERMENU_ITEM_NONE },
|
||||
{ SNeutrinoSettings::ITEM_BAR, LOCALE_USERMENU_ITEM_BAR },
|
||||
{ SNeutrinoSettings::ITEM_EPG_LIST, LOCALE_EPGMENU_EVENTLIST },
|
||||
{ SNeutrinoSettings::ITEM_EPG_SUPER, LOCALE_EPGMENU_EPGPLUS },
|
||||
{ SNeutrinoSettings::ITEM_EPG_INFO, LOCALE_EPGMENU_EVENTINFO },
|
||||
{ SNeutrinoSettings::ITEM_EPG_MISC, LOCALE_USERMENU_ITEM_EPG_MISC },
|
||||
{ SNeutrinoSettings::ITEM_AUDIO_SELECT, LOCALE_AUDIOSELECTMENUE_HEAD },
|
||||
{ SNeutrinoSettings::ITEM_SUBCHANNEL, LOCALE_INFOVIEWER_SUBSERVICE },
|
||||
{ SNeutrinoSettings::ITEM_RECORD, LOCALE_TIMERLIST_TYPE_RECORD },
|
||||
{ SNeutrinoSettings::ITEM_MOVIEPLAYER_MB, LOCALE_MOVIEBROWSER_HEAD },
|
||||
{ SNeutrinoSettings::ITEM_TIMERLIST, LOCALE_TIMERLIST_NAME },
|
||||
{ SNeutrinoSettings::ITEM_REMOTE, LOCALE_RCLOCK_MENUEADD },
|
||||
{ SNeutrinoSettings::ITEM_FAVORITS, LOCALE_FAVORITES_MENUEADD },
|
||||
{ SNeutrinoSettings::ITEM_TECHINFO, LOCALE_EPGMENU_STREAMINFO },
|
||||
{ SNeutrinoSettings::ITEM_PLUGIN, LOCALE_TIMERLIST_PLUGIN },
|
||||
{ SNeutrinoSettings::ITEM_VTXT, LOCALE_USERMENU_ITEM_VTXT },
|
||||
{ SNeutrinoSettings::ITEM_IMAGEINFO, LOCALE_SERVICEMENU_IMAGEINFO },
|
||||
{ SNeutrinoSettings::ITEM_BOXINFO, LOCALE_DBOXINFO },
|
||||
{ SNeutrinoSettings::ITEM_CAM, LOCALE_CAM_SETTINGS },
|
||||
|
||||
#if 0
|
||||
{ SNeutrinoSettings::ITEM_MOVIEPLAYER_TS, LOCALE_MAINMENU_MOVIEPLAYER } ,
|
||||
{ SNeutrinoSettings::ITEM_RESTART_CAMD, LOCALE_EXTRA_RESTARTCAMD }
|
||||
#endif
|
||||
};
|
||||
|
||||
int CUserMenuMenu::exec(CMenuTarget* parent, const std::string & /*actionKey*/)
|
||||
{
|
||||
if(parent != NULL)
|
||||
parent->hide();
|
||||
|
||||
CMenuWidget menu (local , NEUTRINO_ICON_KEYBINDING);
|
||||
menu.addItem(GenericMenuSeparator);
|
||||
menu.addItem(GenericMenuBack);
|
||||
menu.addItem(GenericMenuSeparatorLine);
|
||||
|
||||
CStringInputSMS name(LOCALE_USERMENU_NAME, &g_settings.usermenu_text[button], 11, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz<EFBFBD><EFBFBD>/- ");
|
||||
menu.addItem(new CMenuForwarder(LOCALE_USERMENU_NAME, true, g_settings.usermenu_text[button],&name));
|
||||
menu.addItem(GenericMenuSeparatorLine);
|
||||
|
||||
char text[10];
|
||||
for(int item = 0; item < SNeutrinoSettings::ITEM_MAX && item <13; item++) // Do not show more than 13 items
|
||||
{
|
||||
snprintf(text,10,"%d:",item);
|
||||
text[9]=0;// terminate for sure
|
||||
//menu.addItem( new CMenuOptionChooser(text, &g_settings.usermenu[button][item], USERMENU_ITEM_OPTIONS, USERMENU_ITEM_OPTION_COUNT,true ));
|
||||
menu.addItem( new CMenuOptionChooser(text, &g_settings.usermenu[button][item], USERMENU_ITEM_OPTIONS, USERMENU_ITEM_OPTION_COUNT,true, NULL, CRCInput::RC_nokey, "", true ));
|
||||
}
|
||||
|
||||
menu.exec(NULL,"");
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
||||
bool CTZChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
|
||||
{
|
||||
|
@@ -271,16 +271,16 @@ class CUCodeCheckExec : public CMenuTarget
|
||||
void testNetworkSettings(const char* ip, const char* netmask, const char* broadcast, const char* gateway, const char* nameserver, bool dhcp);
|
||||
void showCurrentNetworkSettings();
|
||||
|
||||
// USERMENU
|
||||
class CUserMenuMenu : public CMenuTarget
|
||||
{
|
||||
private:
|
||||
int button;
|
||||
neutrino_locale_t local;
|
||||
public:
|
||||
CUserMenuMenu(neutrino_locale_t _local, int _button){local = _local;button = _button;};
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
};
|
||||
// // USERMENU
|
||||
// class CUserMenuMenu : public CMenuTarget
|
||||
// {
|
||||
// private:
|
||||
// int button;
|
||||
// neutrino_locale_t local;
|
||||
// public:
|
||||
// CUserMenuMenu(neutrino_locale_t _local, int _button){local = _local;button = _button;};
|
||||
// int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
// };
|
||||
|
||||
class CTZChangeNotifier : public CChangeObserver
|
||||
{
|
||||
|
Reference in New Issue
Block a user