mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
CHANGED: Implemented property setting for CGroupTab.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
900fccaa2e
commit
0f025b030c
2 changed files with 27 additions and 0 deletions
|
@ -48,6 +48,7 @@ namespace NLGUI
|
||||||
CGroupTab(const TCtorParam ¶m);
|
CGroupTab(const TCtorParam ¶m);
|
||||||
|
|
||||||
std::string getProperty( const std::string &name ) const;
|
std::string getProperty( const std::string &name ) const;
|
||||||
|
void setProperty( const std::string &name, const std::string &value );
|
||||||
|
|
||||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||||
virtual void updateCoords ();
|
virtual void updateCoords ();
|
||||||
|
|
|
@ -62,6 +62,32 @@ namespace NLGUI
|
||||||
return CInterfaceGroup::getProperty( name );
|
return CInterfaceGroup::getProperty( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CGroupTab::setProperty( const std::string &name, const std::string &value )
|
||||||
|
{
|
||||||
|
if( name == "hide_out_tabs" )
|
||||||
|
{
|
||||||
|
bool b;
|
||||||
|
if( fromString( value, b ) )
|
||||||
|
_HideOutTabs = b;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( name == "onchange" )
|
||||||
|
{
|
||||||
|
_AHOnChange = value;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( name == "onchange_params" )
|
||||||
|
{
|
||||||
|
_ParamsOnChange = value;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
CInterfaceGroup::setProperty( name, value );
|
||||||
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CGroupTab::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
bool CGroupTab::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue