mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user