mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
widget/menu: add setSubheadText() to set sub header text
Makes it possible to set text for sub headers without addIntroItems()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 26ac78d0a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-02-19 (Sun, 19 Feb 2023)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1620,6 +1620,17 @@ void CMenuWidget::addIntroItems(neutrino_locale_t l_subhead_text, neutrino_local
|
|||||||
addIntroItems(str, section_text, buttontype, brief_hint, separatorline);
|
addIntroItems(str, section_text, buttontype, brief_hint, separatorline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMenuWidget::setSubheadText(const std::string &s_subhead_text)
|
||||||
|
{
|
||||||
|
subhead_text = s_subhead_text;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMenuWidget::setSubheadText(neutrino_locale_t l_subhead_text)
|
||||||
|
{
|
||||||
|
setSubheadText(g_Locale->getText(l_subhead_text));
|
||||||
|
}
|
||||||
|
|
||||||
void CMenuWidget::saveScreen()
|
void CMenuWidget::saveScreen()
|
||||||
{
|
{
|
||||||
if(!savescreen)
|
if(!savescreen)
|
||||||
|
@@ -635,6 +635,8 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
|||||||
};
|
};
|
||||||
void addIntroItems(neutrino_locale_t l_subhead_text = NONEXISTANT_LOCALE, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK, bool brief_hint = BRIEF_HINT_NO, bool separatorline = true);
|
void addIntroItems(neutrino_locale_t l_subhead_text = NONEXISTANT_LOCALE, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK, bool brief_hint = BRIEF_HINT_NO, bool separatorline = true);
|
||||||
void addIntroItems(const std::string &s_subhead_text, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK, bool brief_hint = BRIEF_HINT_NO, bool separatorline = true);
|
void addIntroItems(const std::string &s_subhead_text, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK, bool brief_hint = BRIEF_HINT_NO, bool separatorline = true);
|
||||||
|
void setSubheadText(const std::string &s_subhead_text);
|
||||||
|
void setSubheadText(neutrino_locale_t l_subhead_text);
|
||||||
bool hasItem();
|
bool hasItem();
|
||||||
void resetWidget(bool delete_items = false);
|
void resetWidget(bool delete_items = false);
|
||||||
void insertItem(const uint& item_id, CMenuItem* menuItem);
|
void insertItem(const uint& item_id, CMenuItem* menuItem);
|
||||||
|
Reference in New Issue
Block a user