mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 17:46:18 +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;
|
||||
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