mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
scan-setup: show tuner_desc for all models
Origin commit data
------------------
Branch: ni/coolstream
Commit: ee6ae0b12f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-30 (Wed, 30 Dec 2020)
Origin message was:
------------------
- scan-setup: show tuner_desc for all models
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -71,9 +71,7 @@ extern char zapit_long[21];
|
||||
//static int all_usals = 1;
|
||||
//sat_iterator_t sit;
|
||||
|
||||
#if BOXMODEL_VUPLUS_ALL
|
||||
static const char * tuner_desc[24] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X" };
|
||||
#endif
|
||||
|
||||
#define SCANTS_BOUQUET_OPTION_COUNT 3
|
||||
const CMenuOptionChooser::keyval SCANTS_BOUQUET_OPTIONS[SCANTS_BOUQUET_OPTION_COUNT] =
|
||||
@@ -813,22 +811,13 @@ int CScanSetup::showScanMenuFrontendSetup()
|
||||
snprintf(tmp, sizeof(tmp), "config_frontend%d", i);
|
||||
|
||||
char name[255];
|
||||
#if BOXMODEL_VUPLUS_ALL
|
||||
snprintf(name, sizeof(name), "%s %d: %s [%s] %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), i+1,
|
||||
fe->isHybrid() ? g_Locale->getText(LOCALE_SCANTS_ACTHYBRID)
|
||||
: fe->hasSat() ? g_Locale->getText(LOCALE_SCANTS_ACTSATELLITE)
|
||||
: fe->hasTerr() ? g_Locale->getText(LOCALE_SCANTS_ACTTERRESTRIAL)
|
||||
: g_Locale->getText(LOCALE_SCANTS_ACTCABLE),
|
||||
snprintf(name, sizeof(name), "%s %02d: [%s] %s %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), i+1,
|
||||
tuner_desc[i],
|
||||
fe->getName());
|
||||
#else
|
||||
snprintf(name, sizeof(name), "%s %d: %s %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), i+1,
|
||||
fe->isHybrid() ? g_Locale->getText(LOCALE_SCANTS_ACTHYBRID)
|
||||
: fe->hasSat() ? g_Locale->getText(LOCALE_SCANTS_ACTSATELLITE)
|
||||
: fe->hasTerr() ? g_Locale->getText(LOCALE_SCANTS_ACTTERRESTRIAL)
|
||||
: g_Locale->getText(LOCALE_SCANTS_ACTCABLE),
|
||||
fe->getName());
|
||||
#endif
|
||||
|
||||
neutrino_msg_t key = CRCInput::RC_nokey;
|
||||
if (i == 0)
|
||||
@@ -959,11 +948,7 @@ int CScanSetup::showFrontendSetup(int number)
|
||||
dmode = fe_config.diseqcType;
|
||||
|
||||
char name[255];
|
||||
#if BOXMODEL_VUPLUS_ALL
|
||||
snprintf(name, sizeof(name), "%s %d: [%s] %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), number+1, tuner_desc[number], fe->getName());
|
||||
#else
|
||||
snprintf(name, sizeof(name), "%s %d: %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), number+1, fe->getName());
|
||||
#endif
|
||||
snprintf(name, sizeof(name), "%s %02d: [%s] %s", g_Locale->getText(LOCALE_SATSETUP_FE_TUNER), number+1, tuner_desc[number], fe->getName());
|
||||
|
||||
CMenuWidget * setupMenu = new CMenuWidget(name, NEUTRINO_ICON_SETTINGS, width);
|
||||
setupMenu->setSelected(feselected);
|
||||
@@ -1197,11 +1182,7 @@ int CScanSetup::showScanMenuLnbSetup()
|
||||
CFrontend * fe = CFEManager::getInstance()->getFE(fenumber);
|
||||
|
||||
char name[255];
|
||||
#if BOXMODEL_VUPLUS_ALL
|
||||
snprintf(name, sizeof(name), "%s %d: [%s] %s", g_Locale->getText(LOCALE_SATSETUP_SATELLITE), fenumber+1, tuner_desc[fenumber], fe->getName());
|
||||
#else
|
||||
snprintf(name, sizeof(name), "%s %d: %s", g_Locale->getText(LOCALE_SATSETUP_SATELLITE), fenumber+1, fe->getName());
|
||||
#endif
|
||||
snprintf(name, sizeof(name), "%s %02d: [%s] %s", g_Locale->getText(LOCALE_SATSETUP_SATELLITE), fenumber+1, tuner_desc[fenumber], fe->getName());
|
||||
|
||||
CMenuWidget * sat_setup = new CMenuWidget(name, NEUTRINO_ICON_SETTINGS, width);
|
||||
sat_setup->addIntroItems();
|
||||
@@ -1366,11 +1347,7 @@ int CScanSetup::showScanMenuSatFind()
|
||||
|
||||
r_system = ALL_SAT;
|
||||
|
||||
#if BOXMODEL_VUPLUS_ALL
|
||||
snprintf(name, sizeof(name), "%s %d: [%s] %s", g_Locale->getText(LOCALE_MOTORCONTROL_HEAD), fenumber+1, tuner_desc[fenumber], fe->getName());
|
||||
#else
|
||||
snprintf(name, sizeof(name), "%s %d: %s", g_Locale->getText(LOCALE_MOTORCONTROL_HEAD), fenumber+1, fe->getName());
|
||||
#endif
|
||||
snprintf(name, sizeof(name), "%s %02d: [%s] %s", g_Locale->getText(LOCALE_MOTORCONTROL_HEAD), fenumber+1, tuner_desc[fenumber], fe->getName());
|
||||
|
||||
CMenuWidget* sat_findMenu = new CMenuWidget(name /*LOCALE_MOTORCONTROL_HEAD*/, NEUTRINO_ICON_SETTINGS, width);
|
||||
sat_findMenu->setSelected(selected);
|
||||
|
Reference in New Issue
Block a user