comparison view/View.h @ 216:34bbbcb3c01f sv1-1.0pre1

* Make getPropertyRangeAndValue return the default separately from the current value. Previously some contexts were incorrectly treating the current value as a default.
author Chris Cannam
date Fri, 02 Mar 2007 14:00:12 +0000
parents e2baee498ec8
children bd2d0346da0e
comparison
equal deleted inserted replaced
215:d2334a77db73 216:34bbbcb3c01f
200 // delegates back to us. 200 // delegates back to us.
201 virtual PropertyContainer::PropertyList getProperties() const; 201 virtual PropertyContainer::PropertyList getProperties() const;
202 virtual QString getPropertyLabel(const PropertyName &) const; 202 virtual QString getPropertyLabel(const PropertyName &) const;
203 virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const; 203 virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const;
204 virtual int getPropertyRangeAndValue(const PropertyName &, 204 virtual int getPropertyRangeAndValue(const PropertyName &,
205 int *min, int *max) const; 205 int *min, int *max, int *deflt) const;
206 virtual QString getPropertyValueLabel(const PropertyName &, 206 virtual QString getPropertyValueLabel(const PropertyName &,
207 int value) const; 207 int value) const;
208 virtual void setProperty(const PropertyName &, int value); 208 virtual void setProperty(const PropertyName &, int value);
209 virtual QString getPropertyContainerName() const { 209 virtual QString getPropertyContainerName() const {
210 return objectName(); 210 return objectName();
344 return m_v->getPropertyLabel(n); 344 return m_v->getPropertyLabel(n);
345 } 345 }
346 PropertyType getPropertyType(const PropertyName &n) const { 346 PropertyType getPropertyType(const PropertyName &n) const {
347 return m_v->getPropertyType(n); 347 return m_v->getPropertyType(n);
348 } 348 }
349 int getPropertyRangeAndValue(const PropertyName &n, int *min, int *max) const { 349 int getPropertyRangeAndValue(const PropertyName &n, int *min, int *max,
350 return m_v->getPropertyRangeAndValue(n, min, max); 350 int *deflt) const {
351 return m_v->getPropertyRangeAndValue(n, min, max, deflt);
351 } 352 }
352 QString getPropertyValueLabel(const PropertyName &n, int value) const { 353 QString getPropertyValueLabel(const PropertyName &n, int value) const {
353 return m_v->getPropertyValueLabel(n, value); 354 return m_v->getPropertyValueLabel(n, value);
354 } 355 }
355 QString getPropertyContainerName() const { 356 QString getPropertyContainerName() const {