mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
bedit: move paintBody() into base class
Avoids multiple code parts
This commit is contained in:
@@ -135,11 +135,6 @@ void CBEBouquetWidget::paintItems()
|
|||||||
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBEBouquetWidget::paintBody()
|
|
||||||
{
|
|
||||||
PaintBoxRel(x, y + header_height, width, body_height, COL_MENUCONTENT_PLUS_0, RADIUS_NONE, CORNER_NONE, CC_SHADOW_ON);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CBEBouquetWidget::paintHead()
|
void CBEBouquetWidget::paintHead()
|
||||||
{
|
{
|
||||||
header.setCaption(LOCALE_BOUQUETLIST_HEAD);
|
header.setCaption(LOCALE_BOUQUETLIST_HEAD);
|
||||||
|
@@ -64,7 +64,7 @@ class CBEBouquetWidget : public CBEGlobals, public CMenuTarget, public CListHelp
|
|||||||
bool bouquetsChanged;
|
bool bouquetsChanged;
|
||||||
|
|
||||||
void paintHead();
|
void paintHead();
|
||||||
void paintBody();
|
|
||||||
void paintItem(int pos);
|
void paintItem(int pos);
|
||||||
void paintItems();
|
void paintItems();
|
||||||
void paintFoot();
|
void paintFoot();
|
||||||
|
@@ -140,11 +140,6 @@ void CBEChannelWidget::paintItems()
|
|||||||
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBEChannelWidget::paintBody()
|
|
||||||
{
|
|
||||||
PaintBoxRel(x, y + header_height, width, body_height, COL_MENUCONTENT_PLUS_0, RADIUS_NONE, CORNER_NONE, CC_SHADOW_ON);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CBEChannelWidget::paintHead()
|
void CBEChannelWidget::paintHead()
|
||||||
{
|
{
|
||||||
header.setCaption(caption + (mode == CZapitClient::MODE_TV ? " - TV" : " - Radio"));
|
header.setCaption(caption + (mode == CZapitClient::MODE_TV ? " - TV" : " - Radio"));
|
||||||
|
@@ -57,7 +57,7 @@ class CBEChannelWidget : public CBEGlobals, public CMenuTarget, public CListHelp
|
|||||||
unsigned int bouquet;
|
unsigned int bouquet;
|
||||||
|
|
||||||
void paintHead();
|
void paintHead();
|
||||||
void paintBody();
|
|
||||||
void paintItem(int pos);
|
void paintItem(int pos);
|
||||||
void paintItems();
|
void paintItems();
|
||||||
void paintFoot();
|
void paintFoot();
|
||||||
|
@@ -124,11 +124,6 @@ void CBEChannelSelectWidget::paintItems()
|
|||||||
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, body_height, total_pages, current_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBEChannelSelectWidget::paintBody()
|
|
||||||
{
|
|
||||||
PaintBoxRel(x, y + header_height, width, body_height, COL_MENUCONTENT_PLUS_0, RADIUS_NONE, CORNER_NONE, CC_SHADOW_ON);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CBEChannelSelectWidget::paintHead()
|
void CBEChannelSelectWidget::paintHead()
|
||||||
{
|
{
|
||||||
header.setCaption(caption + (mode == CZapitClient::MODE_TV ? " - TV" : " - Radio"));
|
header.setCaption(caption + (mode == CZapitClient::MODE_TV ? " - TV" : " - Radio"));
|
||||||
|
@@ -57,7 +57,7 @@ class CBEChannelSelectWidget : public CBEGlobals, public CMenuTarget, public CLi
|
|||||||
std::string caption;
|
std::string caption;
|
||||||
|
|
||||||
void paintHead();
|
void paintHead();
|
||||||
void paintBody();
|
|
||||||
void paintItem(int pos);
|
void paintItem(int pos);
|
||||||
void paintItems();
|
void paintItems();
|
||||||
void paintFoot();
|
void paintFoot();
|
||||||
|
@@ -109,6 +109,11 @@ void CBEGlobals::paintDetails(int pos, int current)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CBEGlobals::paintBody()
|
||||||
|
{
|
||||||
|
PaintBoxRel(x, y + header_height, width, body_height, COL_MENUCONTENT_PLUS_0, RADIUS_NONE, CORNER_NONE, CC_SHADOW_ON);
|
||||||
|
}
|
||||||
|
|
||||||
void CBEGlobals::hide()
|
void CBEGlobals::hide()
|
||||||
{
|
{
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
||||||
|
@@ -56,6 +56,8 @@ class CBEGlobals
|
|||||||
unsigned int items_count;
|
unsigned int items_count;
|
||||||
int timeout;
|
int timeout;
|
||||||
|
|
||||||
|
void paintBody();
|
||||||
|
|
||||||
virtual std::string getInfoText(int index) = 0;
|
virtual std::string getInfoText(int index) = 0;
|
||||||
void paintDetails(int pos, int current);
|
void paintDetails(int pos, int current);
|
||||||
void killDetails();
|
void killDetails();
|
||||||
|
Reference in New Issue
Block a user