mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
*neutrino osdlang_setup: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1006 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -62,6 +62,7 @@ COsdLangSetup::COsdLangSetup(bool wizard_mode)
|
||||
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);
|
||||
}
|
||||
@@ -94,6 +95,7 @@ void COsdLangSetup::showLocalSetup()
|
||||
//main local setup
|
||||
CMenuWidget *localSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LANGUAGE, width);
|
||||
localSettings->setWizardMode(is_wizard);
|
||||
localSettings->setSelected(selected);
|
||||
|
||||
//add subhead and back button
|
||||
localSettings->addIntroItems(LOCALE_LANGUAGESETUP_HEAD);
|
||||
@@ -118,6 +120,7 @@ void COsdLangSetup::showLocalSetup()
|
||||
|
||||
localSettings->exec(NULL, "");
|
||||
localSettings->hide();
|
||||
selected = localSettings->getSelected();
|
||||
delete localSettings;
|
||||
}
|
||||
|
||||
|
@@ -56,7 +56,7 @@ class COsdLangSetup : public CMenuTarget, CChangeObserver
|
||||
|
||||
CFrameBuffer *frameBuffer;
|
||||
|
||||
int x, y, width, height, menue_width, hheight, mheight;
|
||||
int x, y, width, height, menue_width, hheight, mheight, selected;
|
||||
|
||||
bool is_wizard;
|
||||
|
||||
|
Reference in New Issue
Block a user