mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
CHANGED: #1471 Implemented property querying for for CViewTextIDFormated.
This commit is contained in:
parent
ea1ac7fa6d
commit
f2d465dab7
3 changed files with 31 additions and 0 deletions
|
@ -38,6 +38,8 @@ namespace NLGUI
|
|||
public:
|
||||
CViewTextIDFormated(const TCtorParam ¶m) : CViewTextID(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; }
|
||||
|
|
|
@ -26,6 +26,16 @@ NLMISC_REGISTER_OBJECT(CViewBase, CViewTextIDFormated, std::string, "text_id_for
|
|||
namespace NLGUI
|
||||
{
|
||||
|
||||
std::string CViewTextIDFormated::getProperty( const std::string &name ) const
|
||||
{
|
||||
if( name == "format" )
|
||||
{
|
||||
return getFormatString().toString();
|
||||
}
|
||||
else
|
||||
return CViewTextID::getProperty( name );
|
||||
}
|
||||
|
||||
// *********************************************************************************
|
||||
bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<widget>
|
||||
<header>
|
||||
<name>ViewTextIDFormated</name>
|
||||
<guiname>CViewTextIDFormated</guiname>
|
||||
<ancestor>ViewTextID</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