diff base/PropertyContainer.h @ 94:5b8392e80ed6

* Add property labels to property containers (so i18n() won't affect file format)
author Chris Cannam
date Wed, 03 May 2006 16:48:03 +0000
parents d397ea0a79f5
children a08718723b20
line wrap: on
line diff
--- a/base/PropertyContainer.h	Wed May 03 16:47:04 2006 +0000
+++ b/base/PropertyContainer.h	Wed May 03 16:48:03 2006 +0000
@@ -44,15 +44,16 @@
 
     /**
      * Get a list of the names of all the supported properties on this
-     * container.  Note that these should already have been
-     * internationalized with a call to tr() or equivalent.  If the
-     * container needs to test for equality with string literals
-     * subsequently, it must be sure to call tr() again on the strings
-     * in order to ensure they match.
+     * container.  These should be fixed (i.e. not internationalized).
      */
     virtual PropertyList getProperties() const;
 
     /**
+     * Return the human-readable (and i18n'ised) name of a property.
+     */
+    virtual QString getPropertyLabel(const PropertyName &) const = 0;
+
+    /**
      * Return the type of the given property, or InvalidProperty if
      * the property is not supported on this container.
      */