neutrino keybind_setup: remember last selected item

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1008 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 9f2d038f50
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-01-08 (Sat, 08 Jan 2011)

Origin message was:
------------------
*neutrino keybind_setup: remember last selected item

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1008 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
2011-01-08 14:32:46 +00:00
parent 6fefc20f62
commit b063f18d34
2 changed files with 4 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ CKeybindSetup::CKeybindSetup()
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);
}
@@ -174,7 +175,7 @@ void CKeybindSetup::showKeySetup()
//keybindings menu
CMenuWidget* bindSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_KEYBINDING, width);
keySettings->setSelected(selected);
keySettings->addIntroItems(LOCALE_MAINSETTINGS_KEYBINDING);
//keybindings
@@ -204,6 +205,7 @@ void CKeybindSetup::showKeySetup()
keySettings->exec(NULL, "");
keySettings->hide();
selected = keySettings->getSelected();
delete keySettings;
}

View File

@@ -85,7 +85,7 @@ class CKeybindSetup : public CMenuTarget
CKeySetupNotifier *keySetupNotifier;
CKeyChooser * keychooser[KEYBINDS_COUNT];
int x, y, width, height, hheight, mheight;
int x, y, width, height, hheight, mheight, selected;
void hide();
void showKeySetup();