mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
drop easymenu
Origin commit data
------------------
Branch: ni/coolstream
Commit: 816de89898
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-12 (Tue, 12 Sep 2017)
Origin message was:
------------------
- drop easymenu
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -104,44 +104,41 @@ int CCAMMenuHandler::doMainMenu()
|
||||
char name1[255]={0};
|
||||
char str1[255]={0};
|
||||
|
||||
int CiSlots = ca ? ca->GetNumberCISlots() : 0;
|
||||
|
||||
CMenuWidget* cammenu = new CMenuWidget(LOCALE_CI_SETTINGS, NEUTRINO_ICON_SETTINGS);
|
||||
cammenu->addIntroItems();
|
||||
|
||||
int CiSlots = ca ? ca->GetNumberCISlots() : 0;
|
||||
if(CiSlots) {
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_RESET_STANDBY, &g_settings.ci_standby_reset, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionNumberChooser(LOCALE_CI_CLOCK, &g_settings.ci_clock, true, 6, 12, this));
|
||||
}
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_IGNORE_MSG, &g_settings.ci_ignore_messages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_SAVE_PINCODE, &g_settings.ci_save_pincode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this));
|
||||
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
int fecount = CFEManager::getInstance()->getFrontendCount();
|
||||
char fename[fecount+1][255];
|
||||
#endif
|
||||
if (!g_settings.easymenu) {
|
||||
if(CiSlots) {
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_RESET_STANDBY, &g_settings.ci_standby_reset, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionNumberChooser(LOCALE_CI_CLOCK, &g_settings.ci_clock, true, 6, 12, this));
|
||||
}
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_IGNORE_MSG, &g_settings.ci_ignore_messages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_SAVE_PINCODE, &g_settings.ci_save_pincode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this));
|
||||
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
CMenuOptionChooser::keyval_ext feselect[fecount+1];
|
||||
feselect[0].key = -1;
|
||||
feselect[0].value = NONEXISTANT_LOCALE;
|
||||
feselect[0].valname = g_Locale->getText(LOCALE_OPTIONS_OFF);
|
||||
int select_count = 1;
|
||||
CMenuOptionChooser::keyval_ext feselect[fecount+1];
|
||||
feselect[0].key = -1;
|
||||
feselect[0].value = NONEXISTANT_LOCALE;
|
||||
feselect[0].valname = g_Locale->getText(LOCALE_OPTIONS_OFF);
|
||||
int select_count = 1;
|
||||
|
||||
for (int i = 0; i < fecount; i++) {
|
||||
CFrontend * fe = CFEManager::getInstance()->getFE(i);
|
||||
int num = fe->getNumber();
|
||||
snprintf(fename[select_count], sizeof(fename[select_count]), "%d: %s", num+1, fe->getName());
|
||||
feselect[select_count].key = num;
|
||||
feselect[select_count].value = NONEXISTANT_LOCALE;
|
||||
feselect[select_count].valname = fename[select_count];
|
||||
select_count++;
|
||||
}
|
||||
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_CI_TUNER, &g_settings.ci_tuner, feselect, select_count, true, this);
|
||||
cammenu->addItem(mc);
|
||||
#endif
|
||||
|
||||
cammenu->addItem( GenericMenuSeparatorLine );
|
||||
for (int i = 0; i < fecount; i++) {
|
||||
CFrontend * fe = CFEManager::getInstance()->getFE(i);
|
||||
int num = fe->getNumber();
|
||||
snprintf(fename[select_count], sizeof(fename[select_count]), "%d: %s", num+1, fe->getName());
|
||||
feselect[select_count].key = num;
|
||||
feselect[select_count].value = NONEXISTANT_LOCALE;
|
||||
feselect[select_count].valname = fename[select_count];
|
||||
select_count++;
|
||||
}
|
||||
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_CI_TUNER, &g_settings.ci_tuner, feselect, select_count, true, this);
|
||||
cammenu->addItem(mc);
|
||||
#endif
|
||||
|
||||
cammenu->addItem( GenericMenuSeparatorLine );
|
||||
|
||||
CMenuWidget * tempMenu;
|
||||
int i = 0;
|
||||
|
Reference in New Issue
Block a user