mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 22:58:28 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: 367b0a68ef
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-25 (Mon, 25 Sep 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -304,6 +304,8 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
liststart = (selected/items_count)*items_count;
|
||||
if (state == beDefault)
|
||||
beginMoveBouquet();
|
||||
else if (state == beMoving)
|
||||
finishMoveBouquet();
|
||||
paintItem(selected - liststart);
|
||||
}
|
||||
}
|
||||
@@ -312,7 +314,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */
|
||||
{
|
||||
if (state == beDefault)
|
||||
renameBouquet();
|
||||
renameBouquet();
|
||||
}
|
||||
}
|
||||
else if (msg == CRCInput::RC_pause)
|
||||
@@ -320,7 +322,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */
|
||||
{
|
||||
if (state == beDefault)
|
||||
switchHideBouquet();
|
||||
switchHideBouquet();
|
||||
}
|
||||
}
|
||||
else if (msg == CRCInput::RC_stop)
|
||||
@@ -328,7 +330,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */
|
||||
{
|
||||
if (state == beDefault)
|
||||
switchLockBouquet();
|
||||
switchLockBouquet();
|
||||
}
|
||||
}
|
||||
else if (msg == CRCInput::RC_ok)
|
||||
|
@@ -1342,7 +1342,7 @@ void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar)
|
||||
}
|
||||
|
||||
//channellist
|
||||
void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist, bool hint_paint)
|
||||
void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist)
|
||||
{
|
||||
CMenuOptionChooser * mc;
|
||||
|
||||
@@ -1351,32 +1351,27 @@ void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist, bool hint_paint
|
||||
|
||||
// channellist additional
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_ADDITIONAL, &g_settings.channellist_additional, CHANNELLIST_ADDITIONAL_OPTIONS, CHANNELLIST_ADDITIONAL_OPTION_COUNT, true);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_ADDITIONAL);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_ADDITIONAL);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
// epg align
|
||||
mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_CHANNELLIST_EPGTEXT_ALIGN, &g_settings.channellist_epgtext_align_right, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS_COUNT, true);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EPG_ALIGN);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EPG_ALIGN);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
// extended channel list
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_EXTENDED, &g_settings.theme.progressbar_design_channellist, PROGRESSBAR_COLOR_OPTIONS, PROGRESSBAR_COLOR_OPTION_COUNT, true, this);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EXTENDED);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EXTENDED);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
// show infobox
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_INFOBOX, &g_settings.channellist_show_infobox, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, channellistNotifier);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_INFOBOX);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_INFOBOX);
|
||||
menu_chanlist->addItem(mc);
|
||||
|
||||
// foot
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_FOOT, &g_settings.channellist_foot, CHANNELLIST_FOOT_OPTIONS, CHANNELLIST_FOOT_OPTIONS_COUNT, g_settings.channellist_show_infobox);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_FOOT);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_FOOT);
|
||||
menu_chanlist->addItem(mc);
|
||||
channellistNotifier->addItem(mc);
|
||||
|
||||
@@ -1384,15 +1379,13 @@ void COsdSetup::showOsdChanlistSetup(CMenuWidget *menu_chanlist, bool hint_paint
|
||||
#if 0
|
||||
//show channel logo
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_CHANNELLOGO, &g_settings.channellist_show_channellogo, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELLOGO);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELLOGO);
|
||||
menu_chanlist->addItem(mc);
|
||||
#endif
|
||||
|
||||
//show numbers
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_CHANNELNUMBER, &g_settings.channellist_show_numbers, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
if(hint_paint)
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELNUMBER);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_CHANNELNUMBER);
|
||||
menu_chanlist->addItem(mc);
|
||||
}
|
||||
|
||||
@@ -1632,7 +1625,7 @@ int COsdSetup::showContextChanlistMenu(CChannelList *parent_channellist)
|
||||
menu_chanlist->enableFade(false);
|
||||
menu_chanlist->setSelected(cselected);
|
||||
|
||||
showOsdChanlistSetup(menu_chanlist, false);
|
||||
showOsdChanlistSetup(menu_chanlist);
|
||||
menu_chanlist->addItem(new CMenuSeparator(CMenuSeparator::LINE));
|
||||
|
||||
CMenuWidget *fontSettingsSubMenu = new CMenuWidget(LOCALE_FONTMENU_HEAD, NEUTRINO_ICON_KEYBINDING);
|
||||
@@ -1650,7 +1643,7 @@ int COsdSetup::showContextChanlistMenu(CChannelList *parent_channellist)
|
||||
fontSettingsSubMenu->addItem(new CMenuForwarder(LOCALE_OPTIONS_DEFAULT, true, NULL, this, font_sizes_groups[i].actionkey));
|
||||
|
||||
CMenuForwarder * mf = new CMenuDForwarder(LOCALE_FONTMENU_HEAD, true, NULL, fontSettingsSubMenu, NULL, CRCInput::RC_red);
|
||||
// mf->setHint("", LOCALE_MENU_HINT_FONTS);//FIXME menu restoreScreen
|
||||
mf->setHint("", LOCALE_MENU_HINT_FONTS);
|
||||
menu_chanlist->addItem(mf);
|
||||
|
||||
int res = menu_chanlist->exec(NULL, "");
|
||||
|
@@ -75,7 +75,7 @@ class COsdSetup : public CMenuTarget, public CChangeObserver
|
||||
void showOsdMenusSetup(CMenuWidget *menu_menus);
|
||||
void showOsdChannellogosSetup(CMenuWidget *menu_channellogos); //NI
|
||||
void showOsdInfobarSetup(CMenuWidget *menu_infobar);
|
||||
void showOsdChanlistSetup(CMenuWidget *menu_chanlist, bool hint_paint = true);
|
||||
void showOsdChanlistSetup(CMenuWidget *menu_chanlist);
|
||||
void showOsdEventlistSetup(CMenuWidget *menu_eventlist);
|
||||
void showOsdVolumeSetup(CMenuWidget *menu_volume);
|
||||
void showOsdInfoclockSetup(CMenuWidget *menu_infoclock);
|
||||
|
@@ -1109,7 +1109,7 @@ void CMenuWidget::hide()
|
||||
info_box->kill();
|
||||
if (details_line)
|
||||
details_line->hide();
|
||||
frameBuffer->paintBackgroundBoxRel(x, y, full_width, full_height/* + footer_height*/); // full_height includes footer_height : see calcSize
|
||||
frameBuffer->paintBackgroundBoxRel(x, y, full_width, full_height); // full_height includes footer_height : see calcSize
|
||||
//paintHint(-1);
|
||||
}
|
||||
paintHint(-1);
|
||||
@@ -1246,7 +1246,7 @@ void CMenuWidget::calcSize()
|
||||
scrollbar_width = SCROLLBAR_WIDTH;
|
||||
|
||||
full_width = width + scrollbar_width + OFFSET_SHADOW;
|
||||
full_height = height + footer_height + OFFSET_SHADOW/* + OFFSET_INTER*/; // hintbox is handled separately
|
||||
full_height = height + footer_height + OFFSET_SHADOW; // hintbox is handled separately
|
||||
|
||||
/* + DETAILSLINE_WIDTH for the hintbox connection line
|
||||
* + center_offset for symmetry
|
||||
@@ -1330,7 +1330,7 @@ void CMenuWidget::setMenuPos(const int& menu_width)
|
||||
int scr_y = frameBuffer->getScreenY();
|
||||
int scr_w = frameBuffer->getScreenWidth();
|
||||
int scr_h = frameBuffer->getScreenHeight();
|
||||
int real_h = full_height/* + footer_height*/ + hint_height; // full_height includes footer_height : see calcSize
|
||||
int real_h = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
|
||||
int x_old = x;
|
||||
int y_old = y;
|
||||
//configured positions
|
||||
@@ -1450,7 +1450,7 @@ void CMenuWidget::saveScreen()
|
||||
return;
|
||||
|
||||
delete[] background;
|
||||
saveScreen_height = full_height/* + footer_height*/; // full_height includes footer_height : see calcSize
|
||||
saveScreen_height = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize
|
||||
saveScreen_width = full_width;
|
||||
saveScreen_y = y;
|
||||
saveScreen_x = x;
|
||||
|
Reference in New Issue
Block a user