Mercurial > hg > svcore
diff base/PropertyContainer.h @ 190:60ba218a54bb
* Use RangeMappers in various places in plugin parameters, layer properties,
playback parameters &c
author | Chris Cannam |
---|---|
date | Mon, 16 Oct 2006 20:42:23 +0000 |
parents | 4f26f623a8bc |
children | 1d789d688f59 |
line wrap: on
line diff
--- a/base/PropertyContainer.h Mon Oct 16 13:13:57 2006 +0000 +++ b/base/PropertyContainer.h Mon Oct 16 20:42:23 2006 +0000 @@ -23,6 +23,7 @@ #include <vector> class PlayParameters; +class RangeMapper; class PropertyContainer : public QObject { @@ -84,6 +85,16 @@ virtual QString getPropertyValueLabel(const PropertyName &, int value) const; + /** + * If the given property is a RangeProperty, return a new + * RangeMapper object mapping its integer range onto an underlying + * floating point value range for human-intelligible display, if + * appropriate. The RangeMapper should be allocated with new, and + * the caller takes responsibility for deleting it. Return NULL + * (as in the default implementation) if there is no such mapping. + */ + virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; + virtual QString getPropertyContainerName() const = 0; virtual QString getPropertyContainerIconName() const = 0;