mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
*neutrino: partial revert of r1985, but without clock
User request: implementation of timerlist needs personalisation see also: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p137661-dikussion-neues-hauptmen%C3%BC-mit-timerliste/#post137661 git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1995 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -3555,13 +3555,20 @@ void CNeutrinoApp::radioMode( bool rezap)
|
||||
}
|
||||
}
|
||||
|
||||
//switching from current mode to next mode between tv or radio
|
||||
void CNeutrinoApp::switchTvRadioMode()
|
||||
//switching from current mode to tv or radio mode or to optional parameter prev_mode
|
||||
void CNeutrinoApp::switchTvRadioMode(const int prev_mode)
|
||||
{
|
||||
if (mode == mode_radio )
|
||||
tvMode();
|
||||
else if(mode == mode_tv)
|
||||
radioMode();
|
||||
if (prev_mode != mode_unknown){
|
||||
if (prev_mode == mode_tv && mode != mode_tv )
|
||||
tvMode();
|
||||
else if(prev_mode == mode_radio && mode != mode_radio)
|
||||
radioMode();
|
||||
}else {
|
||||
if (mode == mode_radio )
|
||||
tvMode();
|
||||
else if(mode == mode_tv)
|
||||
radioMode();
|
||||
}
|
||||
}
|
||||
|
||||
//switching clock on or off depends of current displayed or not
|
||||
@@ -3605,9 +3612,19 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
switchClockOnOff();
|
||||
returnval = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if (actionKey=="tv_radio_switch")//used in mainmenu
|
||||
// else if (actionKey=="tv_radio_switch")//used in mainmenu
|
||||
// {
|
||||
// switchTvRadioMode();
|
||||
// returnval = menu_return::RETURN_EXIT_ALL;
|
||||
// }
|
||||
else if (actionKey=="tv")//used in mainmenu
|
||||
{
|
||||
switchTvRadioMode();
|
||||
switchTvRadioMode(mode_tv);
|
||||
returnval = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if (actionKey=="radio")//used in mainmenu
|
||||
{
|
||||
switchTvRadioMode(mode_radio);
|
||||
returnval = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if(actionKey=="scart") {
|
||||
|
Reference in New Issue
Block a user