mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
CHANGED: #1471 Implemented property querying for for CViewTextIDFormated.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
0436e018aa
commit
d99ce0a5e9
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