mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 08:28:44 +00:00
CHANGED: #1471 Implemented property setting for CDBViewQuantity.
This commit is contained in:
parent
0103afae6e
commit
68b83eab1f
2 changed files with 25 additions and 0 deletions
|
@ -40,6 +40,7 @@ namespace NLGUI
|
|||
CDBViewQuantity(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 draw ();
|
||||
|
||||
|
|
|
@ -62,6 +62,30 @@ namespace NLGUI
|
|||
return CViewText::getProperty( name );
|
||||
}
|
||||
|
||||
|
||||
void CDBViewQuantity::setProperty( const std::string &name, const std::string &value )
|
||||
{
|
||||
if( name == "value" )
|
||||
{
|
||||
_Number.link( value.c_str() );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "valuemax" )
|
||||
{
|
||||
_NumberMax.link( value.c_str() );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "emptytext" )
|
||||
{
|
||||
_EmptyText = value;
|
||||
return;
|
||||
}
|
||||
else
|
||||
CViewText::setProperty( name, value );
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
bool CDBViewQuantity::parse (xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue