neutrino scansettings: moved scan setup into it's own modul

this was a port of original tuxbox neutrino as a
as similar for stand alone modules, hope it' works, but bugs are not excluded

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1331 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: d2d3923635
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-03-23 (Wed, 23 Mar 2011)

Origin message was:
------------------
*neutrino scansettings: moved scan setup into it's own modul

this was a port of original tuxbox neutrino as a
as similar for stand alone modules, hope it' works, but bugs are not excluded

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1331 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
2011-03-23 10:57:55 +00:00
parent 18b1eb24b4
commit 4cabcc1b73
15 changed files with 1137 additions and 658 deletions

110
src/gui/scan_setup.h Normal file
View File

@@ -0,0 +1,110 @@
/*
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 <system/setting_helpers.h>
#include <system/settings.h>
#include <string>
#define scansettings CNeutrinoApp::getInstance()->getScanSettings()
#define ENABLE_FASTSCAN //don't define this to remove fast scan menu
class CScanSetup : public CMenuTarget
{
private:
CSatelliteSetupNotifier *satNotify;
CAllUsalsNotifier *usalsNotify;
CMenuOptionStringChooser *satSelect;
bool is_wizard;
int width, selected;
int dmode;
int sfound;
int fec_count;
int freq_length;
int r_system;
neutrino_locale_t satprov_locale;
uint getSatMenuListWidth();
void showScanMenu();
void addScanMenuLnbSetup(CMenuWidget *sat_setup);
void addScanMenuProvider(CMenuWidget *provider_setup);
void addScanMenuSatFind(CMenuWidget *sat_findMenu);
void addScanMenuSatOnOff(CMenuWidget *sat_OnOff);
void addScanMenuTempSat(CMenuWidget *temp_sat);
void addScanMenuMotorMenu(CMenuWidget *motor_Menu);
void addScanMenuManualScan(CMenuWidget *manual_Scan);
void addScanMenuAutoScanAll(CMenuWidget *auto_ScanAll);
void addScanMenuFastScan(CMenuWidget *fast_ScanMenu);
void addScanMenuAutoScan(CMenuWidget *auto_Scan);
int addScanOptionsItems(CMenuWidget *options_menu, const int &shortcut = 1);
int addListFlagsItems(CMenuWidget *listflags_menu, const int &shortcut = 1);
void saveScanSetup();
public:
enum SCAN_SETUP_MODE
{
SCAN_SETUP_MODE_WIZARD_NO = 0,
SCAN_SETUP_MODE_WIZARD = 1
};
CScanSetup(bool wizard_mode = SCAN_SETUP_MODE_WIZARD_NO);
~CScanSetup();
static CScanSetup* getInstance();
bool getWizardMode() {return is_wizard;};
void setWizardMode(bool mode);
int exec(CMenuTarget* parent, const std::string & actionKey = "");
};
class CTPSelectHandler : public CMenuTarget
{
public:
int exec(CMenuTarget* parent, const std::string &actionkey);
};
#endif