mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
CHANGED: #1471 Implemented property setting for CViewBitmapCombo.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
1e806b2a09
commit
5c39b718e1
2 changed files with 42 additions and 0 deletions
|
@ -108,6 +108,7 @@ namespace NLGUI
|
|||
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -216,6 +216,47 @@ namespace NLGUI
|
|||
return CViewBase::getProperty( name );
|
||||
}
|
||||
|
||||
void CViewBitmapCombo::setProperty( const std::string &name, const std::string &value )
|
||||
{
|
||||
if( name == "tx_normal" )
|
||||
{
|
||||
parseTexList( value, _Texs );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "tx_over" )
|
||||
{
|
||||
parseTexList( value, _TexsOver );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "tx_pushed" )
|
||||
{
|
||||
parseTexList( value, _TexsPushed );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "col_normal" )
|
||||
{
|
||||
parseColList( value, _Col );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "col_over" )
|
||||
{
|
||||
parseColList( value, _ColOver );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if( name == "col_pushed" )
|
||||
{
|
||||
parseColList( value, _ColPushed );
|
||||
return;
|
||||
}
|
||||
else
|
||||
CViewBase::setProperty( name, value );
|
||||
}
|
||||
|
||||
//=======================================================================================
|
||||
bool CViewBitmapCombo::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue