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:
vanhofen
2017-12-13 09:39:12 +01:00
parent 46e26cd20c
commit 1e6e9e9e76
3 changed files with 27 additions and 25 deletions

View File

@@ -471,15 +471,16 @@ void CInfoViewerBB::paintshowButtonBar(bool noTimer/*=false*/)
if (g_settings.infobar_casystem_display < 2)
paint_cam_icons();
#if 0
scrambledCheck(true);
#endif
paint_ca_icons(0);
// Icons, starting from right
showIcon_SubT();
showIcon_VTXT();
showIcon_DD();
showIcon_16_9();
#if 0
scrambledCheck(true);
#endif
showIcon_CA_Status(0);
showIcon_Resolution();
showIcon_Tuner();
showSysfsHdd();
@@ -643,7 +644,7 @@ void CInfoViewerBB::showIcon_Resolution()
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);
}
void CInfoViewerBB::showOne_CAIcon()
void CInfoViewerBB::showIcon_CA()
{
std::string sIcon = "";
#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];
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
int acaid = 0;
@@ -809,10 +810,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
if (g_settings.infobar_casystem_display == 3)
return;
if(NeutrinoModes::mode_ts == CNeutrinoApp::getInstance()->getMode() && !CMoviePlayerGui::getInstance().timeshift){
if (g_settings.infobar_casystem_display == 2) {
fta = true;
showOne_CAIcon();
showIcon_CA();
}
return;
}
@@ -830,11 +832,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
if(!g_InfoViewer->chanready) {
if (g_settings.infobar_casystem_display == 2) {
fta = true;
showOne_CAIcon();
showIcon_CA();
}
else if(g_settings.infobar_casystem_display == 0) {
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;
@@ -846,7 +848,7 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
if (g_settings.infobar_casystem_display == 2) {
fta = channel->camap.empty();
showOne_CAIcon();
showIcon_CA();
return;
}
@@ -882,14 +884,14 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst)
}
//NI - decode info
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;
}
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)
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
@@ -1021,14 +1023,14 @@ void CInfoViewerBB::scrambledCheck(bool force)
}
if ((scrambledErr != scrambledErrSave) || (scrambledNoSig != scrambledNoSigSave) || force) {
showIcon_CA_Status(0);
paint_ca_icons(0);
showIcon_Resolution();
scrambledErrSave = scrambledErr;
scrambledNoSigSave = scrambledNoSig;
}
}
//NI CA Anzeige
//NI
void CInfoViewerBB::paint_cam_icons()
{
std::ostringstream buf;