mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
CHANGED: #1471 Implemented property querying for for CViewTextIDFormated.
This commit is contained in:
parent
9a0e7661ca
commit
289adb12a4
3 changed files with 31 additions and 0 deletions
|
@ -38,6 +38,8 @@ namespace NLGUI
|
||||||
public:
|
public:
|
||||||
CViewTextIDFormated(const TCtorParam ¶m) : CViewTextID(param)
|
CViewTextIDFormated(const TCtorParam ¶m) : CViewTextID(param)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
std::string getProperty( const std::string &name ) const;
|
||||||
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; }
|
||||||
|
|
|
@ -26,6 +26,16 @@ NLMISC_REGISTER_OBJECT(CViewBase, CViewTextIDFormated, std::string, "text_id_for
|
||||||
namespace NLGUI
|
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)
|
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