mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
infoviewer_bb: small renamings to get more logic in function names
showOne_CAIcon() => showIcon_CA()
paint_ca_icons() => paint_ca_icon()
showIcon_CA_Status() => paint_ca_icons()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9389e78318
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-13 (Wed, 13 Dec 2017)
Origin message was:
------------------
- infoviewer_bb: small renamings to get more logic in function names
showOne_CAIcon() => showIcon_CA()
paint_ca_icons() => paint_ca_icon()
showIcon_CA_Status() => paint_ca_icons()
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1095,7 +1095,7 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
ecmInfoBox_hide();
|
ecmInfoBox_hide();
|
||||||
} else {
|
} else {
|
||||||
g_settings.show_ecm = 1;
|
g_settings.show_ecm = 1;
|
||||||
infoViewerBB->showIcon_CA_Status(0);
|
infoViewerBB->paint_ca_icons(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_RCInput->clearRCMsg();
|
g_RCInput->clearRCMsg();
|
||||||
@@ -1174,7 +1174,7 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
showRadiotext();
|
showRadiotext();
|
||||||
|
|
||||||
infoViewerBB->showIcon_16_9();
|
infoViewerBB->showIcon_16_9();
|
||||||
//infoViewerBB->showIcon_CA_Status(0);
|
//infoViewerBB->paint_ca_icons(0);
|
||||||
//NI
|
//NI
|
||||||
if(file_exists("/tmp/ecm.info"))
|
if(file_exists("/tmp/ecm.info"))
|
||||||
{
|
{
|
||||||
@@ -1182,7 +1182,7 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
//printf("CInfoViewer::loop() ecm.info.tmp = %s\nCInfoViewer::loop() ecm.info = %s\n",md5_ecmInfo.c_str(),md5_tmp.c_str());
|
//printf("CInfoViewer::loop() ecm.info.tmp = %s\nCInfoViewer::loop() ecm.info = %s\n",md5_ecmInfo.c_str(),md5_tmp.c_str());
|
||||||
if(md5_ecmInfo != md5_tmp) {
|
if(md5_ecmInfo != md5_tmp) {
|
||||||
puts("CInfoViewer::loop() CA reload");
|
puts("CInfoViewer::loop() CA reload");
|
||||||
infoViewerBB->showIcon_CA_Status(0);
|
infoViewerBB->paint_ca_icons(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
infoViewerBB->showIcon_Resolution();
|
infoViewerBB->showIcon_Resolution();
|
||||||
@@ -1497,9 +1497,9 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
|
|||||||
} else if (msg == NeutrinoMessages::EVT_ZAP_GOTPIDS) {
|
} else if (msg == NeutrinoMessages::EVT_ZAP_GOTPIDS) {
|
||||||
if ((*(t_channel_id *) data) == current_channel_id) {
|
if ((*(t_channel_id *) data) == current_channel_id) {
|
||||||
if (is_visible && showButtonBar) {
|
if (is_visible && showButtonBar) {
|
||||||
|
//infoViewerBB->paint_ca_icons(0);
|
||||||
infoViewerBB->showIcon_VTXT();
|
infoViewerBB->showIcon_VTXT();
|
||||||
infoViewerBB->showIcon_SubT();
|
infoViewerBB->showIcon_SubT();
|
||||||
//infoViewerBB->showIcon_CA_Status(0);
|
|
||||||
infoViewerBB->showIcon_Resolution();
|
infoViewerBB->showIcon_Resolution();
|
||||||
infoViewerBB->showIcon_Tuner();
|
infoViewerBB->showIcon_Tuner();
|
||||||
}
|
}
|
||||||
@@ -1514,7 +1514,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
|
|||||||
//chanready = 1;
|
//chanready = 1;
|
||||||
showSNR ();
|
showSNR ();
|
||||||
if (is_visible && showButtonBar)
|
if (is_visible && showButtonBar)
|
||||||
infoViewerBB->showIcon_CA_Status(0);
|
infoViewerBB->paint_ca_icons(0);
|
||||||
//Set_CA_Status (data);
|
//Set_CA_Status (data);
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
} else if (msg == NeutrinoMessages::EVT_TIMER) {
|
} else if (msg == NeutrinoMessages::EVT_TIMER) {
|
||||||
@@ -2173,7 +2173,7 @@ void CInfoViewer::killTitle()
|
|||||||
void CInfoViewer::Set_CA_Status (int /*Status*/)
|
void CInfoViewer::Set_CA_Status (int /*Status*/)
|
||||||
{
|
{
|
||||||
if (is_visible && showButtonBar)
|
if (is_visible && showButtonBar)
|
||||||
infoViewerBB->showIcon_CA_Status(1);
|
infoViewerBB->paint_ca_icons(1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@@ -471,15 +471,16 @@ void CInfoViewerBB::paintshowButtonBar(bool noTimer/*=false*/)
|
|||||||
if (g_settings.infobar_casystem_display < 2)
|
if (g_settings.infobar_casystem_display < 2)
|
||||||
paint_cam_icons();
|
paint_cam_icons();
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
scrambledCheck(true);
|
||||||
|
#endif
|
||||||
|
paint_ca_icons(0);
|
||||||
|
|
||||||
// Icons, starting from right
|
// Icons, starting from right
|
||||||
showIcon_SubT();
|
showIcon_SubT();
|
||||||
showIcon_VTXT();
|
showIcon_VTXT();
|
||||||
showIcon_DD();
|
showIcon_DD();
|
||||||
showIcon_16_9();
|
showIcon_16_9();
|
||||||
#if 0
|
|
||||||
scrambledCheck(true);
|
|
||||||
#endif
|
|
||||||
showIcon_CA_Status(0);
|
|
||||||
showIcon_Resolution();
|
showIcon_Resolution();
|
||||||
showIcon_Tuner();
|
showIcon_Tuner();
|
||||||
showSysfsHdd();
|
showSysfsHdd();
|
||||||
@@ -643,7 +644,7 @@ void CInfoViewerBB::showIcon_Resolution()
|
|||||||
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);
|
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoViewerBB::showOne_CAIcon()
|
void CInfoViewerBB::showIcon_CA()
|
||||||
{
|
{
|
||||||
std::string sIcon = "";
|
std::string sIcon = "";
|
||||||
#if 0
|
#if 0
|
||||||
@@ -735,7 +736,7 @@ void CInfoViewerBB::showBarHdd(int percent)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoViewerBB::paint_ca_icons(int caid, const char *icon, int &icon_space_offset)
|
void CInfoViewerBB::paint_ca_icon(int caid, const char *icon, int &icon_space_offset)
|
||||||
{
|
{
|
||||||
char buf[20];
|
char buf[20];
|
||||||
int endx = g_InfoViewer->BoxEndX - OFFSET_INNER_MID - (g_settings.infobar_casystem_frame ? FRAME_WIDTH_MIN + OFFSET_INNER_SMALL : 0);
|
int endx = g_InfoViewer->BoxEndX - OFFSET_INNER_MID - (g_settings.infobar_casystem_frame ? FRAME_WIDTH_MIN + OFFSET_INNER_SMALL : 0);
|
||||||
@@ -800,7 +801,7 @@ void CInfoViewerBB::paint_ca_icons(int caid, const char *icon, int &icon_space_o
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoViewerBB::showIcon_CA_Status(int notfirst)
|
void CInfoViewerBB::paint_ca_icons(int notfirst)
|
||||||
{
|
{
|
||||||
//NI
|
//NI
|
||||||
int acaid = 0;
|
int acaid = 0;
|
||||||
@@ -809,10 +810,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
|
|||||||
|
|
||||||
if (g_settings.infobar_casystem_display == 3)
|
if (g_settings.infobar_casystem_display == 3)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(NeutrinoModes::mode_ts == CNeutrinoApp::getInstance()->getMode() && !CMoviePlayerGui::getInstance().timeshift){
|
if(NeutrinoModes::mode_ts == CNeutrinoApp::getInstance()->getMode() && !CMoviePlayerGui::getInstance().timeshift){
|
||||||
if (g_settings.infobar_casystem_display == 2) {
|
if (g_settings.infobar_casystem_display == 2) {
|
||||||
fta = true;
|
fta = true;
|
||||||
showOne_CAIcon();
|
showIcon_CA();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -830,11 +832,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
|
|||||||
if(!g_InfoViewer->chanready) {
|
if(!g_InfoViewer->chanready) {
|
||||||
if (g_settings.infobar_casystem_display == 2) {
|
if (g_settings.infobar_casystem_display == 2) {
|
||||||
fta = true;
|
fta = true;
|
||||||
showOne_CAIcon();
|
showIcon_CA();
|
||||||
}
|
}
|
||||||
else if(g_settings.infobar_casystem_display == 0) {
|
else if(g_settings.infobar_casystem_display == 0) {
|
||||||
for (int i = 0; i < (int)(sizeof(caids)/sizeof(int)); i++) {
|
for (int i = 0; i < (int)(sizeof(caids)/sizeof(int)); i++) {
|
||||||
paint_ca_icons(caids[i], white, icon_space_offset);
|
paint_ca_icon(caids[i], white, icon_space_offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -846,7 +848,7 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
|
|||||||
|
|
||||||
if (g_settings.infobar_casystem_display == 2) {
|
if (g_settings.infobar_casystem_display == 2) {
|
||||||
fta = channel->camap.empty();
|
fta = channel->camap.empty();
|
||||||
showOne_CAIcon();
|
showIcon_CA();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -882,14 +884,14 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
|
|||||||
}
|
}
|
||||||
//NI - decode info
|
//NI - decode info
|
||||||
if(i == (int)(sizeof(caids)/sizeof(int))-1) {
|
if(i == (int)(sizeof(caids)/sizeof(int))-1) {
|
||||||
paint_ca_icons(caids[i], fta ? "fta" : dec_icon_name[decode], icon_space_offset);
|
paint_ca_icon(caids[i], fta ? "fta" : dec_icon_name[decode], icon_space_offset);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(g_settings.infobar_casystem_display == 0)
|
if(g_settings.infobar_casystem_display == 0)
|
||||||
paint_ca_icons(caids[i], (found ? (dcaid ? green : yellow) : white), icon_space_offset); //NI
|
paint_ca_icon(caids[i], (found ? (dcaid ? green : yellow) : white), icon_space_offset); //NI
|
||||||
else if(found)
|
else if(found)
|
||||||
paint_ca_icons(caids[i], (dcaid ? green : yellow), icon_space_offset); //NI
|
paint_ca_icon(caids[i], (dcaid ? green : yellow), icon_space_offset); //NI
|
||||||
}
|
}
|
||||||
|
|
||||||
//NI
|
//NI
|
||||||
@@ -1021,14 +1023,14 @@ void CInfoViewerBB::scrambledCheck(bool force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((scrambledErr != scrambledErrSave) || (scrambledNoSig != scrambledNoSigSave) || force) {
|
if ((scrambledErr != scrambledErrSave) || (scrambledNoSig != scrambledNoSigSave) || force) {
|
||||||
showIcon_CA_Status(0);
|
paint_ca_icons(0);
|
||||||
showIcon_Resolution();
|
showIcon_Resolution();
|
||||||
scrambledErrSave = scrambledErr;
|
scrambledErrSave = scrambledErr;
|
||||||
scrambledNoSigSave = scrambledNoSig;
|
scrambledNoSigSave = scrambledNoSig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//NI CA Anzeige
|
//NI
|
||||||
void CInfoViewerBB::paint_cam_icons()
|
void CInfoViewerBB::paint_cam_icons()
|
||||||
{
|
{
|
||||||
std::ostringstream buf;
|
std::ostringstream buf;
|
||||||
|
@@ -121,9 +121,8 @@ class CInfoViewerBB
|
|||||||
void getBBIconInfo(void);
|
void getBBIconInfo(void);
|
||||||
bool checkBBIcon(const char * const icon, int *w, int *h);
|
bool checkBBIcon(const char * const icon, int *w, int *h);
|
||||||
|
|
||||||
void paint_ca_icons(int, const char*, int&);
|
void paint_ca_icon(int, const char*, int&);
|
||||||
void paint_ca_bar();
|
void paint_ca_bar();
|
||||||
void showOne_CAIcon();
|
|
||||||
|
|
||||||
static void* scrambledThread(void *arg);
|
static void* scrambledThread(void *arg);
|
||||||
void scrambledCheck(bool force=false);
|
void scrambledCheck(bool force=false);
|
||||||
@@ -141,8 +140,8 @@ class CInfoViewerBB
|
|||||||
int bottom_bar_offset, InfoHeightY_Info;
|
int bottom_bar_offset, InfoHeightY_Info;
|
||||||
bool is_visible;
|
bool is_visible;
|
||||||
|
|
||||||
|
void paint_ca_icons(int);
|
||||||
void showSysfsHdd(void);
|
void showSysfsHdd(void);
|
||||||
void showIcon_CA_Status(int);
|
|
||||||
void showIcon_16_9();
|
void showIcon_16_9();
|
||||||
void showIcon_RadioText(bool rt_available);
|
void showIcon_RadioText(bool rt_available);
|
||||||
void showIcon_VTXT();
|
void showIcon_VTXT();
|
||||||
@@ -150,6 +149,7 @@ class CInfoViewerBB
|
|||||||
void showIcon_Resolution();
|
void showIcon_Resolution();
|
||||||
void showIcon_Tuner(void);
|
void showIcon_Tuner(void);
|
||||||
void showIcon_DD(void);
|
void showIcon_DD(void);
|
||||||
|
void showIcon_CA();
|
||||||
void showBBButtons(bool paintFooter = false);
|
void showBBButtons(bool paintFooter = false);
|
||||||
void paintshowButtonBar(bool noTimer = false);
|
void paintshowButtonBar(bool noTimer = false);
|
||||||
void getBBButtonInfo(void);
|
void getBBButtonInfo(void);
|
||||||
|
Reference in New Issue
Block a user