mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
gui/scan_setup.cpp: add new options, WIP/testing
Origin commit data
------------------
Commit: b88b783a0b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-26 (Mon, 26 Mar 2012)
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
#include <global.h>
|
#include <global.h>
|
||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
#include <mymenu.h>
|
#include <mymenu.h>
|
||||||
|
#include <neutrino_menue.h>
|
||||||
|
|
||||||
|
|
||||||
#include "gui/scan.h"
|
#include "gui/scan.h"
|
||||||
@@ -331,8 +332,8 @@ int CScanSetup::showScanMenu()
|
|||||||
allow_start = !CRecordManager::getInstance()->RecordingStatus() || CRecordManager::getInstance()->TimeshiftOnly();
|
allow_start = !CRecordManager::getInstance()->RecordingStatus() || CRecordManager::getInstance()->TimeshiftOnly();
|
||||||
|
|
||||||
//main
|
//main
|
||||||
settings = new CMenuWidget(is_wizard ? LOCALE_SERVICEMENU_SCANTS : LOCALE_SERVICEMENU_HEAD, NEUTRINO_ICON_SETTINGS, width);
|
settings = new CMenuWidget(is_wizard ? LOCALE_SERVICEMENU_SCANTS : LOCALE_SERVICEMENU_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_SCAN_MAIN);
|
||||||
settings->setSelected(selected);
|
//settings->setSelected(selected);
|
||||||
settings->setWizardMode(is_wizard);
|
settings->setWizardMode(is_wizard);
|
||||||
|
|
||||||
//back
|
//back
|
||||||
@@ -356,8 +357,8 @@ int CScanSetup::showScanMenu()
|
|||||||
if (r_system == DVB_S) //sat
|
if (r_system == DVB_S) //sat
|
||||||
{
|
{
|
||||||
//settings->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_SCANTS_PREVERENCES_RECEIVING_SYSTEM));
|
//settings->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_SCANTS_PREVERENCES_RECEIVING_SYSTEM));
|
||||||
setupMenu = new CMenuWidget(LOCALE_SATSETUP_FE_SETUP, NEUTRINO_ICON_SETTINGS, width);
|
setupMenu = new CMenuWidget(LOCALE_SATSETUP_FE_SETUP, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_SCAN_FE_SETUP);
|
||||||
setupMenu->setSelected(fselected);
|
//setupMenu->setSelected(fselected);
|
||||||
addScanMenuFrontendSetup(setupMenu);
|
addScanMenuFrontendSetup(setupMenu);
|
||||||
CMenuForwarder * fsetupMenu = new CMenuForwarder(LOCALE_SATSETUP_FE_SETUP, true, NULL, setupMenu, "", CRCInput::convertDigitToKey(shortcut++));
|
CMenuForwarder * fsetupMenu = new CMenuForwarder(LOCALE_SATSETUP_FE_SETUP, true, NULL, setupMenu, "", CRCInput::convertDigitToKey(shortcut++));
|
||||||
settings->addItem(fsetupMenu);
|
settings->addItem(fsetupMenu);
|
||||||
@@ -390,25 +391,25 @@ int CScanSetup::showScanMenu()
|
|||||||
char autoscan[64];
|
char autoscan[64];
|
||||||
std::string s_capt_part = g_Locale->getText(satprov_locale);
|
std::string s_capt_part = g_Locale->getText(satprov_locale);
|
||||||
snprintf(autoscan, 64, g_Locale->getText(LOCALE_SATSETUP_AUTO_SCAN), s_capt_part.c_str());
|
snprintf(autoscan, 64, g_Locale->getText(LOCALE_SATSETUP_AUTO_SCAN), s_capt_part.c_str());
|
||||||
autoScan = new CMenuWidget(LOCALE_SERVICEMENU_SCANTS, NEUTRINO_ICON_SETTINGS, w/*width*/);
|
autoScan = new CMenuWidget(LOCALE_SERVICEMENU_SCANTS, NEUTRINO_ICON_SETTINGS, w/*width*/, MN_WIDGET_ID_SCAN_AUTO_SCAN);
|
||||||
addScanMenuAutoScan(autoScan);
|
addScanMenuAutoScan(autoScan);
|
||||||
settings->addItem(new CMenuForwarderNonLocalized(autoscan, true, NULL, autoScan, "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
settings->addItem(new CMenuForwarderNonLocalized(autoscan, true, NULL, autoScan, "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
||||||
|
|
||||||
//manual scan
|
//manual scan
|
||||||
manualScan = new CMenuWidget(LOCALE_SATSETUP_MANUAL_SCAN, NEUTRINO_ICON_SETTINGS, w/*width*/);
|
manualScan = new CMenuWidget(LOCALE_SATSETUP_MANUAL_SCAN, NEUTRINO_ICON_SETTINGS, w/*width*/, MN_WIDGET_ID_SCAN_MANUAL_SCAN);
|
||||||
addScanMenuManualScan(manualScan);
|
addScanMenuManualScan(manualScan);
|
||||||
settings->addItem(new CMenuForwarder(LOCALE_SATSETUP_MANUAL_SCAN, true, NULL, manualScan, "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
settings->addItem(new CMenuForwarder(LOCALE_SATSETUP_MANUAL_SCAN, true, NULL, manualScan, "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
||||||
|
|
||||||
if (r_system == DVB_S)
|
if (r_system == DVB_S)
|
||||||
{
|
{
|
||||||
//auto scan all
|
//auto scan all
|
||||||
autoScanAll = new CMenuWidget(LOCALE_SATSETUP_AUTO_SCAN_ALL, NEUTRINO_ICON_SETTINGS, w/*width*/);
|
autoScanAll = new CMenuWidget(LOCALE_SATSETUP_AUTO_SCAN_ALL, NEUTRINO_ICON_SETTINGS, w/*width*/, MN_WIDGET_ID_SCAN_AUTO_SCAN_ALL);
|
||||||
addScanMenuAutoScanAll(autoScanAll);
|
addScanMenuAutoScanAll(autoScanAll);
|
||||||
fautoScanAll = new CMenuForwarder(LOCALE_SATSETUP_AUTO_SCAN_ALL, true /*(dmode != NO_DISEQC)*/, NULL, autoScanAll, "", CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
fautoScanAll = new CMenuForwarder(LOCALE_SATSETUP_AUTO_SCAN_ALL, true /*(dmode != NO_DISEQC)*/, NULL, autoScanAll, "", CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
||||||
settings->addItem(fautoScanAll);
|
settings->addItem(fautoScanAll);
|
||||||
#ifdef ENABLE_FASTSCAN
|
#ifdef ENABLE_FASTSCAN
|
||||||
//fast scan
|
//fast scan
|
||||||
fastScanMenu = new CMenuWidget(LOCALE_SATSETUP_FASTSCAN_HEAD, NEUTRINO_ICON_SETTINGS);
|
fastScanMenu = new CMenuWidget(LOCALE_SATSETUP_FASTSCAN_HEAD, NEUTRINO_ICON_SETTINGS, MN_WIDGET_ID_SCAN_FAST_SCAN);
|
||||||
addScanMenuFastScan(fastScanMenu);
|
addScanMenuFastScan(fastScanMenu);
|
||||||
settings->addItem(new CMenuForwarder(LOCALE_SATSETUP_FASTSCAN_HEAD, true, NULL, fastScanMenu, "", CRCInput::convertDigitToKey(shortcut++)));
|
settings->addItem(new CMenuForwarder(LOCALE_SATSETUP_FASTSCAN_HEAD, true, NULL, fastScanMenu, "", CRCInput::convertDigitToKey(shortcut++)));
|
||||||
#endif /*ENABLE_FASTSCAN*/
|
#endif /*ENABLE_FASTSCAN*/
|
||||||
@@ -589,7 +590,7 @@ void CScanSetup::fillSatSelect()
|
|||||||
|
|
||||||
satSelect->removeOptions();
|
satSelect->removeOptions();
|
||||||
|
|
||||||
satOnOff->resetWidget();
|
satOnOff->resetWidget(/*true*/);
|
||||||
satOnOff->addIntroItems();
|
satOnOff->addIntroItems();
|
||||||
|
|
||||||
bool sfound = false;
|
bool sfound = false;
|
||||||
@@ -868,6 +869,14 @@ int CScanSetup::addListFlagsItems(CMenuWidget *listflags_menu, const int &shortc
|
|||||||
listflags_menu->addItem(ftaFlag);
|
listflags_menu->addItem(ftaFlag);
|
||||||
listflags_menu->addItem(scanPid);
|
listflags_menu->addItem(scanPid);
|
||||||
|
|
||||||
|
CMenuOptionChooser *resetNum = new CMenuOptionChooser(LOCALE_SATSETUP_RESET_NUMBERS, (int *)&scansettings.scan_reset_numbers, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::convertDigitToKey(shortCut++));
|
||||||
|
listflags_menu->addItem(resetNum);
|
||||||
|
#if 1 // testing
|
||||||
|
CMenuOptionChooser *useBat = new CMenuOptionChooser(LOCALE_SATSETUP_USE_BAT, (int *)&scansettings.scan_bat, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::convertDigitToKey(shortCut++));
|
||||||
|
listflags_menu->addItem(useBat);
|
||||||
|
CMenuOptionChooser *lcn = new CMenuOptionChooser(LOCALE_SATSETUP_LOGICAL_NUMBERS, (int *)&scansettings.scan_logical_numbers, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::convertDigitToKey(shortCut++));
|
||||||
|
listflags_menu->addItem(lcn);
|
||||||
|
#endif
|
||||||
return shortCut;
|
return shortCut;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user