mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
CMenuWidget: add member to suppress paint of details line
In some situations is it more senseful to suppress painting of details line. Required if menu window is painted over another window. The hide() functionality of detailsline paints only an empty background on screen so we have blank parts on screen. That looks bad. For example, this is to observe on context menu in channellist. We should see this as a workaround. It is not certain whether the details line is really needed in the future.
This commit is contained in:
@@ -340,6 +340,7 @@ CMenuWidget::CMenuWidget()
|
||||
preselected = -1;
|
||||
details_line = NULL;
|
||||
info_box = NULL;
|
||||
show_details_line = true;
|
||||
}
|
||||
|
||||
CMenuWidget::CMenuWidget(const neutrino_locale_t Name, const std::string & Icon, const int mwidth, const mn_widget_id_t &w_index)
|
||||
@@ -364,6 +365,7 @@ void CMenuWidget::Init(const std::string & Icon, const int mwidth, const mn_widg
|
||||
frameBuffer = CFrameBuffer::getInstance();
|
||||
iconfile = Icon;
|
||||
details_line = new CComponentsDetailLine();
|
||||
show_details_line = true;
|
||||
info_box = new CComponentsInfoBox();
|
||||
|
||||
//handle select values
|
||||
@@ -1184,7 +1186,8 @@ void CMenuWidget::paintHint(int pos)
|
||||
}
|
||||
|
||||
//paint result
|
||||
details_line->paint(savescreen);
|
||||
if (show_details_line)
|
||||
details_line->paint(savescreen);
|
||||
info_box->paint(savescreen);
|
||||
|
||||
hint_painted = true;
|
||||
|
Reference in New Issue
Block a user