mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
CHANGED: #1471 CViewTextIDFormated fields can now be serialized.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
a957beeb6c
commit
0f3f381201
2 changed files with 13 additions and 0 deletions
|
@ -41,6 +41,7 @@ namespace NLGUI
|
|||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||
virtual void checkCoords();
|
||||
const ucstring &getFormatString() const { return _FormatString; }
|
||||
|
|
|
@ -48,6 +48,18 @@ namespace NLGUI
|
|||
CViewTextID::setProperty( name, value );
|
||||
}
|
||||
|
||||
xmlNodePtr CViewTextIDFormated::serialize( xmlNodePtr parentNode, const char *type ) const
|
||||
{
|
||||
xmlNodePtr node = CViewTextID::serialize( parentNode, type );
|
||||
if( node == NULL )
|
||||
return NULL;
|
||||
|
||||
xmlSetProp( node, BAD_CAST "type", BAD_CAST "text_id_formated" );
|
||||
xmlSetProp( node, BAD_CAST "format", BAD_CAST getFormatString().c_str() );
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
// *********************************************************************************
|
||||
bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue