16 #ifndef _PROPERTY_CONTAINER_H_ 17 #define _PROPERTY_CONTAINER_H_ 84 int *min,
int *max,
int *deflt)
const;
159 virtual QString
getName()
const;
void propertyChanged(PropertyContainer::PropertyName)
virtual PropertyType getPropertyType(const PropertyName &) const
Return the type of the given property, or InvalidProperty if the property is not supported on this co...
virtual QString getName() const
virtual bool convertPropertyStrings(QString nameString, QString valueString, PropertyName &name, int &value)
virtual RangeMapper * getNewPropertyRangeMapper(const PropertyName &) const
If the given property is a RangeProperty, return a new RangeMapper object mapping its integer range o...
virtual QString getPropertyValueLabel(const PropertyName &, int value) const
If the given property is a ValueProperty, return the display label to be used for the given value for...
virtual QString getPropertyContainerName() const =0
virtual PropertyList getProperties() const
Get a list of the names of all the supported properties on this container.
virtual void setPropertyFuzzy(QString nameString, QString valueString)
Set a property using a fuzzy match.
virtual QString getPropertyLabel(const PropertyName &) const =0
Return the human-readable (and i18n'ised) name of a property.
virtual QString getPropertyGroupName(const PropertyName &) const
If this property has something in common with other properties on this container, return a name that ...
virtual Command * getSetPropertyCommand(const PropertyName &, int value)
Obtain a command that sets the given property, which can be added to the command history for undo/red...
virtual QString getPropertyIconName(const PropertyName &) const
Return an icon for the property, if any.
SetPropertyCommand(PropertyContainer *pc, const PropertyName &pn, int)
virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const
Return the minimum and maximum values for the given property and its current value in this container.
virtual ~PropertyContainer()
virtual void setProperty(const PropertyName &, int value)
Set a property.
virtual PlayParameters * getPlayParameters()
std::vector< PropertyName > PropertyList
virtual ~SetPropertyCommand()
virtual QString getPropertyContainerIconName() const =0