mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-28 11:20:53 +00:00
CHANGED: #1471 Implemented property querying for CGroupHeader.
This commit is contained in:
parent
50dd85e0d6
commit
eec6a5cb8a
3 changed files with 30 additions and 0 deletions
|
@ -41,6 +41,9 @@ namespace NLGUI
|
|||
REFLECT_EXPORT_END
|
||||
|
||||
CGroupHeader(const TCtorParam ¶m);
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
|
||||
// from CInterfaceGroup
|
||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||
sint32 getHeaderMaxSize() const { return _HeaderMaxSize; }
|
||||
|
|
|
@ -215,6 +215,16 @@ namespace NLGUI
|
|||
return 0;
|
||||
}
|
||||
|
||||
std::string CGroupHeader::getProperty( const std::string &name ) const
|
||||
{
|
||||
if( name == "header_max_size" )
|
||||
{
|
||||
return toString( _HeaderMaxSize );
|
||||
}
|
||||
else
|
||||
return CGroupList::getProperty( name );
|
||||
}
|
||||
|
||||
// *****************************************************************************************************************
|
||||
bool CGroupHeader::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<widget>
|
||||
<header>
|
||||
<name>GroupHeader</name>
|
||||
<guiname>CGroupHeader</guiname>
|
||||
<ancestor>GroupList</ancestor>
|
||||
<description></description>
|
||||
<abstract>false</abstract>
|
||||
<icon></icon>
|
||||
</header>
|
||||
<properties>
|
||||
<property>
|
||||
<name>header_max_size</name>
|
||||
<type>int</type>
|
||||
<default>32767</default>
|
||||
</property>
|
||||
</properties>
|
||||
</widget>
|
Loading…
Reference in a new issue