Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
93:27d726916ab3 | 94:5b8392e80ed6 |
---|---|
42 InvalidProperty, // property not found! | 42 InvalidProperty, // property not found! |
43 }; | 43 }; |
44 | 44 |
45 /** | 45 /** |
46 * Get a list of the names of all the supported properties on this | 46 * Get a list of the names of all the supported properties on this |
47 * container. Note that these should already have been | 47 * container. These should be fixed (i.e. not internationalized). |
48 * internationalized with a call to tr() or equivalent. If the | |
49 * container needs to test for equality with string literals | |
50 * subsequently, it must be sure to call tr() again on the strings | |
51 * in order to ensure they match. | |
52 */ | 48 */ |
53 virtual PropertyList getProperties() const; | 49 virtual PropertyList getProperties() const; |
50 | |
51 /** | |
52 * Return the human-readable (and i18n'ised) name of a property. | |
53 */ | |
54 virtual QString getPropertyLabel(const PropertyName &) const = 0; | |
54 | 55 |
55 /** | 56 /** |
56 * Return the type of the given property, or InvalidProperty if | 57 * Return the type of the given property, or InvalidProperty if |
57 * the property is not supported on this container. | 58 * the property is not supported on this container. |
58 */ | 59 */ |