mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
Add volume bar to osd timeouts in the OSD setup
Origin commit data
------------------
Commit: d08d18522e
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-03 (Mon, 03 Jun 2013)
Origin message was:
------------------
* Add volume bar to osd timeouts in the OSD setup
This commit is contained in:
@@ -1852,6 +1852,7 @@ timing.infobar_movieplayer Infobar (Filmwiedergabe)
|
||||
timing.infobar_radio Infobar (Radiobetrieb)
|
||||
timing.menu Menü
|
||||
timing.numericzap Umschalten mit Zifferntasten
|
||||
timing.volumebar Lautstärkeanzeige
|
||||
unicable.lnb Unicable Eingang
|
||||
unicable.qrg Unicable Frequenz
|
||||
unicable.scr Unicable SCR
|
||||
|
@@ -1852,6 +1852,7 @@ timing.infobar_movieplayer Infobar (movie mode)
|
||||
timing.infobar_radio Infobar (radio mode)
|
||||
timing.menu Menu
|
||||
timing.numericzap Numeric Zap
|
||||
timing.volumebar Volume bar
|
||||
unicable.lnb Unicable Input
|
||||
unicable.qrg Unicable Frequency
|
||||
unicable.scr Unicable SCR
|
||||
|
@@ -74,7 +74,7 @@ void CVolume::setvol(int vol)
|
||||
CZapit::getInstance()->SetVolume(vol);
|
||||
}
|
||||
|
||||
void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
void CVolume::setVolume(const neutrino_msg_t key)
|
||||
{
|
||||
neutrino_msg_t msg = key;
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
@@ -164,10 +164,10 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
}
|
||||
|
||||
setvol(g_settings.current_volume);
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(nowait ? 1 : 3);
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd (g_settings.timing[SNeutrinoSettings::TIMING_VOLUMEBAR] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_VOLUMEBAR]);
|
||||
}
|
||||
else if (msg == NeutrinoMessages::EVT_VOLCHANGED) {
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(3);
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd (g_settings.timing[SNeutrinoSettings::TIMING_VOLUMEBAR] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_VOLUMEBAR]);
|
||||
}
|
||||
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::unhandled) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
|
@@ -47,7 +47,7 @@ class CVolume : public CChangeObserver
|
||||
static CVolume* getInstance();
|
||||
|
||||
void setvol(int vol);
|
||||
void setVolume(const neutrino_msg_t key, bool nowait = false);
|
||||
void setVolume(const neutrino_msg_t key);
|
||||
|
||||
void SetCurrentPid(int pid) { apid = pid; }
|
||||
void SetCurrentChannel(t_channel_id id) { channel_id = id; }
|
||||
|
@@ -450,7 +450,7 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
case CRCInput::RC_minus:
|
||||
case CRCInput::RC_left:
|
||||
case CRCInput::RC_right:
|
||||
CVolume::getInstance()->setVolume(msg, true /*nowait = true*/);
|
||||
CVolume::getInstance()->setVolume(msg);
|
||||
break;
|
||||
default:
|
||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||
|
@@ -2094,7 +2094,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
||||
showInfo();
|
||||
break;
|
||||
case SNeutrinoSettings::VOLUME:
|
||||
g_volume->setVolume(msg, true);
|
||||
g_volume->setVolume(msg);
|
||||
break;
|
||||
default: /* SNeutrinoSettings::ZAP */
|
||||
quickZap(msg);
|
||||
@@ -2114,7 +2114,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
||||
showInfo();
|
||||
break;
|
||||
case SNeutrinoSettings::VOLUME:
|
||||
g_volume->setVolume(msg, true);
|
||||
g_volume->setVolume(msg);
|
||||
break;
|
||||
default: /* SNeutrinoSettings::ZAP */
|
||||
quickZap(msg);
|
||||
@@ -2535,7 +2535,7 @@ _repeat:
|
||||
}
|
||||
else if ((msg == CRCInput::RC_plus) || (msg == CRCInput::RC_minus))
|
||||
{
|
||||
g_volume->setVolume(msg, (mode != mode_scart));
|
||||
g_volume->setVolume(msg);
|
||||
return messages_return::handled;
|
||||
}
|
||||
else if( msg == CRCInput::RC_spkr ) {
|
||||
|
@@ -1879,6 +1879,7 @@ typedef enum
|
||||
LOCALE_TIMING_INFOBAR_RADIO,
|
||||
LOCALE_TIMING_MENU,
|
||||
LOCALE_TIMING_NUMERICZAP,
|
||||
LOCALE_TIMING_VOLUMEBAR,
|
||||
LOCALE_UNICABLE_LNB,
|
||||
LOCALE_UNICABLE_QRG,
|
||||
LOCALE_UNICABLE_SCR,
|
||||
|
@@ -1879,6 +1879,7 @@ const char * locale_real_names[] =
|
||||
"timing.infobar_radio",
|
||||
"timing.menu",
|
||||
"timing.numericzap",
|
||||
"timing.volumebar",
|
||||
"unicable.lnb",
|
||||
"unicable.qrg",
|
||||
"unicable.scr",
|
||||
|
@@ -239,9 +239,9 @@ struct SNeutrinoSettings
|
||||
TIMING_INFOBAR = 3,
|
||||
TIMING_INFOBAR_RADIO = 4,
|
||||
TIMING_INFOBAR_MOVIE = 5,
|
||||
// TIMING_VOLUMEBAR,
|
||||
TIMING_FILEBROWSER = 6,
|
||||
TIMING_NUMERICZAP = 7,
|
||||
TIMING_VOLUMEBAR = 6,
|
||||
TIMING_FILEBROWSER = 7,
|
||||
TIMING_NUMERICZAP = 8,
|
||||
|
||||
TIMING_SETTING_COUNT
|
||||
};
|
||||
@@ -649,7 +649,7 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO
|
||||
{ 6, LOCALE_TIMING_INFOBAR },
|
||||
{ 0, LOCALE_TIMING_INFOBAR_RADIO },
|
||||
{ 6, LOCALE_TIMING_INFOBAR_MOVIEPLAYER},
|
||||
// { 3, LOCALE_TIMING_VOLUMEBAR },
|
||||
{ 3, LOCALE_TIMING_VOLUMEBAR },
|
||||
{ 60, LOCALE_TIMING_FILEBROWSER },
|
||||
{ 3, LOCALE_TIMING_NUMERICZAP }
|
||||
};
|
||||
|
Reference in New Issue
Block a user