mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 10:51:12 +02:00
gui/channellist: make displaying channel numbers optional
Conflicts: data/locale/deutsch.locale src/gui/channellist.cpp src/gui/osd_setup.cpp
This commit is contained in:
@@ -2023,9 +2023,12 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||
|
||||
int icon_space = r_icon_w+s_icon_w;
|
||||
|
||||
//number
|
||||
int numpos = x+5+numwidth- g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth(tmp);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(numpos,ypos+fheight, numwidth+5, tmp, color, fheight);
|
||||
//channel numbers
|
||||
if (g_settings.channellist_show_numbers) {
|
||||
int numpos = x+5+numwidth- g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth(tmp);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(numpos,ypos+fheight, numwidth+5, tmp, color, fheight);
|
||||
} else
|
||||
numwidth = -5;
|
||||
|
||||
int l=0;
|
||||
if (this->historyMode)
|
||||
|
@@ -991,6 +991,11 @@ void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist)
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_CHANNELLOGO, &g_settings.channellist_show_channellogo, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELLOGO);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
//show numbers
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_CHANNELNUMBER, &g_settings.channellist_show_numbers, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELNUMBER);
|
||||
menu_chanlist->addItem(mc);
|
||||
}
|
||||
|
||||
//eventlist
|
||||
|
Reference in New Issue
Block a user