mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 15:46:18 +00:00
CHANGED: Implemented property setting for CInterfaceGroupWheel.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
b0d8bed572
commit
54c1e4a6b2
2 changed files with 30 additions and 0 deletions
|
@ -32,6 +32,7 @@ namespace NLGUI
|
||||||
CInterfaceGroupWheel(const TCtorParam ¶m);
|
CInterfaceGroupWheel(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 );
|
||||||
|
|
||||||
/// Coming from CInterfaceElement
|
/// Coming from CInterfaceElement
|
||||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||||
|
|
|
@ -57,6 +57,35 @@ namespace NLGUI
|
||||||
return CInterfaceGroup::getProperty( name );
|
return CInterfaceGroup::getProperty( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CInterfaceGroupWheel::setProperty( const std::string &name, const std::string &value )
|
||||||
|
{
|
||||||
|
if( name == "on_wheel_up" )
|
||||||
|
{
|
||||||
|
_AHWheelUp = CAHManager::getInstance()->getAH( value, std::string() );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( name == "on_wheel_up_params" )
|
||||||
|
{
|
||||||
|
_AHWheelUpParams = value;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( name == "on_wheel_down" )
|
||||||
|
{
|
||||||
|
_AHWheelDown = CAHManager::getInstance()->getAH( value, std::string() );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if( name == "on_wheel_down_params" )
|
||||||
|
{
|
||||||
|
_AHWheelDownParams = value;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
CInterfaceGroup::setProperty( name, value );
|
||||||
|
}
|
||||||
|
|
||||||
// *****************************************************************************************************************
|
// *****************************************************************************************************************
|
||||||
bool CInterfaceGroupWheel::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
bool CInterfaceGroupWheel::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue