mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 20:23:47 +00:00
CHANGED: #1471 Implemented property querying for CGroupHeader.
This commit is contained in:
parent
bc5b5d0af4
commit
66fd9526de
3 changed files with 30 additions and 0 deletions
|
@ -41,6 +41,9 @@ namespace NLGUI
|
||||||
REFLECT_EXPORT_END
|
REFLECT_EXPORT_END
|
||||||
|
|
||||||
CGroupHeader(const TCtorParam ¶m);
|
CGroupHeader(const TCtorParam ¶m);
|
||||||
|
|
||||||
|
std::string getProperty( const std::string &name ) const;
|
||||||
|
|
||||||
// from CInterfaceGroup
|
// from CInterfaceGroup
|
||||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||||
sint32 getHeaderMaxSize() const { return _HeaderMaxSize; }
|
sint32 getHeaderMaxSize() const { return _HeaderMaxSize; }
|
||||||
|
|
|
@ -215,6 +215,16 @@ namespace NLGUI
|
||||||
return 0;
|
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)
|
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