mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
CHANGED: #1471 Implemented property setting for CViewTextFormated.
This commit is contained in:
parent
6c34eb89a0
commit
22eb4ff05d
2 changed files with 12 additions and 0 deletions
|
@ -47,6 +47,7 @@ namespace NLGUI
|
|||
CViewTextFormated (const TCtorParam ¶m) : CViewText(param)
|
||||
{}
|
||||
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; }
|
||||
|
|
|
@ -35,6 +35,17 @@ namespace NLGUI
|
|||
return CViewText::getProperty( name );
|
||||
}
|
||||
|
||||
void CViewTextFormated::setProperty( const std::string &name, const std::string &value )
|
||||
{
|
||||
if( name == "format" )
|
||||
{
|
||||
setFormatString( value );
|
||||
return;
|
||||
}
|
||||
else
|
||||
CViewText::setProperty( name, value );
|
||||
}
|
||||
|
||||
// ****************************************************************************
|
||||
bool CViewTextFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue