|
|
@ -177,6 +177,27 @@ namespace NLGUI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string CViewText::getProperty( const std::string &name ) const
|
|
|
|
std::string CViewText::getProperty( const std::string &name ) const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string prop = getTextProperty( name );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !prop.empty() )
|
|
|
|
|
|
|
|
return prop;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if( name == "hardtext" )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return _Text.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if( name == "hardtext_format" )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return _HardtextFormat;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return CViewBase::getProperty( name );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string CViewText::getTextProperty( const std::string &name ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( name == "color" )
|
|
|
|
if( name == "color" )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -290,17 +311,7 @@ namespace NLGUI
|
|
|
|
return toString( _ContinuousUpdate );
|
|
|
|
return toString( _ContinuousUpdate );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if( name == "hardtext" )
|
|
|
|
return "";
|
|
|
|
{
|
|
|
|
|
|
|
|
return _Text.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if( name == "hardtext_format" )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return _HardtextFormat;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return CViewBase::getProperty( name );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CViewText::setProperty( const std::string &name, const std::string &value )
|
|
|
|
void CViewText::setProperty( const std::string &name, const std::string &value )
|
|
|
|