CHANGED: #1471 CCtrlTabButton fields can now be serialized.
This commit is contained in:
parent
e7590fd4a0
commit
8e7c4f262f
2 changed files with 12 additions and 0 deletions
|
@ -157,6 +157,7 @@ namespace NLGUI
|
|||
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||
|
||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||
|
||||
|
|
|
@ -792,6 +792,17 @@ namespace NLGUI
|
|||
CCtrlTextButton::setProperty( name, value );
|
||||
}
|
||||
|
||||
xmlNodePtr CCtrlTabButton::serialize( xmlNodePtr parentNode, const char *type ) const
|
||||
{
|
||||
xmlNodePtr node = CCtrlTextButton::serialize( parentNode, type );
|
||||
if( node == NULL )
|
||||
return NULL;
|
||||
|
||||
xmlNewProp( node, BAD_CAST "group", BAD_CAST _AssociatedGroup.c_str() );
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
bool CCtrlTabButton::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue