mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
neutrino: simplify key_zaphistory/key_current_transponder calls
* allow these both keys in movieplayer too; handling has been missing there
Origin commit data
------------------
Commit: e8b9104a72
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-03-21 (Wed, 21 Mar 2018)
Origin message was:
------------------
- neutrino: simplify key_zaphistory/key_current_transponder calls
* allow these both keys in movieplayer too; handling has been missing there
This commit is contained in:
@@ -2914,14 +2914,17 @@ void CNeutrinoApp::RealRun()
|
|||||||
else
|
else
|
||||||
quickZap( msg );
|
quickZap( msg );
|
||||||
}
|
}
|
||||||
else if( msg == (neutrino_msg_t) g_settings.key_zaphistory ) {
|
else if (msg == (neutrino_msg_t) g_settings.key_lastchannel) {
|
||||||
//NI InfoIcons
|
numericZap(msg);
|
||||||
if(g_settings.key_zaphistory == CRCInput::RC_home) {
|
}
|
||||||
if(g_settings.mode_icons && g_settings.mode_icons_skin == INFOICONS_POPUP) {
|
else if (msg == (neutrino_msg_t) g_settings.key_zaphistory || msg == (neutrino_msg_t) g_settings.key_current_transponder) {
|
||||||
|
//NI InfoIcons; hide, if one of the keys above is assigned to RC_home
|
||||||
|
if (msg == CRCInput::RC_home)
|
||||||
|
{
|
||||||
|
if (g_settings.mode_icons && g_settings.mode_icons_skin == INFOICONS_POPUP)
|
||||||
InfoIcons->hideIcons();
|
InfoIcons->hideIcons();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Zap-History "Bouquet"
|
|
||||||
InfoClock->enableInfoClock(false);
|
InfoClock->enableInfoClock(false);
|
||||||
InfoIcons->enableInfoIcons(false); //NI InfoIcons
|
InfoIcons->enableInfoIcons(false); //NI InfoIcons
|
||||||
numericZap(msg);
|
numericZap(msg);
|
||||||
@@ -2937,10 +2940,6 @@ void CNeutrinoApp::RealRun()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if( msg == (neutrino_msg_t) g_settings.key_lastchannel ) {
|
|
||||||
// Quick Zap
|
|
||||||
numericZap( msg );
|
|
||||||
}
|
|
||||||
else if(msg == (neutrino_msg_t) g_settings.key_timeshift) {
|
else if(msg == (neutrino_msg_t) g_settings.key_timeshift) {
|
||||||
#if 0
|
#if 0
|
||||||
if (mode == NeutrinoModes::mode_webtv) {
|
if (mode == NeutrinoModes::mode_webtv) {
|
||||||
@@ -2949,13 +2948,6 @@ void CNeutrinoApp::RealRun()
|
|||||||
#endif
|
#endif
|
||||||
CRecordManager::getInstance()->StartTimeshift();
|
CRecordManager::getInstance()->StartTimeshift();
|
||||||
}
|
}
|
||||||
else if (msg == (neutrino_msg_t) g_settings.key_current_transponder) {
|
|
||||||
InfoClock->enableInfoClock(false);
|
|
||||||
InfoIcons->enableInfoIcons(false); //NI InfoIcons
|
|
||||||
numericZap( msg );
|
|
||||||
InfoClock->enableInfoClock(true);
|
|
||||||
InfoIcons->enableInfoIcons(true); //NI InfoIcons
|
|
||||||
}
|
|
||||||
#ifdef ENABLE_PIP
|
#ifdef ENABLE_PIP
|
||||||
else if (msg == (neutrino_msg_t) g_settings.key_pip_close) {
|
else if (msg == (neutrino_msg_t) g_settings.key_pip_close) {
|
||||||
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
|
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
|
||||||
@@ -3188,6 +3180,8 @@ int CNeutrinoApp::showChannelList(const neutrino_msg_t _msg, bool from_menu)
|
|||||||
if (bouquetList->Bouquets.empty())
|
if (bouquetList->Bouquets.empty())
|
||||||
SetChannelMode(LIST_MODE_PROV);
|
SetChannelMode(LIST_MODE_PROV);
|
||||||
nNewChannel = bouquetList->exec(true);
|
nNewChannel = bouquetList->exec(true);
|
||||||
|
} else if (msg == (neutrino_msg_t) g_settings.key_zaphistory || msg == (neutrino_msg_t) g_settings.key_current_transponder) {
|
||||||
|
channelList->numericZap(msg);
|
||||||
}
|
}
|
||||||
_repeat:
|
_repeat:
|
||||||
printf("CNeutrinoApp::showChannelList: nNewChannel %d\n", nNewChannel);fflush(stdout);
|
printf("CNeutrinoApp::showChannelList: nNewChannel %d\n", nNewChannel);fflush(stdout);
|
||||||
@@ -3436,7 +3430,8 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ================================== KEYS ================================================ */
|
/* ================================== KEYS ================================================ */
|
||||||
if( msg == CRCInput::RC_ok || (!g_InfoViewer->getSwitchMode() && CNeutrinoApp::getInstance()->listModeKey(msg))) {
|
if( msg == CRCInput::RC_ok || msg == (neutrino_msg_t) g_settings.key_zaphistory || msg == (neutrino_msg_t) g_settings.key_current_transponder
|
||||||
|
|| (!g_InfoViewer->getSwitchMode() && CNeutrinoApp::getInstance()->listModeKey(msg))) {
|
||||||
if( (mode == NeutrinoModes::mode_tv) || (mode == NeutrinoModes::mode_radio) || (mode == NeutrinoModes::mode_ts) || (mode == NeutrinoModes::mode_webtv) || (mode == NeutrinoModes::mode_webradio)) {
|
if( (mode == NeutrinoModes::mode_tv) || (mode == NeutrinoModes::mode_radio) || (mode == NeutrinoModes::mode_ts) || (mode == NeutrinoModes::mode_webtv) || (mode == NeutrinoModes::mode_webradio)) {
|
||||||
showChannelList(msg);
|
showChannelList(msg);
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
|
Reference in New Issue
Block a user