CMenueWidget: add overloaded version of addIntroItems()

Allows additional usage of strings as text parameter.


Origin commit data
------------------
Commit: 167531e412
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-30 (Sat, 30 Mar 2019)
This commit is contained in:
2019-03-30 00:06:26 +01:00
committed by vanhofen
parent 89e3fbf222
commit 7fb564c7b5
2 changed files with 11 additions and 4 deletions

View File

@@ -630,7 +630,8 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
BRIEF_HINT_NO = 0,
BRIEF_HINT_YES = 1
};
virtual void addIntroItems(neutrino_locale_t subhead_text = NONEXISTANT_LOCALE, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK, bool brief_hint = BRIEF_HINT_NO);
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);
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 hasItem();
void resetWidget(bool delete_items = false);
void insertItem(const uint& item_id, CMenuItem* menuItem);