*neutrino record_setup: remember last selected item

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1002 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-01-08 14:32:05 +00:00
parent 5ac86a6de4
commit c08abd172b

View File

@@ -61,6 +61,7 @@ CRecordSetup::CRecordSetup()
hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight(); hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(); mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
height = hheight+13*mheight+ 10; height = hheight+13*mheight+ 10;
selected = -1;
x = getScreenStartX (width); x = getScreenStartX (width);
y = getScreenStartY (height); y = getScreenStartY (height);
@@ -193,7 +194,7 @@ void CRecordSetup::showRecordSetup()
{ {
//menue init //menue init
CMenuWidget* recordingSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width); CMenuWidget* recordingSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width);
// recordingSettings->setPreselected(selected); recordingSettings->setSelected(selected);
//apply settings //apply settings
recordingSettings->addIntroItems(LOCALE_MAINSETTINGS_RECORDING); recordingSettings->addIntroItems(LOCALE_MAINSETTINGS_RECORDING);
@@ -227,7 +228,7 @@ void CRecordSetup::showRecordSetup()
recordingSettings->exec(NULL, ""); recordingSettings->exec(NULL, "");
recordingSettings->hide(); recordingSettings->hide();
// selected = recordingSettings->getSelected(); selected = recordingSettings->getSelected();
delete recordingSettings; delete recordingSettings;
} }