mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
-add zapit start channel menu
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1188 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1469,4 +1469,9 @@ zapit.scantype.radio Nur Radio
|
|||||||
zapit.scantype.tv Nur TV
|
zapit.scantype.tv Nur TV
|
||||||
zapit.scantype.tvradio Nur TV & Radio
|
zapit.scantype.tvradio Nur TV & Radio
|
||||||
zaptotimer.announce In einer Minute wird umgeschaltet.
|
zaptotimer.announce In einer Minute wird umgeschaltet.
|
||||||
word.from ab
|
word.from ab
|
||||||
|
zapitsetup.head Zapit Einstellungen
|
||||||
|
zapitsetup.info Zapit
|
||||||
|
zapitsetup.last_radio Start Radio Kanal
|
||||||
|
zapitsetup.last_use Start von Letzten Kanal
|
||||||
|
zapitsetup.last_tv Start TV Kanal
|
@@ -1471,3 +1471,8 @@ upnpbrowser.scanning Scanning for UPnP servers
|
|||||||
wizard.welcome_head Welcome to the Setup Wizard
|
wizard.welcome_head Welcome to the Setup Wizard
|
||||||
wizard.welcome_text Next steps will guide you through initial installation of the device.\nImportant: Your CoolStream set-top box can be conveniently controlled\nwith the web interface for timer management or live TV on the Web browser.\nDo not make it accessible to untrusted networks!\nDo you want to continue?
|
wizard.welcome_text Next steps will guide you through initial installation of the device.\nImportant: Your CoolStream set-top box can be conveniently controlled\nwith the web interface for timer management or live TV on the Web browser.\nDo not make it accessible to untrusted networks!\nDo you want to continue?
|
||||||
word.from from
|
word.from from
|
||||||
|
zapitsetup.head Zapit Settings
|
||||||
|
zapitsetup.info Zapit
|
||||||
|
zapitsetup.last_radio Start Radio Channel
|
||||||
|
zapitsetup.last_use Start from last Channel
|
||||||
|
zapitsetup.last_tv Start TV Channel
|
@@ -82,7 +82,8 @@ libneutrino_gui_a_SOURCES = \
|
|||||||
update.cpp \
|
update.cpp \
|
||||||
user_menue_setup.cpp \
|
user_menue_setup.cpp \
|
||||||
vfd_setup.cpp \
|
vfd_setup.cpp \
|
||||||
videosettings.cpp
|
videosettings.cpp \
|
||||||
|
zapit_setup.cpp
|
||||||
|
|
||||||
libneutrino_gui2_a_SOURCES = \
|
libneutrino_gui2_a_SOURCES = \
|
||||||
alphasetup.cpp \
|
alphasetup.cpp \
|
||||||
|
@@ -801,6 +801,15 @@ printf("***************************** rec dir %s timeshift dir %s\n", g_settings
|
|||||||
if ((g_settings.filebrowser_sortmethod < 0) || (g_settings.filebrowser_sortmethod >= FILEBROWSER_NUMBER_OF_SORT_VARIANTS))
|
if ((g_settings.filebrowser_sortmethod < 0) || (g_settings.filebrowser_sortmethod >= FILEBROWSER_NUMBER_OF_SORT_VARIANTS))
|
||||||
g_settings.filebrowser_sortmethod = 0;
|
g_settings.filebrowser_sortmethod = 0;
|
||||||
g_settings.filebrowser_denydirectoryleave = configfile.getBool("filebrowser_denydirectoryleave", false);
|
g_settings.filebrowser_denydirectoryleave = configfile.getBool("filebrowser_denydirectoryleave", false);
|
||||||
|
//zapit setup
|
||||||
|
g_settings.StartChannelTV = configfile.getString("startchanneltv","");
|
||||||
|
g_settings.StartChannelRadio = configfile.getString("startchannelradio","");
|
||||||
|
g_settings.startchanneltv_id = configfile.getInt64("startchanneltv_id", 0);
|
||||||
|
g_settings.startchannelradio_id = configfile.getInt64("startchannelradio_id", 0);
|
||||||
|
g_settings.startchanneltv_nr = configfile.getInt32("startchanneltv_nr", 0);
|
||||||
|
g_settings.startchannelradio_nr = configfile.getInt32("startchannelradio_nr", 0);
|
||||||
|
g_settings.uselastchannel = configfile.getInt32("uselastchannel" , 1);
|
||||||
|
|
||||||
|
|
||||||
// USERMENU -> in system/settings.h
|
// USERMENU -> in system/settings.h
|
||||||
//-------------------------------------------
|
//-------------------------------------------
|
||||||
@@ -1302,6 +1311,15 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
configfile.setInt32("filebrowser_sortmethod", g_settings.filebrowser_sortmethod);
|
configfile.setInt32("filebrowser_sortmethod", g_settings.filebrowser_sortmethod);
|
||||||
configfile.setBool("filebrowser_denydirectoryleave", g_settings.filebrowser_denydirectoryleave);
|
configfile.setBool("filebrowser_denydirectoryleave", g_settings.filebrowser_denydirectoryleave);
|
||||||
|
|
||||||
|
//zapit setup
|
||||||
|
configfile.setString( "startchanneltv", g_settings.StartChannelTV );
|
||||||
|
configfile.setString( "startchannelradio", g_settings.StartChannelRadio );
|
||||||
|
configfile.setInt64("startchanneltv_id", g_settings.startchanneltv_id);
|
||||||
|
configfile.setInt64("startchannelradio_id", g_settings.startchannelradio_id);
|
||||||
|
configfile.setInt32("startchanneltv_nr", g_settings.startchanneltv_nr);
|
||||||
|
configfile.setInt32("startchannelradio_nr", g_settings.startchannelradio_nr);
|
||||||
|
configfile.setInt32("uselastchannel", g_settings.uselastchannel);
|
||||||
|
|
||||||
// USERMENU
|
// USERMENU
|
||||||
//---------------------------------------
|
//---------------------------------------
|
||||||
char txt1[81];
|
char txt1[81];
|
||||||
@@ -2066,7 +2084,16 @@ int CNeutrinoApp::run(int argc, char **argv)
|
|||||||
CVFD::getInstance()->Clear();
|
CVFD::getInstance()->Clear();
|
||||||
CVFD::getInstance()->ShowText((char *) g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
CVFD::getInstance()->ShowText((char *) g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
||||||
|
|
||||||
pthread_create (&zapit_thread, NULL, zapit_main_thread, (void *) g_settings.video_Mode);
|
//zapit start parameters
|
||||||
|
Z_start_arg ZapStart_arg;
|
||||||
|
ZapStart_arg.startchanneltv_id = g_settings.startchanneltv_id;
|
||||||
|
ZapStart_arg.startchannelradio_id = g_settings.startchannelradio_id;
|
||||||
|
ZapStart_arg.startchanneltv_nr = g_settings.startchanneltv_nr;
|
||||||
|
ZapStart_arg.startchannelradio_nr = g_settings.startchannelradio_nr;
|
||||||
|
ZapStart_arg.uselastchannel = g_settings.uselastchannel;
|
||||||
|
ZapStart_arg.video_mode = g_settings.video_Mode;
|
||||||
|
|
||||||
|
pthread_create (&zapit_thread, NULL, zapit_main_thread, (void *) &ZapStart_arg);
|
||||||
audioSetupNotifier = new CAudioSetupNotifier;
|
audioSetupNotifier = new CAudioSetupNotifier;
|
||||||
|
|
||||||
while(!zapit_ready)
|
while(!zapit_ready)
|
||||||
|
@@ -75,6 +75,7 @@
|
|||||||
#endif /*TEST_MENU*/
|
#endif /*TEST_MENU*/
|
||||||
#include "gui/update.h"
|
#include "gui/update.h"
|
||||||
#include "gui/vfd_setup.h"
|
#include "gui/vfd_setup.h"
|
||||||
|
#include "gui/zapit_setup.h"
|
||||||
|
|
||||||
#include "gui/widget/stringinput.h"
|
#include "gui/widget/stringinput.h"
|
||||||
#include "gui/widget/stringinput_ext.h"
|
#include "gui/widget/stringinput_ext.h"
|
||||||
@@ -1030,6 +1031,7 @@ void CNeutrinoApp::InitMiscSettings(CMenuWidget &miscSettings)
|
|||||||
miscSettingsFilebrowser->addItem(new CMenuOptionChooser(LOCALE_FILEBROWSER_DENYDIRECTORYLEAVE, &g_settings.filebrowser_denydirectoryleave, 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 CMenuForwarder(LOCALE_FILEBROWSER_HEAD, true, NULL, miscSettingsFilebrowser, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE) );
|
||||||
miscSettings.addItem(new CMenuForwarder(LOCALE_VIDEOMENU_HDMI_CEC, true, NULL, new CCECSetup() , NULL, CRCInput::RC_0));
|
miscSettings.addItem(new CMenuForwarder(LOCALE_VIDEOMENU_HDMI_CEC, true, NULL, new CCECSetup() , NULL, CRCInput::RC_0));
|
||||||
|
miscSettings.addItem(new CMenuForwarder(LOCALE_ZAPITSETUP_HEAD, true, NULL, new CZapitSetup() , NULL, CRCInput::RC_1));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
//infobar
|
//infobar
|
||||||
|
@@ -1474,7 +1474,12 @@ typedef enum {
|
|||||||
LOCALE_CPU_FREQ_DEFAULT,
|
LOCALE_CPU_FREQ_DEFAULT,
|
||||||
LOCALE_WIZARD_WELCOME_HEAD,
|
LOCALE_WIZARD_WELCOME_HEAD,
|
||||||
LOCALE_WIZARD_WELCOME_TEXT,
|
LOCALE_WIZARD_WELCOME_TEXT,
|
||||||
LOCALE_WORD_FROM
|
LOCALE_WORD_FROM,
|
||||||
|
LOCALE_ZAPITSETUP_HEAD,
|
||||||
|
LOCALE_ZAPITSETUP_INFO,
|
||||||
|
LOCALE_ZAPITSETUP_LAST_RADIO,
|
||||||
|
LOCALE_ZAPITSETUP_LAST_USE,
|
||||||
|
LOCALE_ZAPITSETUP_LAST_TV
|
||||||
} neutrino_locale_t;
|
} neutrino_locale_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1474,7 +1474,12 @@ const char *locale_real_names[] = {
|
|||||||
"cpu.freq_default",
|
"cpu.freq_default",
|
||||||
"wizard.welcome_head",
|
"wizard.welcome_head",
|
||||||
"wizard.welcome_text",
|
"wizard.welcome_text",
|
||||||
"word.from"
|
"word.from",
|
||||||
|
"zapitsetup.head",
|
||||||
|
"zapitsetup.info",
|
||||||
|
"zapitsetup.last_radio",
|
||||||
|
"zapitsetup.last_use",
|
||||||
|
"zapitsetup.last_tv"
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -436,6 +436,15 @@ struct SNeutrinoSettings
|
|||||||
int filebrowser_sortmethod;
|
int filebrowser_sortmethod;
|
||||||
int filebrowser_denydirectoryleave;
|
int filebrowser_denydirectoryleave;
|
||||||
|
|
||||||
|
//zapit setup
|
||||||
|
std::string StartChannelTV;
|
||||||
|
std::string StartChannelRadio;
|
||||||
|
t_channel_id startchanneltv_id;
|
||||||
|
t_channel_id startchannelradio_id;
|
||||||
|
int startchanneltv_nr;
|
||||||
|
int startchannelradio_nr;
|
||||||
|
int uselastchannel;
|
||||||
|
|
||||||
//uboot
|
//uboot
|
||||||
int uboot_lcd_inverse;
|
int uboot_lcd_inverse;
|
||||||
int uboot_lcd_contrast;
|
int uboot_lcd_contrast;
|
||||||
|
@@ -138,6 +138,17 @@ typedef struct Channel_parameter
|
|||||||
uint32_t TP_id; /* diseqc<<24 | feparams->frequency>>8 */
|
uint32_t TP_id; /* diseqc<<24 | feparams->frequency>>8 */
|
||||||
} CH_params;
|
} CH_params;
|
||||||
|
|
||||||
|
/* complete zapit start thread-parameters in a struct */
|
||||||
|
typedef struct ZAPIT_start_arg
|
||||||
|
{
|
||||||
|
t_channel_id startchanneltv_id;
|
||||||
|
t_channel_id startchannelradio_id;
|
||||||
|
int startchanneltv_nr;
|
||||||
|
int startchannelradio_nr;
|
||||||
|
int uselastchannel;
|
||||||
|
int video_mode;
|
||||||
|
} Z_start_arg;
|
||||||
|
|
||||||
typedef struct TP_map
|
typedef struct TP_map
|
||||||
{
|
{
|
||||||
TP_params TP;
|
TP_params TP;
|
||||||
|
@@ -2167,7 +2167,8 @@ void signal_handler(int signum)
|
|||||||
|
|
||||||
int zapit_main_thread(void *data)
|
int zapit_main_thread(void *data)
|
||||||
{
|
{
|
||||||
int video_mode = (int) data;
|
Z_start_arg *ZapStart_arg = (Z_start_arg *) data;
|
||||||
|
int video_mode = ZapStart_arg->video_mode;
|
||||||
|
|
||||||
time_t stime;
|
time_t stime;
|
||||||
printf("[zapit] starting... tid %ld\n", syscall(__NR_gettid));
|
printf("[zapit] starting... tid %ld\n", syscall(__NR_gettid));
|
||||||
@@ -2228,10 +2229,20 @@ int zapit_main_thread(void *data)
|
|||||||
/* create bouquet manager */
|
/* create bouquet manager */
|
||||||
g_bouquetManager = new CBouquetManager();
|
g_bouquetManager = new CBouquetManager();
|
||||||
|
|
||||||
if (config.getInt32("lastChannelMode", 0))
|
bool tv_mode = true;
|
||||||
|
if (config.getInt32("lastChannelMode", 0)){
|
||||||
setRadioMode();
|
setRadioMode();
|
||||||
else
|
tv_mode = false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
setTVMode();
|
setTVMode();
|
||||||
|
tv_mode = true;
|
||||||
|
}
|
||||||
|
if(ZapStart_arg->uselastchannel == 0){
|
||||||
|
live_channel_id = tv_mode ? ZapStart_arg->startchanneltv_id : ZapStart_arg->startchannelradio_id;
|
||||||
|
lastChannelRadio = ZapStart_arg->startchannelradio_nr;
|
||||||
|
lastChannelTV = ZapStart_arg->startchanneltv_nr;
|
||||||
|
}
|
||||||
|
|
||||||
if (prepare_channels(frontend->getInfo()->type, diseqcType) < 0)
|
if (prepare_channels(frontend->getInfo()->type, diseqcType) < 0)
|
||||||
WARN("error parsing services");
|
WARN("error parsing services");
|
||||||
|
Reference in New Issue
Block a user