mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
gui/parentallock_setup.cpp: add menu hints
Origin commit data
------------------
Commit: 1bec7c4a7b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-07-08 (Sun, 08 Jul 2012)
This commit is contained in:
@@ -56,10 +56,10 @@ int CParentalSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
||||
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
|
||||
if (check())
|
||||
showParentalSetup();
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -99,12 +99,19 @@ void CParentalSetup::showParentalSetup()
|
||||
// intros
|
||||
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);
|
||||
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, "");
|
||||
delete plock;
|
||||
|
Reference in New Issue
Block a user