mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
infoviewer: displaying dd availability is now optional (martii patch adapted by bazi98 )
This commit is contained in:
@@ -736,6 +736,7 @@ miscsettings.infobar_disp_log Logo
|
|||||||
miscsettings.infobar_logo_hdd_dir Logo Verz.
|
miscsettings.infobar_logo_hdd_dir Logo Verz.
|
||||||
miscsettings.infobar_sat_display Kabel-/Satellitenanbieter
|
miscsettings.infobar_sat_display Kabel-/Satellitenanbieter
|
||||||
miscsettings.infobar_show Info bei EPG Änderungen
|
miscsettings.infobar_show Info bei EPG Änderungen
|
||||||
|
miscsettings.infobar_show_dd_available DD-Verfügbarkeit anzeigen
|
||||||
miscsettings.infobar_show_res Auflösung anzeigen
|
miscsettings.infobar_show_res Auflösung anzeigen
|
||||||
miscsettings.infobar_show_res_simple einfach
|
miscsettings.infobar_show_res_simple einfach
|
||||||
miscsettings.infobar_show_sysfs_hdd Füllstandanzeige (sysFS & hdd)
|
miscsettings.infobar_show_sysfs_hdd Füllstandanzeige (sysFS & hdd)
|
||||||
|
@@ -736,6 +736,7 @@ miscsettings.infobar_disp_log Logo
|
|||||||
miscsettings.infobar_logo_hdd_dir Logo dir
|
miscsettings.infobar_logo_hdd_dir Logo dir
|
||||||
miscsettings.infobar_sat_display Satellite display on infobar
|
miscsettings.infobar_sat_display Satellite display on infobar
|
||||||
miscsettings.infobar_show show Info on EPG change
|
miscsettings.infobar_show show Info on EPG change
|
||||||
|
miscsettings.infobar_show_dd_available show DD availability
|
||||||
miscsettings.infobar_show_res show resolution on infobar
|
miscsettings.infobar_show_res show resolution on infobar
|
||||||
miscsettings.infobar_show_res_simple simple
|
miscsettings.infobar_show_res_simple simple
|
||||||
miscsettings.infobar_show_sysfs_hdd Fill level (sysFS & hdd)
|
miscsettings.infobar_show_sysfs_hdd Fill level (sysFS & hdd)
|
||||||
|
@@ -420,8 +420,8 @@ void CInfoViewerBB::showIcon_DD()
|
|||||||
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
||||||
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
||||||
dd_icon = NEUTRINO_ICON_DD;
|
dd_icon = NEUTRINO_ICON_DD;
|
||||||
else
|
else
|
||||||
dd_icon = (g_RemoteControl->has_ac3) ? NEUTRINO_ICON_DD_AVAIL : NEUTRINO_ICON_DD_GREY;
|
dd_icon = (g_settings.infobar_show_dd_available && g_RemoteControl->has_ac3) ? NEUTRINO_ICON_DD_AVAIL : NEUTRINO_ICON_DD_GREY;
|
||||||
|
|
||||||
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
|
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
|
||||||
}
|
}
|
||||||
|
@@ -616,6 +616,7 @@ void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar)
|
|||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY, &g_settings.infobar_sat_display, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY, &g_settings.infobar_sat_display, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD, &g_settings.infobar_show_sysfs_hdd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD, &g_settings.infobar_show_sysfs_hdd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES, &g_settings.infobar_show_res, INFOBAR_SHOW_RES_MODE_OPTIONS, INFOBAR_SHOW_RES_MODE_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES, &g_settings.infobar_show_res, INFOBAR_SHOW_RES_MODE_OPTIONS, INFOBAR_SHOW_RES_MODE_OPTION_COUNT, true));
|
||||||
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_DD_AVAILABLE, &g_settings.infobar_show_dd_available, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_TUNER, &g_settings.infobar_show_tuner, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_TUNER, &g_settings.infobar_show_tuner, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW, &g_settings.infobar_show, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW, &g_settings.infobar_show, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_COLORED_EVENTS, &g_settings.colored_events_infobar, OPTIONS_COLORED_EVENTS_OPTIONS, OPTIONS_COLORED_EVENTS_OPTION_COUNT, true));
|
menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_COLORED_EVENTS, &g_settings.colored_events_infobar, OPTIONS_COLORED_EVENTS_OPTIONS, OPTIONS_COLORED_EVENTS_OPTION_COUNT, true));
|
||||||
|
@@ -408,6 +408,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
g_settings.infobar_show_sysfs_hdd = configfile.getBool("infobar_show_sysfs_hdd" , true );
|
g_settings.infobar_show_sysfs_hdd = configfile.getBool("infobar_show_sysfs_hdd" , true );
|
||||||
g_settings.show_mute_icon = configfile.getInt32("show_mute_icon" ,0);
|
g_settings.show_mute_icon = configfile.getInt32("show_mute_icon" ,0);
|
||||||
g_settings.infobar_show_res = configfile.getInt32("infobar_show_res", 0 );
|
g_settings.infobar_show_res = configfile.getInt32("infobar_show_res", 0 );
|
||||||
|
g_settings.infobar_show_dd_available = configfile.getInt32("infobar_show_dd_available", 1 );
|
||||||
g_settings.infobar_show_tuner = configfile.getInt32("infobar_show_tuner", 1 );
|
g_settings.infobar_show_tuner = configfile.getInt32("infobar_show_tuner", 1 );
|
||||||
g_settings.radiotext_enable = configfile.getBool("radiotext_enable" , false);
|
g_settings.radiotext_enable = configfile.getBool("radiotext_enable" , false);
|
||||||
//audio
|
//audio
|
||||||
@@ -851,6 +852,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
configfile.setInt32("infobar_show_sysfs_hdd" , g_settings.infobar_show_sysfs_hdd );
|
configfile.setInt32("infobar_show_sysfs_hdd" , g_settings.infobar_show_sysfs_hdd );
|
||||||
configfile.setInt32("show_mute_icon" , g_settings.show_mute_icon);
|
configfile.setInt32("show_mute_icon" , g_settings.show_mute_icon);
|
||||||
configfile.setInt32("infobar_show_res" , g_settings.infobar_show_res );
|
configfile.setInt32("infobar_show_res" , g_settings.infobar_show_res );
|
||||||
|
configfile.setInt32("infobar_show_dd_available" , g_settings.infobar_show_dd_available );
|
||||||
configfile.setInt32("infobar_show_tuner" , g_settings.infobar_show_tuner );
|
configfile.setInt32("infobar_show_tuner" , g_settings.infobar_show_tuner );
|
||||||
configfile.setBool("radiotext_enable" , g_settings.radiotext_enable);
|
configfile.setBool("radiotext_enable" , g_settings.radiotext_enable);
|
||||||
//audio
|
//audio
|
||||||
|
@@ -763,6 +763,7 @@ typedef enum
|
|||||||
LOCALE_MISCSETTINGS_INFOBAR_LOGO_HDD_DIR,
|
LOCALE_MISCSETTINGS_INFOBAR_LOGO_HDD_DIR,
|
||||||
LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY,
|
LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY,
|
||||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW,
|
LOCALE_MISCSETTINGS_INFOBAR_SHOW,
|
||||||
|
LOCALE_MISCSETTINGS_INFOBAR_SHOW_DD_AVAILABLE,
|
||||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES,
|
LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES,
|
||||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES_SIMPLE,
|
LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES_SIMPLE,
|
||||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD,
|
LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD,
|
||||||
|
@@ -763,6 +763,7 @@ const char * locale_real_names[] =
|
|||||||
"miscsettings.infobar_logo_hdd_dir",
|
"miscsettings.infobar_logo_hdd_dir",
|
||||||
"miscsettings.infobar_sat_display",
|
"miscsettings.infobar_sat_display",
|
||||||
"miscsettings.infobar_show",
|
"miscsettings.infobar_show",
|
||||||
|
"miscsettings.infobar_show_dd_available",
|
||||||
"miscsettings.infobar_show_res",
|
"miscsettings.infobar_show_res",
|
||||||
"miscsettings.infobar_show_res_simple",
|
"miscsettings.infobar_show_res_simple",
|
||||||
"miscsettings.infobar_show_sysfs_hdd",
|
"miscsettings.infobar_show_sysfs_hdd",
|
||||||
|
@@ -76,6 +76,7 @@ struct SNeutrinoSettings
|
|||||||
int infobar_show_sysfs_hdd;
|
int infobar_show_sysfs_hdd;
|
||||||
int infobar_show_res;
|
int infobar_show_res;
|
||||||
int infobar_show_tuner;
|
int infobar_show_tuner;
|
||||||
|
int infobar_show_dd_available;
|
||||||
//audio
|
//audio
|
||||||
int audio_AnalogMode;
|
int audio_AnalogMode;
|
||||||
int audio_DolbyDigital;
|
int audio_DolbyDigital;
|
||||||
|
Reference in New Issue
Block a user