mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
*neutrino parental_setup: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1000 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -55,6 +55,7 @@ CParentalSetup::CParentalSetup()
|
||||
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||
height = hheight+13*mheight+ 10;
|
||||
selected = -1;
|
||||
x = getScreenStartX (width);
|
||||
y = getScreenStartY (height);
|
||||
}
|
||||
@@ -113,6 +114,7 @@ void CParentalSetup::showParentalSetup()
|
||||
{
|
||||
//menue init
|
||||
CMenuWidget* plock = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LOCK, width);
|
||||
plock->setSelected(selected);
|
||||
|
||||
//subhead
|
||||
plock->addItem( new CMenuSeparator(CMenuSeparator::ALIGN_LEFT | CMenuSeparator::SUB_HEAD | CMenuSeparator::STRING, LOCALE_PARENTALLOCK_PARENTALLOCK));
|
||||
@@ -129,5 +131,6 @@ void CParentalSetup::showParentalSetup()
|
||||
|
||||
plock->exec(NULL, "");
|
||||
plock->hide();
|
||||
selected = plock->getSelected();
|
||||
delete plock;
|
||||
}
|
||||
|
Reference in New Issue
Block a user