mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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();
|
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);
|
||||||
}
|
}
|
||||||
@@ -94,6 +95,7 @@ void COsdLangSetup::showLocalSetup()
|
|||||||
//main local setup
|
//main local setup
|
||||||
CMenuWidget *localSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LANGUAGE, width);
|
CMenuWidget *localSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LANGUAGE, width);
|
||||||
localSettings->setWizardMode(is_wizard);
|
localSettings->setWizardMode(is_wizard);
|
||||||
|
localSettings->setSelected(selected);
|
||||||
|
|
||||||
//add subhead and back button
|
//add subhead and back button
|
||||||
localSettings->addIntroItems(LOCALE_LANGUAGESETUP_HEAD);
|
localSettings->addIntroItems(LOCALE_LANGUAGESETUP_HEAD);
|
||||||
@@ -118,6 +120,7 @@ void COsdLangSetup::showLocalSetup()
|
|||||||
|
|
||||||
localSettings->exec(NULL, "");
|
localSettings->exec(NULL, "");
|
||||||
localSettings->hide();
|
localSettings->hide();
|
||||||
|
selected = localSettings->getSelected();
|
||||||
delete localSettings;
|
delete localSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -56,7 +56,7 @@ class COsdLangSetup : public CMenuTarget, CChangeObserver
|
|||||||
|
|
||||||
CFrameBuffer *frameBuffer;
|
CFrameBuffer *frameBuffer;
|
||||||
|
|
||||||
int x, y, width, height, menue_width, hheight, mheight;
|
int x, y, width, height, menue_width, hheight, mheight, selected;
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user