mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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();
|
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||||
height = hheight+13*mheight+ 10;
|
height = hheight+13*mheight+ 10;
|
||||||
|
selected = -1;
|
||||||
x = getScreenStartX (width);
|
x = getScreenStartX (width);
|
||||||
y = getScreenStartY (height);
|
y = getScreenStartY (height);
|
||||||
}
|
}
|
||||||
@@ -113,6 +114,7 @@ void CParentalSetup::showParentalSetup()
|
|||||||
{
|
{
|
||||||
//menue init
|
//menue init
|
||||||
CMenuWidget* plock = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LOCK, width);
|
CMenuWidget* plock = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LOCK, width);
|
||||||
|
plock->setSelected(selected);
|
||||||
|
|
||||||
//subhead
|
//subhead
|
||||||
plock->addItem( new CMenuSeparator(CMenuSeparator::ALIGN_LEFT | CMenuSeparator::SUB_HEAD | CMenuSeparator::STRING, LOCALE_PARENTALLOCK_PARENTALLOCK));
|
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->exec(NULL, "");
|
||||||
plock->hide();
|
plock->hide();
|
||||||
|
selected = plock->getSelected();
|
||||||
delete plock;
|
delete plock;
|
||||||
}
|
}
|
||||||
|
@@ -42,7 +42,7 @@ class CParentalSetup : public CMenuTarget
|
|||||||
private:
|
private:
|
||||||
CFrameBuffer *frameBuffer;
|
CFrameBuffer *frameBuffer;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight;
|
int x, y, width, height, hheight, mheight, selected;
|
||||||
|
|
||||||
void hide();
|
void hide();
|
||||||
void showParentalSetup();
|
void showParentalSetup();
|
||||||
|
Reference in New Issue
Block a user