*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
This commit is contained in:
thilo
2011-12-07 20:25:19 +00:00
parent 27af698792
commit b38e7d70f3
2 changed files with 10 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
#include <global.h> #include <global.h>
#include <neutrino.h> #include <neutrino.h>
#include <neutrino_menue.h>
#include <gui/widget/icons.h> #include <gui/widget/icons.h>
#include <gui/widget/stringinput.h> #include <gui/widget/stringinput.h>
#include <gui/widget/keychooser.h> #include <gui/widget/keychooser.h>
@@ -96,7 +96,8 @@ int CUserMenuSetup::exec(CMenuTarget* parent, const std::string &)
int CUserMenuSetup::showSetup() 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(); //CUserMenuNotifier *notify = new CUserMenuNotifier();
CStringInputSMS name(LOCALE_USERMENU_NAME, &g_settings.usermenu_text[button], 11, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzäöüß/- "/*, notify*/); CStringInputSMS name(LOCALE_USERMENU_NAME, &g_settings.usermenu_text[button], 11, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzäöüß/- "/*, notify*/);

View File

@@ -125,6 +125,12 @@ enum MN_WIDGET_ID
//infomenue //infomenue
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 MN_WIDGET_ID_MAX
}; };