mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
*neutrino osd_setup: remember last selected item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1005 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -235,6 +235,7 @@ void COsdSetup::showOsdSetup()
|
|||||||
//osd main menu
|
//osd main menu
|
||||||
CMenuWidget *osd_menu = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width);
|
CMenuWidget *osd_menu = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width);
|
||||||
osd_menu->setWizardMode(is_wizard);
|
osd_menu->setWizardMode(is_wizard);
|
||||||
|
osd_menu->setSelected(selected);
|
||||||
|
|
||||||
//menu colors
|
//menu colors
|
||||||
CMenuWidget *osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width);
|
CMenuWidget *osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width);
|
||||||
@@ -280,6 +281,7 @@ void COsdSetup::showOsdSetup()
|
|||||||
|
|
||||||
osd_menu->exec(NULL, "");
|
osd_menu->exec(NULL, "");
|
||||||
osd_menu->hide();
|
osd_menu->hide();
|
||||||
|
selected = osd_menu->getSelected();
|
||||||
delete osd_menu;
|
delete osd_menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -48,7 +48,7 @@
|
|||||||
CColorSetupNotifier *colorSetupNotifier;
|
CColorSetupNotifier *colorSetupNotifier;
|
||||||
CFontSizeNotifier *fontsizenotifier;
|
CFontSizeNotifier *fontsizenotifier;
|
||||||
|
|
||||||
int x, y, width, height, hheight, mheight;
|
int x, y, width, height, hheight, mheight, selected;
|
||||||
|
|
||||||
bool is_wizard;
|
bool is_wizard;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user