mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
move miscsettings to sub menu
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@180 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: bf4f606651
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-01-18 (Mon, 18 Jan 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -85,7 +85,7 @@ typedef struct font_sizes_groups
|
|||||||
|
|
||||||
class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
RECORDING_OFF = 0,
|
RECORDING_OFF = 0,
|
||||||
@@ -94,7 +94,7 @@ class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
|||||||
RECORDING_FILE = 3
|
RECORDING_FILE = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CFrameBuffer * frameBuffer;
|
CFrameBuffer * frameBuffer;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@@ -201,6 +201,7 @@ class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
|||||||
CMenuWidget &colorSettings, CMenuWidget &lcdSettings, CMenuWidget &keySettings,
|
CMenuWidget &colorSettings, CMenuWidget &lcdSettings, CMenuWidget &keySettings,
|
||||||
CMenuWidget &languageSettings, CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &fontSettings,
|
CMenuWidget &languageSettings, CMenuWidget &miscSettings, CMenuWidget &service, CMenuWidget &fontSettings,
|
||||||
CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings, CMenuWidget &moviePlayer);
|
CMenuWidget &audioplPicSettings, CMenuWidget &streamingSettings, CMenuWidget &moviePlayer);
|
||||||
|
void addMenueIntroItems(CMenuWidget &item);
|
||||||
void SetupFrameBuffer();
|
void SetupFrameBuffer();
|
||||||
void SelectAPID();
|
void SelectAPID();
|
||||||
void SelectNVOD();
|
void SelectNVOD();
|
||||||
@@ -213,7 +214,7 @@ class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
|||||||
void saveKeys(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);
|
||||||
@@ -222,7 +223,9 @@ class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
|||||||
|
|
||||||
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(){ return scanSettings;};
|
CScanSettings& getScanSettings() {
|
||||||
|
return scanSettings;
|
||||||
|
};
|
||||||
|
|
||||||
CChannelList *TVchannelList;
|
CChannelList *TVchannelList;
|
||||||
CChannelList *RADIOchannelList;
|
CChannelList *RADIOchannelList;
|
||||||
@@ -242,13 +245,21 @@ class CNeutrinoApp : public CMenuTarget, CChangeObserver
|
|||||||
|
|
||||||
int handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data);
|
int handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data);
|
||||||
|
|
||||||
int getMode() { return mode; }
|
int getMode() {
|
||||||
int getLastMode() { return lastMode; }
|
return mode;
|
||||||
bool isMuted() { return current_muted; }
|
}
|
||||||
|
int getLastMode() {
|
||||||
|
return lastMode;
|
||||||
|
}
|
||||||
|
bool isMuted() {
|
||||||
|
return current_muted;
|
||||||
|
}
|
||||||
int recordingstatus;
|
int recordingstatus;
|
||||||
int recording_id;
|
int recording_id;
|
||||||
void SendSectionsdConfig(void);
|
void SendSectionsdConfig(void);
|
||||||
int GetChannelMode(void) { return g_settings.channel_mode; };
|
int GetChannelMode(void) {
|
||||||
|
return g_settings.channel_mode;
|
||||||
|
};
|
||||||
void SetChannelMode(int mode);
|
void SetChannelMode(int mode);
|
||||||
void quickZap(int msg);
|
void quickZap(int msg);
|
||||||
};
|
};
|
||||||
|
@@ -286,7 +286,7 @@ CVideoSettings::CVideoSettings() : CMenuWidget(LOCALE_VIDEOMENU_HEAD, "video.raw
|
|||||||
addItem(new CMenuOptionChooser(LOCALE_VIDEOMENU_DBDR, &g_settings.video_dbdr, VIDEOMENU_DBDR_OPTIONS, VIDEOMENU_DBDR_OPTION_COUNT, true, this));
|
addItem(new CMenuOptionChooser(LOCALE_VIDEOMENU_DBDR, &g_settings.video_dbdr, VIDEOMENU_DBDR_OPTIONS, VIDEOMENU_DBDR_OPTION_COUNT, true, this));
|
||||||
|
|
||||||
CMenuWidget* menu = new CMenuWidget(LOCALE_VIDEOMENU_ENABLED_MODES, NEUTRINO_ICON_SETTINGS);
|
CMenuWidget* menu = new CMenuWidget(LOCALE_VIDEOMENU_ENABLED_MODES, NEUTRINO_ICON_SETTINGS);
|
||||||
for(int i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++)
|
for (int i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++)
|
||||||
menu->addItem(new CMenuOptionChooser(VIDEOMENU_VIDEOMODE_OPTIONS[i].valname, &g_settings.enabled_video_modes[i], OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
menu->addItem(new CMenuOptionChooser(VIDEOMENU_VIDEOMODE_OPTIONS[i].valname, &g_settings.enabled_video_modes[i], OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
|
||||||
addItem(new CMenuForwarder(LOCALE_VIDEOMENU_ENABLED_MODES, true, NULL, menu));
|
addItem(new CMenuForwarder(LOCALE_VIDEOMENU_ENABLED_MODES, true, NULL, menu));
|
||||||
@@ -311,22 +311,22 @@ void CVideoSettings::nextMode(void)
|
|||||||
int curmode = 0;
|
int curmode = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for(i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++) {
|
for (i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++) {
|
||||||
if(VIDEOMENU_VIDEOMODE_OPTIONS[i].key == g_settings.video_Mode) {
|
if (VIDEOMENU_VIDEOMODE_OPTIONS[i].key == g_settings.video_Mode) {
|
||||||
curmode = i;
|
curmode = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while(true) {
|
while (true) {
|
||||||
curmode++;
|
curmode++;
|
||||||
if(curmode >= VIDEOMENU_VIDEOMODE_OPTION_COUNT)
|
if (curmode >= VIDEOMENU_VIDEOMODE_OPTION_COUNT)
|
||||||
curmode = 0;
|
curmode = 0;
|
||||||
if(g_settings.enabled_video_modes[curmode])
|
if (g_settings.enabled_video_modes[curmode])
|
||||||
break;
|
break;
|
||||||
i++;
|
i++;
|
||||||
if(i >= VIDEOMENU_VIDEOMODE_OPTION_COUNT)
|
if (i >= VIDEOMENU_VIDEOMODE_OPTION_COUNT)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,14 +343,14 @@ void CVideoSettings::next43Mode(void)
|
|||||||
neutrino_locale_t text;
|
neutrino_locale_t text;
|
||||||
int curmode = 0;
|
int curmode = 0;
|
||||||
|
|
||||||
for(int i = 0; i < VIDEOMENU_43MODE_OPTION_COUNT; i++) {
|
for (int i = 0; i < VIDEOMENU_43MODE_OPTION_COUNT; i++) {
|
||||||
if(VIDEOMENU_43MODE_OPTIONS[i].key == g_settings.video_43mode) {
|
if (VIDEOMENU_43MODE_OPTIONS[i].key == g_settings.video_43mode) {
|
||||||
curmode = i;
|
curmode = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
curmode++;
|
curmode++;
|
||||||
if(curmode >= VIDEOMENU_43MODE_OPTION_COUNT)
|
if (curmode >= VIDEOMENU_43MODE_OPTION_COUNT)
|
||||||
curmode = 0;
|
curmode = 0;
|
||||||
|
|
||||||
text = VIDEOMENU_43MODE_OPTIONS[curmode].value;
|
text = VIDEOMENU_43MODE_OPTIONS[curmode].value;
|
||||||
@@ -364,14 +364,14 @@ void CVideoSettings::SwitchFormat(void)
|
|||||||
neutrino_locale_t text;
|
neutrino_locale_t text;
|
||||||
int curmode = 0;
|
int curmode = 0;
|
||||||
|
|
||||||
for(int i = 0; i < VIDEOMENU_VIDEOFORMAT_OPTION_COUNT; i++) {
|
for (int i = 0; i < VIDEOMENU_VIDEOFORMAT_OPTION_COUNT; i++) {
|
||||||
if(VIDEOMENU_VIDEOFORMAT_OPTIONS[i].key == g_settings.video_Format) {
|
if (VIDEOMENU_VIDEOFORMAT_OPTIONS[i].key == g_settings.video_Format) {
|
||||||
curmode = i;
|
curmode = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
curmode++;
|
curmode++;
|
||||||
if(curmode >= VIDEOMENU_VIDEOFORMAT_OPTION_COUNT)
|
if (curmode >= VIDEOMENU_VIDEOFORMAT_OPTION_COUNT)
|
||||||
curmode = 0;
|
curmode = 0;
|
||||||
|
|
||||||
text = VIDEOMENU_VIDEOFORMAT_OPTIONS[curmode].value;
|
text = VIDEOMENU_VIDEOFORMAT_OPTIONS[curmode].value;
|
||||||
@@ -406,7 +406,7 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void *)
|
|||||||
ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_43MODE))
|
ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_43MODE))
|
||||||
{
|
{
|
||||||
//if(g_settings.video_Format != 1 && g_settings.video_Format != 3)
|
//if(g_settings.video_Format != 1 && g_settings.video_Format != 3)
|
||||||
if(g_settings.video_Format != 1 && g_settings.video_Format != 3 && g_settings.video_Format != 2)
|
if (g_settings.video_Format != 1 && g_settings.video_Format != 3 && g_settings.video_Format != 2)
|
||||||
g_settings.video_Format = 3;
|
g_settings.video_Format = 3;
|
||||||
videoDecoder->setAspectRatio(g_settings.video_Format, g_settings.video_43mode);
|
videoDecoder->setAspectRatio(g_settings.video_Format, g_settings.video_43mode);
|
||||||
}
|
}
|
||||||
@@ -414,9 +414,9 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void *)
|
|||||||
{
|
{
|
||||||
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
||||||
//videoDecoder->SetVideoMode((analog_mode_t) g_settings.analog_mode);//FIXME
|
//videoDecoder->SetVideoMode((analog_mode_t) g_settings.analog_mode);//FIXME
|
||||||
if(prev_video_mode != g_settings.video_Mode) {
|
if (prev_video_mode != g_settings.video_Mode) {
|
||||||
frameBuffer->paintBackground();
|
frameBuffer->paintBackground();
|
||||||
if(ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_VIDEOMODE_OK), CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, "info.raw") != CMessageBox::mbrYes) {
|
if (ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_VIDEOMODE_OK), CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, "info.raw") != CMessageBox::mbrYes) {
|
||||||
g_settings.video_Mode = prev_video_mode;
|
g_settings.video_Mode = prev_video_mode;
|
||||||
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
||||||
//videoDecoder->SetVideoMode((analog_mode_t) g_settings.analog_mode);//FIXME
|
//videoDecoder->SetVideoMode((analog_mode_t) g_settings.analog_mode);//FIXME
|
||||||
@@ -436,7 +436,7 @@ void CVideoSettings::paint()
|
|||||||
#ifdef TEST_MENU
|
#ifdef TEST_MENU
|
||||||
class CTestMenu : public CMenuTarget
|
class CTestMenu : public CMenuTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int exec(CMenuTarget* parent, const std::string &actionkey);
|
int exec(CMenuTarget* parent, const std::string &actionkey);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -446,18 +446,18 @@ class CTestMenu : public CMenuTarget
|
|||||||
|
|
||||||
int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||||
{
|
{
|
||||||
if(parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
|
|
||||||
printf("CTestMenu::exec: %s\n", actionKey.c_str());
|
printf("CTestMenu::exec: %s\n", actionKey.c_str());
|
||||||
if(actionKey == "vfd") {
|
if (actionKey == "vfd") {
|
||||||
CVFD::getInstance()->Clear();
|
CVFD::getInstance()->Clear();
|
||||||
int icon = 0x00040000;
|
int icon = 0x00040000;
|
||||||
while(icon > 0x2) {
|
while (icon > 0x2) {
|
||||||
CVFD::getInstance()->ShowIcon((vfd_icon) icon, true);
|
CVFD::getInstance()->ShowIcon((vfd_icon) icon, true);
|
||||||
icon /= 2;
|
icon /= 2;
|
||||||
}
|
}
|
||||||
for(int i = 0x01000001; i <= 0x0C000001; i+= 0x01000000) {
|
for (int i = 0x01000001; i <= 0x0C000001; i+= 0x01000000) {
|
||||||
CVFD::getInstance()->ShowIcon((vfd_icon) i, true);
|
CVFD::getInstance()->ShowIcon((vfd_icon) i, true);
|
||||||
}
|
}
|
||||||
CVFD::getInstance()->ShowIcon((vfd_icon) 0x09000002, true);
|
CVFD::getInstance()->ShowIcon((vfd_icon) 0x09000002, true);
|
||||||
@@ -467,7 +467,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
int ch = 0x2588;
|
int ch = 0x2588;
|
||||||
int len = XmlUtf8Encode(ch, buf);
|
int len = XmlUtf8Encode(ch, buf);
|
||||||
|
|
||||||
for(int i = 0; i < 12; i++) {
|
for (int i = 0; i < 12; i++) {
|
||||||
memcpy(&text[i*len], buf, len);
|
memcpy(&text[i*len], buf, len);
|
||||||
}
|
}
|
||||||
text[12*len] = 0;
|
text[12*len] = 0;
|
||||||
@@ -476,7 +476,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, "VFD test, Press OK to return", CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, "VFD test, Press OK to return", CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
||||||
CVFD::getInstance()->Clear();
|
CVFD::getInstance()->Clear();
|
||||||
}
|
}
|
||||||
else if(actionKey == "network") {
|
else if (actionKey == "network") {
|
||||||
int fd, ret;
|
int fd, ret;
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
char * ip = NULL, str[255];
|
char * ip = NULL, str[255];
|
||||||
@@ -488,11 +488,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
strncpy(ifr.ifr_name, "eth0", IFNAMSIZ-1);
|
strncpy(ifr.ifr_name, "eth0", IFNAMSIZ-1);
|
||||||
|
|
||||||
ret = ioctl(fd, SIOCGIFHWADDR, &ifr);
|
ret = ioctl(fd, SIOCGIFHWADDR, &ifr);
|
||||||
if(ret < 0)
|
if (ret < 0)
|
||||||
perror("SIOCGIFHWADDR");
|
perror("SIOCGIFHWADDR");
|
||||||
|
|
||||||
ret = ioctl(fd, SIOCGIFADDR, &ifr );
|
ret = ioctl(fd, SIOCGIFADDR, &ifr );
|
||||||
if(ret < 0)
|
if (ret < 0)
|
||||||
perror("SIOCGIFADDR");
|
perror("SIOCGIFADDR");
|
||||||
else {
|
else {
|
||||||
addrp = (struct sockaddr_in *)&(ifr.ifr_addr);
|
addrp = (struct sockaddr_in *)&(ifr.ifr_addr);
|
||||||
@@ -510,15 +510,15 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
close(fd);
|
close(fd);
|
||||||
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, str, CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, str, CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
||||||
}
|
}
|
||||||
else if(actionKey == "card") {
|
else if (actionKey == "card") {
|
||||||
}
|
}
|
||||||
else if(actionKey == "hdd") {
|
else if (actionKey == "hdd") {
|
||||||
char buffer[255];
|
char buffer[255];
|
||||||
FILE *f = fopen("/proc/mounts", "r");
|
FILE *f = fopen("/proc/mounts", "r");
|
||||||
bool mounted = false;
|
bool mounted = false;
|
||||||
if(f != NULL) {
|
if (f != NULL) {
|
||||||
while (fgets (buffer, 255, f) != NULL) {
|
while (fgets (buffer, 255, f) != NULL) {
|
||||||
if(strstr(buffer, "/dev/sda1")) {
|
if (strstr(buffer, "/dev/sda1")) {
|
||||||
mounted = true;
|
mounted = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -529,21 +529,21 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
printf("%s\n", buffer);
|
printf("%s\n", buffer);
|
||||||
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, buffer, CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, buffer, CMessageBox::mbrBack, CMessageBox::mbBack, "info.raw");
|
||||||
}
|
}
|
||||||
else if(actionKey == "buttons") {
|
else if (actionKey == "buttons") {
|
||||||
neutrino_msg_t msg;
|
neutrino_msg_t msg;
|
||||||
neutrino_msg_data_t data;
|
neutrino_msg_data_t data;
|
||||||
CHintBox * khintBox = NULL;
|
CHintBox * khintBox = NULL;
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, "Press button, or press EXIT to return");
|
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, "Press button, or press EXIT to return");
|
||||||
hintBox->paint();
|
hintBox->paint();
|
||||||
while(1) {
|
while (1) {
|
||||||
g_RCInput->getMsg(&msg, &data, 100);
|
g_RCInput->getMsg(&msg, &data, 100);
|
||||||
if(msg == CRCInput::RC_home)
|
if (msg == CRCInput::RC_home)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (msg != CRCInput::RC_timeout && msg <= CRCInput::RC_MaxRC) {
|
if (msg != CRCInput::RC_timeout && msg <= CRCInput::RC_MaxRC) {
|
||||||
char keyname[50];
|
char keyname[50];
|
||||||
sprintf(keyname, "Button [%s] pressed (EXIT to return)", g_RCInput->getKeyName(msg).c_str());
|
sprintf(keyname, "Button [%s] pressed (EXIT to return)", g_RCInput->getKeyName(msg).c_str());
|
||||||
if(khintBox) {
|
if (khintBox) {
|
||||||
delete khintBox;
|
delete khintBox;
|
||||||
}
|
}
|
||||||
khintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, keyname);
|
khintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, keyname);
|
||||||
@@ -551,18 +551,18 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
khintBox->paint();
|
khintBox->paint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(khintBox)
|
if (khintBox)
|
||||||
delete khintBox;
|
delete khintBox;
|
||||||
delete hintBox;
|
delete hintBox;
|
||||||
}
|
}
|
||||||
else if(actionKey == "22kon" || actionKey == "22koff") {
|
else if (actionKey == "22kon" || actionKey == "22koff") {
|
||||||
CScanTs * scanTs = new CScanTs();
|
CScanTs * scanTs = new CScanTs();
|
||||||
|
|
||||||
int freq = (actionKey == "22kon") ? 12000*1000: 11000*1000;
|
int freq = (actionKey == "22kon") ? 12000*1000: 11000*1000;
|
||||||
|
|
||||||
sprintf(get_set.TP_freq, "%d", freq);
|
sprintf(get_set.TP_freq, "%d", freq);
|
||||||
#if 0 // not needed ?
|
#if 0 // not needed ?
|
||||||
switch(frontend->getInfo()->type) {
|
switch (frontend->getInfo()->type) {
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
sprintf(get_set.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
sprintf(get_set.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
||||||
get_set.TP_fec = tmpI->second.feparams.u.qpsk.fec_inner;
|
get_set.TP_fec = tmpI->second.feparams.u.qpsk.fec_inner;
|
||||||
@@ -578,12 +578,12 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
scanTs->exec(NULL, "test");
|
scanTs->exec(NULL, "test");
|
||||||
delete scanTs;
|
delete scanTs;
|
||||||
}
|
}
|
||||||
else if(actionKey == "scan") {
|
else if (actionKey == "scan") {
|
||||||
CScanTs * scanTs = new CScanTs();
|
CScanTs * scanTs = new CScanTs();
|
||||||
|
|
||||||
int freq = 12538000;
|
int freq = 12538000;
|
||||||
sprintf(get_set.TP_freq, "%d", freq);
|
sprintf(get_set.TP_freq, "%d", freq);
|
||||||
switch(frontend->getInfo()->type) {
|
switch (frontend->getInfo()->type) {
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
sprintf(get_set.TP_rate, "%d", 41250*1000);
|
sprintf(get_set.TP_rate, "%d", 41250*1000);
|
||||||
get_set.TP_fec = 1;
|
get_set.TP_fec = 1;
|
||||||
@@ -720,7 +720,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_AUDIO , true, NULL, &audioSettings , NULL, CRCInput::RC_2));
|
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_AUDIO , true, NULL, &audioSettings , NULL, CRCInput::RC_2));
|
||||||
mainSettings.addItem(new CLockedMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, g_settings.parentallock_pincode, true, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
mainSettings.addItem(new CLockedMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, g_settings.parentallock_pincode, true, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
||||||
#if 0
|
#if 0
|
||||||
if(g_settings.parentallock_prompt)
|
if (g_settings.parentallock_prompt)
|
||||||
mainSettings.addItem(new CLockedMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, g_settings.parentallock_pincode, true, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
mainSettings.addItem(new CLockedMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, g_settings.parentallock_pincode, true, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
||||||
else
|
else
|
||||||
mainSettings.addItem(new CMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
mainSettings.addItem(new CMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, true, NULL, &parentallockSettings, NULL, CRCInput::RC_3));
|
||||||
@@ -747,7 +747,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
}
|
}
|
||||||
search = search->xmlNextNode;
|
search = search->xmlNextNode;
|
||||||
}
|
}
|
||||||
if(found)
|
if (found)
|
||||||
mainSettings.addItem(tzSelect);
|
mainSettings.addItem(tzSelect);
|
||||||
else {
|
else {
|
||||||
delete tzSelect;
|
delete tzSelect;
|
||||||
@@ -757,7 +757,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
}
|
}
|
||||||
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_OSD , true, NULL, &colorSettings , NULL, CRCInput::RC_8));
|
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_OSD , true, NULL, &colorSettings , NULL, CRCInput::RC_8));
|
||||||
|
|
||||||
if(CVFD::getInstance()->has_lcd)
|
if (CVFD::getInstance()->has_lcd)
|
||||||
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_LCD , true, NULL, &lcdSettings , NULL, CRCInput::RC_9));
|
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_LCD , true, NULL, &lcdSettings , NULL, CRCInput::RC_9));
|
||||||
|
|
||||||
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_KEYBINDING, true, NULL, &keySettings , NULL, CRCInput::RC_blue , NEUTRINO_ICON_BUTTON_BLUE ));
|
mainSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_KEYBINDING, true, NULL, &keySettings , NULL, CRCInput::RC_blue , NEUTRINO_ICON_BUTTON_BLUE ));
|
||||||
@@ -772,7 +772,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
#endif
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
g_RFmod = new RFmod();
|
g_RFmod = new RFmod();
|
||||||
if(g_RFmod->rfmodfd >=0) {
|
if (g_RFmod->rfmodfd >=0) {
|
||||||
g_RFmod->init();
|
g_RFmod->init();
|
||||||
CMenuWidget * rfmenu = new CMenuWidget(LOCALE_RFMOD, "settings.raw");
|
CMenuWidget * rfmenu = new CMenuWidget(LOCALE_RFMOD, "settings.raw");
|
||||||
CRfNotifier * rfnot = new CRfNotifier();
|
CRfNotifier * rfnot = new CRfNotifier();
|
||||||
@@ -902,7 +902,7 @@ const CMenuOptionChooser::keyval DISEQC_ORDER_OPTIONS[DISEQC_ORDER_OPTION_COUNT]
|
|||||||
|
|
||||||
class CTPSelectHandler : public CMenuTarget
|
class CTPSelectHandler : public CMenuTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int exec(CMenuTarget* parent, const std::string &actionkey);
|
int exec(CMenuTarget* parent, const std::string &actionkey);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -923,13 +923,13 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
|
|||||||
if (parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
|
|
||||||
for(sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
for (sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
||||||
if(!strcmp(sit->second.name.c_str(), CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc)) {
|
if (!strcmp(sit->second.name.c_str(), CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc)) {
|
||||||
position = sit->first;
|
position = sit->first;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(old_position != position) {
|
if (old_position != position) {
|
||||||
old_selected = 0;
|
old_selected = 0;
|
||||||
old_position = position;
|
old_position = position;
|
||||||
}
|
}
|
||||||
@@ -937,17 +937,17 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
|
|||||||
CMenuWidget* menu = new CMenuWidget(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS);
|
CMenuWidget* menu = new CMenuWidget(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS);
|
||||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||||
i = 0;
|
i = 0;
|
||||||
for(tI = select_transponders.begin(); tI != select_transponders.end(); tI++) {
|
for (tI = select_transponders.begin(); tI != select_transponders.end(); tI++) {
|
||||||
t_satellite_position satpos = GET_SATELLITEPOSITION_FROM_TRANSPONDER_ID(tI->first) & 0xFFF;
|
t_satellite_position satpos = GET_SATELLITEPOSITION_FROM_TRANSPONDER_ID(tI->first) & 0xFFF;
|
||||||
if(GET_SATELLITEPOSITION_FROM_TRANSPONDER_ID(tI->first) & 0xF000)
|
if (GET_SATELLITEPOSITION_FROM_TRANSPONDER_ID(tI->first) & 0xF000)
|
||||||
satpos = -satpos;
|
satpos = -satpos;
|
||||||
if(satpos != position)
|
if (satpos != position)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char buf[128];
|
char buf[128];
|
||||||
sprintf(cnt, "%d", i);
|
sprintf(cnt, "%d", i);
|
||||||
char * f, *s, *m;
|
char * f, *s, *m;
|
||||||
switch(frontend->getInfo()->type) {
|
switch (frontend->getInfo()->type) {
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
frontend->getDelSys(tI->second.feparams.u.qpsk.fec_inner, dvbs_get_modulation(tI->second.feparams.u.qpsk.fec_inner), f, s, m);
|
frontend->getDelSys(tI->second.feparams.u.qpsk.fec_inner, dvbs_get_modulation(tI->second.feparams.u.qpsk.fec_inner), f, s, m);
|
||||||
snprintf(buf, sizeof(buf), "%d %c %d %s %s %s ", tI->second.feparams.frequency/1000, tI->second.polarization ? 'V' : 'H', tI->second.feparams.u.qpsk.symbol_rate/1000, f, s, m);
|
snprintf(buf, sizeof(buf), "%d %c %d %s %s %s ", tI->second.feparams.frequency/1000, tI->second.polarization ? 'V' : 'H', tI->second.feparams.u.qpsk.symbol_rate/1000, f, s, m);
|
||||||
@@ -964,7 +964,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
|
|||||||
tmplist.insert(std::pair <int, transponder>(i, tI->second));
|
tmplist.insert(std::pair <int, transponder>(i, tI->second));
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if(i == 0) {
|
if (i == 0) {
|
||||||
char text[255];
|
char text[255];
|
||||||
sprintf(text, "No transponders found for %s\n", CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc);
|
sprintf(text, "No transponders found for %s\n", CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc);
|
||||||
ShowHintUTF(LOCALE_MESSAGEBOX_ERROR, text, 450, 2);
|
ShowHintUTF(LOCALE_MESSAGEBOX_ERROR, text, 450, 2);
|
||||||
@@ -973,14 +973,14 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
|
|||||||
int retval = menu->exec(NULL, "");
|
int retval = menu->exec(NULL, "");
|
||||||
delete menu;
|
delete menu;
|
||||||
delete selector;
|
delete selector;
|
||||||
if(select >= 0) {
|
if (select >= 0) {
|
||||||
old_selected = select;
|
old_selected = select;
|
||||||
|
|
||||||
tmpI = tmplist.find(select);
|
tmpI = tmplist.find(select);
|
||||||
printf("CTPSelectHandler::exec: selected TP: freq %d pol %d SR %d\n", tmpI->second.feparams.frequency,
|
printf("CTPSelectHandler::exec: selected TP: freq %d pol %d SR %d\n", tmpI->second.feparams.frequency,
|
||||||
tmpI->second.polarization, tmpI->second.feparams.u.qpsk.symbol_rate);
|
tmpI->second.polarization, tmpI->second.feparams.u.qpsk.symbol_rate);
|
||||||
sprintf(get_set.TP_freq, "%d", tmpI->second.feparams.frequency);
|
sprintf(get_set.TP_freq, "%d", tmpI->second.feparams.frequency);
|
||||||
switch(frontend->getInfo()->type) {
|
switch (frontend->getInfo()->type) {
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
sprintf(get_set.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
sprintf(get_set.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
||||||
get_set.TP_fec = tmpI->second.feparams.u.qpsk.fec_inner;
|
get_set.TP_fec = tmpI->second.feparams.u.qpsk.fec_inner;
|
||||||
@@ -997,7 +997,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(retval == menu_return::RETURN_EXIT_ALL)
|
if (retval == menu_return::RETURN_EXIT_ALL)
|
||||||
return menu_return::RETURN_EXIT_ALL;
|
return menu_return::RETURN_EXIT_ALL;
|
||||||
|
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
@@ -1037,14 +1037,14 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
sat_iterator_t sit;
|
sat_iterator_t sit;
|
||||||
|
|
||||||
t_satellite_position currentSatellitePosition = frontend->getCurrentSatellitePosition();
|
t_satellite_position currentSatellitePosition = frontend->getCurrentSatellitePosition();
|
||||||
if(g_info.delivery_system == DVB_S) {
|
if (g_info.delivery_system == DVB_S) {
|
||||||
satSelect = new CMenuOptionStringChooser(LOCALE_SATSETUP_SATELLITE, scanSettings.satNameNoDiseqc, true, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
satSelect = new CMenuOptionStringChooser(LOCALE_SATSETUP_SATELLITE, scanSettings.satNameNoDiseqc, true, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED, true);
|
||||||
satOnOff = new CMenuWidget(LOCALE_SATSETUP_SATELLITE, NEUTRINO_ICON_SETTINGS);
|
satOnOff = new CMenuWidget(LOCALE_SATSETUP_SATELLITE, NEUTRINO_ICON_SETTINGS);
|
||||||
satOnOff->addItem(GenericMenuSeparator);
|
satOnOff->addItem(GenericMenuSeparator);
|
||||||
satOnOff->addItem(GenericMenuBack);
|
satOnOff->addItem(GenericMenuBack);
|
||||||
satOnOff->addItem(GenericMenuSeparatorLine);
|
satOnOff->addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
for(sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
for (sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
||||||
printf("Adding sat menu for %s position %d\n", sit->second.name.c_str(), sit->first);
|
printf("Adding sat menu for %s position %d\n", sit->second.name.c_str(), sit->first);
|
||||||
|
|
||||||
satSelect->addOption(sit->second.name.c_str());
|
satSelect->addOption(sit->second.name.c_str());
|
||||||
@@ -1089,10 +1089,10 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
}
|
}
|
||||||
} else if (g_info.delivery_system == DVB_C) {
|
} else if (g_info.delivery_system == DVB_C) {
|
||||||
satSelect = new CMenuOptionStringChooser(LOCALE_CABLESETUP_PROVIDER, (char*)scanSettings.satNameNoDiseqc, true);
|
satSelect = new CMenuOptionStringChooser(LOCALE_CABLESETUP_PROVIDER, (char*)scanSettings.satNameNoDiseqc, true);
|
||||||
for(sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
for (sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
||||||
printf("Adding cable menu for %s position %d\n", sit->second.name.c_str(), sit->first);
|
printf("Adding cable menu for %s position %d\n", sit->second.name.c_str(), sit->first);
|
||||||
satSelect->addOption(sit->second.name.c_str());
|
satSelect->addOption(sit->second.name.c_str());
|
||||||
if(currentSatellitePosition == sit->first) {
|
if (currentSatellitePosition == sit->first) {
|
||||||
strcpy(scanSettings.satNameNoDiseqc, sit->second.name.c_str());
|
strcpy(scanSettings.satNameNoDiseqc, sit->second.name.c_str());
|
||||||
sfound = 1;
|
sfound = 1;
|
||||||
}
|
}
|
||||||
@@ -1115,7 +1115,7 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
|
|
||||||
if (g_info.delivery_system == DVB_S)
|
if (g_info.delivery_system == DVB_S)
|
||||||
mod_pol = new CMenuOptionChooser(LOCALE_EXTRA_POL, (int *)&scanSettings.TP_pol, SATSETUP_SCANTP_POL, SATSETUP_SCANTP_POL_COUNT, true, NULL, CRCInput::convertDigitToKey(4));
|
mod_pol = new CMenuOptionChooser(LOCALE_EXTRA_POL, (int *)&scanSettings.TP_pol, SATSETUP_SCANTP_POL, SATSETUP_SCANTP_POL_COUNT, true, NULL, CRCInput::convertDigitToKey(4));
|
||||||
else if(g_info.delivery_system == DVB_C)
|
else if (g_info.delivery_system == DVB_C)
|
||||||
mod_pol = new CMenuOptionChooser(LOCALE_EXTRA_MOD, (int *)&scanSettings.TP_mod, SATSETUP_SCANTP_MOD, SATSETUP_SCANTP_MOD_COUNT, true, NULL, CRCInput::convertDigitToKey(4));
|
mod_pol = new CMenuOptionChooser(LOCALE_EXTRA_MOD, (int *)&scanSettings.TP_mod, SATSETUP_SCANTP_MOD, SATSETUP_SCANTP_MOD_COUNT, true, NULL, CRCInput::convertDigitToKey(4));
|
||||||
|
|
||||||
satfindMenu->addItem(Freq);
|
satfindMenu->addItem(Freq);
|
||||||
@@ -1152,7 +1152,7 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
motorMenu->addItem(new CMenuOptionNumberChooser(LOCALE_SATSETUP_USALS_REPEAT, (int *)&zapitCfg.repeatUsals, true, 0, 10, NULL, 0, 0, LOCALE_OPTIONS_OFF) );
|
motorMenu->addItem(new CMenuOptionNumberChooser(LOCALE_SATSETUP_USALS_REPEAT, (int *)&zapitCfg.repeatUsals, true, 0, 10, NULL, 0, 0, LOCALE_OPTIONS_OFF) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!sfound && satellitePositions.size()) {
|
if (!sfound && satellitePositions.size()) {
|
||||||
sit = satellitePositions.begin();
|
sit = satellitePositions.begin();
|
||||||
strcpy(scanSettings.satNameNoDiseqc, sit->second.name.c_str());
|
strcpy(scanSettings.satNameNoDiseqc, sit->second.name.c_str());
|
||||||
}
|
}
|
||||||
@@ -1224,7 +1224,7 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
settings.addItem(ojScantype);
|
settings.addItem(ojScantype);
|
||||||
settings.addItem(ojBouquets);
|
settings.addItem(ojBouquets);
|
||||||
|
|
||||||
if(g_info.delivery_system == DVB_S) {
|
if (g_info.delivery_system == DVB_S) {
|
||||||
settings.addItem(ojDiseqc);
|
settings.addItem(ojDiseqc);
|
||||||
settings.addItem(ojDiseqcRepeats);
|
settings.addItem(ojDiseqcRepeats);
|
||||||
settings.addItem(fsatSetup);
|
settings.addItem(fsatSetup);
|
||||||
@@ -1234,7 +1234,7 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
|
|||||||
settings.addItem(new CMenuForwarder(LOCALE_SATSETUP_MANUAL_SCAN, true, NULL, manualScan, "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
settings.addItem(new CMenuForwarder(LOCALE_SATSETUP_MANUAL_SCAN, true, NULL, manualScan, "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
||||||
settings.addItem(new CMenuForwarder(LOCALE_SATSETUP_AUTO_SCAN, true, NULL, autoScan, "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
settings.addItem(new CMenuForwarder(LOCALE_SATSETUP_AUTO_SCAN, true, NULL, autoScan, "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
|
||||||
|
|
||||||
if(g_info.delivery_system == DVB_S) {
|
if (g_info.delivery_system == DVB_S) {
|
||||||
settings.addItem(fautoScanAll);
|
settings.addItem(fautoScanAll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1318,7 +1318,7 @@ void CNeutrinoApp::InitServiceSettings(CMenuWidget &service, CMenuWidget &scanSe
|
|||||||
// mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASH , true, NULL, fe, "writeflash" ));
|
// mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASH , true, NULL, fe, "writeflash" ));
|
||||||
mtdexpert->addItem(GenericMenuSeparatorLine);
|
mtdexpert->addItem(GenericMenuSeparatorLine);
|
||||||
mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_READFLASHMTD , true, NULL, fe, "readflashmtd" ));
|
mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_READFLASHMTD , true, NULL, fe, "readflashmtd" ));
|
||||||
if(softupdate)
|
if (softupdate)
|
||||||
mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASHMTD, true, NULL, fe, "writeflashmtd"));
|
mtdexpert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASHMTD, true, NULL, fe, "writeflashmtd"));
|
||||||
mtdexpert->addItem(GenericMenuSeparatorLine);
|
mtdexpert->addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
@@ -1413,7 +1413,7 @@ void CNeutrinoApp::InitAudioplPicSettings(CMenuWidget &audioplPicSettings)
|
|||||||
|
|
||||||
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_HIGHPRIO , &g_settings.audioplayer_highprio , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_HIGHPRIO , &g_settings.audioplayer_highprio , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
||||||
|
|
||||||
if(CVFD::getInstance()->has_lcd) //FIXME
|
if (CVFD::getInstance()->has_lcd) //FIXME
|
||||||
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_SPECTRUM , &g_settings.spectrum , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_SPECTRUM , &g_settings.spectrum , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
||||||
audioplPicSettings.addItem(new CMenuForwarder(LOCALE_AUDIOPLAYER_DEFDIR, true, g_settings.network_nfs_audioplayerdir, this, "audioplayerdir"));
|
audioplPicSettings.addItem(new CMenuForwarder(LOCALE_AUDIOPLAYER_DEFDIR, true, g_settings.network_nfs_audioplayerdir, this, "audioplayerdir"));
|
||||||
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_ENABLE_SC_METADATA, &g_settings.audioplayer_enable_sc_metadata, MESSAGEBOX_NO_YES_OPTIONS, MESSAGEBOX_NO_YES_OPTION_COUNT, true ));
|
audioplPicSettings.addItem(new CMenuOptionChooser(LOCALE_AUDIOPLAYER_ENABLE_SC_METADATA, &g_settings.audioplayer_enable_sc_metadata, MESSAGEBOX_NO_YES_OPTIONS, MESSAGEBOX_NO_YES_OPTION_COUNT, true ));
|
||||||
@@ -1472,56 +1472,57 @@ const CMenuOptionChooser::keyval_ext CPU_FREQ_OPTIONS[CPU_FREQ_OPTION_COUNT] =
|
|||||||
void CNeutrinoApp::InitMiscSettings(CMenuWidget &miscSettings)
|
void CNeutrinoApp::InitMiscSettings(CMenuWidget &miscSettings)
|
||||||
{
|
{
|
||||||
dprintf(DEBUG_DEBUG, "init miscsettings\n");
|
dprintf(DEBUG_DEBUG, "init miscsettings\n");
|
||||||
miscSettings.addItem(GenericMenuSeparator);
|
addMenueIntroItems(miscSettings);
|
||||||
miscSettings.addItem(GenericMenuBack);
|
// miscSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_SAVESETTINGSNOW, true, NULL, this, "savesettings", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MAINSETTINGS_SAVESETTINGSNOW, true, NULL, this, "savesettings", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
|
CMenuWidget *miscSettingsGeneral = new CMenuWidget(LOCALE_MISCSETTINGS_GENERAL, NEUTRINO_ICON_SETTINGS);
|
||||||
miscSettings.addItem( new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_GENERAL));
|
addMenueIntroItems(*miscSettingsGeneral);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
CMenuOptionChooser *m1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL_RCDELAY, &g_settings.shutdown_real_rcdelay, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, !g_settings.shutdown_real);
|
CMenuOptionChooser *m1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL_RCDELAY, &g_settings.shutdown_real_rcdelay, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, !g_settings.shutdown_real);
|
||||||
|
|
||||||
CMiscNotifier* miscNotifier = new CMiscNotifier( m1 );
|
CMiscNotifier* miscNotifier = new CMiscNotifier( m1 );
|
||||||
|
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL, &g_settings.shutdown_real, OPTIONS_OFF1_ON0_OPTIONS, OPTIONS_OFF1_ON0_OPTION_COUNT, true, miscNotifier));
|
miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL, &g_settings.shutdown_real, OPTIONS_OFF1_ON0_OPTIONS, OPTIONS_OFF1_ON0_OPTION_COUNT, true, miscNotifier));
|
||||||
#endif
|
#endif
|
||||||
CStringInput * miscSettings_shutdown_count = new CStringInput(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, g_settings.shutdown_count, 3, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT2, "0123456789 ");
|
CStringInput * miscSettings_shutdown_count = new CStringInput(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, g_settings.shutdown_count, 3, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT2, "0123456789 ");
|
||||||
|
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, true, g_settings.shutdown_count, miscSettings_shutdown_count));
|
miscSettingsGeneral->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, true, g_settings.shutdown_count, miscSettings_shutdown_count));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_STARTSTANDBY, &g_settings.power_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsGeneral->addItem(new CMenuOptionChooser(LOCALE_EXTRA_STARTSTANDBY, &g_settings.power_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
|
||||||
//miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY, &g_settings.infobar_sat_display, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
//miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY, &g_settings.infobar_sat_display, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_ROTORSWAP, &g_settings.rotor_swap, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsGeneral->addItem(new CMenuOptionChooser(LOCALE_EXTRA_ROTORSWAP, &g_settings.rotor_swap, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_INFOVIEWER_SUBCHAN_DISP_POS, &g_settings.infobar_subchan_disp_pos, INFOBAR_SUBCHAN_DISP_POS_OPTIONS, INFOBAR_SUBCHAN_DISP_POS_OPTIONS_COUNT, true));
|
miscSettingsGeneral->addItem(new CMenuOptionChooser(LOCALE_INFOVIEWER_SUBCHAN_DISP_POS, &g_settings.infobar_subchan_disp_pos, INFOBAR_SUBCHAN_DISP_POS_OPTIONS, INFOBAR_SUBCHAN_DISP_POS_OPTIONS_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_CACHE_TXT, (int *)&g_settings.cacheTXT, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsGeneral->addItem(new CMenuOptionChooser(LOCALE_EXTRA_CACHE_TXT, (int *)&g_settings.cacheTXT, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_VIRTUAL_ZAP_MODE, &g_settings.virtual_zap_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsGeneral->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_VIRTUAL_ZAP_MODE, &g_settings.virtual_zap_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
miscSettings.addItem( new CMenuForwarder(LOCALE_MISCSETTINGS_GENERAL, true, NULL, miscSettingsGeneral, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED) );
|
||||||
|
|
||||||
//channellist
|
//channellist
|
||||||
miscSettings.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_CHANNELLIST));
|
CMenuWidget *miscSettingsChannellist = new CMenuWidget(LOCALE_MISCSETTINGS_CHANNELLIST, NEUTRINO_ICON_SETTINGS);
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_CHANNELLIST_EPGTEXT_ALIGN, &g_settings.channellist_epgtext_align_right, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS_COUNT, true));
|
addMenueIntroItems(*miscSettingsChannellist);
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_CHANNELLIST_EXTENDED, &g_settings.channellist_extended, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsChannellist->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_CHANNELLIST_EPGTEXT_ALIGN, &g_settings.channellist_epgtext_align_right, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_CHANNELLIST_MAKE_HDLIST, &g_settings.make_hd_list, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsChannellist->addItem(new CMenuOptionChooser(LOCALE_CHANNELLIST_EXTENDED, &g_settings.channellist_extended, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_ZAP_CYCLE, &g_settings.zap_cycle, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsChannellist->addItem(new CMenuOptionChooser(LOCALE_CHANNELLIST_MAKE_HDLIST, &g_settings.make_hd_list, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
miscSettingsChannellist->addItem(new CMenuOptionChooser(LOCALE_EXTRA_ZAP_CYCLE, &g_settings.zap_cycle, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
miscSettings.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_EPG_HEAD));
|
miscSettings.addItem( new CMenuForwarder(LOCALE_MISCSETTINGS_CHANNELLIST, true, NULL, miscSettingsChannellist, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW) );
|
||||||
|
|
||||||
|
//EPGSettings
|
||||||
|
CMenuWidget *miscSettingsEPGSettings = new CMenuWidget(LOCALE_MISCSETTINGS_EPG_HEAD, NEUTRINO_ICON_SETTINGS);
|
||||||
|
addMenueIntroItems(*miscSettingsEPGSettings);
|
||||||
CSectionsdConfigNotifier* sectionsdConfigNotifier = new CSectionsdConfigNotifier;
|
CSectionsdConfigNotifier* sectionsdConfigNotifier = new CSectionsdConfigNotifier;
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SAVE, &g_settings.epg_save, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
miscSettingsEPGSettings->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SAVE, &g_settings.epg_save, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
CStringInput * miscSettings_epg_cache = new CStringInput(LOCALE_MISCSETTINGS_EPG_CACHE, &g_settings.epg_cache, 2,LOCALE_MISCSETTINGS_EPG_CACHE_HINT1, LOCALE_MISCSETTINGS_EPG_CACHE_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
CStringInput * miscSettings_epg_cache = new CStringInput(LOCALE_MISCSETTINGS_EPG_CACHE, &g_settings.epg_cache, 2,LOCALE_MISCSETTINGS_EPG_CACHE_HINT1, LOCALE_MISCSETTINGS_EPG_CACHE_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_CACHE, true, g_settings.epg_cache, miscSettings_epg_cache));
|
miscSettingsEPGSettings->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_CACHE, true, g_settings.epg_cache, miscSettings_epg_cache));
|
||||||
CStringInput * miscSettings_epg_cache_e = new CStringInput(LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE, &g_settings.epg_extendedcache, 3,LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE_HINT1, LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
CStringInput * miscSettings_epg_cache_e = new CStringInput(LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE, &g_settings.epg_extendedcache, 3,LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE_HINT1, LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
||||||
|
miscSettingsEPGSettings->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE, true, g_settings.epg_extendedcache, miscSettings_epg_cache_e));
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE, true, g_settings.epg_extendedcache, miscSettings_epg_cache_e));
|
|
||||||
|
|
||||||
CStringInput * miscSettings_epg_old_events = new CStringInput(LOCALE_MISCSETTINGS_EPG_OLD_EVENTS, &g_settings.epg_old_events, 2,LOCALE_MISCSETTINGS_EPG_OLD_EVENTS_HINT1, LOCALE_MISCSETTINGS_EPG_OLD_EVENTS_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
CStringInput * miscSettings_epg_old_events = new CStringInput(LOCALE_MISCSETTINGS_EPG_OLD_EVENTS, &g_settings.epg_old_events, 2,LOCALE_MISCSETTINGS_EPG_OLD_EVENTS_HINT1, LOCALE_MISCSETTINGS_EPG_OLD_EVENTS_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_OLD_EVENTS, true, g_settings.epg_old_events, miscSettings_epg_old_events));
|
miscSettingsEPGSettings->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_OLD_EVENTS, true, g_settings.epg_old_events, miscSettings_epg_old_events));
|
||||||
CStringInput * miscSettings_epg_max_events = new CStringInput(LOCALE_MISCSETTINGS_EPG_MAX_EVENTS, &g_settings.epg_max_events, 5,LOCALE_MISCSETTINGS_EPG_MAX_EVENTS_HINT1, LOCALE_MISCSETTINGS_EPG_MAX_EVENTS_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
CStringInput * miscSettings_epg_max_events = new CStringInput(LOCALE_MISCSETTINGS_EPG_MAX_EVENTS, &g_settings.epg_max_events, 5,LOCALE_MISCSETTINGS_EPG_MAX_EVENTS_HINT1, LOCALE_MISCSETTINGS_EPG_MAX_EVENTS_HINT2 , "0123456789 ", sectionsdConfigNotifier);
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_MAX_EVENTS, true, g_settings.epg_max_events, miscSettings_epg_max_events));
|
miscSettingsEPGSettings->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_MAX_EVENTS, true, g_settings.epg_max_events, miscSettings_epg_max_events));
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_DIR, true, g_settings.epg_dir, this, "epgdir"));
|
miscSettingsEPGSettings->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_DIR, true, g_settings.epg_dir, this, "epgdir"));
|
||||||
|
miscSettings.addItem( new CMenuForwarder(LOCALE_MISCSETTINGS_EPG_HEAD, true, NULL, miscSettingsEPGSettings, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN) );
|
||||||
|
//end of EPGSettings
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
miscSettings.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_DRIVER_BOOT));
|
miscSettings.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_DRIVER_BOOT));
|
||||||
if(access("/var/tuxbox/emlog", F_OK) == 0)
|
if (access("/var/tuxbox/emlog", F_OK) == 0)
|
||||||
g_settings.emlog = 1;
|
g_settings.emlog = 1;
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_USELOG, &g_settings.emlog, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, new CLogChangeNotifier));
|
miscSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_USELOG, &g_settings.emlog, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, new CLogChangeNotifier));
|
||||||
#endif
|
#endif
|
||||||
@@ -1537,11 +1538,14 @@ void CNeutrinoApp::InitMiscSettings(CMenuWidget &miscSettings)
|
|||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_KEYBINDINGMENU_REPEATBLOCKGENERIC, true, g_settings.repeat_genericblocker, keySettings_repeat_genericblocker));
|
miscSettings.addItem(new CMenuForwarder(LOCALE_KEYBINDINGMENU_REPEATBLOCKGENERIC, true, g_settings.repeat_genericblocker, keySettings_repeat_genericblocker));
|
||||||
miscSettings.addItem(m1);
|
miscSettings.addItem(m1);
|
||||||
#endif
|
#endif
|
||||||
|
//filebrowsersettings
|
||||||
|
CMenuWidget *miscSettingsFilebrowser = new CMenuWidget(LOCALE_FILEBROWSER_HEAD, NEUTRINO_ICON_SETTINGS);
|
||||||
|
addMenueIntroItems(*miscSettingsFilebrowser);
|
||||||
|
miscSettingsFilebrowser->addItem(new CMenuOptionChooser(LOCALE_FILESYSTEM_IS_UTF8 , &g_settings.filesystem_is_utf8 , MISCSETTINGS_FILESYSTEM_IS_UTF8_OPTIONS, MISCSETTINGS_FILESYSTEM_IS_UTF8_OPTION_COUNT, true ));
|
||||||
|
miscSettingsFilebrowser->addItem(new CMenuOptionChooser(LOCALE_FILEBROWSER_SHOWRIGHTS , &g_settings.filebrowser_showrights , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
||||||
|
miscSettingsFilebrowser->addItem(new CMenuOptionChooser(LOCALE_FILEBROWSER_DENYDIRECTORYLEAVE, &g_settings.filebrowser_denydirectoryleave, MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
||||||
|
miscSettings.addItem( new CMenuForwarder(LOCALE_FILEBROWSER_HEAD, true, NULL, miscSettingsFilebrowser, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE) );
|
||||||
|
|
||||||
miscSettings.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_FILEBROWSER_HEAD));
|
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_FILESYSTEM_IS_UTF8 , &g_settings.filesystem_is_utf8 , MISCSETTINGS_FILESYSTEM_IS_UTF8_OPTIONS, MISCSETTINGS_FILESYSTEM_IS_UTF8_OPTION_COUNT, true ));
|
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_FILEBROWSER_SHOWRIGHTS , &g_settings.filebrowser_showrights , MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
|
||||||
miscSettings.addItem(new CMenuOptionChooser(LOCALE_FILEBROWSER_DENYDIRECTORYLEAVE, &g_settings.filebrowser_denydirectoryleave, MESSAGEBOX_NO_YES_OPTIONS , MESSAGEBOX_NO_YES_OPTION_COUNT , true ));
|
|
||||||
// miscSettings.addItem(new CMenuForwarder(LOCALE_EXTRA_KEY_PLUGIN, true, g_settings.onekey_plugin,this,"onekeyplugin"));
|
// miscSettings.addItem(new CMenuForwarder(LOCALE_EXTRA_KEY_PLUGIN, true, g_settings.onekey_plugin,this,"onekeyplugin"));
|
||||||
funNotifier = new CFanControlNotifier();
|
funNotifier = new CFanControlNotifier();
|
||||||
//miscSettings.addItem(new CMenuOptionNumberChooser(LOCALE_FAN_SPEED, &g_settings.fan_speed, true, 0, 14, funNotifier, 0, 0, LOCALE_OPTIONS_OFF) );
|
//miscSettings.addItem(new CMenuOptionNumberChooser(LOCALE_FAN_SPEED, &g_settings.fan_speed, true, 0, 14, funNotifier, 0, 0, LOCALE_OPTIONS_OFF) );
|
||||||
@@ -1568,15 +1572,15 @@ void CNeutrinoApp::InitLanguageSettings(CMenuWidget &languageSettings)
|
|||||||
|
|
||||||
char *pfad[] = {(char *) DATADIR "/neutrino/locale",(char *) "/var/tuxbox/config/locale"};
|
char *pfad[] = {(char *) DATADIR "/neutrino/locale",(char *) "/var/tuxbox/config/locale"};
|
||||||
|
|
||||||
for(int p = 0;p < 2;p++) {
|
for (int p = 0; p < 2; p++) {
|
||||||
n = scandir(pfad[p], &namelist, 0, alphasort);
|
n = scandir(pfad[p], &namelist, 0, alphasort);
|
||||||
if(n < 0) {
|
if (n < 0) {
|
||||||
perror("loading locales: scandir");
|
perror("loading locales: scandir");
|
||||||
} else {
|
} else {
|
||||||
for(int count=0;count<n;count++) {
|
for (int count=0; count<n; count++) {
|
||||||
char * locale = strdup(namelist[count]->d_name);
|
char * locale = strdup(namelist[count]->d_name);
|
||||||
char * pos = strstr(locale, ".locale");
|
char * pos = strstr(locale, ".locale");
|
||||||
if(pos != NULL) {
|
if (pos != NULL) {
|
||||||
char iname[50];
|
char iname[50];
|
||||||
*pos = '\0';
|
*pos = '\0';
|
||||||
sprintf(iname, "%s.raw", locale);
|
sprintf(iname, "%s.raw", locale);
|
||||||
@@ -1848,7 +1852,7 @@ void CNeutrinoApp::InitRecordingSettings(CMenuWidget &recordingSettings)
|
|||||||
recordingSettings.addItem(fRecDir);
|
recordingSettings.addItem(fRecDir);
|
||||||
recordingSettings.addItem(fTsDir);
|
recordingSettings.addItem(fTsDir);
|
||||||
recordingSettings.addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_RECORD_TIME, &g_settings.record_hours, true, 1, 24, NULL) );
|
recordingSettings.addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_RECORD_TIME, &g_settings.record_hours, true, 1, 24, NULL) );
|
||||||
if(1) { //has_hdd) {
|
if (1) { //has_hdd) {
|
||||||
recordingSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_TIMESHIFT_PAUSE, &g_settings.timeshift_pause, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
recordingSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_TIMESHIFT_PAUSE, &g_settings.timeshift_pause, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
recordingSettings.addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_AUTO_TIMESHIFT, &g_settings.auto_timeshift, true, 0, 300, NULL));
|
recordingSettings.addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_AUTO_TIMESHIFT, &g_settings.auto_timeshift, true, 0, 300, NULL));
|
||||||
recordingSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_AUTO_DELETE, &g_settings.auto_delete, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
recordingSettings.addItem(new CMenuOptionChooser(LOCALE_EXTRA_AUTO_DELETE, &g_settings.auto_delete, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
@@ -1924,7 +1928,7 @@ void CNeutrinoApp::InitRecordingSettings(CMenuWidget &recordingSettings)
|
|||||||
directRecordingSettings->addItem(oj11);
|
directRecordingSettings->addItem(oj11);
|
||||||
directRecordingSettings->addItem(oj13);
|
directRecordingSettings->addItem(oj13);
|
||||||
recordingstatus = 0;
|
recordingstatus = 0;
|
||||||
if(has_hdd) {
|
if (has_hdd) {
|
||||||
directRecordingSettings->addItem(new CMenuOptionChooser(LOCALE_EXTRA_TIMESHIFT_PAUSE, &g_settings.timeshift_pause, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
directRecordingSettings->addItem(new CMenuOptionChooser(LOCALE_EXTRA_TIMESHIFT_PAUSE, &g_settings.timeshift_pause, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
directRecordingSettings->addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_AUTO_TIMESHIFT, &g_settings.auto_timeshift, true, 0, 300));
|
directRecordingSettings->addItem(new CMenuOptionNumberChooser(LOCALE_EXTRA_AUTO_TIMESHIFT, &g_settings.auto_timeshift, true, 0, 300));
|
||||||
directRecordingSettings->addItem(new CMenuOptionChooser(LOCALE_EXTRA_AUTO_DELETE, &g_settings.auto_delete, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
directRecordingSettings->addItem(new CMenuOptionChooser(LOCALE_EXTRA_AUTO_DELETE, &g_settings.auto_delete, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
@@ -2569,14 +2573,14 @@ void CNeutrinoApp::SelectNVOD()
|
|||||||
{
|
{
|
||||||
// NVOD/SubService- Kanal!
|
// NVOD/SubService- Kanal!
|
||||||
CMenuWidget NVODSelector(g_RemoteControl->are_subchannels ? LOCALE_NVODSELECTOR_SUBSERVICE : LOCALE_NVODSELECTOR_HEAD, "video.raw", 350);
|
CMenuWidget NVODSelector(g_RemoteControl->are_subchannels ? LOCALE_NVODSELECTOR_SUBSERVICE : LOCALE_NVODSELECTOR_HEAD, "video.raw", 350);
|
||||||
if(getNVODMenu(&NVODSelector))
|
if (getNVODMenu(&NVODSelector))
|
||||||
NVODSelector.exec(NULL, "");
|
NVODSelector.exec(NULL, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
||||||
{
|
{
|
||||||
if(menu == NULL)
|
if (menu == NULL)
|
||||||
return false;
|
return false;
|
||||||
if (g_RemoteControl->subChannels.empty())
|
if (g_RemoteControl->subChannels.empty())
|
||||||
return false;
|
return false;
|
||||||
@@ -2586,11 +2590,11 @@ bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
char nvod_id[5];
|
char nvod_id[5];
|
||||||
|
|
||||||
for( CSubServiceListSorted::iterator e=g_RemoteControl->subChannels.begin(); e!=g_RemoteControl->subChannels.end(); ++e)
|
for ( CSubServiceListSorted::iterator e=g_RemoteControl->subChannels.begin(); e!=g_RemoteControl->subChannels.end(); ++e)
|
||||||
{
|
{
|
||||||
sprintf(nvod_id, "%d", count);
|
sprintf(nvod_id, "%d", count);
|
||||||
|
|
||||||
if( !g_RemoteControl->are_subchannels ) {
|
if ( !g_RemoteControl->are_subchannels ) {
|
||||||
char nvod_time_a[50], nvod_time_e[50], nvod_time_x[50];
|
char nvod_time_a[50], nvod_time_e[50], nvod_time_x[50];
|
||||||
char nvod_s[100];
|
char nvod_s[100];
|
||||||
struct tm *tmZeit;
|
struct tm *tmZeit;
|
||||||
@@ -2603,11 +2607,11 @@ bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
|||||||
sprintf(nvod_time_e, "%02d:%02d", tmZeit->tm_hour, tmZeit->tm_min);
|
sprintf(nvod_time_e, "%02d:%02d", tmZeit->tm_hour, tmZeit->tm_min);
|
||||||
|
|
||||||
time_t jetzt=time(NULL);
|
time_t jetzt=time(NULL);
|
||||||
if(e->startzeit > jetzt) {
|
if (e->startzeit > jetzt) {
|
||||||
int mins=(e->startzeit- jetzt)/ 60;
|
int mins=(e->startzeit- jetzt)/ 60;
|
||||||
sprintf(nvod_time_x, g_Locale->getText(LOCALE_NVOD_STARTING), mins);
|
sprintf(nvod_time_x, g_Locale->getText(LOCALE_NVOD_STARTING), mins);
|
||||||
}
|
}
|
||||||
else if( (e->startzeit<= jetzt) && (jetzt < endtime) ) {
|
else if ( (e->startzeit<= jetzt) && (jetzt < endtime) ) {
|
||||||
int proz=(jetzt- e->startzeit)*100/ e->dauer;
|
int proz=(jetzt- e->startzeit)*100/ e->dauer;
|
||||||
sprintf(nvod_time_x, g_Locale->getText(LOCALE_NVOD_PERCENTAGE), proz);
|
sprintf(nvod_time_x, g_Locale->getText(LOCALE_NVOD_PERCENTAGE), proz);
|
||||||
}
|
}
|
||||||
@@ -2623,7 +2627,7 @@ bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( g_RemoteControl->are_subchannels ) {
|
if ( g_RemoteControl->are_subchannels ) {
|
||||||
menu->addItem(GenericMenuSeparatorLine);
|
menu->addItem(GenericMenuSeparatorLine);
|
||||||
CMenuOptionChooser* oj = new CMenuOptionChooser(LOCALE_NVODSELECTOR_DIRECTORMODE, &g_RemoteControl->director_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
CMenuOptionChooser* oj = new CMenuOptionChooser(LOCALE_NVODSELECTOR_DIRECTORMODE, &g_RemoteControl->director_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
||||||
menu->addItem(oj);
|
menu->addItem(oj);
|
||||||
@@ -2634,14 +2638,14 @@ bool CNeutrinoApp::getNVODMenu(CMenuWidget* menu)
|
|||||||
void CNeutrinoApp::SelectAPID()
|
void CNeutrinoApp::SelectAPID()
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
if( g_RemoteControl->current_PIDs.APIDs.size()> 1 )
|
if ( g_RemoteControl->current_PIDs.APIDs.size()> 1 )
|
||||||
{
|
{
|
||||||
// wir haben APIDs f<>r diesen Kanal!
|
// wir haben APIDs f<>r diesen Kanal!
|
||||||
|
|
||||||
CMenuWidget APIDSelector(LOCALE_APIDSELECTOR_HEAD, "audio.raw", 300);
|
CMenuWidget APIDSelector(LOCALE_APIDSELECTOR_HEAD, "audio.raw", 300);
|
||||||
APIDSelector.addItem(GenericMenuSeparator);
|
APIDSelector.addItem(GenericMenuSeparator);
|
||||||
|
|
||||||
for( unsigned int count=0; count<g_RemoteControl->current_PIDs.APIDs.size(); count++ )
|
for ( unsigned int count=0; count<g_RemoteControl->current_PIDs.APIDs.size(); count++ )
|
||||||
{
|
{
|
||||||
char apid[5];
|
char apid[5];
|
||||||
sprintf(apid, "%d", count);
|
sprintf(apid, "%d", count);
|
||||||
@@ -2666,15 +2670,17 @@ const neutrino_msg_t key_helper_msg_def[BUTTONMAX]={CRCInput::RC_red,CRCInput::R
|
|||||||
const char * key_helper_icon_def[BUTTONMAX]={NEUTRINO_ICON_BUTTON_RED,NEUTRINO_ICON_BUTTON_GREEN,NEUTRINO_ICON_BUTTON_YELLOW,NEUTRINO_ICON_BUTTON_BLUE};
|
const char * key_helper_icon_def[BUTTONMAX]={NEUTRINO_ICON_BUTTON_RED,NEUTRINO_ICON_BUTTON_GREEN,NEUTRINO_ICON_BUTTON_YELLOW,NEUTRINO_ICON_BUTTON_BLUE};
|
||||||
class CKeyHelper
|
class CKeyHelper
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int number_key;
|
int number_key;
|
||||||
bool color_key_used[BUTTONMAX];
|
bool color_key_used[BUTTONMAX];
|
||||||
public:
|
public:
|
||||||
CKeyHelper(){reset();};
|
CKeyHelper() {
|
||||||
|
reset();
|
||||||
|
};
|
||||||
void reset(void)
|
void reset(void)
|
||||||
{
|
{
|
||||||
number_key = 1;
|
number_key = 1;
|
||||||
for(int i= 0; i < BUTTONMAX; i++ )
|
for (int i= 0; i < BUTTONMAX; i++ )
|
||||||
color_key_used[i] = false;
|
color_key_used[i] = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2687,20 +2693,20 @@ class CKeyHelper
|
|||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
int button = -1;
|
int button = -1;
|
||||||
if(prefered_key == CRCInput::RC_red)
|
if (prefered_key == CRCInput::RC_red)
|
||||||
button = 0;
|
button = 0;
|
||||||
if(prefered_key == CRCInput::RC_green)
|
if (prefered_key == CRCInput::RC_green)
|
||||||
button = 1;
|
button = 1;
|
||||||
if(prefered_key == CRCInput::RC_yellow)
|
if (prefered_key == CRCInput::RC_yellow)
|
||||||
button = 2;
|
button = 2;
|
||||||
if(prefered_key == CRCInput::RC_blue)
|
if (prefered_key == CRCInput::RC_blue)
|
||||||
button = 3;
|
button = 3;
|
||||||
|
|
||||||
*msg = CRCInput::RC_nokey;
|
*msg = CRCInput::RC_nokey;
|
||||||
*icon = "";
|
*icon = "";
|
||||||
if(button >= 0 && button < BUTTONMAX)
|
if (button >= 0 && button < BUTTONMAX)
|
||||||
{ // try to get color button
|
{ // try to get color button
|
||||||
if( color_key_used[button] == false)
|
if ( color_key_used[button] == false)
|
||||||
{
|
{
|
||||||
color_key_used[button] = true;
|
color_key_used[button] = true;
|
||||||
*msg = key_helper_msg_def[button];
|
*msg = key_helper_msg_def[button];
|
||||||
@@ -2709,14 +2715,14 @@ class CKeyHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( result == false && number_key < 10) // no key defined yet, at least try to get a numbered key
|
if ( result == false && number_key < 10) // no key defined yet, at least try to get a numbered key
|
||||||
{
|
{
|
||||||
// there is still a available number_key
|
// there is still a available number_key
|
||||||
*msg = CRCInput::convertDigitToKey(number_key);
|
*msg = CRCInput::convertDigitToKey(number_key);
|
||||||
*icon = "";
|
*icon = "";
|
||||||
if(number_key == 9)
|
if (number_key == 9)
|
||||||
number_key = 0;
|
number_key = 0;
|
||||||
else if(number_key == 0)
|
else if (number_key == 0)
|
||||||
number_key = 10;
|
number_key = 10;
|
||||||
else
|
else
|
||||||
number_key++;
|
number_key++;
|
||||||
@@ -2729,7 +2735,7 @@ class CKeyHelper
|
|||||||
// USERMENU
|
// USERMENU
|
||||||
bool CNeutrinoApp::showUserMenu(int button)
|
bool CNeutrinoApp::showUserMenu(int button)
|
||||||
{
|
{
|
||||||
if(button < 0 || button >= SNeutrinoSettings::BUTTON_MAX)
|
if (button < 0 || button >= SNeutrinoSettings::BUTTON_MAX)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
CMenuItem* menu_item = NULL;
|
CMenuItem* menu_item = NULL;
|
||||||
@@ -2754,20 +2760,20 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
|
|
||||||
std::string txt = g_settings.usermenu_text[button];
|
std::string txt = g_settings.usermenu_text[button];
|
||||||
if (button == SNeutrinoSettings::BUTTON_RED) {
|
if (button == SNeutrinoSettings::BUTTON_RED) {
|
||||||
if( txt.empty() )
|
if ( txt.empty() )
|
||||||
txt = g_Locale->getText(LOCALE_INFOVIEWER_EVENTLIST);
|
txt = g_Locale->getText(LOCALE_INFOVIEWER_EVENTLIST);
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_GREEN) {
|
else if ( button == SNeutrinoSettings::BUTTON_GREEN) {
|
||||||
if( txt.empty() )
|
if ( txt.empty() )
|
||||||
txt = g_Locale->getText(LOCALE_INFOVIEWER_LANGUAGES);
|
txt = g_Locale->getText(LOCALE_INFOVIEWER_LANGUAGES);
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_YELLOW) {
|
else if ( button == SNeutrinoSettings::BUTTON_YELLOW) {
|
||||||
if( txt.empty() )
|
if ( txt.empty() )
|
||||||
txt = g_Locale->getText((g_RemoteControl->are_subchannels) ? LOCALE_INFOVIEWER_SUBSERVICE : LOCALE_INFOVIEWER_SELECTTIME);
|
txt = g_Locale->getText((g_RemoteControl->are_subchannels) ? LOCALE_INFOVIEWER_SUBSERVICE : LOCALE_INFOVIEWER_SELECTTIME);
|
||||||
//txt = g_Locale->getText(LOCALE_NVODSELECTOR_DIRECTORMODE);
|
//txt = g_Locale->getText(LOCALE_NVODSELECTOR_DIRECTORMODE);
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_BLUE) {
|
else if ( button == SNeutrinoSettings::BUTTON_BLUE) {
|
||||||
if( txt.empty() )
|
if ( txt.empty() )
|
||||||
txt = g_Locale->getText(LOCALE_INFOVIEWER_STREAMINFO);
|
txt = g_Locale->getText(LOCALE_INFOVIEWER_STREAMINFO);
|
||||||
}
|
}
|
||||||
CMenuWidget *menu = new CMenuWidget(txt.c_str() , "features.raw", 350);
|
CMenuWidget *menu = new CMenuWidget(txt.c_str() , "features.raw", 350);
|
||||||
@@ -2776,15 +2782,15 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
menu->addItem(GenericMenuSeparator);
|
menu->addItem(GenericMenuSeparator);
|
||||||
|
|
||||||
// go through any postition number
|
// go through any postition number
|
||||||
for(int pos = 0; pos < SNeutrinoSettings::ITEM_MAX ; pos++) {
|
for (int pos = 0; pos < SNeutrinoSettings::ITEM_MAX ; pos++) {
|
||||||
// now compare pos with the position of any item. Add this item if position is the same
|
// now compare pos with the position of any item. Add this item if position is the same
|
||||||
switch(g_settings.usermenu[button][pos]) {
|
switch (g_settings.usermenu[button][pos]) {
|
||||||
case SNeutrinoSettings::ITEM_NONE:
|
case SNeutrinoSettings::ITEM_NONE:
|
||||||
// do nothing
|
// do nothing
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SNeutrinoSettings::ITEM_BAR:
|
case SNeutrinoSettings::ITEM_BAR:
|
||||||
if(menu_prev == -1 || menu_prev == SNeutrinoSettings::ITEM_BAR )
|
if (menu_prev == -1 || menu_prev == SNeutrinoSettings::ITEM_BAR )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
menu->addItem(GenericMenuSeparatorLine);
|
menu->addItem(GenericMenuSeparatorLine);
|
||||||
@@ -2801,7 +2807,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SNeutrinoSettings::ITEM_RECORD:
|
case SNeutrinoSettings::ITEM_RECORD:
|
||||||
if(g_settings.recording_type == RECORDING_OFF)
|
if (g_settings.recording_type == RECORDING_OFF)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
menu_items++;
|
menu_items++;
|
||||||
@@ -2895,7 +2901,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
if (!(g_RemoteControl->subChannels.empty())) {
|
if (!(g_RemoteControl->subChannels.empty())) {
|
||||||
// NVOD/SubService- Kanal!
|
// NVOD/SubService- Kanal!
|
||||||
tmpNVODSelector = new CMenuWidget(g_RemoteControl->are_subchannels ? LOCALE_NVODSELECTOR_SUBSERVICE : LOCALE_NVODSELECTOR_HEAD, "video.raw", 350);
|
tmpNVODSelector = new CMenuWidget(g_RemoteControl->are_subchannels ? LOCALE_NVODSELECTOR_SUBSERVICE : LOCALE_NVODSELECTOR_HEAD, "video.raw", 350);
|
||||||
if(getNVODMenu(tmpNVODSelector)) {
|
if (getNVODMenu(tmpNVODSelector)) {
|
||||||
menu_items++;
|
menu_items++;
|
||||||
menu_prev = SNeutrinoSettings::ITEM_SUBCHANNEL;
|
menu_prev = SNeutrinoSettings::ITEM_SUBCHANNEL;
|
||||||
keyhelper.get(&key,&icon);
|
keyhelper.get(&key,&icon);
|
||||||
@@ -2917,7 +2923,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
{
|
{
|
||||||
char id[5];
|
char id[5];
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
for(unsigned int count = 0; count < (unsigned int) g_PluginList->getNumberOfPlugins(); count++)
|
for (unsigned int count = 0; count < (unsigned int) g_PluginList->getNumberOfPlugins(); count++)
|
||||||
{
|
{
|
||||||
std::string tmp = g_PluginList->getName(count);
|
std::string tmp = g_PluginList->getName(count);
|
||||||
if (g_PluginList->getType(count)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(count) && tmp.find("Teletext") == std::string::npos)
|
if (g_PluginList->getType(count)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(count) && tmp.find("Teletext") == std::string::npos)
|
||||||
@@ -2954,7 +2960,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SNeutrinoSettings::ITEM_VTXT:
|
case SNeutrinoSettings::ITEM_VTXT:
|
||||||
for(unsigned int count = 0; count < (unsigned int) g_PluginList->getNumberOfPlugins(); count++)
|
for (unsigned int count = 0; count < (unsigned int) g_PluginList->getNumberOfPlugins(); count++)
|
||||||
{
|
{
|
||||||
std::string tmp = g_PluginList->getName(count);
|
std::string tmp = g_PluginList->getName(count);
|
||||||
if (g_PluginList->getType(count)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(count) && tmp.find("Teletext") != std::string::npos)
|
if (g_PluginList->getType(count)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(count) && tmp.find("Teletext") != std::string::npos)
|
||||||
@@ -2980,14 +2986,14 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
// Allow some tailoring for privat image bakers ;)
|
// Allow some tailoring for privat image bakers ;)
|
||||||
if (button == SNeutrinoSettings::BUTTON_RED) {
|
if (button == SNeutrinoSettings::BUTTON_RED) {
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_GREEN) {
|
else if ( button == SNeutrinoSettings::BUTTON_GREEN) {
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_YELLOW) {
|
else if ( button == SNeutrinoSettings::BUTTON_YELLOW) {
|
||||||
}
|
}
|
||||||
else if( button == SNeutrinoSettings::BUTTON_BLUE) {
|
else if ( button == SNeutrinoSettings::BUTTON_BLUE) {
|
||||||
#ifdef _EXPERIMENTAL_SETTINGS_
|
#ifdef _EXPERIMENTAL_SETTINGS_
|
||||||
//Experimental Settings
|
//Experimental Settings
|
||||||
if(menu_prev != -1)
|
if (menu_prev != -1)
|
||||||
menu->addItem(GenericMenuSeparatorLine);
|
menu->addItem(GenericMenuSeparatorLine);
|
||||||
menu_items ++;
|
menu_items ++;
|
||||||
menu_key++;
|
menu_key++;
|
||||||
@@ -2999,7 +3005,7 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
|
|
||||||
// show menu if there are more than 2 items only
|
// show menu if there are more than 2 items only
|
||||||
// otherwise, we start the item directly (must be the last one)
|
// otherwise, we start the item directly (must be the last one)
|
||||||
if(menu_items > 1 ) {
|
if (menu_items > 1 ) {
|
||||||
menu->setSelected(selected[button]);
|
menu->setSelected(selected[button]);
|
||||||
menu->exec(NULL,"");
|
menu->exec(NULL,"");
|
||||||
selected[button] = menu->getSelected();
|
selected[button] = menu->getSelected();
|
||||||
@@ -3011,18 +3017,26 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
//AudioMute(current_muted, true);
|
//AudioMute(current_muted, true);
|
||||||
|
|
||||||
// clear the heap
|
// clear the heap
|
||||||
if(tmpFavorites) delete tmpFavorites;
|
if (tmpFavorites) delete tmpFavorites;
|
||||||
if(tmpPauseSectionsdNotifier) delete tmpPauseSectionsdNotifier;
|
if (tmpPauseSectionsdNotifier) delete tmpPauseSectionsdNotifier;
|
||||||
if(tmpAudioSelectMenuHandler) delete tmpAudioSelectMenuHandler;
|
if (tmpAudioSelectMenuHandler) delete tmpAudioSelectMenuHandler;
|
||||||
if(tmpNVODSelector) delete tmpNVODSelector;
|
if (tmpNVODSelector) delete tmpNVODSelector;
|
||||||
if(tmpStreamInfo2Handler) delete tmpStreamInfo2Handler;
|
if (tmpStreamInfo2Handler) delete tmpStreamInfo2Handler;
|
||||||
if(tmpEventListHandler) delete tmpEventListHandler;
|
if (tmpEventListHandler) delete tmpEventListHandler;
|
||||||
if(tmpEPGplusHandler) delete tmpEPGplusHandler;
|
if (tmpEPGplusHandler) delete tmpEPGplusHandler;
|
||||||
if(tmpEPGDataHandler) delete tmpEPGDataHandler;
|
if (tmpEPGDataHandler) delete tmpEPGDataHandler;
|
||||||
if(menu) delete menu;
|
if (menu) delete menu;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNeutrinoApp::ShowStreamFeatures()
|
void CNeutrinoApp::ShowStreamFeatures()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*adds the typical menu intro with separator, back button and separatorline to menu*/
|
||||||
|
void CNeutrinoApp::addMenueIntroItems(CMenuWidget &item)
|
||||||
|
{
|
||||||
|
item.addItem(GenericMenuSeparator);
|
||||||
|
item.addItem(GenericMenuBack);
|
||||||
|
item.addItem(GenericMenuSeparatorLine);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user