CNeutrinoEventList: use CComponentsText instead CComponentsInfoBox

add doPaintBg(false), causes no paint or repaint and save of item
background.

CC-Items comes with its own hide(), but it's not very sensefull
to store or paint background here.

NOTE: CComponentsText is more of appropriate for embedded text items
than CComponentsInfoBox. CComponentsInfoBox is more made for hint or
messageboxes.


Origin commit data
------------------
Commit: 399dbad350
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-03 (Wed, 03 Apr 2013)
This commit is contained in:
2013-04-03 10:43:13 +02:00
parent 3c0d3d4279
commit c49dd9ab02
2 changed files with 4 additions and 3 deletions

View File

@@ -279,7 +279,7 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c
infozone_width = full_width - width; infozone_width = full_width - width;
// init right info_zone // init right info_zone
cc_infozone = new CComponentsInfoBox(x+width+5, y+theight+10, infozone_width-10, listmaxshow*fheight-20); cc_infozone = new CComponentsText(x+width+5, y+theight+10, infozone_width-10, listmaxshow*fheight-20);
int res = menu_return::RETURN_REPAINT; int res = menu_return::RETURN_REPAINT;
//printf("CNeutrinoEventList::exec: channel_id %llx\n", channel_id); //printf("CNeutrinoEventList::exec: channel_id %llx\n", channel_id);
@@ -812,7 +812,8 @@ void CNeutrinoEventList::paintDescription(int index)
infozone_text = g_Locale->getText(LOCALE_EPGLIST_NOEVENTS); infozone_text = g_Locale->getText(LOCALE_EPGLIST_NOEVENTS);
cc_infozone->setText(infozone_text, CTextBox::TOP, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]); cc_infozone->setText(infozone_text, CTextBox::TOP, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]);
cc_infozone->paint(); cc_infozone->doPaintBg(false);
cc_infozone->paint(CC_SAVE_SCREEN_NO);
} }
void CNeutrinoEventList::paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next) void CNeutrinoEventList::paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next)

View File

@@ -101,7 +101,7 @@ class CNeutrinoEventList
std::string infozone_text; std::string infozone_text;
int sort_mode; int sort_mode;
event_id_t item_event_ID; event_id_t item_event_ID;
CComponentsInfoBox *cc_infozone; CComponentsText *cc_infozone;
void paintItem(unsigned pos, t_channel_id channel_id = 0); void paintItem(unsigned pos, t_channel_id channel_id = 0);
void paintDescription(int index); void paintDescription(int index);