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


Origin commit data
------------------
Commit: f3d3a67f0c
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-03-31 (Thu, 31 Mar 2011)

Origin message was:
------------------
*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:
2011-03-31 13:44:51 +00:00
parent ff13b494de
commit 47d9f81a6d
2 changed files with 4 additions and 1 deletions

View File

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

View File

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