|
|
|
@ -1663,6 +1663,28 @@ namespace NLGUI
|
|
|
|
|
return _Lines[lineIndex].AHParams;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupSubMenu::setActionHandler(uint lineIndex, const std::string &ah)
|
|
|
|
|
{
|
|
|
|
|
if (lineIndex > _Lines.size())
|
|
|
|
|
{
|
|
|
|
|
nlwarning("Bad index");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_Lines[lineIndex].AHName = ah;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupSubMenu::setActionHandlerParam(uint lineIndex, const std::string ¶ms)
|
|
|
|
|
{
|
|
|
|
|
if (lineIndex > _Lines.size())
|
|
|
|
|
{
|
|
|
|
|
nlwarning("Bad index");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_Lines[lineIndex].AHParams = params;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupSubMenu::setSelectable(uint lineIndex, bool selectable)
|
|
|
|
|
{
|
|
|
|
@ -2596,6 +2618,20 @@ namespace NLGUI
|
|
|
|
|
return _RootMenu ? _RootMenu->getActionHandlerParam(lineIndex) : "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupMenu::setActionHandler(uint lineIndex, const std::string &ah)
|
|
|
|
|
{
|
|
|
|
|
if (_RootMenu)
|
|
|
|
|
_RootMenu->setActionHandler(lineIndex, ah);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupMenu::setActionHandlerParam(uint lineIndex, const std::string ¶ms)
|
|
|
|
|
{
|
|
|
|
|
if (_RootMenu)
|
|
|
|
|
_RootMenu->setActionHandlerParam(lineIndex, params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void CGroupMenu::setUserGroupRight(uint line, CInterfaceGroup *gr, bool ownerShip /*=true*/)
|
|
|
|
|
{
|
|
|
|
|