void GObject::setProperty ( const char* categoryName, const char* propName, const char* var ) { PropertyMap* propMap = 0; CXASSERT_RETURN ( mOption.Get ( categoryName, propMap ) ); EPropertyVar* evar = 0; CXASSERT_RETURN ( propMap->Get ( propName, evar ) ); evar->mProp->setValue ( var ); }
void Label::BindText(PropertyMap &p, const std::string &k) { std::string text; p.Get(k, text); SetText(text); }
void Gauge::BindValue(PropertyMap &p, const std::string &k) { double v = 0.0; p.Get(k, v); SetValue(v); }
void Gauge::BindValuePercent(PropertyMap &p, const std::string &k) { double v = 0.0; p.Get(k, v); SetValue(Clamp(v, 0.0, 100.0)*0.01); }
void NumberLabel::BindValue(PropertyMap &p, const std::string &k) { double v = 0.0; p.Get(k, v); SetValue(v); }