mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-05 14:59:01 +00:00
CHANGED: #1471 Implemented property querying for for CViewTextFormated.
This commit is contained in:
parent
94fb0bbb8a
commit
7390abe71c
3 changed files with 30 additions and 0 deletions
|
@ -46,6 +46,7 @@ namespace NLGUI
|
|||
|
||||
CViewTextFormated (const TCtorParam ¶m) : CViewText(param)
|
||||
{}
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||
virtual void checkCoords();
|
||||
const ucstring &getFormatString() const { return _FormatString; }
|
||||
|
|
|
@ -25,6 +25,16 @@ namespace NLGUI
|
|||
|
||||
CViewTextFormated::IViewTextFormatter *CViewTextFormated::textFormatter = NULL;
|
||||
|
||||
std::string CViewTextFormated::getProperty( const std::string &name ) const
|
||||
{
|
||||
if( name == "format" )
|
||||
{
|
||||
return getFormatString().toString();
|
||||
}
|
||||
else
|
||||
return CViewText::getProperty( name );
|
||||
}
|
||||
|
||||
// ****************************************************************************
|
||||
bool CViewTextFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<widget>
|
||||
<header>
|
||||
<name>ViewTextFormated</name>
|
||||
<guiname>CViewTextFormated</guiname>
|
||||
<ancestor>ViewText</ancestor>
|
||||
<description></description>
|
||||
<abstract>false</abstract>
|
||||
<icon></icon>
|
||||
</header>
|
||||
<properties>
|
||||
<property>
|
||||
<name>format</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
|
||||
|
||||
</properties>
|
||||
</widget>
|
Loading…
Reference in a new issue