CHANGED: Implemented property setting for CGroupTab.
This commit is contained in:
parent
45020223d2
commit
eadce4cc7f
2 changed files with 27 additions and 0 deletions
|
@ -48,6 +48,7 @@ namespace NLGUI
|
|||
CGroupTab(const TCtorParam ¶m);
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
|
||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||
virtual void updateCoords ();
|
||||
|
|
|
@ -62,6 +62,32 @@ namespace NLGUI
|
|||
return CInterfaceGroup::getProperty( name );
|
||||
}
|
||||
|
||||
|
||||
void CGroupTab::setProperty( const std::string &name, const std::string &value )
|
||||
{
|
||||
if( name == "hide_out_tabs" )
|
||||
{
|
||||
bool b;
|
||||
if( fromString( value, b ) )
|
||||
_HideOutTabs = b;
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "onchange" )
|
||||
{
|
||||
_AHOnChange = value;
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "onchange_params" )
|
||||
{
|
||||
_ParamsOnChange = value;
|
||||
return;
|
||||
}
|
||||
else
|
||||
CInterfaceGroup::setProperty( name, value );
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
bool CGroupTab::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue