mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
bedit: remove multiple code from paintFoot() method
This commit is contained in:
@@ -159,9 +159,7 @@ void CBEBouquetWidget::paintFoot()
|
||||
{
|
||||
size_t numbuttons = sizeof(CBEBouquetWidgetButtons)/sizeof(CBEBouquetWidgetButtons[0]);
|
||||
|
||||
footer.setCorner(RADIUS_LARGE, CORNER_BOTTOM);
|
||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||
footer.paintButtons(x, y + header_height + body_height, width, footer_height, numbuttons, CBEBouquetWidgetButtons);
|
||||
CBEGlobals::paintFoot(numbuttons, CBEBouquetWidgetButtons);
|
||||
}
|
||||
|
||||
void CBEBouquetWidget::updateSelection(unsigned int newpos)
|
||||
|
@@ -166,8 +166,7 @@ void CBEChannelWidget::paintFoot()
|
||||
{
|
||||
size_t numbuttons = sizeof(CBEChannelWidgetButtons)/sizeof(CBEChannelWidgetButtons[0]);
|
||||
|
||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||
footer.paintButtons(x, y + header_height + body_height, width, footer_height, numbuttons, CBEChannelWidgetButtons);
|
||||
CBEGlobals::paintFoot(numbuttons, CBEChannelWidgetButtons);
|
||||
}
|
||||
|
||||
std::string CBEChannelWidget::getInfoText(int index)
|
||||
|
@@ -171,8 +171,7 @@ void CBEChannelSelectWidget::paintFoot()
|
||||
|
||||
const short numbuttons = sizeof(CBEChannelSelectButtons)/sizeof(CBEChannelSelectButtons[0]);
|
||||
|
||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||
footer.paintButtons(x, y + header_height + body_height, width, footer_height, numbuttons, CBEChannelSelectButtons);
|
||||
CBEGlobals::paintFoot(numbuttons, CBEChannelSelectButtons);
|
||||
}
|
||||
|
||||
std::string CBEChannelSelectWidget::getInfoText(int index)
|
||||
|
@@ -128,3 +128,10 @@ void CBEGlobals::killDetails()
|
||||
if (ibox)
|
||||
ibox->kill();
|
||||
}
|
||||
|
||||
void CBEGlobals::paintFoot(const size_t& label_count, const struct button_label * const content)
|
||||
{
|
||||
footer.setCorner(RADIUS_LARGE, CORNER_BOTTOM);
|
||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||
footer.paintButtons(x, y + header_height + body_height, width, footer_height, label_count, content);
|
||||
}
|
||||
|
@@ -57,6 +57,7 @@ class CBEGlobals
|
||||
int* timeout_ptr;
|
||||
|
||||
void paintBody();
|
||||
void paintFoot(const size_t& label_count, const struct button_label * const content);
|
||||
|
||||
virtual std::string getInfoText(int index) = 0;
|
||||
void paintDetails(int pos, int current);
|
||||
|
Reference in New Issue
Block a user