Mercurial > hg > svcore
diff base/PropertyContainer.h @ 277:3b8008d09541
* Add a colour database, and Add New Colour function to the colour combo
in property box. The colour property is only correctly handled in the
waveform layer so far.
* Add en_GB translation, to translate those annoying Color texts in the
Qt colour picker dialog.
author | Chris Cannam |
---|---|
date | Wed, 11 Jul 2007 17:21:37 +0000 |
parents | 4cd620bd4c61 |
children | 516819f2b97b |
line wrap: on
line diff
--- a/base/PropertyContainer.h Thu Jul 05 11:07:01 2007 +0000 +++ b/base/PropertyContainer.h Wed Jul 11 17:21:37 2007 +0000 @@ -39,7 +39,7 @@ ToggleProperty, // on or off RangeProperty, // range of integers ValueProperty, // range of integers given string labels - ColourProperty, // colours, get/set as qRgb + ColourProperty, // colours, get/set as ColourDatabase indices UnitsProperty, // unit from UnitDatabase, get/set unit id InvalidProperty, // property not found! }; @@ -107,7 +107,8 @@ /** * Set a property. This is used for all property types. For * boolean properties, zero is false and non-zero true; for - * colours, the integer value should be treated as a qRgb. + * colours, the integer value is an index into the colours in the + * global ColourDatabase. */ virtual void setProperty(const PropertyName &, int value);