mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
merge neutrino-mp progressbar code, (C) martii
Origin commit data
------------------
Branch: ni/coolstream
Commit: 416646bbff
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-07-17 (Thu, 17 Jul 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -398,11 +398,11 @@ const CMenuOptionChooser::keyval VOLUMEBAR_DISP_POS_OPTIONS[VOLUMEBAR_DISP_POS_
|
||||
#define MENU_DISP_POS_OPTIONS_COUNT 5
|
||||
const CMenuOptionChooser::keyval MENU_DISP_POS_OPTIONS[MENU_DISP_POS_OPTIONS_COUNT]=
|
||||
{
|
||||
{ 0 , LOCALE_SETTINGS_POS_DEFAULT_CENTER },
|
||||
{ 1 , LOCALE_SETTINGS_POS_TOP_LEFT },
|
||||
{ 2 , LOCALE_SETTINGS_POS_TOP_RIGHT },
|
||||
{ 3 , LOCALE_SETTINGS_POS_BOTTOM_LEFT },
|
||||
{ 4 , LOCALE_SETTINGS_POS_BOTTOM_RIGHT }
|
||||
{ 0 , LOCALE_SETTINGS_POS_DEFAULT_CENTER },
|
||||
{ 1 , LOCALE_SETTINGS_POS_TOP_LEFT },
|
||||
{ 2 , LOCALE_SETTINGS_POS_TOP_RIGHT },
|
||||
{ 3 , LOCALE_SETTINGS_POS_BOTTOM_LEFT },
|
||||
{ 4 , LOCALE_SETTINGS_POS_BOTTOM_RIGHT }
|
||||
};
|
||||
|
||||
#define INFOBAR_SHOW_RES_MODE_OPTION_COUNT 3
|
||||
@@ -452,6 +452,23 @@ const CMenuOptionChooser::keyval OPTIONS_COLORED_EVENTS_OPTIONS[OPTIONS_COLORED_
|
||||
{ 2, LOCALE_MISCSETTINGS_COLORED_EVENTS_2 }, //next
|
||||
};
|
||||
|
||||
/* these are more descriptive... */
|
||||
#define _LOCALE_PROGRESSBAR_COLOR_MATRIX LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN_0
|
||||
#define _LOCALE_PROGRESSBAR_COLOR_VERTICAL LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN_1
|
||||
#define _LOCALE_PROGRESSBAR_COLOR_HORIZONTAL LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN_2
|
||||
#define _LOCALE_PROGRESSBAR_COLOR_FULL LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN_3
|
||||
#define _LOCALE_PROGRESSBAR_COLOR_MONO LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN_4
|
||||
|
||||
#define PROGRESSBAR_COLOR_OPTION_COUNT 6
|
||||
const CMenuOptionChooser::keyval PROGRESSBAR_COLOR_OPTIONS[PROGRESSBAR_COLOR_OPTION_COUNT] =
|
||||
{
|
||||
{ CProgressBar::PB_OFF, LOCALE_OPTIONS_OFF },
|
||||
{ CProgressBar::PB_MONO, _LOCALE_PROGRESSBAR_COLOR_MONO },
|
||||
{ CProgressBar::PB_MATRIX, _LOCALE_PROGRESSBAR_COLOR_MATRIX },
|
||||
{ CProgressBar::PB_LINES_V, _LOCALE_PROGRESSBAR_COLOR_VERTICAL },
|
||||
{ CProgressBar::PB_LINES_H, _LOCALE_PROGRESSBAR_COLOR_HORIZONTAL },
|
||||
{ CProgressBar::PB_COLOR, _LOCALE_PROGRESSBAR_COLOR_FULL },
|
||||
};
|
||||
|
||||
//show osd setup
|
||||
int COsdSetup::showOsdSetup()
|
||||
@@ -822,13 +839,13 @@ void COsdSetup::showOsdTimeoutSetup(CMenuWidget* menu_timeout)
|
||||
#define LOCALE_MISCSETTINGS_INFOBAR_DISP_OPTIONS_COUNT 7
|
||||
const CMenuOptionChooser::keyval LOCALE_MISCSETTINGS_INFOBAR_DISP_OPTIONS[LOCALE_MISCSETTINGS_INFOBAR_DISP_OPTIONS_COUNT]=
|
||||
{
|
||||
{ 0 , LOCALE_MISCSETTINGS_INFOBAR_DISP_0 },
|
||||
{ 1 , LOCALE_MISCSETTINGS_INFOBAR_DISP_1 },
|
||||
{ 2 , LOCALE_MISCSETTINGS_INFOBAR_DISP_2 },
|
||||
{ 3 , LOCALE_MISCSETTINGS_INFOBAR_DISP_3 },
|
||||
{ 4 , LOCALE_MISCSETTINGS_INFOBAR_DISP_4 },
|
||||
{ 5 , LOCALE_MISCSETTINGS_INFOBAR_DISP_5 },
|
||||
{ 6 , LOCALE_MISCSETTINGS_INFOBAR_DISP_6 }
|
||||
{ 0 , LOCALE_MISCSETTINGS_INFOBAR_DISP_0 },
|
||||
{ 1 , LOCALE_MISCSETTINGS_INFOBAR_DISP_1 },
|
||||
{ 2 , LOCALE_MISCSETTINGS_INFOBAR_DISP_2 },
|
||||
{ 3 , LOCALE_MISCSETTINGS_INFOBAR_DISP_3 },
|
||||
{ 4 , LOCALE_MISCSETTINGS_INFOBAR_DISP_4 },
|
||||
{ 5 , LOCALE_MISCSETTINGS_INFOBAR_DISP_5 },
|
||||
{ 6 , LOCALE_MISCSETTINGS_INFOBAR_DISP_6 }
|
||||
};
|
||||
|
||||
//menus
|
||||
@@ -941,7 +958,7 @@ void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist)
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
// extended channel list
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_EXTENDED, &g_settings.channellist_extended, CHANNELLIST_EXTENDED_OPTIONS, CHANNELLIST_EXTENDED_OPTIONS_COUNT - (g_settings.progressbar_color ? 0 : 1), true);
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_EXTENDED, &g_settings.channellist_progressbar_design, PROGRESSBAR_COLOR_OPTIONS, PROGRESSBAR_COLOR_OPTION_COUNT, true, this);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EXTENDED);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
|
Reference in New Issue
Block a user