26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YProgressBar.h"
37 , maxValue( maxValue )
53 const std::string & label,
58 YUI_CHECK_NEW( priv );
85 return priv->maxValue;
100 if ( newValue > priv->maxValue )
101 newValue = priv->maxValue;
103 priv->value = newValue;
118 propSet.
add(
YProperty( YUIProperty_Value, YIntegerProperty ) );
119 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
132 if ( propertyName == YUIProperty_Value )
setValue( val.integerVal() );
YProgressBar(YWidget *parent, const std::string &label, int maxValue=100)
void check(const std::string &propertyName) const
void add(const YProperty &prop)
std::string stringVal() const
virtual void setLabel(const std::string &label)
virtual const YPropertySet & propertySet()
virtual void setValue(int newValue)
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
YPropertyType type() const
virtual YPropertyValue getProperty(const std::string &propertyName)