CHANGED: #1471 Implemented property querying for CGroupTab.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 7657eafe86
commit 9dda3aac07

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

@ -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…
Cancel
Save