CHANGED: #1471 CCtrlTabButton fields can now be serialized.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 0ff3d0cad3
commit 5e52281c6e

@ -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…
Cancel
Save