mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
fix manual terrestrial scan (untested)
This commit is contained in:
@@ -1097,8 +1097,10 @@ void CScanSetup::addScanMenuManualScan(CMenuWidget *manual_Scan)
|
|||||||
CMenuForwarder * mf;
|
CMenuForwarder * mf;
|
||||||
|
|
||||||
manual_Scan->addIntroItems();
|
manual_Scan->addIntroItems();
|
||||||
|
const char *act_test, *act_manual;
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
if (r_system == DVB_C) {
|
if (r_system == DVB_C) {
|
||||||
|
act_test = "ctest"; act_manual = "cmanual";
|
||||||
CMenuOptionStringChooser * cableSelect = new CMenuOptionStringChooser(LOCALE_CABLESETUP_PROVIDER, scansettings.cableName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
CMenuOptionStringChooser * cableSelect = new CMenuOptionStringChooser(LOCALE_CABLESETUP_PROVIDER, scansettings.cableName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
||||||
cableSelect->setHint("", LOCALE_MENU_HINT_SCAN_CABLE);
|
cableSelect->setHint("", LOCALE_MENU_HINT_SCAN_CABLE);
|
||||||
fillCableSelect(cableSelect);
|
fillCableSelect(cableSelect);
|
||||||
@@ -1108,12 +1110,14 @@ void CScanSetup::addScanMenuManualScan(CMenuWidget *manual_Scan)
|
|||||||
manual_Scan->addItem(mf);
|
manual_Scan->addItem(mf);
|
||||||
mf = new CMenuDForwarder(LOCALE_SCANTS_SELECT_TP, true, NULL, new CTPSelectHandler(), "cable", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
mf = new CMenuDForwarder(LOCALE_SCANTS_SELECT_TP, true, NULL, new CTPSelectHandler(), "cable", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
||||||
} else if (r_system == DVB_T) {
|
} else if (r_system == DVB_T) {
|
||||||
|
act_test = "ttest"; act_manual = "tmanual";
|
||||||
CMenuOptionStringChooser * terrSelect = new CMenuOptionStringChooser(LOCALE_TERRESTRIALSETUP_PROVIDER, scansettings.terrName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
CMenuOptionStringChooser * terrSelect = new CMenuOptionStringChooser(LOCALE_TERRESTRIALSETUP_PROVIDER, scansettings.terrName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
||||||
//terrSelect->setHint("", LOCALE_MENU_HINT_SCAN_CABLE);
|
//terrSelect->setHint("", LOCALE_MENU_HINT_SCAN_CABLE);
|
||||||
fillCableSelect(terrSelect);
|
fillCableSelect(terrSelect);
|
||||||
manual_Scan->addItem(terrSelect);
|
manual_Scan->addItem(terrSelect);
|
||||||
mf = new CMenuDForwarder(LOCALE_SCANTS_SELECT_TP, true, NULL, new CTPSelectHandler(), "terrestrial", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
mf = new CMenuDForwarder(LOCALE_SCANTS_SELECT_TP, true, NULL, new CTPSelectHandler(), "terrestrial", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
||||||
} else {
|
} else {
|
||||||
|
act_test = "stest"; act_manual = "smanual";
|
||||||
CMenuOptionStringChooser * satSelect = new CMenuOptionStringChooser(LOCALE_SATSETUP_SATELLITE, scansettings.satName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
CMenuOptionStringChooser * satSelect = new CMenuOptionStringChooser(LOCALE_SATSETUP_SATELLITE, scansettings.satName, true, this, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
||||||
satSelect->setHint("", LOCALE_MENU_HINT_SCAN_SATELLITE);
|
satSelect->setHint("", LOCALE_MENU_HINT_SCAN_SATELLITE);
|
||||||
/* add configured satellites to satSelect */
|
/* add configured satellites to satSelect */
|
||||||
@@ -1132,11 +1136,11 @@ void CScanSetup::addScanMenuManualScan(CMenuWidget *manual_Scan)
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
manual_Scan->addItem(GenericMenuSeparatorLine);
|
manual_Scan->addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
mf = new CMenuForwarder(LOCALE_SCANTS_TEST, allow_start, NULL, this, r_system == DVB_C ? "ctest" : "stest", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
mf = new CMenuForwarder(LOCALE_SCANTS_TEST, allow_start, NULL, this, act_test, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
||||||
mf->setHint("", LOCALE_MENU_HINT_SCAN_TEST);
|
mf->setHint("", LOCALE_MENU_HINT_SCAN_TEST);
|
||||||
manual_Scan->addItem(mf);
|
manual_Scan->addItem(mf);
|
||||||
|
|
||||||
mf = new CMenuForwarder(LOCALE_SCANTS_STARTNOW, allow_start, NULL, this, r_system == DVB_C ? "cmanual" : "smanual", CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
mf = new CMenuForwarder(LOCALE_SCANTS_STARTNOW, allow_start, NULL, this, act_manual, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
||||||
mf->setHint("", LOCALE_MENU_HINT_SCAN_START);
|
mf->setHint("", LOCALE_MENU_HINT_SCAN_START);
|
||||||
manual_Scan->addItem(mf);
|
manual_Scan->addItem(mf);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user