mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
CHANGED: Implemented property setting for CGroupHeader.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
820a4ecfde
commit
0b20e12469
2 changed files with 14 additions and 0 deletions
|
@ -43,6 +43,7 @@ namespace NLGUI
|
||||||
CGroupHeader(const TCtorParam ¶m);
|
CGroupHeader(const TCtorParam ¶m);
|
||||||
|
|
||||||
std::string getProperty( const std::string &name ) const;
|
std::string getProperty( const std::string &name ) const;
|
||||||
|
void setProperty( const std::string &name, const std::string &value );
|
||||||
|
|
||||||
// from CInterfaceGroup
|
// from CInterfaceGroup
|
||||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||||
|
|
|
@ -225,6 +225,19 @@ namespace NLGUI
|
||||||
return CGroupList::getProperty( name );
|
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)
|
bool CGroupHeader::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue