mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CNetworkServiceSetup: use widget id instead explicit select method
neutrino_menue.h: add ID for network service menue
Origin commit data
------------------
Commit: 3599a4246f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-08 (Mon, 08 Dec 2014)
This commit is contained in:
@@ -140,8 +140,8 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
|
|||||||
{
|
{
|
||||||
int shortcut = 1;
|
int shortcut = 1;
|
||||||
|
|
||||||
CMenuWidget* setup = new CMenuWidget(LOCALE_MAINSETTINGS_NETWORK, NEUTRINO_ICON_SETTINGS, width);
|
CMenuWidget* setup = new CMenuWidget(LOCALE_MAINSETTINGS_NETWORK, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_NETWORKSETUP_SERVICES);
|
||||||
setup->setSelected(selected);
|
|
||||||
setup->addIntroItems(LOCALE_NETWORKMENU_SERVICES);
|
setup->addIntroItems(LOCALE_NETWORKMENU_SERVICES);
|
||||||
|
|
||||||
CNetworkService * items[SERVICE_COUNT];
|
CNetworkService * items[SERVICE_COUNT];
|
||||||
@@ -194,7 +194,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int res = setup->exec (NULL, "");
|
int res = setup->exec (NULL, "");
|
||||||
selected = setup->getSelected();
|
|
||||||
delete setup;
|
delete setup;
|
||||||
|
|
||||||
for(unsigned i = 0; i < SERVICE_COUNT; i++)
|
for(unsigned i = 0; i < SERVICE_COUNT; i++)
|
||||||
|
@@ -185,6 +185,9 @@ enum MN_WIDGET_ID
|
|||||||
MN_WIDGET_ID_TESTMENU_HARDWARE,
|
MN_WIDGET_ID_TESTMENU_HARDWARE,
|
||||||
MN_WIDGET_ID_TESTMENU_COMPONENTS,
|
MN_WIDGET_ID_TESTMENU_COMPONENTS,
|
||||||
|
|
||||||
|
//network services
|
||||||
|
MN_WIDGET_ID_NETWORKSETUP_SERVICES,
|
||||||
|
|
||||||
MN_WIDGET_ID_MAX
|
MN_WIDGET_ID_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user