CHANGED: #1471 Implemented property querying for CGroupTab.

This commit is contained in:
dfighter1985 2012-08-01 18:54:36 +02:00
parent 7fd70b44e8
commit ed8d2e96af
3 changed files with 48 additions and 0 deletions

View file

@ -47,6 +47,8 @@ namespace NLGUI
/// Constructor
CGroupTab(const TCtorParam &param);
std::string getProperty( const std::string &name ) const;
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
virtual void updateCoords ();

View file

@ -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)

View file

@ -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>