CHANGED: Implemented property setting for CGroupScrollText.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 6e4ce5315a
commit 023de1768d

@ -44,6 +44,7 @@ namespace NLGUI
~CGroupScrollText(); ~CGroupScrollText();
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 );
/// CInterfaceGroup Interface /// CInterfaceGroup Interface
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup); virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);

@ -57,6 +57,19 @@ namespace NLGUI
return CInterfaceGroup::getProperty( name ); return CInterfaceGroup::getProperty( name );
} }
void CGroupScrollText::setProperty( const std::string &name, const std::string &value )
{
if( name == "invert_scroll_bar" )
{
bool b;
if( NLMISC::fromString( value, b ) )
_InvertScrollBar = b;
return;
}
else
CInterfaceGroup::setProperty( name, value );
}
//======================================================================== //========================================================================
bool CGroupScrollText::parse(xmlNodePtr cur,CInterfaceGroup *parentGroup) bool CGroupScrollText::parse(xmlNodePtr cur,CInterfaceGroup *parentGroup)
{ {

Loading…
Cancel
Save