mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 15:45:59 +00:00
CHANGED: #1471 Implemented property querying for CGroupTab.
This commit is contained in:
parent
7fd70b44e8
commit
ed8d2e96af
3 changed files with 48 additions and 0 deletions
|
@ -47,6 +47,8 @@ namespace NLGUI
|
|||
/// Constructor
|
||||
CGroupTab(const TCtorParam ¶m);
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
|
||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||
virtual void updateCoords ();
|
||||
|
||||
|
|
|
@ -42,6 +42,25 @@ namespace NLGUI
|
|||
_LastTabIndex = -1;
|
||||
}
|
||||
|
||||
std::string CGroupTab::getProperty( const std::string &name ) const
|
||||
{
|
||||
if( name == "hide_out_tabs" )
|
||||
{
|
||||
return toString( _HideOutTabs );
|
||||
}
|
||||
else
|
||||
if( name == "onchange" )
|
||||
{
|
||||
return _AHOnChange;
|
||||
}
|
||||
else
|
||||
if( name == "onchange_params" )
|
||||
{
|
||||
return _ParamsOnChange;
|
||||
}
|
||||
else
|
||||
return CInterfaceGroup::getProperty( name );
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
bool CGroupTab::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<widget>
|
||||
<header>
|
||||
<name>GroupTab</name>
|
||||
<guiname>CGroupTab</guiname>
|
||||
<ancestor>InterfaceGroup</ancestor>
|
||||
<description></description>
|
||||
<abstract>false</abstract>
|
||||
<icon></icon>
|
||||
</header>
|
||||
<properties>
|
||||
<property>
|
||||
<name>hide_out_tabs</name>
|
||||
<type>bool</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onchange</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
<property>
|
||||
<name>onchange_params</name>
|
||||
<type>string</type>
|
||||
<default></default>
|
||||
</property>
|
||||
</properties>
|
||||
</widget>
|
Loading…
Reference in a new issue