infoviewer_bb: enable radiotext-icons

Origin commit data
------------------
Commit: 68bb453a35
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-11-23 (Sat, 23 Nov 2013)

Origin message was:
------------------
- infoviewer_bb: enable radiotext-icons
This commit is contained in:
vanhofen
2013-11-23 00:22:12 +01:00
parent 253c5e34f3
commit a6769b1cfc
2 changed files with 13 additions and 16 deletions

View File

@@ -62,7 +62,6 @@
extern CRemoteControl *g_RemoteControl; /* neutrino.cpp */
extern cVideo * videoDecoder;
//#define SHOW_RADIOTEXT_ICON
#define COL_INFOBAR_BUTTONS_BACKGROUND (COL_INFOBAR_SHADOW_PLUS_1)
CInfoViewerBB::CInfoViewerBB()
@@ -173,12 +172,10 @@ void CInfoViewerBB::getBBIconInfo()
if (neutrino->getMode() != NeutrinoMessages::mode_radio)
iconView = checkBBIcon(NEUTRINO_ICON_VTXT, &w, &h);
break;
#ifdef SHOW_RADIOTEXT_ICON
case CInfoViewerBB::ICON_RT:
if (neutrino->getMode() == NeutrinoMessages::mode_radio)
iconView = checkBBIcon(NEUTRINO_ICON_RT, &w, &h);
iconView = checkBBIcon(NEUTRINO_ICON_RADIOTEXTGET, &w, &h);
break;
#endif
case CInfoViewerBB::ICON_DD:
if( g_settings.infobar_show_dd_available )
iconView = checkBBIcon(NEUTRINO_ICON_DD, &w, &h);
@@ -478,22 +475,19 @@ void CInfoViewerBB::showIcon_DD()
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
}
#ifdef SHOW_RADIOTEXT_ICON
void CInfoViewerBB::showIcon_RadioText(bool rt_available)
{
// TODO: display radiotext icon
if ((showButtonBar) && (is_visible))
{
int mode = CNeutrinoApp::getInstance()->getMode();
if (!is_visible || !g_settings.radiotext_enable)
return;
std::string rt_icon;
if (rt_available)
rt_icon = (g_Radiotext->S_RtOsd) ? NEUTRINO_ICON_RADIOTEXTGET : NEUTRINO_ICON_RADIOTEXTWAIT;
else
rt_icon = NEUTRINO_ICON_RADIOTEXTOFF;
showBBIcons(CInfoViewerBB::ICON_RT, rt_icon);
}
}
#else
void CInfoViewerBB::showIcon_RadioText(bool /*rt_available*/)
{
}
#endif
void CInfoViewerBB::showIcon_16_9()
{

View File

@@ -110,6 +110,9 @@
#define NEUTRINO_ICON_FF "mp_f-skip"
#define NEUTRINO_ICON_PROTECTING "protecting"
#define NEUTRINO_ICON_QUESTION "question"
#define NEUTRINO_ICON_RADIOTEXTGET "radiotextget"
#define NEUTRINO_ICON_RADIOTEXTWAIT "radiotextwait"
#define NEUTRINO_ICON_RADIOTEXTOFF "radiotextoff"
#define NEUTRINO_ICON_RADIOMODE "radiomode"
#define NEUTRINO_ICON_RECORDING "recording"
#define NEUTRINO_ICON_REC "rec"