*neutrino zapit_setup: remember last selected item

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1364 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-03-31 13:44:51 +00:00
parent 31c42c1106
commit f3d3a67f0c
2 changed files with 4 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
CZapitSetup::CZapitSetup() CZapitSetup::CZapitSetup()
{ {
width = w_max (40, 10); //% width = w_max (40, 10); //%
selected = -1;
} }
CZapitSetup::~CZapitSetup() CZapitSetup::~CZapitSetup()
@@ -63,6 +64,7 @@ void CZapitSetup::showMenu()
{ {
//menue init //menue init
CMenuWidget *zapit = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width); CMenuWidget *zapit = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width);
zapit->setSelected(selected);
zapit->addIntroItems(LOCALE_ZAPITSETUP_INFO); zapit->addIntroItems(LOCALE_ZAPITSETUP_INFO);
//zapit //zapit
@@ -73,6 +75,7 @@ void CZapitSetup::showMenu()
zapit->exec(NULL, ""); zapit->exec(NULL, "");
zapit->hide(); zapit->hide();
selected = zapit->getSelected();
delete zapit; delete zapit;
} }

View File

@@ -36,7 +36,7 @@ class CZapitSetup : public CMenuTarget, CChangeObserver
private: private:
CMenuForwarder *zapit1, *zapit2; CMenuForwarder *zapit1, *zapit2;
int width; int width, selected;
void showMenu(); void showMenu();