From b38e7d70f3c219ff01fdd681c24c7bbd4cb2195f Mon Sep 17 00:00:00 2001 From: thilo Date: Wed, 7 Dec 2011 20:25:19 +0000 Subject: [PATCH] *neutrino user_menue_setup: add widget index to user menu setup menues This helps to remember to last selected item in submenu git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1955 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/user_menue_setup.cpp | 7 ++++--- src/neutrino_menue.h | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/gui/user_menue_setup.cpp b/src/gui/user_menue_setup.cpp index d2274c520..d65a90d1d 100644 --- a/src/gui/user_menue_setup.cpp +++ b/src/gui/user_menue_setup.cpp @@ -39,7 +39,7 @@ #include #include - +#include #include #include #include @@ -96,8 +96,9 @@ int CUserMenuSetup::exec(CMenuTarget* parent, const std::string &) int CUserMenuSetup::showSetup() { - CMenuWidget * ums = new CMenuWidget(local, NEUTRINO_ICON_KEYBINDING, width); - + mn_widget_id_t widget_id = MN_WIDGET_ID_USERMENU_RED + button; //add up ''button'' and becomes to MN_WIDGET_ID_USERMENU_ GREEN, MN_WIDGET_ID_USERMENU_ YELLOW, MN_WIDGET_ID_USERMENU_BLUE + CMenuWidget * ums = new CMenuWidget(local, NEUTRINO_ICON_KEYBINDING, width, widget_id); + //CUserMenuNotifier *notify = new CUserMenuNotifier(); CStringInputSMS name(LOCALE_USERMENU_NAME, &g_settings.usermenu_text[button], 11, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzäöüß/- "/*, notify*/); diff --git a/src/neutrino_menue.h b/src/neutrino_menue.h index dac4976fa..5c42cc55a 100644 --- a/src/neutrino_menue.h +++ b/src/neutrino_menue.h @@ -125,6 +125,12 @@ enum MN_WIDGET_ID //infomenue MN_WIDGET_ID_INFOMENUE, + //user menu setup + MN_WIDGET_ID_USERMENU_RED, + MN_WIDGET_ID_USERMENU_GREEN, + MN_WIDGET_ID_USERMENU_YELLOW, + MN_WIDGET_ID_USERMENU_BLUE, + MN_WIDGET_ID_MAX };