From eadce4cc7fb100703f65497ff01e24efeb86859b Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 7 Aug 2012 02:32:12 +0200 Subject: [PATCH] CHANGED: Implemented property setting for CGroupTab. --- code/nel/include/nel/gui/group_tab.h | 1 + code/nel/src/gui/group_tab.cpp | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/code/nel/include/nel/gui/group_tab.h b/code/nel/include/nel/gui/group_tab.h index 06cfdb437..f294e65d4 100644 --- a/code/nel/include/nel/gui/group_tab.h +++ b/code/nel/include/nel/gui/group_tab.h @@ -48,6 +48,7 @@ namespace NLGUI CGroupTab(const TCtorParam ¶m); 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 void updateCoords (); diff --git a/code/nel/src/gui/group_tab.cpp b/code/nel/src/gui/group_tab.cpp index 6f7c35c17..bf08857c4 100644 --- a/code/nel/src/gui/group_tab.cpp +++ b/code/nel/src/gui/group_tab.cpp @@ -62,6 +62,32 @@ namespace NLGUI 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) {