mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
*neutrino: cleanup unused members and includes
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1182 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -50,17 +50,10 @@ extern CAudioSetupNotifier * audioSetupNotifier;
|
|||||||
|
|
||||||
CAudioSetup::CAudioSetup(bool wizard_mode)
|
CAudioSetup::CAudioSetup(bool wizard_mode)
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
is_wizard = wizard_mode;
|
is_wizard = wizard_mode;
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CAudioSetup::~CAudioSetup()
|
CAudioSetup::~CAudioSetup()
|
||||||
@@ -83,11 +76,6 @@ int CAudioSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAudioSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#define AUDIOMENU_ANALOGOUT_OPTION_COUNT 3
|
#define AUDIOMENU_ANALOGOUT_OPTION_COUNT 3
|
||||||
const CMenuOptionChooser::keyval AUDIOMENU_ANALOGOUT_OPTIONS[AUDIOMENU_ANALOGOUT_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval AUDIOMENU_ANALOGOUT_OPTIONS[AUDIOMENU_ANALOGOUT_OPTION_COUNT] =
|
||||||
|
@@ -33,21 +33,15 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CAudioSetup : public CMenuTarget
|
class CAudioSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
int width, selected;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showAudioSetup();
|
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
|
void showAudioSetup();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum AUDIO_SETUP_MODE
|
enum AUDIO_SETUP_MODE
|
||||||
|
@@ -54,8 +54,6 @@
|
|||||||
|
|
||||||
CAudioPlayerSetup::CAudioPlayerSetup()
|
CAudioPlayerSetup::CAudioPlayerSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
selected = -1;
|
selected = -1;
|
||||||
}
|
}
|
||||||
|
@@ -33,16 +33,12 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CAudioPlayerSetup : public CMenuTarget
|
class CAudioPlayerSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int width, selected;
|
int width, selected;
|
||||||
|
|
||||||
void showAudioPlayerSetup();
|
void showAudioPlayerSetup();
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "widget/menue.h"
|
#include "widget/menue.h"
|
||||||
|
#include "widget/hintbox.h"
|
||||||
#include <mmi.h>
|
#include <mmi.h>
|
||||||
#include <ca_cs.h>
|
#include <ca_cs.h>
|
||||||
|
|
||||||
|
@@ -50,15 +50,8 @@ extern cVideo *videoDecoder;
|
|||||||
|
|
||||||
CCECSetup::CCECSetup()
|
CCECSetup::CCECSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10); //%
|
width = w_max (40, 10); //%
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CCECSetup::~CCECSetup()
|
CCECSetup::~CCECSetup()
|
||||||
@@ -79,11 +72,6 @@ int CCECSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCECSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#define VIDEOMENU_HDMI_CEC_MODE_OPTION_COUNT 3
|
#define VIDEOMENU_HDMI_CEC_MODE_OPTION_COUNT 3
|
||||||
const CMenuOptionChooser::keyval VIDEOMENU_HDMI_CEC_MODE_OPTIONS[VIDEOMENU_HDMI_CEC_MODE_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval VIDEOMENU_HDMI_CEC_MODE_OPTIONS[VIDEOMENU_HDMI_CEC_MODE_OPTION_COUNT] =
|
||||||
|
@@ -38,12 +38,10 @@
|
|||||||
class CCECSetup : public CMenuTarget, CChangeObserver
|
class CCECSetup : public CMenuTarget, CChangeObserver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
CMenuOptionChooser *cec1, *cec2;
|
CMenuOptionChooser *cec1, *cec2;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
int width, selected;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showMenu();
|
void showMenu();
|
||||||
|
|
||||||
|
|
||||||
|
@@ -53,18 +53,11 @@
|
|||||||
|
|
||||||
CKeybindSetup::CKeybindSetup()
|
CKeybindSetup::CKeybindSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
keySetupNotifier = new CKeySetupNotifier;
|
keySetupNotifier = new CKeySetupNotifier;
|
||||||
keySetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
keySetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CKeybindSetup::~CKeybindSetup()
|
CKeybindSetup::~CKeybindSetup()
|
||||||
@@ -113,10 +106,6 @@ int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CKeybindSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define KEYBINDINGMENU_BOUQUETHANDLING_OPTION_COUNT 3
|
#define KEYBINDINGMENU_BOUQUETHANDLING_OPTION_COUNT 3
|
||||||
const CMenuOptionChooser::keyval KEYBINDINGMENU_BOUQUETHANDLING_OPTIONS[KEYBINDINGMENU_BOUQUETHANDLING_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval KEYBINDINGMENU_BOUQUETHANDLING_OPTIONS[KEYBINDINGMENU_BOUQUETHANDLING_OPTION_COUNT] =
|
||||||
|
@@ -35,8 +35,6 @@
|
|||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
#include <gui/widget/keychooser.h>
|
#include <gui/widget/keychooser.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <system/setting_helpers.h>
|
#include <system/setting_helpers.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -85,9 +83,8 @@ class CKeybindSetup : public CMenuTarget
|
|||||||
CKeySetupNotifier *keySetupNotifier;
|
CKeySetupNotifier *keySetupNotifier;
|
||||||
CKeyChooser * keychooser[KEYBINDS_COUNT];
|
CKeyChooser * keychooser[KEYBINDS_COUNT];
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
int width, selected;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showKeySetup();
|
void showKeySetup();
|
||||||
void showKeyBindSetup(CMenuWidget *bindSettings);
|
void showKeyBindSetup(CMenuWidget *bindSettings);
|
||||||
void showKeyBindModeSetup(CMenuWidget *bindSettings_modes);
|
void showKeyBindModeSetup(CMenuWidget *bindSettings_modes);
|
||||||
|
@@ -50,19 +50,11 @@
|
|||||||
|
|
||||||
CMediaPlayerMenu::CMediaPlayerMenu()
|
CMediaPlayerMenu::CMediaPlayerMenu()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
setMenuTitel();
|
setMenuTitel();
|
||||||
setUsageMode();
|
setUsageMode();
|
||||||
|
|
||||||
width = w_max (40, 10); //%
|
width = w_max (40, 10); //%
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
audioPlayer = NULL;
|
audioPlayer = NULL;
|
||||||
inetPlayer = NULL;
|
inetPlayer = NULL;
|
||||||
@@ -115,11 +107,6 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMediaPlayerMenu::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
//show selectable mediaplayer items
|
//show selectable mediaplayer items
|
||||||
void CMediaPlayerMenu::showMenu()
|
void CMediaPlayerMenu::showMenu()
|
||||||
{
|
{
|
||||||
|
@@ -31,21 +31,18 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
#include "gui/audioplayer.h"
|
#include "gui/audioplayer.h"
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CMediaPlayerMenu : public CMenuTarget
|
class CMediaPlayerMenu : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
CAudioPlayerGui *audioPlayer;
|
CAudioPlayerGui *audioPlayer;
|
||||||
CAudioPlayerGui *inetPlayer;
|
CAudioPlayerGui *inetPlayer;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected, usage_mode;
|
int width, selected, usage_mode;
|
||||||
neutrino_locale_t menu_title;
|
neutrino_locale_t menu_title;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showMenu();
|
void showMenu();
|
||||||
void showMoviePlayer(CMenuWidget *menu_movieplayer);
|
void showMoviePlayer(CMenuWidget *menu_movieplayer);
|
||||||
|
|
||||||
|
@@ -56,8 +56,6 @@
|
|||||||
|
|
||||||
CMediaPlayerSetup::CMediaPlayerSetup()
|
CMediaPlayerSetup::CMediaPlayerSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
selected = -1;
|
selected = -1;
|
||||||
}
|
}
|
||||||
|
@@ -35,16 +35,11 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CMediaPlayerSetup : public CMenuTarget
|
class CMediaPlayerSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int width, selected;
|
int width, selected;
|
||||||
|
|
||||||
void showMediaPlayerSetup();
|
void showMediaPlayerSetup();
|
||||||
|
@@ -53,18 +53,12 @@
|
|||||||
|
|
||||||
CNetworkSetup::CNetworkSetup(bool wizard_mode)
|
CNetworkSetup::CNetworkSetup(bool wizard_mode)
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
networkConfig = CNetworkConfig::getInstance();
|
networkConfig = CNetworkConfig::getInstance();
|
||||||
|
|
||||||
is_wizard = wizard_mode;
|
is_wizard = wizard_mode;
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
readNetworkSettings();
|
readNetworkSettings();
|
||||||
}
|
}
|
||||||
@@ -128,11 +122,6 @@ int CNetworkSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNetworkSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CNetworkSetup::readNetworkSettings()
|
void CNetworkSetup::readNetworkSettings()
|
||||||
{
|
{
|
||||||
|
@@ -34,8 +34,6 @@
|
|||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
#include <gui/widget/messagebox.h>
|
#include <gui/widget/messagebox.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <system/setting_helpers.h>
|
#include <system/setting_helpers.h>
|
||||||
#include <system/configure_network.h>
|
#include <system/configure_network.h>
|
||||||
|
|
||||||
@@ -45,10 +43,9 @@
|
|||||||
class CNetworkSetup : public CMenuTarget, CChangeObserver
|
class CNetworkSetup : public CMenuTarget, CChangeObserver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
CNetworkConfig *networkConfig;
|
CNetworkConfig *networkConfig;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
int width, selected;
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
@@ -70,7 +67,6 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
|
|||||||
std::string old_network_gateway;
|
std::string old_network_gateway;
|
||||||
std::string old_network_hostname;
|
std::string old_network_hostname;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void restoreNetworkSettings();
|
void restoreNetworkSettings();
|
||||||
void prepareSettings();
|
void prepareSettings();
|
||||||
void readNetworkSettings();
|
void readNetworkSettings();
|
||||||
|
@@ -61,8 +61,6 @@ extern std::string ttx_font_file;
|
|||||||
|
|
||||||
COsdSetup::COsdSetup(bool wizard_mode)
|
COsdSetup::COsdSetup(bool wizard_mode)
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
colorSetupNotifier = new CColorSetupNotifier();
|
colorSetupNotifier = new CColorSetupNotifier();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
|
|
||||||
@@ -71,12 +69,6 @@ COsdSetup::COsdSetup(bool wizard_mode)
|
|||||||
is_wizard = wizard_mode;
|
is_wizard = wizard_mode;
|
||||||
|
|
||||||
width = w_max (40, 10); //%
|
width = w_max (40, 10); //%
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COsdSetup::~COsdSetup()
|
COsdSetup::~COsdSetup()
|
||||||
@@ -85,11 +77,6 @@ COsdSetup::~COsdSetup()
|
|||||||
delete fontsizenotifier;
|
delete fontsizenotifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
void COsdSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||||
{
|
{
|
||||||
|
@@ -43,16 +43,13 @@
|
|||||||
class COsdSetup : public CMenuTarget
|
class COsdSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
CColorSetupNotifier *colorSetupNotifier;
|
CColorSetupNotifier *colorSetupNotifier;
|
||||||
CFontSizeNotifier *fontsizenotifier;
|
CFontSizeNotifier *fontsizenotifier;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
int width, selected;
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showOsdSetup();
|
void showOsdSetup();
|
||||||
void showOsdMenueColorSetup(CMenuWidget *menu_colors);
|
void showOsdMenueColorSetup(CMenuWidget *menu_colors);
|
||||||
void showOsdFontSizeSetup(CMenuWidget *menu_fonts);
|
void showOsdFontSizeSetup(CMenuWidget *menu_fonts);
|
||||||
|
@@ -54,17 +54,10 @@
|
|||||||
|
|
||||||
COsdLangSetup::COsdLangSetup(bool wizard_mode)
|
COsdLangSetup::COsdLangSetup(bool wizard_mode)
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
is_wizard = wizard_mode;
|
is_wizard = wizard_mode;
|
||||||
|
|
||||||
width = w_max (45, 10);
|
width = w_max (45, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COsdLangSetup::~COsdLangSetup()
|
COsdLangSetup::~COsdLangSetup()
|
||||||
@@ -72,12 +65,6 @@ COsdLangSetup::~COsdLangSetup()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void COsdLangSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int COsdLangSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
int COsdLangSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
||||||
{
|
{
|
||||||
dprintf(DEBUG_DEBUG, "init international setup\n");
|
dprintf(DEBUG_DEBUG, "init international setup\n");
|
||||||
|
@@ -36,8 +36,6 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <system/setting_helpers.h>
|
#include <system/setting_helpers.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -52,15 +50,11 @@ class CLangSelectNotifier : public CChangeObserver
|
|||||||
|
|
||||||
class COsdLangSetup : public CMenuTarget, CChangeObserver
|
class COsdLangSetup : public CMenuTarget, CChangeObserver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
int width, selected;
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int x, y, width, height, menue_width, hheight, mheight, selected;
|
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showLocalSetup();
|
void showLocalSetup();
|
||||||
void showLanguageSetup(CMenuWidget *osdl_setup);
|
void showLanguageSetup(CMenuWidget *osdl_setup);
|
||||||
void showPrefMenu(CMenuWidget *prefMenu, CLangSelectNotifier *langNotifier);
|
void showPrefMenu(CMenuWidget *prefMenu, CLangSelectNotifier *langNotifier);
|
||||||
|
@@ -49,15 +49,8 @@
|
|||||||
|
|
||||||
CParentalSetup::CParentalSetup()
|
CParentalSetup::CParentalSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10); //%
|
width = w_max (40, 10); //%
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CParentalSetup::~CParentalSetup()
|
CParentalSetup::~CParentalSetup()
|
||||||
@@ -80,11 +73,6 @@ int CParentalSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CParentalSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
#define PARENTALLOCK_PROMPT_OPTION_COUNT 3
|
#define PARENTALLOCK_PROMPT_OPTION_COUNT 3
|
||||||
|
@@ -33,21 +33,15 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CParentalSetup : public CMenuTarget
|
class CParentalSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
int width, selected;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showParentalSetup();
|
void showParentalSetup();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CParentalSetup();
|
CParentalSetup();
|
||||||
~CParentalSetup();
|
~CParentalSetup();
|
||||||
|
@@ -53,8 +53,6 @@
|
|||||||
|
|
||||||
CPictureViewerSetup::CPictureViewerSetup()
|
CPictureViewerSetup::CPictureViewerSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
selected = -1;
|
selected = -1;
|
||||||
}
|
}
|
||||||
|
@@ -41,8 +41,6 @@
|
|||||||
class CPictureViewerSetup : public CMenuTarget
|
class CPictureViewerSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int width, selected;
|
int width, selected;
|
||||||
|
|
||||||
void showPictureViewerSetup();
|
void showPictureViewerSetup();
|
||||||
|
@@ -46,18 +46,10 @@
|
|||||||
|
|
||||||
CProxySetup::CProxySetup(const neutrino_locale_t title, const char * const IconName )
|
CProxySetup::CProxySetup(const neutrino_locale_t title, const char * const IconName )
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
menue_title = title;
|
menue_title = title;
|
||||||
menue_icon = IconName;
|
menue_icon = IconName;
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CProxySetup::~CProxySetup()
|
CProxySetup::~CProxySetup()
|
||||||
@@ -80,11 +72,6 @@ int CProxySetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CProxySetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* shows entries for proxy settings */
|
/* shows entries for proxy settings */
|
||||||
void CProxySetup::showProxySetup()
|
void CProxySetup::showProxySetup()
|
||||||
{
|
{
|
||||||
|
@@ -34,24 +34,18 @@
|
|||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CProxySetup : public CMenuTarget
|
class CProxySetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
int width;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight;
|
|
||||||
|
|
||||||
neutrino_locale_t menue_title;
|
neutrino_locale_t menue_title;
|
||||||
std::string menue_icon;
|
std::string menue_icon;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showProxySetup();
|
void showProxySetup();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CProxySetup(const neutrino_locale_t title = LOCALE_FLASHUPDATE_PROXYSERVER_SEP, const char * const IconName = NEUTRINO_ICON_SETTINGS);
|
CProxySetup(const neutrino_locale_t title = LOCALE_FLASHUPDATE_PROXYSERVER_SEP, const char * const IconName = NEUTRINO_ICON_SETTINGS);
|
||||||
~CProxySetup();
|
~CProxySetup();
|
||||||
|
@@ -55,16 +55,7 @@
|
|||||||
|
|
||||||
CRecordSetup::CRecordSetup()
|
CRecordSetup::CRecordSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (50, 10); //%
|
width = w_max (50, 10); //%
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,11 +64,6 @@ CRecordSetup::~CRecordSetup()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRecordSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||||
{
|
{
|
||||||
dprintf(DEBUG_DEBUG, "init record setup\n");
|
dprintf(DEBUG_DEBUG, "init record setup\n");
|
||||||
|
@@ -34,19 +34,13 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CRecordSetup : public CMenuTarget
|
class CRecordSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
int width, selected;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showRecordSetup();
|
void showRecordSetup();
|
||||||
void showRecordTimerSetup(CMenuWidget *menu_timersettings);
|
void showRecordTimerSetup(CMenuWidget *menu_timersettings);
|
||||||
void showRecordAudioSetup(CMenuWidget *menu_audiosettings);
|
void showRecordAudioSetup(CMenuWidget *menu_audiosettings);
|
||||||
|
@@ -55,16 +55,8 @@ extern CFrontend * frontend;
|
|||||||
|
|
||||||
CTestMenu::CTestMenu()
|
CTestMenu::CTestMenu()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (50, 10);
|
width = w_max (50, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CTestMenu::~CTestMenu()
|
CTestMenu::~CTestMenu()
|
||||||
@@ -318,11 +310,6 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTestMenu::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* shows entries for proxy settings */
|
/* shows entries for proxy settings */
|
||||||
void CTestMenu::showTestMenu()
|
void CTestMenu::showTestMenu()
|
||||||
{
|
{
|
||||||
|
@@ -54,13 +54,7 @@
|
|||||||
CThemes::CThemes()
|
CThemes::CThemes()
|
||||||
: themefile('\t')
|
: themefile('\t')
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
hasThemeChanged = false;
|
hasThemeChanged = false;
|
||||||
}
|
}
|
||||||
@@ -104,11 +98,6 @@ int CThemes::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CThemes::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CThemes::readThemes(CMenuWidget &themes)
|
void CThemes::readThemes(CMenuWidget &themes)
|
||||||
{
|
{
|
||||||
struct dirent **themelist;
|
struct dirent **themelist;
|
||||||
|
@@ -26,17 +26,15 @@
|
|||||||
#define __cthemes__
|
#define __cthemes__
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <configfile.h>
|
#include <configfile.h>
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
#include <system/setting_helpers.h>
|
#include <system/setting_helpers.h>
|
||||||
|
|
||||||
class CThemes : public CMenuTarget, CChangeObserver
|
class CThemes : public CMenuTarget, CChangeObserver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
CConfigFile themefile;
|
CConfigFile themefile;
|
||||||
CColorSetupNotifier *notifier;
|
CColorSetupNotifier *notifier;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight;
|
int width;
|
||||||
int oldThemeValues[40];
|
int oldThemeValues[40];
|
||||||
|
|
||||||
bool hasThemeChanged;
|
bool hasThemeChanged;
|
||||||
@@ -49,7 +47,6 @@ class CThemes : public CMenuTarget, CChangeObserver
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
CThemes();
|
CThemes();
|
||||||
void hide();
|
|
||||||
void setupDefaultColors();
|
void setupDefaultColors();
|
||||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||||
};
|
};
|
||||||
|
@@ -50,17 +50,10 @@
|
|||||||
|
|
||||||
CUserMenuSetup::CUserMenuSetup(neutrino_locale_t menue_title, int menue_button)
|
CUserMenuSetup::CUserMenuSetup(neutrino_locale_t menue_title, int menue_button)
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
local = menue_title;
|
local = menue_title;
|
||||||
button = menue_button;
|
button = menue_button;
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CUserMenuSetup::~CUserMenuSetup()
|
CUserMenuSetup::~CUserMenuSetup()
|
||||||
@@ -68,10 +61,6 @@ CUserMenuSetup::~CUserMenuSetup()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CUserMenuSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define USERMENU_ITEM_OPTION_COUNT SNeutrinoSettings::ITEM_MAX
|
#define USERMENU_ITEM_OPTION_COUNT SNeutrinoSettings::ITEM_MAX
|
||||||
const CMenuOptionChooser::keyval USERMENU_ITEM_OPTIONS[USERMENU_ITEM_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval USERMENU_ITEM_OPTIONS[USERMENU_ITEM_OPTION_COUNT] =
|
||||||
|
@@ -34,22 +34,16 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CUserMenuSetup : public CMenuTarget
|
class CUserMenuSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
int width;
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int x, y, width, height, menue_width, hheight, mheight;
|
|
||||||
|
|
||||||
int button;
|
int button;
|
||||||
neutrino_locale_t local;
|
neutrino_locale_t local;
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showSetup();
|
void showSetup();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -51,15 +51,8 @@
|
|||||||
|
|
||||||
CVfdSetup::CVfdSetup()
|
CVfdSetup::CVfdSetup()
|
||||||
{
|
{
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
|
||||||
|
|
||||||
width = w_max (40, 10);
|
width = w_max (40, 10);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CVfdSetup::~CVfdSetup()
|
CVfdSetup::~CVfdSetup()
|
||||||
@@ -67,11 +60,6 @@ CVfdSetup::~CVfdSetup()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVfdSetup::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int CVfdSetup::exec(CMenuTarget* parent, const std::string &)
|
int CVfdSetup::exec(CMenuTarget* parent, const std::string &)
|
||||||
{
|
{
|
||||||
|
@@ -33,19 +33,13 @@
|
|||||||
|
|
||||||
#include <gui/widget/menue.h>
|
#include <gui/widget/menue.h>
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CVfdSetup : public CMenuTarget
|
class CVfdSetup : public CMenuTarget
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
int width, selected;
|
||||||
|
|
||||||
CFrameBuffer *frameBuffer;
|
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
|
||||||
|
|
||||||
void hide();
|
|
||||||
void showSetup();
|
void showSetup();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -67,12 +67,7 @@ CVideoSettings::CVideoSettings(bool wizard_mode)
|
|||||||
VcrVideoOutSignalOptionChooser = NULL;
|
VcrVideoOutSignalOptionChooser = NULL;
|
||||||
|
|
||||||
width = w_max (35, 20);
|
width = w_max (35, 20);
|
||||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
|
||||||
height = hheight+13*mheight+ 10;
|
|
||||||
selected = -1;
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
|
||||||
y = getScreenStartY (height);
|
|
||||||
|
|
||||||
prev_video_mode = g_settings.video_Mode;
|
prev_video_mode = g_settings.video_Mode;
|
||||||
|
|
||||||
@@ -100,11 +95,6 @@ int CVideoSettings::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVideoSettings::hide()
|
|
||||||
{
|
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define VIDEOMENU_43MODE_OPTION_COUNT 4
|
#define VIDEOMENU_43MODE_OPTION_COUNT 4
|
||||||
const CMenuOptionChooser::keyval VIDEOMENU_43MODE_OPTIONS[VIDEOMENU_43MODE_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval VIDEOMENU_43MODE_OPTIONS[VIDEOMENU_43MODE_OPTION_COUNT] =
|
||||||
{
|
{
|
||||||
|
@@ -47,7 +47,7 @@ class CVideoSettings : public CMenuWidget, CChangeObserver
|
|||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight, selected;
|
int width, selected;
|
||||||
void showVideoSetup();
|
void showVideoSetup();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -72,8 +72,6 @@ public:
|
|||||||
bool getWizardMode() {return is_wizard;};
|
bool getWizardMode() {return is_wizard;};
|
||||||
void setWizardMode(bool mode);
|
void setWizardMode(bool mode);
|
||||||
|
|
||||||
void hide();
|
|
||||||
|
|
||||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,119 +36,53 @@
|
|||||||
|
|
||||||
//#define TEST_MENU
|
//#define TEST_MENU
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <sys/statvfs.h>
|
|
||||||
#include <sys/vfs.h>
|
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "neutrino.h"
|
#include "neutrino.h"
|
||||||
|
#include "mymenu.h"
|
||||||
|
|
||||||
#include <daemonc/remotecontrol.h>
|
#include <system/debug.h>
|
||||||
|
|
||||||
#include <driver/encoding.h>
|
#include <cs_api.h>
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
#include <driver/fontrenderer.h>
|
|
||||||
#include <driver/rcinput.h>
|
|
||||||
#include <driver/stream2file.h>
|
|
||||||
#include <driver/vcrcontrol.h>
|
|
||||||
#include <driver/shutdown_count.h>
|
|
||||||
|
|
||||||
#include <gui/epgplus.h>
|
|
||||||
#include <gui/streaminfo2.h>
|
|
||||||
|
|
||||||
#include "gui/alphasetup.h"
|
|
||||||
#include "gui/audio_setup.h"
|
#include "gui/audio_setup.h"
|
||||||
#include "gui/audioplayer.h"
|
#include "gui/audio_select.h"
|
||||||
#include "gui/bedit/bouqueteditor_bouquets.h"
|
#include "gui/bedit/bouqueteditor_bouquets.h"
|
||||||
#include "gui/bouquetlist.h"
|
#include "gui/bouquetlist.h"
|
||||||
#include "gui/channellist.h"
|
#include "gui/cam_menu.h"
|
||||||
#include "gui/cec_setup.h"
|
#include "gui/cec_setup.h"
|
||||||
#include "gui/color.h"
|
#include "gui/dboxinfo.h"
|
||||||
#include "gui/customcolor.h"
|
|
||||||
#include "gui/epg_menu.h"
|
#include "gui/epg_menu.h"
|
||||||
#include "gui/epgview.h"
|
#include <gui/epgplus.h>
|
||||||
#include "gui/eventlist.h"
|
|
||||||
#include "gui/favorites.h"
|
#include "gui/favorites.h"
|
||||||
#include "gui/filebrowser.h"
|
#include "gui/hdd_menu.h"
|
||||||
#include "gui/imageinfo.h"
|
#include "gui/imageinfo.h"
|
||||||
#include "gui/infoviewer.h"
|
|
||||||
#include "gui/keybind_setup.h"
|
#include "gui/keybind_setup.h"
|
||||||
#include "gui/mediaplayer.h"
|
#include "gui/mediaplayer.h"
|
||||||
#include "gui/mediaplayer_setup.h"
|
#include "gui/mediaplayer_setup.h"
|
||||||
#include "gui/motorcontrol.h"
|
#include "gui/motorcontrol.h"
|
||||||
#include "gui/movieplayer.h"
|
#include "gui/movieplayer.h"
|
||||||
#include "gui/network_setup.h"
|
|
||||||
#include "gui/osd_setup.h"
|
#include "gui/osd_setup.h"
|
||||||
#include "gui/osdlang_setup.h"
|
#include "gui/osdlang_setup.h"
|
||||||
#include "gui/parentallock_setup.h"
|
#include "gui/parentallock_setup.h"
|
||||||
#include "gui/pictureviewer.h"
|
|
||||||
#include "gui/pluginlist.h"
|
#include "gui/pluginlist.h"
|
||||||
#include "gui/plugins.h"
|
#include "gui/plugins.h"
|
||||||
#include "gui/rc_lock.h"
|
|
||||||
#include "gui/record_setup.h"
|
#include "gui/record_setup.h"
|
||||||
#include "gui/scan.h"
|
#include "gui/scan.h"
|
||||||
#include "gui/sleeptimer.h"
|
#include "gui/sleeptimer.h"
|
||||||
|
#include <gui/streaminfo2.h>
|
||||||
#ifdef TEST_MENU
|
#ifdef TEST_MENU
|
||||||
#include "gui/test_menu.h"
|
#include "gui/test_menu.h"
|
||||||
#endif /*TEST_MENU*/
|
#endif /*TEST_MENU*/
|
||||||
#include "gui/timerlist.h"
|
|
||||||
#include "gui/update.h"
|
#include "gui/update.h"
|
||||||
#include "gui/user_menue_setup.h"
|
|
||||||
#include "gui/user_menue_setup.h"
|
|
||||||
#include "gui/vfd_setup.h"
|
#include "gui/vfd_setup.h"
|
||||||
#include "gui/videosettings.h"
|
|
||||||
|
|
||||||
#include "gui/widget/colorchooser.h"
|
|
||||||
#include "gui/widget/hintbox.h"
|
|
||||||
#include "gui/widget/icons.h"
|
|
||||||
#include "gui/widget/keychooser.h"
|
|
||||||
#include "gui/widget/menue.h"
|
|
||||||
#include "gui/widget/messagebox.h"
|
|
||||||
#include "gui/widget/mountchooser.h"
|
|
||||||
#include "gui/widget/stringinput.h"
|
#include "gui/widget/stringinput.h"
|
||||||
#include "gui/widget/stringinput_ext.h"
|
#include "gui/widget/stringinput_ext.h"
|
||||||
|
|
||||||
#include <system/setting_helpers.h>
|
#include <zapit/fastscan.h>
|
||||||
#include <system/settings.h>
|
|
||||||
#include <system/debug.h>
|
|
||||||
#include <system/flashtool.h>
|
|
||||||
#include <system/fsmounter.h>
|
|
||||||
|
|
||||||
#include <timerdclient/timerdmsg.h>
|
|
||||||
#include <video.h>
|
|
||||||
#include <audio.h>
|
|
||||||
#include <zapit/frontend_c.h>
|
#include <zapit/frontend_c.h>
|
||||||
#include <zapit/getservices.h>
|
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include "gui/infoclock.h"
|
|
||||||
#include "mymenu.h"
|
|
||||||
#include "gui/dboxinfo.h"
|
|
||||||
#include "gui/hdd_menu.h"
|
|
||||||
#include "gui/audio_select.h"
|
|
||||||
#include "gui/cam_menu.h"
|
|
||||||
|
|
||||||
#include <zapit/getservices.h>
|
#include <zapit/getservices.h>
|
||||||
#include <zapit/satconfig.h>
|
#include <zapit/satconfig.h>
|
||||||
#include <zapit/fastscan.h>
|
|
||||||
#include <cs_api.h>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern CFrontend * frontend;
|
extern CFrontend * frontend;
|
||||||
@@ -160,11 +94,6 @@ extern Zapit_config zapitCfg;
|
|||||||
extern char zapit_lat[20];
|
extern char zapit_lat[20];
|
||||||
extern char zapit_long[20];
|
extern char zapit_long[20];
|
||||||
extern char current_timezone[50];
|
extern char current_timezone[50];
|
||||||
extern cVideo *videoDecoder;
|
|
||||||
extern cAudio *audioDecoder;
|
|
||||||
// extern bool parentallocked;
|
|
||||||
//extern const char * locale_real_names[];
|
|
||||||
//extern CFontSizeNotifier fontsizenotifier;
|
|
||||||
extern CFanControlNotifier * funNotifier;
|
extern CFanControlNotifier * funNotifier;
|
||||||
extern CRemoteControl * g_RemoteControl;
|
extern CRemoteControl * g_RemoteControl;
|
||||||
extern CCAMMenuHandler * g_CamHandler;
|
extern CCAMMenuHandler * g_CamHandler;
|
||||||
|
Reference in New Issue
Block a user