mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
led menu enlarge
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@726 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -2634,6 +2634,15 @@ const CMenuOptionChooser::keyval LCDMENU_STATUSLINE_OPTIONS[LCDMENU_STATUSLINE_O
|
||||
//,{ 2, LOCALE_LCDMENU_STATUSLINE_BOTH }
|
||||
};
|
||||
|
||||
#define LEDMENU_OPTION_COUNT 4
|
||||
const CMenuOptionChooser::keyval LEDMENU_OPTIONS[LEDMENU_OPTION_COUNT] =
|
||||
{
|
||||
{ 0, LOCALE_LEDCONTROLER_OFF },
|
||||
{ 1, LOCALE_LEDCONTROLER_ON_ALL },
|
||||
{ 2, LOCALE_LEDCONTROLER_ON_LED1 },
|
||||
{ 3, LOCALE_LEDCONTROLER_ON_LED2 }
|
||||
};
|
||||
|
||||
void CNeutrinoApp::InitLcdSettings(CMenuWidget &lcdSettings)
|
||||
{
|
||||
addMenueIntroItems(lcdSettings);
|
||||
@@ -2660,14 +2669,14 @@ void CNeutrinoApp::InitLcdSettings(CMenuWidget &lcdSettings)
|
||||
lcdSettings.addItem(GenericMenuSeparatorLine);
|
||||
lcdSettings.addItem(new CMenuForwarder(LOCALE_LCDMENU_LCDCONTROLER, true, NULL, lcdsliders, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
||||
|
||||
CMenuWidget * ledMenu = new CMenuWidget(LOCALE_LEDCONTROLER_MODE_TV, NEUTRINO_ICON_SETTINGS);
|
||||
CMenuWidget * ledMenu = new CMenuWidget(LOCALE_LEDCONTROLER_MENU, NEUTRINO_ICON_SETTINGS);
|
||||
addMenueIntroItems(*ledMenu);
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_TV, &g_settings.led_tv_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, new CLedControlNotifier()));
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_STANDBY, &g_settings.led_standby_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_TV, &g_settings.led_tv_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true, new CLedControlNotifier()));
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_STANDBY, &g_settings.led_standby_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true));
|
||||
if(cs_get_revision() > 7)
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_DEEPSTANDBY, &g_settings.led_deep_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
ledMenu->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_DEEPSTANDBY, &g_settings.led_deep_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true));
|
||||
|
||||
lcdSettings.addItem(new CMenuForwarder(LOCALE_LEDCONTROLER_MODE_TV, true, NULL, ledMenu, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
||||
lcdSettings.addItem(new CMenuForwarder(LOCALE_LEDCONTROLER_MENU, true, NULL, ledMenu, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
||||
lcdSettings.addItem(GenericMenuSeparatorLine);
|
||||
|
||||
CMenuOptionChooser* oj = new CMenuOptionChooser(LOCALE_LCDMENU_STATUSLINE, &g_settings.lcd_setting[SNeutrinoSettings::LCD_SHOW_VOLUME], LCDMENU_STATUSLINE_OPTIONS, LCDMENU_STATUSLINE_OPTION_COUNT, true);
|
||||
|
Reference in New Issue
Block a user