CHANGED: Implemented property setting for CGroupHeader.

This commit is contained in:
dfighter1985 2012-08-06 21:28:07 +02:00
parent ee1166fa8d
commit b9ca0e3979
2 changed files with 14 additions and 0 deletions

View file

@ -43,6 +43,7 @@ namespace NLGUI
CGroupHeader(const TCtorParam &param);
std::string getProperty( const std::string &name ) const;
void setProperty( const std::string &name, const std::string &value );
// from CInterfaceGroup
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);

View file

@ -225,6 +225,19 @@ namespace NLGUI
return CGroupList::getProperty( name );
}
void CGroupHeader::setProperty( const std::string &name, const std::string &value )
{
if( name == "header_max_size" )
{
sint32 i;
if( fromString( value, i ) )
_HeaderMaxSize = i;
return;
}
else
return CGroupList::setProperty( name, value );
}
// *****************************************************************************************************************
bool CGroupHeader::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
{