mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
Bedit: adapt to last CComponent changes
This commit is contained in:
@@ -84,7 +84,7 @@ CBEChannelWidget::CBEChannelWidget(const std::string & Caption, unsigned int Bou
|
|||||||
bouquet = Bouquet;
|
bouquet = Bouquet;
|
||||||
mode = CZapitClient::MODE_TV;
|
mode = CZapitClient::MODE_TV;
|
||||||
dline = NULL;
|
dline = NULL;
|
||||||
ibox = NULL;
|
ibox = new CComponentsInfoBox();
|
||||||
Channels = NULL;
|
Channels = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +209,8 @@ void CBEChannelWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
|
|||||||
int ypos1a = ypos1 + (fheight/2)-2;
|
int ypos1a = ypos1 + (fheight/2)-2;
|
||||||
int ypos2a = ypos2 + (info_height/2)-2;
|
int ypos2a = ypos2 + (info_height/2)-2;
|
||||||
|
|
||||||
clearItem2DetailsLine();
|
if (dline)
|
||||||
|
dline->kill(); //kill details line
|
||||||
|
|
||||||
// paint Line if detail info (and not valid list pos)
|
// paint Line if detail info (and not valid list pos)
|
||||||
if (pos >= 0)
|
if (pos >= 0)
|
||||||
@@ -220,9 +221,18 @@ void CBEChannelWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
|
|||||||
dline->paint();
|
dline->paint();
|
||||||
|
|
||||||
//infobox
|
//infobox
|
||||||
if (ibox == NULL)
|
if (ibox){
|
||||||
ibox = new CComponentsInfoBox(x, ypos2, width, info_height);
|
ibox->setDimensionsAll(x, ypos2, width, info_height);
|
||||||
|
ibox->setFrameThickness(2);
|
||||||
|
#if 0
|
||||||
ibox->paint(false,true);
|
ibox->paint(false,true);
|
||||||
|
#endif
|
||||||
|
ibox->setCornerRadius(RADIUS_LARGE);
|
||||||
|
ibox->syncSysColors();
|
||||||
|
ibox->setShadowOnOff(CC_SHADOW_OFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
ibox->paint(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,7 +247,7 @@ void CBEChannelWidget::clearItem2DetailsLine()
|
|||||||
void CBEChannelWidget::hide()
|
void CBEChannelWidget::hide()
|
||||||
{
|
{
|
||||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height+footerHeight);
|
frameBuffer->paintBackgroundBoxRel(x,y, width,height+footerHeight);
|
||||||
clearItem2DetailsLine ();
|
clearItem2DetailsLine ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBEChannelWidget::updateSelection(unsigned int newpos)
|
void CBEChannelWidget::updateSelection(unsigned int newpos)
|
||||||
|
Reference in New Issue
Block a user