mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
CHANGED: Implemented property setting for CGroupScrollText.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
6e4ce5315a
commit
023de1768d
2 changed files with 14 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace NLGUI
|
|||
~CGroupScrollText();
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
|
||||
/// CInterfaceGroup Interface
|
||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||
|
|
|
@ -57,6 +57,19 @@ namespace NLGUI
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue