mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
tuxbox-port: use new class modules,
this is one first part of ported parts from tuxbox,
comming soon there are comming more parts, but it's a lot to do,
see also: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/9565-diskussion-neutrino-goes-neutrinohd-welche-features-funktionen-aus-dem-tuxbox-cvs-%C3%BCbernehmen/
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@901 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 632d7dd2e9
Author: Thilo Graf <dbt@novatux.de>
Date: 2010-11-28 (Sun, 28 Nov 2010)
------------------
This commit was generated by Migit
This commit is contained in:
19
src/global.h
19
src/global.h
@@ -49,6 +49,7 @@
|
|||||||
#include "gui/epgview.h"
|
#include "gui/epgview.h"
|
||||||
#include "gui/infoviewer.h"
|
#include "gui/infoviewer.h"
|
||||||
#include "gui/eventlist.h"
|
#include "gui/eventlist.h"
|
||||||
|
#include "gui/videosettings.h"
|
||||||
|
|
||||||
#ifndef NEUTRINO_CPP
|
#ifndef NEUTRINO_CPP
|
||||||
#define NEUTRINO_CPP extern
|
#define NEUTRINO_CPP extern
|
||||||
@@ -66,25 +67,27 @@
|
|||||||
#define NEUTRINO_PARENTALLOCKED_FILE DATADIR "/neutrino/.plocked"
|
#define NEUTRINO_PARENTALLOCKED_FILE DATADIR "/neutrino/.plocked"
|
||||||
|
|
||||||
NEUTRINO_CPP SNeutrinoSettings g_settings;
|
NEUTRINO_CPP SNeutrinoSettings g_settings;
|
||||||
NEUTRINO_CPP SglobalInfo g_info;
|
NEUTRINO_CPP SglobalInfo g_info;
|
||||||
|
|
||||||
NEUTRINO_CPP CControldClient *g_Controld;
|
NEUTRINO_CPP CControldClient *g_Controld;
|
||||||
NEUTRINO_CPP CZapitClient *g_Zapit;
|
NEUTRINO_CPP CZapitClient *g_Zapit;
|
||||||
NEUTRINO_CPP CSectionsdClient *g_Sectionsd;
|
NEUTRINO_CPP CSectionsdClient *g_Sectionsd;
|
||||||
NEUTRINO_CPP CTimerdClient *g_Timerd;
|
NEUTRINO_CPP CTimerdClient *g_Timerd;
|
||||||
|
|
||||||
NEUTRINO_CPP FBFontRenderClass *g_fontRenderer;
|
NEUTRINO_CPP FBFontRenderClass *g_fontRenderer;
|
||||||
|
|
||||||
NEUTRINO_CPP Font * g_Font[FONT_TYPE_COUNT];
|
NEUTRINO_CPP Font * g_Font[FONT_TYPE_COUNT];
|
||||||
NEUTRINO_CPP Font * g_SignalFont;
|
NEUTRINO_CPP Font * g_SignalFont;
|
||||||
|
|
||||||
NEUTRINO_CPP CRCInput *g_RCInput;
|
NEUTRINO_CPP CRCInput *g_RCInput;
|
||||||
|
|
||||||
NEUTRINO_CPP CEpgData *g_EpgData;
|
NEUTRINO_CPP CEpgData *g_EpgData;
|
||||||
NEUTRINO_CPP CInfoViewer *g_InfoViewer;
|
NEUTRINO_CPP CInfoViewer *g_InfoViewer;
|
||||||
NEUTRINO_CPP EventList *g_EventList;
|
NEUTRINO_CPP EventList *g_EventList;
|
||||||
|
|
||||||
NEUTRINO_CPP CLocaleManager *g_Locale;
|
NEUTRINO_CPP CLocaleManager *g_Locale;
|
||||||
NEUTRINO_CPP RFmod *g_RFmod;
|
NEUTRINO_CPP RFmod *g_RFmod;
|
||||||
|
|
||||||
|
NEUTRINO_CPP CVideoSettings *g_videoSettings;
|
||||||
|
|
||||||
#endif /* __neutrino_global_h__ */
|
#endif /* __neutrino_global_h__ */
|
||||||
|
@@ -48,20 +48,29 @@ libneutrino_gui_a_SOURCES = \
|
|||||||
filebrowser.cpp \
|
filebrowser.cpp \
|
||||||
imageinfo.cpp \
|
imageinfo.cpp \
|
||||||
infoviewer.cpp \
|
infoviewer.cpp \
|
||||||
|
keybind_setup.cpp \
|
||||||
moviebrowser.cpp \
|
moviebrowser.cpp \
|
||||||
movieinfo.cpp \
|
movieinfo.cpp \
|
||||||
movieplayer.cpp \
|
movieplayer.cpp \
|
||||||
nfs.cpp \
|
nfs.cpp \
|
||||||
|
osd_setup.cpp \
|
||||||
|
osdlang_setup.cpp \
|
||||||
|
parentallock_setup.cpp \
|
||||||
pictureviewer.cpp \
|
pictureviewer.cpp \
|
||||||
pluginlist.cpp \
|
pluginlist.cpp \
|
||||||
plugins.cpp \
|
plugins.cpp \
|
||||||
|
proxyserver_setup.cpp \
|
||||||
rc_lock.cpp \
|
rc_lock.cpp \
|
||||||
scan.cpp \
|
scan.cpp \
|
||||||
update.cpp \
|
|
||||||
screensetup.cpp \
|
screensetup.cpp \
|
||||||
sleeptimer.cpp \
|
sleeptimer.cpp \
|
||||||
streaminfo2.cpp \
|
streaminfo2.cpp \
|
||||||
timeosd.cpp
|
themes.cpp \
|
||||||
|
timeosd.cpp \
|
||||||
|
update.cpp \
|
||||||
|
user_menue_setup.cpp \
|
||||||
|
vfd_setup.cpp \
|
||||||
|
videosettings.cpp
|
||||||
|
|
||||||
libneutrino_gui2_a_SOURCES = \
|
libneutrino_gui2_a_SOURCES = \
|
||||||
alphasetup.cpp \
|
alphasetup.cpp \
|
||||||
|
83
src/gui/videosettings.h
Normal file
83
src/gui/videosettings.h
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
$port: video_setup.cpp,v 1.6 2010/08/28 23:06:59 tuxbox-cvs Exp $
|
||||||
|
|
||||||
|
video setup implementation - Neutrino-GUI
|
||||||
|
|
||||||
|
Copyright (C) 2001 Steffen Hehn 'McClean'
|
||||||
|
and some other guys
|
||||||
|
Homepage: http://dbox.cyberphoria.org/
|
||||||
|
|
||||||
|
Copyright (C) 2009 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 __video_setup__
|
||||||
|
#define __video_setup__
|
||||||
|
|
||||||
|
#include <gui/widget/menue.h>
|
||||||
|
#include <driver/framebuffer.h>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
class CVideoSettings : public CMenuWidget, CChangeObserver
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
CFrameBuffer *frameBuffer;
|
||||||
|
CMenuForwarder *SyncControlerForwarder;
|
||||||
|
CMenuOptionChooser *cec1, *cec2;
|
||||||
|
CMenuOptionChooser *VcrVideoOutSignalOptionChooser;
|
||||||
|
|
||||||
|
int vcr_video_out_signal;
|
||||||
|
int prev_video_mode;
|
||||||
|
|
||||||
|
bool is_wizard;
|
||||||
|
|
||||||
|
int x, y, width, height, hheight, mheight;
|
||||||
|
void showVideoSetup();
|
||||||
|
|
||||||
|
public:
|
||||||
|
enum VIDEO_SETUP_MODE
|
||||||
|
{
|
||||||
|
V_SETUP_MODE_WIZARD_NO = 0,
|
||||||
|
V_SETUP_MODE_WIZARD = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
CVideoSettings(bool wizard_mode = V_SETUP_MODE_WIZARD_NO);
|
||||||
|
~CVideoSettings();
|
||||||
|
|
||||||
|
virtual bool changeNotify(const neutrino_locale_t OptionName, void *data);
|
||||||
|
//virtual void paint();
|
||||||
|
void nextMode();
|
||||||
|
void next43Mode();
|
||||||
|
void SwitchFormat();
|
||||||
|
|
||||||
|
void setVideoCECSettings();
|
||||||
|
void setVideoSettings();
|
||||||
|
void setCECSettings();
|
||||||
|
void setupVideoSystem(bool do_ask);
|
||||||
|
|
||||||
|
bool getWizardMode() {return is_wizard;};
|
||||||
|
void setWizardMode(bool mode);
|
||||||
|
|
||||||
|
void hide();
|
||||||
|
|
||||||
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
619
src/neutrino.cpp
619
src/neutrino.cpp
@@ -84,7 +84,9 @@
|
|||||||
#include "gui/widget/stringinput.h"
|
#include "gui/widget/stringinput.h"
|
||||||
#include "gui/widget/stringinput_ext.h"
|
#include "gui/widget/stringinput_ext.h"
|
||||||
#include "gui/widget/mountchooser.h"
|
#include "gui/widget/mountchooser.h"
|
||||||
|
#include "gui/videosettings.h"
|
||||||
|
#include "gui/osdlang_setup.h"
|
||||||
|
#include "gui/osd_setup.h"
|
||||||
#include "gui/color.h"
|
#include "gui/color.h"
|
||||||
#include "gui/customcolor.h"
|
#include "gui/customcolor.h"
|
||||||
|
|
||||||
@@ -196,8 +198,6 @@ extern CFrontend * frontend;
|
|||||||
cPowerManager *powerManager;
|
cPowerManager *powerManager;
|
||||||
cCpuFreqManager * cpuFreq;
|
cCpuFreqManager * cpuFreq;
|
||||||
|
|
||||||
int prev_video_mode;
|
|
||||||
|
|
||||||
int g_channel_list_changed;
|
int g_channel_list_changed;
|
||||||
|
|
||||||
void stop_daemons(bool stopall = true);
|
void stop_daemons(bool stopall = true);
|
||||||
@@ -306,6 +306,7 @@ static void initGlobals(void)
|
|||||||
g_EpgData = NULL;
|
g_EpgData = NULL;
|
||||||
g_InfoViewer = NULL;
|
g_InfoViewer = NULL;
|
||||||
g_EventList = NULL;
|
g_EventList = NULL;
|
||||||
|
g_videoSettings = NULL;
|
||||||
|
|
||||||
g_Locale = new CLocaleManager;
|
g_Locale = new CLocaleManager;
|
||||||
g_PluginList = NULL;
|
g_PluginList = NULL;
|
||||||
@@ -356,341 +357,6 @@ CNeutrinoApp* CNeutrinoApp::getInstance()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************************
|
|
||||||
* CNeutrinoApp - setup Color Sheme (Neutrino) *
|
|
||||||
**************************************************************************************/
|
|
||||||
void CNeutrinoApp::setupColors_neutrino()
|
|
||||||
{
|
|
||||||
g_settings.menu_Head_alpha = 0x00;
|
|
||||||
g_settings.menu_Head_red = 0x00;
|
|
||||||
g_settings.menu_Head_green = 0x0A;
|
|
||||||
g_settings.menu_Head_blue = 0x19;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha = 0x00;
|
|
||||||
g_settings.menu_Head_Text_red = 0x5f;
|
|
||||||
g_settings.menu_Head_Text_green = 0x46;
|
|
||||||
g_settings.menu_Head_Text_blue = 0x00;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha = 0x14;
|
|
||||||
g_settings.menu_Content_red = 0x00;
|
|
||||||
g_settings.menu_Content_green = 0x0f;
|
|
||||||
g_settings.menu_Content_blue = 0x23;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha = 0x00;
|
|
||||||
g_settings.menu_Content_Text_red = 0x64;
|
|
||||||
g_settings.menu_Content_Text_green = 0x64;
|
|
||||||
g_settings.menu_Content_Text_blue = 0x64;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha = 0x14;
|
|
||||||
g_settings.menu_Content_Selected_red = 0x19;
|
|
||||||
g_settings.menu_Content_Selected_green = 0x37;
|
|
||||||
g_settings.menu_Content_Selected_blue = 0x64;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha = 0x00;
|
|
||||||
g_settings.menu_Content_Selected_Text_red = 0x00;
|
|
||||||
g_settings.menu_Content_Selected_Text_green = 0x00;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue = 0x00;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha = 0x14;
|
|
||||||
g_settings.menu_Content_inactive_red = 0x00;
|
|
||||||
g_settings.menu_Content_inactive_green = 0x0f;
|
|
||||||
g_settings.menu_Content_inactive_blue = 0x23;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha = 0x00;
|
|
||||||
g_settings.menu_Content_inactive_Text_red = 55;
|
|
||||||
g_settings.menu_Content_inactive_Text_green = 70;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue = 85;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha = 0x14;
|
|
||||||
g_settings.infobar_red = 0x00;
|
|
||||||
g_settings.infobar_green = 0x0e;
|
|
||||||
g_settings.infobar_blue = 0x23;
|
|
||||||
|
|
||||||
g_settings.infobar_Text_alpha = 0x00;
|
|
||||||
g_settings.infobar_Text_red = 0x64;
|
|
||||||
g_settings.infobar_Text_green = 0x64;
|
|
||||||
g_settings.infobar_Text_blue = 0x64;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************************
|
|
||||||
* *
|
|
||||||
* CNeutrinoApp - setup Color Sheme (classic) *
|
|
||||||
* *
|
|
||||||
**************************************************************************************/
|
|
||||||
void CNeutrinoApp::setupColors_classic()
|
|
||||||
{
|
|
||||||
g_settings.menu_Head_alpha = 20;
|
|
||||||
g_settings.menu_Head_red = 5;
|
|
||||||
g_settings.menu_Head_green = 10;
|
|
||||||
g_settings.menu_Head_blue = 60;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha = 0;
|
|
||||||
g_settings.menu_Head_Text_red = 100;
|
|
||||||
g_settings.menu_Head_Text_green = 100;
|
|
||||||
g_settings.menu_Head_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha = 20;
|
|
||||||
g_settings.menu_Content_red = 50;
|
|
||||||
g_settings.menu_Content_green = 50;
|
|
||||||
g_settings.menu_Content_blue = 50;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Text_red = 100;
|
|
||||||
g_settings.menu_Content_Text_green = 100;
|
|
||||||
g_settings.menu_Content_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha = 20;
|
|
||||||
g_settings.menu_Content_Selected_red = 5;
|
|
||||||
g_settings.menu_Content_Selected_green = 10;
|
|
||||||
g_settings.menu_Content_Selected_blue = 60;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_red = 100;
|
|
||||||
g_settings.menu_Content_Selected_Text_green = 100;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha = 20;
|
|
||||||
g_settings.menu_Content_inactive_red = 50;
|
|
||||||
g_settings.menu_Content_inactive_green = 50;
|
|
||||||
g_settings.menu_Content_inactive_blue = 50;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_inactive_Text_red = 80;
|
|
||||||
g_settings.menu_Content_inactive_Text_green = 80;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue = 80;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha = 20;
|
|
||||||
g_settings.infobar_red = 5;
|
|
||||||
g_settings.infobar_green = 10;
|
|
||||||
g_settings.infobar_blue = 60;
|
|
||||||
|
|
||||||
g_settings.infobar_Text_alpha = 0;
|
|
||||||
g_settings.infobar_Text_red = 100;
|
|
||||||
g_settings.infobar_Text_green = 100;
|
|
||||||
g_settings.infobar_Text_blue = 100;
|
|
||||||
}
|
|
||||||
void CNeutrinoApp::setupColors_ru()
|
|
||||||
{
|
|
||||||
|
|
||||||
g_settings.infobar_Text_alpha=0;
|
|
||||||
g_settings.infobar_Text_blue=100;
|
|
||||||
g_settings.infobar_Text_green=100;
|
|
||||||
g_settings.infobar_Text_red=100;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha=0;
|
|
||||||
g_settings.infobar_blue=40;
|
|
||||||
g_settings.infobar_green=29;
|
|
||||||
g_settings.infobar_red=25;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_green=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_red=0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha=0;
|
|
||||||
g_settings.menu_Content_Selected_blue=70;
|
|
||||||
g_settings.menu_Content_Selected_green=65;
|
|
||||||
g_settings.menu_Content_Selected_red=65;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_Text_blue=100;
|
|
||||||
g_settings.menu_Content_Text_green=100;
|
|
||||||
g_settings.menu_Content_Text_red=100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha=0;
|
|
||||||
g_settings.menu_Content_blue=40;
|
|
||||||
g_settings.menu_Content_green=30;
|
|
||||||
g_settings.menu_Content_red=25;
|
|
||||||
;
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue=100;
|
|
||||||
g_settings.menu_Content_inactive_Text_green=100;
|
|
||||||
g_settings.menu_Content_inactive_Text_red=100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha=0;
|
|
||||||
g_settings.menu_Content_inactive_blue=40;
|
|
||||||
g_settings.menu_Content_inactive_green=30;
|
|
||||||
g_settings.menu_Content_inactive_red=25;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha=0;
|
|
||||||
g_settings.menu_Head_Text_blue=0;
|
|
||||||
g_settings.menu_Head_Text_green=70;
|
|
||||||
g_settings.menu_Head_Text_red=95;
|
|
||||||
|
|
||||||
g_settings.menu_Head_alpha=0;
|
|
||||||
g_settings.menu_Head_blue=30;
|
|
||||||
g_settings.menu_Head_green=20;
|
|
||||||
g_settings.menu_Head_red=15;
|
|
||||||
}
|
|
||||||
void CNeutrinoApp::setupColors_red()
|
|
||||||
{
|
|
||||||
g_settings.infobar_Text_alpha=0;
|
|
||||||
g_settings.infobar_Text_blue=100;
|
|
||||||
g_settings.infobar_Text_green=100;
|
|
||||||
g_settings.infobar_Text_red=100;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha=20;
|
|
||||||
g_settings.infobar_blue=0;
|
|
||||||
g_settings.infobar_green=14;
|
|
||||||
g_settings.infobar_red=40;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_green=0;
|
|
||||||
g_settings.menu_Content_Selected_Text_red=0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha=20;
|
|
||||||
g_settings.menu_Content_Selected_blue=100;
|
|
||||||
g_settings.menu_Content_Selected_green=100;
|
|
||||||
g_settings.menu_Content_Selected_red=100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_Text_blue=100;
|
|
||||||
g_settings.menu_Content_Text_green=100;
|
|
||||||
g_settings.menu_Content_Text_red=100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha=0;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue=35;
|
|
||||||
g_settings.menu_Content_inactive_Text_green=85;
|
|
||||||
g_settings.menu_Content_inactive_Text_red=85;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha=20;
|
|
||||||
g_settings.menu_Content_inactive_blue=0;
|
|
||||||
g_settings.menu_Content_inactive_green=15;
|
|
||||||
g_settings.menu_Content_inactive_red=35;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha=20;
|
|
||||||
g_settings.menu_Content_blue=0;
|
|
||||||
g_settings.menu_Content_green=15;
|
|
||||||
g_settings.menu_Content_red=40;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha=0;
|
|
||||||
g_settings.menu_Head_Text_blue=0;
|
|
||||||
g_settings.menu_Head_Text_green=70;
|
|
||||||
g_settings.menu_Head_Text_red=95;
|
|
||||||
|
|
||||||
g_settings.menu_Head_alpha=0;
|
|
||||||
g_settings.menu_Head_blue=0;
|
|
||||||
g_settings.menu_Head_green=10;
|
|
||||||
g_settings.menu_Head_red=40;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************************
|
|
||||||
* *
|
|
||||||
* CNeutrinoApp - setup Color Sheme (darkblue) *
|
|
||||||
* *
|
|
||||||
**************************************************************************************/
|
|
||||||
void CNeutrinoApp::setupColors_dblue()
|
|
||||||
{
|
|
||||||
g_settings.menu_Head_alpha = 0;
|
|
||||||
g_settings.menu_Head_red = 0;
|
|
||||||
g_settings.menu_Head_green = 0;
|
|
||||||
g_settings.menu_Head_blue = 50;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha = 0;
|
|
||||||
g_settings.menu_Head_Text_red = 95;
|
|
||||||
g_settings.menu_Head_Text_green = 100;
|
|
||||||
g_settings.menu_Head_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha = 20;
|
|
||||||
g_settings.menu_Content_red = 0;
|
|
||||||
g_settings.menu_Content_green = 0;
|
|
||||||
g_settings.menu_Content_blue = 20;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Text_red = 100;
|
|
||||||
g_settings.menu_Content_Text_green = 100;
|
|
||||||
g_settings.menu_Content_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha = 15;
|
|
||||||
g_settings.menu_Content_Selected_red = 0;
|
|
||||||
g_settings.menu_Content_Selected_green = 65;
|
|
||||||
g_settings.menu_Content_Selected_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_red = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_green = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha = 20;
|
|
||||||
g_settings.menu_Content_inactive_red = 0;
|
|
||||||
g_settings.menu_Content_inactive_green = 0;
|
|
||||||
g_settings.menu_Content_inactive_blue = 15;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_inactive_Text_red = 55;
|
|
||||||
g_settings.menu_Content_inactive_Text_green = 70;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue = 85;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha = 20;
|
|
||||||
g_settings.infobar_red = 0;
|
|
||||||
g_settings.infobar_green = 0;
|
|
||||||
g_settings.infobar_blue = 20;
|
|
||||||
|
|
||||||
g_settings.infobar_Text_alpha = 0;
|
|
||||||
g_settings.infobar_Text_red = 100;
|
|
||||||
g_settings.infobar_Text_green = 100;
|
|
||||||
g_settings.infobar_Text_blue = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************************
|
|
||||||
* *
|
|
||||||
* CNeutrinoApp - setup Color Sheme (dvb2000) *
|
|
||||||
* *
|
|
||||||
**************************************************************************************/
|
|
||||||
void CNeutrinoApp::setupColors_dvb2k()
|
|
||||||
{
|
|
||||||
g_settings.menu_Head_alpha = 0;
|
|
||||||
g_settings.menu_Head_red = 25;
|
|
||||||
g_settings.menu_Head_green = 25;
|
|
||||||
g_settings.menu_Head_blue = 25;
|
|
||||||
|
|
||||||
g_settings.menu_Head_Text_alpha = 0;
|
|
||||||
g_settings.menu_Head_Text_red = 100;
|
|
||||||
g_settings.menu_Head_Text_green = 100;
|
|
||||||
g_settings.menu_Head_Text_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_alpha = 0;
|
|
||||||
g_settings.menu_Content_red = 0;
|
|
||||||
g_settings.menu_Content_green = 20;
|
|
||||||
g_settings.menu_Content_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Text_red = 100;
|
|
||||||
g_settings.menu_Content_Text_green = 100;
|
|
||||||
g_settings.menu_Content_Text_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_alpha = 0;
|
|
||||||
g_settings.menu_Content_Selected_red = 100;
|
|
||||||
g_settings.menu_Content_Selected_green = 100;
|
|
||||||
g_settings.menu_Content_Selected_blue = 100;
|
|
||||||
|
|
||||||
g_settings.menu_Content_Selected_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_red = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_green = 0;
|
|
||||||
g_settings.menu_Content_Selected_Text_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_alpha = 20;
|
|
||||||
g_settings.menu_Content_inactive_red = 0;
|
|
||||||
g_settings.menu_Content_inactive_green = 25;
|
|
||||||
g_settings.menu_Content_inactive_blue = 0;
|
|
||||||
|
|
||||||
g_settings.menu_Content_inactive_Text_alpha = 0;
|
|
||||||
g_settings.menu_Content_inactive_Text_red = 100;
|
|
||||||
g_settings.menu_Content_inactive_Text_green = 100;
|
|
||||||
g_settings.menu_Content_inactive_Text_blue = 0;
|
|
||||||
|
|
||||||
g_settings.infobar_alpha = 5;
|
|
||||||
g_settings.infobar_red = 0;
|
|
||||||
g_settings.infobar_green = 19;
|
|
||||||
g_settings.infobar_blue = 0;
|
|
||||||
|
|
||||||
g_settings.infobar_Text_alpha = 0;
|
|
||||||
g_settings.infobar_Text_red = 100;
|
|
||||||
g_settings.infobar_Text_green = 100;
|
|
||||||
g_settings.infobar_Text_blue = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define FONT_STYLE_REGULAR 0
|
#define FONT_STYLE_REGULAR 0
|
||||||
#define FONT_STYLE_BOLD 1
|
#define FONT_STYLE_BOLD 1
|
||||||
#define FONT_STYLE_ITALIC 2
|
#define FONT_STYLE_ITALIC 2
|
||||||
@@ -750,7 +416,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
checkParentallocked.close();
|
checkParentallocked.close();
|
||||||
}
|
}
|
||||||
// video
|
// video
|
||||||
prev_video_mode = g_settings.video_Mode = configfile.getInt32("video_Mode", VIDEO_STD_1080I50); // VIDEO_STD_720P50
|
g_settings.video_Mode = configfile.getInt32("video_Mode", VIDEO_STD_1080I50); // VIDEO_STD_720P50
|
||||||
g_settings.analog_mode1 = configfile.getInt32("analog_mode1", (int)ANALOG_SD_RGB_SCART); // default RGB
|
g_settings.analog_mode1 = configfile.getInt32("analog_mode1", (int)ANALOG_SD_RGB_SCART); // default RGB
|
||||||
g_settings.analog_mode2 = configfile.getInt32("analog_mode2", (int)ANALOG_SD_YPRPB_CINCH); // default YPBPR
|
g_settings.analog_mode2 = configfile.getInt32("analog_mode2", (int)ANALOG_SD_YPRPB_CINCH); // default YPBPR
|
||||||
g_settings.hdmi_cec_mode = configfile.getInt32("hdmi_cec_mode", 0); // default off
|
g_settings.hdmi_cec_mode = configfile.getInt32("hdmi_cec_mode", 0); // default off
|
||||||
@@ -1104,7 +770,7 @@ printf("***************************** rec dir %s timeshift dir %s\n", g_settings
|
|||||||
//
|
//
|
||||||
strcpy( g_settings.font_file, configfile.getString( "font_file", FONTDIR"/neutrino.ttf" ).c_str() );
|
strcpy( g_settings.font_file, configfile.getString( "font_file", FONTDIR"/neutrino.ttf" ).c_str() );
|
||||||
strcpy( g_settings.ttx_font_file, configfile.getString( "ttx_font_file", FONTDIR"/DejaVuLGCSansMono-Bold.ttf" ).c_str() );
|
strcpy( g_settings.ttx_font_file, configfile.getString( "ttx_font_file", FONTDIR"/DejaVuLGCSansMono-Bold.ttf" ).c_str() );
|
||||||
ttx_font_file = g_settings.ttx_font_file;
|
ttx_font_file = g_settings.ttx_font_file;
|
||||||
strcpy( g_settings.update_dir, configfile.getString( "update_dir", "/tmp" ).c_str() );
|
strcpy( g_settings.update_dir, configfile.getString( "update_dir", "/tmp" ).c_str() );
|
||||||
//BouquetHandling
|
//BouquetHandling
|
||||||
g_settings.bouquetlist_mode = configfile.getInt32( "bouquetlist_mode", 0 );
|
g_settings.bouquetlist_mode = configfile.getInt32( "bouquetlist_mode", 0 );
|
||||||
@@ -2379,8 +2045,7 @@ CMenuWidget * gmoviePlayer;
|
|||||||
#if 0
|
#if 0
|
||||||
CPipSetup * g_Pip0;
|
CPipSetup * g_Pip0;
|
||||||
#endif
|
#endif
|
||||||
#include "videosettings.h"
|
|
||||||
extern CVideoSettings * videoSettings;
|
|
||||||
//extern CMenuOptionStringChooser* tzSelect;
|
//extern CMenuOptionStringChooser* tzSelect;
|
||||||
|
|
||||||
static void CSSendMessage(uint32_t msg, uint32_t data)
|
static void CSSendMessage(uint32_t msg, uint32_t data)
|
||||||
@@ -2439,10 +2104,8 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
audioDecoder->SetSpdifDD(g_settings.spdif_dd ? true : false);
|
audioDecoder->SetSpdifDD(g_settings.spdif_dd ? true : false);
|
||||||
audioDecoder->EnableAnalogOut(g_settings.analog_out ? true : false);
|
audioDecoder->EnableAnalogOut(g_settings.analog_out ? true : false);
|
||||||
|
|
||||||
videoDecoder->SetDBDR(g_settings.video_dbdr);
|
//init video and CEC Settings
|
||||||
videoDecoder->SetCECAutoStandby(g_settings.hdmi_cec_standby == 1);
|
g_videoSettings->setVideoCECSettings();
|
||||||
videoDecoder->SetCECAutoView(g_settings.hdmi_cec_view_on == 1);
|
|
||||||
videoDecoder->SetCECMode((VIDEO_HDMI_CEC_MODE)g_settings.hdmi_cec_mode);
|
|
||||||
|
|
||||||
// trigger a change
|
// trigger a change
|
||||||
audioSetupNotifier->changeNotify(LOCALE_AUDIOMENU_AVSYNC, NULL);
|
audioSetupNotifier->changeNotify(LOCALE_AUDIOMENU_AVSYNC, NULL);
|
||||||
@@ -2497,6 +2160,7 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
g_EpgData = new CEpgData;
|
g_EpgData = new CEpgData;
|
||||||
g_InfoViewer = new CInfoViewer;
|
g_InfoViewer = new CInfoViewer;
|
||||||
g_EventList = new EventList;
|
g_EventList = new EventList;
|
||||||
|
g_videoSettings = new CVideoSettings;
|
||||||
|
|
||||||
int dx = 0;
|
int dx = 0;
|
||||||
int dy = 0;
|
int dy = 0;
|
||||||
@@ -2536,16 +2200,10 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
//Main settings
|
//Main settings
|
||||||
CMenuWidget mainMenu (LOCALE_MAINMENU_HEAD , NEUTRINO_ICON_MAINMENU/*, 22*/);
|
CMenuWidget mainMenu (LOCALE_MAINMENU_HEAD , NEUTRINO_ICON_MAINMENU/*, 22*/);
|
||||||
CMenuWidget mainSettings (LOCALE_MAINSETTINGS_HEAD , NEUTRINO_ICON_SETTINGS);
|
CMenuWidget mainSettings (LOCALE_MAINSETTINGS_HEAD , NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget languageSettings (LOCALE_LANGUAGESETUP_HEAD , NEUTRINO_ICON_LANGUAGE);
|
|
||||||
CMenuWidget audioSettings (LOCALE_AUDIOMENU_HEAD , NEUTRINO_ICON_AUDIO);
|
CMenuWidget audioSettings (LOCALE_AUDIOMENU_HEAD , NEUTRINO_ICON_AUDIO);
|
||||||
CMenuWidget parentallockSettings(LOCALE_PARENTALLOCK_PARENTALLOCK , NEUTRINO_ICON_LOCK);
|
|
||||||
CMenuWidget networkSettings (LOCALE_NETWORKMENU_HEAD , NEUTRINO_ICON_NETWORK);
|
CMenuWidget networkSettings (LOCALE_NETWORKMENU_HEAD , NEUTRINO_ICON_NETWORK);
|
||||||
CMenuWidget recordingSettings (LOCALE_RECORDINGMENU_HEAD , NEUTRINO_ICON_RECORDING);
|
CMenuWidget recordingSettings (LOCALE_RECORDINGMENU_HEAD , NEUTRINO_ICON_RECORDING);
|
||||||
CMenuWidget streamingSettings (LOCALE_STREAMINGMENU_HEAD , NEUTRINO_ICON_STREAMING);
|
CMenuWidget streamingSettings (LOCALE_STREAMINGMENU_HEAD , NEUTRINO_ICON_STREAMING);
|
||||||
CMenuWidget colorSettings (LOCALE_MAINSETTINGS_OSD , NEUTRINO_ICON_COLORS);
|
|
||||||
CMenuWidget fontSettings (LOCALE_FONTMENU_HEAD , NEUTRINO_ICON_KEYBINDING);
|
|
||||||
CMenuWidget lcdSettings (LOCALE_LCDMENU_HEAD , NEUTRINO_ICON_LCD);
|
|
||||||
CMenuWidget keySettings (LOCALE_MAINSETTINGS_KEYBINDING , NEUTRINO_ICON_KEYBINDING);
|
|
||||||
CMenuWidget miscSettings (LOCALE_MISCSETTINGS_HEAD , NEUTRINO_ICON_SETTINGS);
|
CMenuWidget miscSettings (LOCALE_MISCSETTINGS_HEAD , NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget audioplPicSettings (LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL, NEUTRINO_ICON_SETTINGS);
|
CMenuWidget audioplPicSettings (LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL, NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuWidget _scanSettings (LOCALE_SERVICEMENU_SCANTS , NEUTRINO_ICON_SETTINGS);
|
CMenuWidget _scanSettings (LOCALE_SERVICEMENU_SCANTS , NEUTRINO_ICON_SETTINGS);
|
||||||
@@ -2553,16 +2211,13 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
CMenuWidget moviePlayer (LOCALE_MOVIEPLAYER_HEAD , NEUTRINO_ICON_STREAMING);
|
CMenuWidget moviePlayer (LOCALE_MOVIEPLAYER_HEAD , NEUTRINO_ICON_STREAMING);
|
||||||
gmoviePlayer = &moviePlayer;
|
gmoviePlayer = &moviePlayer;
|
||||||
|
|
||||||
InitMainMenu(mainMenu, mainSettings, audioSettings, parentallockSettings, networkSettings, recordingSettings,
|
InitMainMenu(mainMenu, mainSettings, audioSettings, networkSettings, recordingSettings, miscSettings,
|
||||||
colorSettings, lcdSettings, keySettings, languageSettings, miscSettings,
|
service, audioplPicSettings, streamingSettings, moviePlayer);
|
||||||
service, fontSettings, audioplPicSettings, streamingSettings, moviePlayer);
|
|
||||||
|
|
||||||
InitServiceSettings(service, _scanSettings);
|
InitServiceSettings(service, _scanSettings);
|
||||||
InitLanguageSettings(languageSettings);
|
|
||||||
InitAudioplPicSettings(audioplPicSettings);
|
InitAudioplPicSettings(audioplPicSettings);
|
||||||
InitMiscSettings(miscSettings);
|
InitMiscSettings(miscSettings);
|
||||||
InitAudioSettings(audioSettings, audioSetupNotifier);
|
InitAudioSettings(audioSettings, audioSetupNotifier);
|
||||||
InitParentalLockSettings(parentallockSettings);
|
|
||||||
InitScanSettings(_scanSettings);
|
InitScanSettings(_scanSettings);
|
||||||
|
|
||||||
dprintf( DEBUG_NORMAL, "registering as event client\n");
|
dprintf( DEBUG_NORMAL, "registering as event client\n");
|
||||||
@@ -2627,36 +2282,41 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
g_Timerd->registerEvent(CTimerdClient::EVT_EXEC_PLUGIN, 222, NEUTRINO_UDS_NAME);
|
g_Timerd->registerEvent(CTimerdClient::EVT_EXEC_PLUGIN, 222, NEUTRINO_UDS_NAME);
|
||||||
|
|
||||||
InitNetworkSettings(networkSettings);
|
InitNetworkSettings(networkSettings);
|
||||||
InitKeySettings(keySettings);
|
|
||||||
InitFontSettings(fontSettings);
|
|
||||||
InitColorSettings(colorSettings, fontSettings);
|
|
||||||
|
|
||||||
if (display_language_selection) {
|
if (display_language_selection)
|
||||||
|
{
|
||||||
|
COsdLangSetup languageSettings(COsdLangSetup::OSDLANG_SETUP_MODE_WIZARD);
|
||||||
hintBox->hide();
|
hintBox->hide();
|
||||||
languageSettings.setWizardMode(true);
|
|
||||||
languageSettings.exec(NULL, "");
|
|
||||||
languageSettings.setWizardMode(false);
|
|
||||||
|
|
||||||
if(ShowMsgUTF (LOCALE_WIZARD_WELCOME_HEAD, g_Locale->getText(LOCALE_WIZARD_WELCOME_TEXT), CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbrCancel) == CMessageBox::mbrYes) {
|
languageSettings.exec(NULL, "");
|
||||||
videoSettings->setWizardMode(true);
|
|
||||||
bool ret = videoSettings->exec(NULL, "");
|
if(ShowMsgUTF (LOCALE_WIZARD_WELCOME_HEAD, g_Locale->getText(LOCALE_WIZARD_WELCOME_TEXT), CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbrCancel) == CMessageBox::mbrYes)
|
||||||
videoSettings->setWizardMode(false);
|
{
|
||||||
if(ret != menu_return::RETURN_EXIT_ALL) {
|
//open video settings in wizardmode
|
||||||
colorSettings.setWizardMode(true);
|
g_videoSettings->setWizardMode(CVideoSettings::V_SETUP_MODE_WIZARD);
|
||||||
ret = colorSettings.exec(NULL, "");
|
|
||||||
colorSettings.setWizardMode(false);
|
COsdSetup osdSettings(true);
|
||||||
|
|
||||||
|
bool ret = g_videoSettings->exec(NULL, "");
|
||||||
|
g_videoSettings->setWizardMode(CVideoSettings::V_SETUP_MODE_WIZARD_NO);
|
||||||
|
|
||||||
|
if(ret != menu_return::RETURN_EXIT_ALL)
|
||||||
|
{
|
||||||
|
ret = osdSettings.exec(NULL, "");
|
||||||
}
|
}
|
||||||
if(ret != menu_return::RETURN_EXIT_ALL) {
|
if(ret != menu_return::RETURN_EXIT_ALL)
|
||||||
|
{
|
||||||
networkSettings.setWizardMode(true);
|
networkSettings.setWizardMode(true);
|
||||||
ret = networkSettings.exec(NULL, "");
|
ret = networkSettings.exec(NULL, "");
|
||||||
networkSettings.setWizardMode(false);
|
networkSettings.setWizardMode(false);
|
||||||
}
|
}
|
||||||
if(ret != menu_return::RETURN_EXIT_ALL) {
|
if(ret != menu_return::RETURN_EXIT_ALL)
|
||||||
|
{
|
||||||
_scanSettings.setWizardMode(true);
|
_scanSettings.setWizardMode(true);
|
||||||
_scanSettings.exec(NULL, "");
|
_scanSettings.exec(NULL, "");
|
||||||
_scanSettings.setWizardMode(false);
|
_scanSettings.setWizardMode(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
videoDecoder->StopPicture();
|
videoDecoder->StopPicture();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2677,7 +2337,6 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
InitZapper();
|
InitZapper();
|
||||||
InitRecordingSettings(recordingSettings);
|
InitRecordingSettings(recordingSettings);
|
||||||
InitStreamingSettings(streamingSettings);
|
InitStreamingSettings(streamingSettings);
|
||||||
InitLcdSettings(lcdSettings);
|
|
||||||
|
|
||||||
AudioMute( current_muted, true);
|
AudioMute( current_muted, true);
|
||||||
|
|
||||||
@@ -3318,15 +2977,15 @@ _repeat:
|
|||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == CRCInput::RC_mode ) {
|
else if( msg == CRCInput::RC_mode ) {
|
||||||
videoSettings->nextMode();
|
g_videoSettings->nextMode();
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == CRCInput::RC_next ) {
|
else if( msg == CRCInput::RC_next ) {
|
||||||
videoSettings->next43Mode();
|
g_videoSettings->next43Mode();
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == CRCInput::RC_prev ) {
|
else if( msg == CRCInput::RC_prev ) {
|
||||||
videoSettings->SwitchFormat();
|
g_videoSettings->SwitchFormat();
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
/* ================================== MESSAGES ================================================ */
|
/* ================================== MESSAGES ================================================ */
|
||||||
@@ -3749,7 +3408,7 @@ skip_message:
|
|||||||
}
|
}
|
||||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||||
delete [] (unsigned char*) data;
|
delete [] (unsigned char*) data;
|
||||||
|
|
||||||
return messages_return::unhandled;
|
return messages_return::unhandled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4430,30 +4089,30 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
dprintf(DEBUG_INFO, "showing current network settings...\n");
|
dprintf(DEBUG_INFO, "showing current network settings...\n");
|
||||||
showCurrentNetworkSettings();
|
showCurrentNetworkSettings();
|
||||||
}
|
}
|
||||||
else if (actionKey=="theme_neutrino") {
|
// else if (actionKey=="theme_neutrino") {
|
||||||
setupColors_neutrino();
|
// setupColors_neutrino();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if (actionKey=="theme_classic") {
|
// else if (actionKey=="theme_classic") {
|
||||||
setupColors_classic();
|
// setupColors_classic();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if (actionKey=="theme_dblue") {
|
// else if (actionKey=="theme_dblue") {
|
||||||
setupColors_dblue();
|
// setupColors_dblue();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if (actionKey=="theme_dvb2k") {
|
// else if (actionKey=="theme_dvb2k") {
|
||||||
setupColors_dvb2k();
|
// setupColors_dvb2k();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if(actionKey=="theme_ru") {
|
// else if(actionKey=="theme_ru") {
|
||||||
setupColors_ru();
|
// setupColors_ru();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if(actionKey=="theme_red") {
|
// else if(actionKey=="theme_red") {
|
||||||
setupColors_red();
|
// setupColors_red();
|
||||||
colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
// colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
// }
|
||||||
else if(actionKey=="savescansettings") {
|
else if(actionKey=="savescansettings") {
|
||||||
SaveMotorPositions();
|
SaveMotorPositions();
|
||||||
}
|
}
|
||||||
@@ -4544,12 +4203,12 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
}
|
}
|
||||||
fontsizenotifier.changeNotify(NONEXISTANT_LOCALE, NULL);
|
fontsizenotifier.changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
}
|
}
|
||||||
else if(actionKey=="osd.def") {
|
// else if(actionKey=="osd.def") {
|
||||||
for (int i = 0; i < TIMING_SETTING_COUNT; i++)
|
// for (int i = 0; i < TIMING_SETTING_COUNT; i++)
|
||||||
g_settings.timing[i] = default_timing[i];
|
// g_settings.timing[i] = default_timing[i];
|
||||||
|
//
|
||||||
SetupTiming();
|
// SetupTiming();
|
||||||
}
|
// }
|
||||||
else if(actionKey == "audioplayerdir") {
|
else if(actionKey == "audioplayerdir") {
|
||||||
parent->hide();
|
parent->hide();
|
||||||
CFileBrowser b;
|
CFileBrowser b;
|
||||||
@@ -4669,49 +4328,49 @@ printf("New timeshift dir: %s\n", timeshiftDir);
|
|||||||
|
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
else if(actionKey == "select_font") {
|
// else if(actionKey == "select_font") {
|
||||||
parent->hide();
|
// parent->hide();
|
||||||
CFileBrowser fileBrowser;
|
// CFileBrowser fileBrowser;
|
||||||
CFileFilter fileFilter;
|
// CFileFilter fileFilter;
|
||||||
fileFilter.addFilter("ttf");
|
// fileFilter.addFilter("ttf");
|
||||||
fileBrowser.Filter = &fileFilter;
|
// fileBrowser.Filter = &fileFilter;
|
||||||
if (fileBrowser.exec(FONTDIR) == true) {
|
// if (fileBrowser.exec(FONTDIR) == true) {
|
||||||
strcpy(g_settings.font_file, fileBrowser.getSelectedFile()->Name.c_str());
|
// strcpy(g_settings.font_file, fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
printf("[neutrino] new font file %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
// printf("[neutrino] new font file %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
SetupFonts();
|
// SetupFonts();
|
||||||
}
|
// }
|
||||||
return menu_return::RETURN_REPAINT;
|
// return menu_return::RETURN_REPAINT;
|
||||||
}
|
// }
|
||||||
else if(actionKey == "ttx_font") {
|
// else if(actionKey == "ttx_font") {
|
||||||
parent->hide();
|
// parent->hide();
|
||||||
CFileBrowser fileBrowser;
|
// CFileBrowser fileBrowser;
|
||||||
CFileFilter fileFilter;
|
// CFileFilter fileFilter;
|
||||||
fileFilter.addFilter("ttf");
|
// fileFilter.addFilter("ttf");
|
||||||
fileBrowser.Filter = &fileFilter;
|
// fileBrowser.Filter = &fileFilter;
|
||||||
if (fileBrowser.exec(FONTDIR) == true) {
|
// if (fileBrowser.exec(FONTDIR) == true) {
|
||||||
strcpy(g_settings.ttx_font_file, fileBrowser.getSelectedFile()->Name.c_str());
|
// strcpy(g_settings.ttx_font_file, fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
ttx_font_file = fileBrowser.getSelectedFile()->Name;
|
// ttx_font_file = fileBrowser.getSelectedFile()->Name;
|
||||||
printf("[neutrino] ttx font file %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
// printf("[neutrino] ttx font file %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
SetupFonts();
|
// SetupFonts();
|
||||||
}
|
// }
|
||||||
return menu_return::RETURN_REPAINT;
|
// return menu_return::RETURN_REPAINT;
|
||||||
}
|
// }
|
||||||
else if (actionKey == "font_scaling") {
|
// else if (actionKey == "font_scaling") {
|
||||||
int xre = g_settings.screen_xres;
|
// int xre = g_settings.screen_xres;
|
||||||
int yre = g_settings.screen_yres;
|
// int yre = g_settings.screen_yres;
|
||||||
parent->hide();
|
// parent->hide();
|
||||||
CMenuWidget fontscale(LOCALE_FONTMENU_SCALING, NEUTRINO_ICON_COLORS);
|
// CMenuWidget fontscale(LOCALE_FONTMENU_SCALING, NEUTRINO_ICON_COLORS);
|
||||||
fontscale.addItem(new CMenuOptionNumberChooser(LOCALE_FONTMENU_SCALING_X, &xre, true, 50, 200));
|
// fontscale.addItem(new CMenuOptionNumberChooser(LOCALE_FONTMENU_SCALING_X, &xre, true, 50, 200));
|
||||||
fontscale.addItem(new CMenuOptionNumberChooser(LOCALE_FONTMENU_SCALING_Y, &yre, true, 50, 200));
|
// fontscale.addItem(new CMenuOptionNumberChooser(LOCALE_FONTMENU_SCALING_Y, &yre, true, 50, 200));
|
||||||
fontscale.exec(NULL, "");
|
// fontscale.exec(NULL, "");
|
||||||
if (xre != g_settings.screen_xres || yre != g_settings.screen_yres) {
|
// if (xre != g_settings.screen_xres || yre != g_settings.screen_yres) {
|
||||||
printf("[neutrino] new font scale settings x: %d%% y: %d%%\n", xre, yre);
|
// printf("[neutrino] new font scale settings x: %d%% y: %d%%\n", xre, yre);
|
||||||
g_settings.screen_xres = xre;
|
// g_settings.screen_xres = xre;
|
||||||
g_settings.screen_yres = yre;
|
// g_settings.screen_yres = yre;
|
||||||
SetupFonts();
|
// SetupFonts();
|
||||||
}
|
// }
|
||||||
return menu_return::RETURN_REPAINT;
|
// return menu_return::RETURN_REPAINT;
|
||||||
}
|
// }
|
||||||
else if(actionKey == "movieplugin") {
|
else if(actionKey == "movieplugin") {
|
||||||
parent->hide();
|
parent->hide();
|
||||||
CMenuWidget MoviePluginSelector(LOCALE_MOVIEPLAYER_DEFPLUGIN, NEUTRINO_ICON_FEATURES);
|
CMenuWidget MoviePluginSelector(LOCALE_MOVIEPLAYER_DEFPLUGIN, NEUTRINO_ICON_FEATURES);
|
||||||
@@ -4810,33 +4469,33 @@ printf("New timeshift dir: %s\n", timeshiftDir);
|
|||||||
}
|
}
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
else if(actionKey == "loadkeys") {
|
// else if(actionKey == "loadkeys") {
|
||||||
parent->hide();
|
// parent->hide();
|
||||||
CFileBrowser fileBrowser;
|
// CFileBrowser fileBrowser;
|
||||||
CFileFilter fileFilter;
|
// CFileFilter fileFilter;
|
||||||
fileFilter.addFilter("conf");
|
// fileFilter.addFilter("conf");
|
||||||
fileBrowser.Filter = &fileFilter;
|
// fileBrowser.Filter = &fileFilter;
|
||||||
if (fileBrowser.exec("/var/tuxbox/config") == true) {
|
// if (fileBrowser.exec("/var/tuxbox/config") == true) {
|
||||||
loadKeys(fileBrowser.getSelectedFile()->Name.c_str());
|
// loadKeys(fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
printf("[neutrino] new keys: %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
// printf("[neutrino] new keys: %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
||||||
}
|
// }
|
||||||
return menu_return::RETURN_REPAINT;
|
// return menu_return::RETURN_REPAINT;
|
||||||
}
|
// }
|
||||||
else if(actionKey == "savekeys") {
|
// else if(actionKey == "savekeys") {
|
||||||
parent->hide();
|
// parent->hide();
|
||||||
CFileBrowser fileBrowser;
|
// CFileBrowser fileBrowser;
|
||||||
fileBrowser.Dir_Mode = true;
|
// fileBrowser.Dir_Mode = true;
|
||||||
if (fileBrowser.exec("/var/tuxbox") == true) {
|
// if (fileBrowser.exec("/var/tuxbox") == true) {
|
||||||
char fname[256] = "keys.conf", sname[256];
|
// char fname[256] = "keys.conf", sname[256];
|
||||||
CStringInputSMS * sms = new CStringInputSMS(LOCALE_EXTRA_SAVEKEYS, fname, 30, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789. ");
|
// CStringInputSMS * sms = new CStringInputSMS(LOCALE_EXTRA_SAVEKEYS, fname, 30, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789. ");
|
||||||
sms->exec(NULL, "");
|
// sms->exec(NULL, "");
|
||||||
sprintf(sname, "%s/%s", fileBrowser.getSelectedFile()->Name.c_str(), fname);
|
// sprintf(sname, "%s/%s", fileBrowser.getSelectedFile()->Name.c_str(), fname);
|
||||||
printf("[neutrino] save keys: %s\n", sname);
|
// printf("[neutrino] save keys: %s\n", sname);
|
||||||
saveKeys(sname);
|
// saveKeys(sname);
|
||||||
delete sms;
|
// delete sms;
|
||||||
}
|
// }
|
||||||
return menu_return::RETURN_REPAINT;
|
// return menu_return::RETURN_REPAINT;
|
||||||
}
|
// }
|
||||||
else if(actionKey == "autolink") {
|
else if(actionKey == "autolink") {
|
||||||
if(autoshift) {
|
if(autoshift) {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
|
@@ -137,7 +137,6 @@ private:
|
|||||||
bool skipShutdownTimer;
|
bool skipShutdownTimer;
|
||||||
bool pbBlinkChange;
|
bool pbBlinkChange;
|
||||||
CColorSetupNotifier *colorSetupNotifier;
|
CColorSetupNotifier *colorSetupNotifier;
|
||||||
CKeySetupNotifier *keySetupNotifier;
|
|
||||||
CNVODChangeExec *NVODChanger;
|
CNVODChangeExec *NVODChanger;
|
||||||
CStreamFeaturesChangeExec *StreamFeaturesChanger;
|
CStreamFeaturesChangeExec *StreamFeaturesChanger;
|
||||||
CMoviePluginChangeExec *MoviePluginChanger;
|
CMoviePluginChangeExec *MoviePluginChanger;
|
||||||
@@ -153,13 +152,6 @@ private:
|
|||||||
bool getNVODMenu(CMenuWidget* menu);
|
bool getNVODMenu(CMenuWidget* menu);
|
||||||
|
|
||||||
void firstChannel();
|
void firstChannel();
|
||||||
void setupColors_red();
|
|
||||||
void setupColors_ru();
|
|
||||||
void setupColors_dvb2000();
|
|
||||||
void setupColors_classic();
|
|
||||||
void setupColors_neutrino();
|
|
||||||
void setupColors_dblue();
|
|
||||||
void setupColors_dvb2k();
|
|
||||||
void setupNetwork( bool force= false );
|
void setupNetwork( bool force= false );
|
||||||
void setupNFS();
|
void setupNFS();
|
||||||
void setupRecordingDevice(void);
|
void setupRecordingDevice(void);
|
||||||
@@ -177,51 +169,37 @@ private:
|
|||||||
void ExitRun(const bool write_si = true, int retcode = 0);
|
void ExitRun(const bool write_si = true, int retcode = 0);
|
||||||
void RealRun(CMenuWidget &mainSettings);
|
void RealRun(CMenuWidget &mainSettings);
|
||||||
void InitZapper();
|
void InitZapper();
|
||||||
void InitKeySettings(CMenuWidget &);
|
|
||||||
void InitServiceSettings(CMenuWidget &, CMenuWidget &);
|
void InitServiceSettings(CMenuWidget &, CMenuWidget &);
|
||||||
void InitColorSettingsMenuColors(CMenuWidget &);
|
|
||||||
void InitAudioSettings(CMenuWidget &audioSettings, CAudioSetupNotifier* audioSetupNotifier);
|
void InitAudioSettings(CMenuWidget &audioSettings, CAudioSetupNotifier* audioSetupNotifier);
|
||||||
void InitColorSettings(CMenuWidget &, CMenuWidget &);
|
|
||||||
void InitLanguageSettings(CMenuWidget &);
|
|
||||||
void InitColorThemesSettings(CMenuWidget &);
|
|
||||||
void InitColorSettingsStatusBarColors(CMenuWidget &colorSettings_menuColors);
|
|
||||||
void InitColorSettingsTiming(CMenuWidget &colorSettings_timing);
|
|
||||||
void InitLcdSettings(CMenuWidget &lcdSettings);
|
|
||||||
void InitNetworkSettings(CMenuWidget &networkSettings);
|
void InitNetworkSettings(CMenuWidget &networkSettings);
|
||||||
void AddFontSettingItem(CMenuWidget &fontSettings, const SNeutrinoSettings::FONT_TYPES number_of_fontsize_entry);
|
|
||||||
void InitFontSettings(CMenuWidget &fontSettings);
|
|
||||||
void InitRecordingSettings(CMenuWidget &recordingSettings);
|
void InitRecordingSettings(CMenuWidget &recordingSettings);
|
||||||
void InitStreamingSettings(CMenuWidget &streamingSettings);
|
void InitStreamingSettings(CMenuWidget &streamingSettings);
|
||||||
void InitScreenSettings(CMenuWidget &);
|
void InitScreenSettings(CMenuWidget &);
|
||||||
void InitAudioplPicSettings(CMenuWidget &);
|
void InitAudioplPicSettings(CMenuWidget &);
|
||||||
void InitMiscSettings(CMenuWidget &);
|
void InitMiscSettings(CMenuWidget &);
|
||||||
void InitScanSettings(CMenuWidget &);
|
void InitScanSettings(CMenuWidget &);
|
||||||
void InitParentalLockSettings(CMenuWidget &);
|
|
||||||
void InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &audioSettings,
|
void InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings, CMenuWidget &audioSettings,
|
||||||
CMenuWidget &parentallockSettings, CMenuWidget &networkSettings1, CMenuWidget &networkSettings2,
|
CMenuWidget &networkSettings1, CMenuWidget &networkSettings2,
|
||||||
CMenuWidget &colorSettings, CMenuWidget &lcdSettings, CMenuWidget &keySettings,
|
CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings, CMenuWidget &moviePlayer);
|
||||||
CMenuWidget &languageSettings, CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &fontSettings,
|
|
||||||
CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings, CMenuWidget &moviePlayer);
|
|
||||||
void addMenueIntroItems(CMenuWidget &item);
|
|
||||||
void SetupFrameBuffer();
|
void SetupFrameBuffer();
|
||||||
void SelectAPID();
|
void SelectAPID();
|
||||||
void SelectNVOD();
|
void SelectNVOD();
|
||||||
void CmdParser(int argc, char **argv);
|
void CmdParser(int argc, char **argv);
|
||||||
void ShowStreamFeatures();
|
|
||||||
void InitSCSettings(CMenuWidget &);
|
void InitSCSettings(CMenuWidget &);
|
||||||
bool doGuiRecord(char * preselectedDir, bool addTimer = false);
|
bool doGuiRecord(char * preselectedDir, bool addTimer = false);
|
||||||
void saveColors(const char * fname);
|
void saveColors(const char * fname);
|
||||||
void loadKeys(const char * fname);
|
|
||||||
void saveKeys(const char * fname);
|
|
||||||
CNeutrinoApp();
|
CNeutrinoApp();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void saveSetup(const char * fname);
|
void saveSetup(const char * fname);
|
||||||
int loadSetup(const char * fname);
|
int loadSetup(const char * fname);
|
||||||
void loadColors(const char * fname);
|
void loadColors(const char * fname);
|
||||||
|
void loadKeys(const char * fname);
|
||||||
|
void saveKeys(const char * fname);
|
||||||
void SetupTiming();
|
void SetupTiming();
|
||||||
void SetupFonts();
|
void SetupFonts();
|
||||||
|
|
||||||
void setVolume(const neutrino_msg_t key, const bool bDoPaint = true, bool nowait = false);
|
void setVolume(const neutrino_msg_t key, const bool bDoPaint = true, bool nowait = false);
|
||||||
~CNeutrinoApp();
|
~CNeutrinoApp();
|
||||||
CScanSettings& getScanSettings() {
|
CScanSettings& getScanSettings() {
|
||||||
@@ -267,5 +245,6 @@ public:
|
|||||||
void StartSubtitles();
|
void StartSubtitles();
|
||||||
void SelectSubtitles();
|
void SelectSubtitles();
|
||||||
void showInfo(void);
|
void showInfo(void);
|
||||||
|
CConfigFile* getConfigFile() {return &configfile;};
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,20 +0,0 @@
|
|||||||
#ifndef _VIDEO_SETTINGS_
|
|
||||||
#define _VIDEO_SETTINGS_
|
|
||||||
|
|
||||||
class CVideoSettings : public CMenuWidget, CChangeObserver
|
|
||||||
{
|
|
||||||
CMenuForwarder * SyncControlerForwarder;
|
|
||||||
CMenuOptionChooser * cec1, *cec2;
|
|
||||||
CMenuOptionChooser * VcrVideoOutSignalOptionChooser;
|
|
||||||
/*CRGBCSyncControler RGBCSyncControler;*/
|
|
||||||
int vcr_video_out_signal;
|
|
||||||
|
|
||||||
public:
|
|
||||||
CVideoSettings();
|
|
||||||
virtual bool changeNotify(const neutrino_locale_t OptionName, void *);
|
|
||||||
virtual void paint();
|
|
||||||
void nextMode(void);
|
|
||||||
void next43Mode(void);
|
|
||||||
void SwitchFormat(void);
|
|
||||||
};
|
|
||||||
#endif
|
|
Reference in New Issue
Block a user