mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
neutrino vfd_setup: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1007 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2ee1101321
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-01-08 (Sat, 08 Jan 2011)
Origin message was:
------------------
*neutrino vfd_setup: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1007 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -57,6 +57,7 @@ CVfdSetup::CVfdSetup()
|
||||
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);
|
||||
}
|
||||
@@ -105,6 +106,7 @@ void CVfdSetup::showSetup()
|
||||
{
|
||||
CMenuWidget *vfds = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_LCD, width);
|
||||
vfds->addIntroItems(LOCALE_LCDMENU_HEAD);
|
||||
vfds->setSelected(selected);
|
||||
|
||||
CVfdControler* lcdsliders = new CVfdControler(LOCALE_LCDMENU_HEAD, NULL);
|
||||
bool vfd_enabled = (cs_get_revision() != 10);
|
||||
@@ -136,6 +138,7 @@ void CVfdSetup::showSetup()
|
||||
|
||||
vfds->exec(NULL, "");
|
||||
vfds->hide();
|
||||
selected = vfds->getSelected();
|
||||
delete vfds;
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,7 @@
|
||||
|
||||
CFrameBuffer *frameBuffer;
|
||||
|
||||
int x, y, width, height, hheight, mheight;
|
||||
int x, y, width, height, hheight, mheight, selected;
|
||||
|
||||
void hide();
|
||||
void showSetup();
|
||||
|
Reference in New Issue
Block a user