mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
gui/parentallock_setup.cpp: add menu hints
This commit is contained in:
@@ -56,10 +56,10 @@ int CParentalSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
|
|
||||||
if (parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
|
|
||||||
if (check())
|
if (check())
|
||||||
showParentalSetup();
|
showParentalSetup();
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,12 +99,19 @@ void CParentalSetup::showParentalSetup()
|
|||||||
// intros
|
// intros
|
||||||
plock->addIntroItems();
|
plock->addIntroItems();
|
||||||
|
|
||||||
plock->addItem(new CMenuOptionChooser(LOCALE_PARENTALLOCK_PROMPT , &g_settings.parentallock_prompt , PARENTALLOCK_PROMPT_OPTIONS, PARENTALLOCK_PROMPT_OPTION_COUNT , !parentallocked));
|
CMenuOptionChooser * mc;
|
||||||
|
mc = new CMenuOptionChooser(LOCALE_PARENTALLOCK_PROMPT , &g_settings.parentallock_prompt , PARENTALLOCK_PROMPT_OPTIONS, PARENTALLOCK_PROMPT_OPTION_COUNT , !parentallocked);
|
||||||
|
mc->setHint("", LOCALE_MENU_HINT_PARENTALLOCK_PROMPT);
|
||||||
|
plock->addItem(mc);
|
||||||
|
|
||||||
plock->addItem(new CMenuOptionChooser(LOCALE_PARENTALLOCK_LOCKAGE, &g_settings.parentallock_lockage, PARENTALLOCK_LOCKAGE_OPTIONS, PARENTALLOCK_LOCKAGE_OPTION_COUNT, !parentallocked));
|
mc = new CMenuOptionChooser(LOCALE_PARENTALLOCK_LOCKAGE, &g_settings.parentallock_lockage, PARENTALLOCK_LOCKAGE_OPTIONS, PARENTALLOCK_LOCKAGE_OPTION_COUNT, !parentallocked);
|
||||||
|
mc->setHint("", LOCALE_MENU_HINT_PARENTALLOCK_LOCKAGE);
|
||||||
|
plock->addItem(mc);
|
||||||
|
|
||||||
CPINChangeWidget pinChangeWidget(LOCALE_PARENTALLOCK_CHANGEPIN, g_settings.parentallock_pincode, 4, LOCALE_PARENTALLOCK_CHANGEPIN_HINT1);
|
CPINChangeWidget pinChangeWidget(LOCALE_PARENTALLOCK_CHANGEPIN, g_settings.parentallock_pincode, 4, LOCALE_PARENTALLOCK_CHANGEPIN_HINT1);
|
||||||
plock->addItem( new CMenuForwarder(LOCALE_PARENTALLOCK_CHANGEPIN, true, g_settings.parentallock_pincode, &pinChangeWidget));
|
CMenuForwarder * mf = new CMenuForwarder(LOCALE_PARENTALLOCK_CHANGEPIN, true, g_settings.parentallock_pincode, &pinChangeWidget);
|
||||||
|
mf->setHint("", LOCALE_MENU_HINT_PARENTALLOCK_CHANGEPIN);
|
||||||
|
plock->addItem(mf);
|
||||||
|
|
||||||
plock->exec(NULL, "");
|
plock->exec(NULL, "");
|
||||||
delete plock;
|
delete plock;
|
||||||
|
Reference in New Issue
Block a user