mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Preparing the menu classes for Lua Part #2
- Remove CMenuForwarderNonLocalized
- Add overloaded function CMenuForwarder for non local
THX Martii
Origin commit data
------------------
Commit: b41819190d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-16 (Thu, 16 Jan 2014)
Origin message was:
------------------
Preparing the menu classes for Lua Part #2
- Remove CMenuForwarderNonLocalized
- Add overloaded function CMenuForwarder for non local
THX Martii
This commit is contained in:
@@ -324,7 +324,7 @@ int CPersonalizeGui::ShowPersonalizationMenu()
|
||||
}
|
||||
|
||||
//personalized menues
|
||||
CMenuForwarderNonLocalized *p_mn[widget_count];
|
||||
CMenuForwarder *p_mn[widget_count];
|
||||
for (int i = 0; i<(widget_count); i++)
|
||||
{
|
||||
ostringstream i_str;
|
||||
@@ -332,7 +332,7 @@ int CPersonalizeGui::ShowPersonalizationMenu()
|
||||
string s(i_str.str());
|
||||
string action_key = s;
|
||||
string mn_name = v_widget[i]->getName();
|
||||
p_mn[i] = new CMenuForwarderNonLocalized(mn_name.c_str(), true, NULL, this, action_key.c_str(), CRCInput::convertDigitToKey(i+1));
|
||||
p_mn[i] = new CMenuForwarder(mn_name.c_str(), true, NULL, this, action_key.c_str(), CRCInput::convertDigitToKey(i+1));
|
||||
pMenu->addItem(p_mn[i]);
|
||||
}
|
||||
|
||||
@@ -467,7 +467,7 @@ void CPersonalizeGui::ShowPluginMenu(CMenuWidget* p_widget)
|
||||
{
|
||||
if( g_PluginList->getType(i)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(i)) //don't show hidden plugins an games
|
||||
{
|
||||
p_widget->addItem(new CMenuForwarderNonLocalized(g_PluginList->getName(i), true, g_PluginList->getDescription(i), NULL, NULL, getShortcut(d_key)));
|
||||
p_widget->addItem(new CMenuForwarder(g_PluginList->getName(i), true, g_PluginList->getDescription(i), NULL, NULL, getShortcut(d_key)));
|
||||
d_key++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user