mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
- menue: change case of new separatorline switch
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1578,7 +1578,7 @@ void CMenuWidget::paintItems()
|
||||
}
|
||||
|
||||
/*adds the typical menu intro with optional subhead, separator, back or cancel button and separatorline to menu*/
|
||||
void CMenuWidget::addIntroItems(const std::string &s_subhead_text, neutrino_locale_t section_text, int buttontype, bool brief_hint, bool SeparatorLine)
|
||||
void CMenuWidget::addIntroItems(const std::string &s_subhead_text, neutrino_locale_t section_text, int buttontype, bool brief_hint, bool separatorline)
|
||||
{
|
||||
brief_hints = brief_hint;
|
||||
|
||||
@@ -1599,7 +1599,7 @@ void CMenuWidget::addIntroItems(const std::string &s_subhead_text, neutrino_loca
|
||||
break;
|
||||
}
|
||||
|
||||
if (SeparatorLine) {
|
||||
if (separatorline) {
|
||||
if (section_text != NONEXISTANT_LOCALE)
|
||||
addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, section_text));
|
||||
else if (buttontype != BTN_TYPE_NO)
|
||||
@@ -1607,10 +1607,10 @@ void CMenuWidget::addIntroItems(const std::string &s_subhead_text, neutrino_loca
|
||||
}
|
||||
}
|
||||
|
||||
void CMenuWidget::addIntroItems(neutrino_locale_t l_subhead_text, neutrino_locale_t section_text, int buttontype, bool brief_hint, bool SeparatorLine)
|
||||
void CMenuWidget::addIntroItems(neutrino_locale_t l_subhead_text, neutrino_locale_t section_text, int buttontype, bool brief_hint, bool separatorline)
|
||||
{
|
||||
std::string str = l_subhead_text == NONEXISTANT_LOCALE ? "" : g_Locale->getText(l_subhead_text);
|
||||
addIntroItems(str, section_text, buttontype, brief_hint, SeparatorLine);
|
||||
addIntroItems(str, section_text, buttontype, brief_hint, separatorline);
|
||||
}
|
||||
|
||||
void CMenuWidget::saveScreen()
|
||||
|
@@ -632,8 +632,8 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
||||
BRIEF_HINT_NO = 0,
|
||||
BRIEF_HINT_YES = 1
|
||||
};
|
||||
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(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);
|
||||
bool hasItem();
|
||||
void resetWidget(bool delete_items = false);
|
||||
void insertItem(const uint& item_id, CMenuItem* menuItem);
|
||||
|
Reference in New Issue
Block a user