mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
needs build- and functional fixes Conflicts: configure.ac data/icons/shutdown.jpg data/icons/start.jpg data/locale/deutsch.locale data/locale/english.locale lib/libmd5sum/md5.c src/driver/scanepg.cpp src/driver/streamts.cpp src/driver/vfd.cpp src/driver/vfd.h src/driver/volume.cpp src/eitd/dmx.cpp src/eitd/xmlutil.cpp src/gui/Makefile.am src/gui/audiomute.cpp src/gui/channellist.cpp src/gui/dboxinfo.cpp src/gui/epgview.cpp src/gui/eventlist.cpp src/gui/filebrowser.cpp src/gui/hdd_menu.cpp src/gui/infoviewer.cpp src/gui/infoviewer_bb.cpp src/gui/infoviewer_bb.h src/gui/keybind_setup.cpp src/gui/luainstance.cpp src/gui/luainstance.h src/gui/miscsettings_menu.cpp src/gui/moviebrowser.cpp src/gui/movieplayer.cpp src/gui/osd_progressbar_setup.cpp src/gui/osd_progressbar_setup.h src/gui/osd_setup.cpp src/gui/osdlang_setup.cpp src/gui/personalize.cpp src/gui/plugins.cpp src/gui/plugins.h src/gui/scan.cpp src/gui/scan_setup.cpp src/gui/update_settings.cpp src/gui/user_menue.cpp src/gui/user_menue_setup.cpp src/gui/videosettings.cpp src/gui/widget/buttons.cpp src/gui/widget/menue.cpp src/gui/widget/menue.h src/gui/widget/progresswindow.cpp src/neutrino.cpp src/neutrino_menue.cpp src/nhttpd/yhttpd.cpp src/system/helpers.cpp src/system/locals.h src/system/locals_intern.h src/system/setting_helpers.cpp src/zapit/lib/zapitclient.cpp src/zapit/src/fastscan.cpp src/zapit/src/frontend.cpp src/zapit/src/getservices.cpp src/zapit/src/scan.cpp src/zapit/src/scannit.cpp src/zapit/src/scanpmt.cpp src/zapit/src/transponder.cpp src/zapit/src/zapit.cpp
157 lines
4.3 KiB
C++
157 lines
4.3 KiB
C++
/*
|
|
scan_setup menue - Neutrino-GUI
|
|
|
|
Copyright (C) 2001 Steffen Hehn 'McClean'
|
|
and some other guys
|
|
Homepage: http://dbox.cyberphoria.org/
|
|
|
|
Reworked as similar to $Id: scan_setup.h,v 1.6 2010/12/05 22:32:12 tuxbox-cvs Exp $
|
|
Copyright (C) 2011 T. Graf 'dbt'
|
|
Homepage: http://www.dbox2-tuning.net/
|
|
|
|
License: GPL
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
#ifndef __SCAN_SETUP__
|
|
#define __SCAN_SETUP__
|
|
|
|
#include <gui/widget/menue.h>
|
|
#include <gui/widget/icons.h>
|
|
#include <gui/widget/stringinput_ext.h>
|
|
|
|
#include <system/setting_helpers.h>
|
|
#include <system/settings.h>
|
|
#include <zapit/satconfig.h>
|
|
|
|
#include <string>
|
|
|
|
#define scansettings CNeutrinoApp::getInstance()->getScanSettings()
|
|
|
|
//#define ENABLE_FASTSCAN //don't define this to remove fast scan menu
|
|
|
|
class CScanSetup : public CMenuTarget, public CChangeObserver
|
|
{
|
|
protected:
|
|
int width;
|
|
|
|
private:
|
|
CMenuWidget *satOnOff;
|
|
|
|
/* global items to be enabled/disabled in notify */
|
|
CMenuForwarder *fautoScanAll;
|
|
CMenuForwarder *frontendSetup;
|
|
CMenuForwarder *fsatSetup;
|
|
CMenuForwarder *fsatSelect;
|
|
CMenuOptionChooser * dtype;
|
|
CMenuOptionChooser * dorder;
|
|
CMenuForwarder *uniSetup;
|
|
CMenuOptionNumberChooser * ojDiseqcRepeats;
|
|
CIntInput * nid;
|
|
CMenuOptionChooser * lcnhd;
|
|
/* items active for master/independent fe mode */
|
|
CGenericMenuActivate msettings;
|
|
|
|
CMenuOptionChooser * linkfe;
|
|
std::string modestr[4];
|
|
|
|
/* variables for selected frontend */
|
|
/* diseqc mode */
|
|
int dmode;
|
|
/* frontend setup menu current fe number */
|
|
int fenumber;
|
|
/* frontend mode */
|
|
int femode;
|
|
/* frontend link to number */
|
|
int femaster;
|
|
|
|
std::vector<std::string> satoptions;
|
|
std::vector<CMenuForwarder*> satmf;
|
|
|
|
/* flag to allow any operations which can damage recordings */
|
|
bool allow_start;
|
|
/* flag to re-init frontends */
|
|
bool fe_restart;
|
|
/* flag to skip manual params update while in menu */
|
|
bool in_menu;
|
|
|
|
bool is_wizard;
|
|
|
|
int r_system;
|
|
|
|
neutrino_locale_t satprov_locale;
|
|
|
|
uint getSatMenuListWidth();
|
|
|
|
int showScanMenu();
|
|
|
|
int showFrontendSetup(int number);
|
|
int showFrontendSelect(int number);
|
|
int showScanMenuLnbSetup();
|
|
int showUnicableSetup();
|
|
int showScanMenuSatFind();
|
|
void fillSatSelect(CMenuOptionStringChooser *select);
|
|
void fillCableSelect(CMenuOptionStringChooser *select);
|
|
void fillTerrSelect(CMenuOptionStringChooser *select);
|
|
|
|
neutrino_locale_t getModeLocale(int mode);
|
|
int showScanMenuFrontendSetup();
|
|
void addScanMenuTempSat(CMenuWidget *temp_sat, sat_config_t &satconfig);
|
|
void addScanMenuManualScan(CMenuWidget *manual_Scan, bool stest = false);
|
|
void addScanMenuAutoScanAll(CMenuWidget *auto_ScanAll);
|
|
void addScanMenuAutoScan(CMenuWidget *auto_Scan);
|
|
|
|
int addScanOptionsItems(CMenuWidget *options_menu, const int &shortcut = 1);
|
|
int addListFlagsItems(CMenuWidget *listflags_menu, const int &shortcut = 1, bool manual = false);
|
|
#ifdef ENABLE_FASTSCAN
|
|
int showFastscanDiseqcSetup();
|
|
#endif
|
|
void setDiseqcOptions(int number);
|
|
|
|
void saveScanSetup();
|
|
|
|
CScanSetup(bool wizard_mode = SCAN_SETUP_MODE_WIZARD_NO);
|
|
public:
|
|
enum SCAN_SETUP_MODE
|
|
{
|
|
SCAN_SETUP_MODE_WIZARD_NO = 0,
|
|
SCAN_SETUP_MODE_WIZARD = 1
|
|
};
|
|
|
|
~CScanSetup();
|
|
|
|
static CScanSetup* getInstance();
|
|
|
|
bool getWizardMode() {return is_wizard;};
|
|
void setWizardMode(bool mode);
|
|
void updateManualSettings();
|
|
|
|
int exec(CMenuTarget* parent, const std::string & actionKey = "");
|
|
bool changeNotify(const neutrino_locale_t OptionName, void * /*data*/);
|
|
#ifdef ENABLE_FASTSCAN
|
|
void addScanMenuFastScan(CMenuWidget *fast_ScanMenu);
|
|
#endif
|
|
void addScanMenuCable(CMenuWidget *menu);
|
|
};
|
|
|
|
class CTPSelectHandler : public CMenuTarget //CScanSetup
|
|
{
|
|
public:
|
|
int exec(CMenuTarget* parent, const std::string &actionkey);
|
|
};
|
|
#endif
|