26 #define YUILogComponent "ui"
29 #include "YIntField.h"
38 , minValue( minValue )
39 , maxValue( maxValue )
51 const std::string & label,
57 YUI_CHECK_NEW( priv );
76 if ( val > priv->maxValue )
86 return priv->minValue;
95 int oldValue =
value();
98 if ( oldValue != newValue )
106 return priv->maxValue;
113 priv->maxValue = val;
115 int oldValue =
value();
118 if ( oldValue != newValue )
151 propSet.
add(
YProperty( YUIProperty_Value, YIntegerProperty ) );
152 propSet.
add(
YProperty( YUIProperty_MinValue, YIntegerProperty ) );
153 propSet.
add(
YProperty( YUIProperty_MaxValue, YIntegerProperty ) );
154 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
167 if ( propertyName == YUIProperty_Value )
setValue ( val.integerVal() );
168 else if ( propertyName == YUIProperty_MinValue )
setMinValue( val.integerVal() );
169 else if ( propertyName == YUIProperty_MaxValue )
setMaxValue( val.integerVal() );