mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
*neutrino videosettings: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@999 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -70,6 +70,7 @@ CVideoSettings::CVideoSettings(bool wizard_mode)
|
||||
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);
|
||||
|
||||
@@ -199,6 +200,7 @@ void CVideoSettings::showVideoSetup()
|
||||
{
|
||||
//init
|
||||
CMenuWidget * videosetup = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width);
|
||||
videosetup->setSelected(selected);
|
||||
videosetup->setWizardMode(is_wizard);
|
||||
|
||||
//analog options
|
||||
@@ -272,6 +274,7 @@ void CVideoSettings::showVideoSetup()
|
||||
|
||||
videosetup->exec(NULL, "");
|
||||
videosetup->hide();
|
||||
selected = videosetup->getSelected();
|
||||
delete videosetup;
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,7 @@ class CVideoSettings : public CMenuWidget, CChangeObserver
|
||||
|
||||
bool is_wizard;
|
||||
|
||||
int x, y, width, height, hheight, mheight;
|
||||
int x, y, width, height, hheight, mheight, selected;
|
||||
void showVideoSetup();
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user