comparison 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
comparison
equal deleted inserted replaced
189:0703252c9fe8 190:60ba218a54bb
21 #include <QString> 21 #include <QString>
22 #include <QObject> 22 #include <QObject>
23 #include <vector> 23 #include <vector>
24 24
25 class PlayParameters; 25 class PlayParameters;
26 class RangeMapper;
26 27
27 class PropertyContainer : public QObject 28 class PropertyContainer : public QObject
28 { 29 {
29 Q_OBJECT 30 Q_OBJECT
30 31
82 * label to be used for the given value for that property. 83 * label to be used for the given value for that property.
83 */ 84 */
84 virtual QString getPropertyValueLabel(const PropertyName &, 85 virtual QString getPropertyValueLabel(const PropertyName &,
85 int value) const; 86 int value) const;
86 87
88 /**
89 * If the given property is a RangeProperty, return a new
90 * RangeMapper object mapping its integer range onto an underlying
91 * floating point value range for human-intelligible display, if
92 * appropriate. The RangeMapper should be allocated with new, and
93 * the caller takes responsibility for deleting it. Return NULL
94 * (as in the default implementation) if there is no such mapping.
95 */
96 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
97
87 virtual QString getPropertyContainerName() const = 0; 98 virtual QString getPropertyContainerName() const = 0;
88 virtual QString getPropertyContainerIconName() const = 0; 99 virtual QString getPropertyContainerIconName() const = 0;
89 100
90 virtual PlayParameters *getPlayParameters() { return 0; } 101 virtual PlayParameters *getPlayParameters() { return 0; }
91 102