mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
Add volume bar to osd timeouts in the OSD setup
Origin commit data
------------------
Branch: ni/coolstream
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
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1852,6 +1852,7 @@ timing.infobar_movieplayer Infobar (Filmwiedergabe)
|
|||||||
timing.infobar_radio Infobar (Radiobetrieb)
|
timing.infobar_radio Infobar (Radiobetrieb)
|
||||||
timing.menu Menü
|
timing.menu Menü
|
||||||
timing.numericzap Umschalten mit Zifferntasten
|
timing.numericzap Umschalten mit Zifferntasten
|
||||||
|
timing.volumebar Lautstärkeanzeige
|
||||||
unicable.lnb Unicable Eingang
|
unicable.lnb Unicable Eingang
|
||||||
unicable.qrg Unicable Frequenz
|
unicable.qrg Unicable Frequenz
|
||||||
unicable.scr Unicable SCR
|
unicable.scr Unicable SCR
|
||||||
|
@@ -1852,6 +1852,7 @@ timing.infobar_movieplayer Infobar (movie mode)
|
|||||||
timing.infobar_radio Infobar (radio mode)
|
timing.infobar_radio Infobar (radio mode)
|
||||||
timing.menu Menu
|
timing.menu Menu
|
||||||
timing.numericzap Numeric Zap
|
timing.numericzap Numeric Zap
|
||||||
|
timing.volumebar Volume bar
|
||||||
unicable.lnb Unicable Input
|
unicable.lnb Unicable Input
|
||||||
unicable.qrg Unicable Frequency
|
unicable.qrg Unicable Frequency
|
||||||
unicable.scr Unicable SCR
|
unicable.scr Unicable SCR
|
||||||
|
@@ -74,7 +74,7 @@ void CVolume::setvol(int vol)
|
|||||||
CZapit::getInstance()->SetVolume(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;
|
neutrino_msg_t msg = key;
|
||||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
@@ -164,10 +164,10 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
|||||||
}
|
}
|
||||||
|
|
||||||
setvol(g_settings.current_volume);
|
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) {
|
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) {
|
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::unhandled) {
|
||||||
g_RCInput->postMsg(msg, data);
|
g_RCInput->postMsg(msg, data);
|
||||||
|
@@ -47,7 +47,7 @@ class CVolume : public CChangeObserver
|
|||||||
static CVolume* getInstance();
|
static CVolume* getInstance();
|
||||||
|
|
||||||
void setvol(int vol);
|
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 SetCurrentPid(int pid) { apid = pid; }
|
||||||
void SetCurrentChannel(t_channel_id id) { channel_id = id; }
|
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_minus:
|
||||||
case CRCInput::RC_left:
|
case CRCInput::RC_left:
|
||||||
case CRCInput::RC_right:
|
case CRCInput::RC_right:
|
||||||
CVolume::getInstance()->setVolume(msg, true /*nowait = true*/);
|
CVolume::getInstance()->setVolume(msg);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||||
|
@@ -2094,7 +2094,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
showInfo();
|
showInfo();
|
||||||
break;
|
break;
|
||||||
case SNeutrinoSettings::VOLUME:
|
case SNeutrinoSettings::VOLUME:
|
||||||
g_volume->setVolume(msg, true);
|
g_volume->setVolume(msg);
|
||||||
break;
|
break;
|
||||||
default: /* SNeutrinoSettings::ZAP */
|
default: /* SNeutrinoSettings::ZAP */
|
||||||
quickZap(msg);
|
quickZap(msg);
|
||||||
@@ -2114,7 +2114,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
showInfo();
|
showInfo();
|
||||||
break;
|
break;
|
||||||
case SNeutrinoSettings::VOLUME:
|
case SNeutrinoSettings::VOLUME:
|
||||||
g_volume->setVolume(msg, true);
|
g_volume->setVolume(msg);
|
||||||
break;
|
break;
|
||||||
default: /* SNeutrinoSettings::ZAP */
|
default: /* SNeutrinoSettings::ZAP */
|
||||||
quickZap(msg);
|
quickZap(msg);
|
||||||
@@ -2535,7 +2535,7 @@ _repeat:
|
|||||||
}
|
}
|
||||||
else if ((msg == CRCInput::RC_plus) || (msg == CRCInput::RC_minus))
|
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;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == CRCInput::RC_spkr ) {
|
else if( msg == CRCInput::RC_spkr ) {
|
||||||
|
@@ -1879,6 +1879,7 @@ typedef enum
|
|||||||
LOCALE_TIMING_INFOBAR_RADIO,
|
LOCALE_TIMING_INFOBAR_RADIO,
|
||||||
LOCALE_TIMING_MENU,
|
LOCALE_TIMING_MENU,
|
||||||
LOCALE_TIMING_NUMERICZAP,
|
LOCALE_TIMING_NUMERICZAP,
|
||||||
|
LOCALE_TIMING_VOLUMEBAR,
|
||||||
LOCALE_UNICABLE_LNB,
|
LOCALE_UNICABLE_LNB,
|
||||||
LOCALE_UNICABLE_QRG,
|
LOCALE_UNICABLE_QRG,
|
||||||
LOCALE_UNICABLE_SCR,
|
LOCALE_UNICABLE_SCR,
|
||||||
|
@@ -1879,6 +1879,7 @@ const char * locale_real_names[] =
|
|||||||
"timing.infobar_radio",
|
"timing.infobar_radio",
|
||||||
"timing.menu",
|
"timing.menu",
|
||||||
"timing.numericzap",
|
"timing.numericzap",
|
||||||
|
"timing.volumebar",
|
||||||
"unicable.lnb",
|
"unicable.lnb",
|
||||||
"unicable.qrg",
|
"unicable.qrg",
|
||||||
"unicable.scr",
|
"unicable.scr",
|
||||||
|
@@ -233,15 +233,15 @@ struct SNeutrinoSettings
|
|||||||
//timing
|
//timing
|
||||||
enum TIMING_SETTINGS
|
enum TIMING_SETTINGS
|
||||||
{
|
{
|
||||||
TIMING_MENU = 0,
|
TIMING_MENU = 0,
|
||||||
TIMING_CHANLIST = 1,
|
TIMING_CHANLIST = 1,
|
||||||
TIMING_EPG = 2,
|
TIMING_EPG = 2,
|
||||||
TIMING_INFOBAR = 3,
|
TIMING_INFOBAR = 3,
|
||||||
TIMING_INFOBAR_RADIO = 4,
|
TIMING_INFOBAR_RADIO = 4,
|
||||||
TIMING_INFOBAR_MOVIE = 5,
|
TIMING_INFOBAR_MOVIE = 5,
|
||||||
// TIMING_VOLUMEBAR,
|
TIMING_VOLUMEBAR = 6,
|
||||||
TIMING_FILEBROWSER = 6,
|
TIMING_FILEBROWSER = 7,
|
||||||
TIMING_NUMERICZAP = 7,
|
TIMING_NUMERICZAP = 8,
|
||||||
|
|
||||||
TIMING_SETTING_COUNT
|
TIMING_SETTING_COUNT
|
||||||
};
|
};
|
||||||
@@ -649,7 +649,7 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO
|
|||||||
{ 6, LOCALE_TIMING_INFOBAR },
|
{ 6, LOCALE_TIMING_INFOBAR },
|
||||||
{ 0, LOCALE_TIMING_INFOBAR_RADIO },
|
{ 0, LOCALE_TIMING_INFOBAR_RADIO },
|
||||||
{ 6, LOCALE_TIMING_INFOBAR_MOVIEPLAYER},
|
{ 6, LOCALE_TIMING_INFOBAR_MOVIEPLAYER},
|
||||||
// { 3, LOCALE_TIMING_VOLUMEBAR },
|
{ 3, LOCALE_TIMING_VOLUMEBAR },
|
||||||
{ 60, LOCALE_TIMING_FILEBROWSER },
|
{ 60, LOCALE_TIMING_FILEBROWSER },
|
||||||
{ 3, LOCALE_TIMING_NUMERICZAP }
|
{ 3, LOCALE_TIMING_NUMERICZAP }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user