mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 15:26:16 +00:00
CHANGED: #1471 Implemented property setting for CViewTextIDFormated.
This commit is contained in:
parent
fe1721f00f
commit
15440c0553
2 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,7 @@ namespace NLGUI
|
||||||
{}
|
{}
|
||||||
|
|
||||||
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 );
|
||||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||||
virtual void checkCoords();
|
virtual void checkCoords();
|
||||||
const ucstring &getFormatString() const { return _FormatString; }
|
const ucstring &getFormatString() const { return _FormatString; }
|
||||||
|
|
|
@ -36,6 +36,18 @@ namespace NLGUI
|
||||||
return CViewTextID::getProperty( name );
|
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)
|
bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue