CHANGED: #1471 Implemented property setting for CViewTextIDFormated.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
71b831ac4a
commit
072bd05c92
2 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,7 @@ namespace NLGUI
|
|||
{}
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||
virtual void checkCoords();
|
||||
const ucstring &getFormatString() const { return _FormatString; }
|
||||
|
|
|
@ -36,6 +36,18 @@ namespace NLGUI
|
|||
return CViewTextID::getProperty( name );
|
||||
}
|
||||
|
||||
|
||||
void CViewTextIDFormated::setProperty( const std::string &name, const std::string &value )
|
||||
{
|
||||
if( name == "format" )
|
||||
{
|
||||
setFormatString( value );
|
||||
return;
|
||||
}
|
||||
else
|
||||
CViewTextID::setProperty( name, value );
|
||||
}
|
||||
|
||||
// *********************************************************************************
|
||||
bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue