GUI: DoubleDescriptor interfaces ---> DoubleProperty interfaces
DoubleDescriptor-based interfaces are partially replaced by DoubleProperty or by simple double setter method.
Sometimes an additional inheritance is added to reuse the same property for few types.
Non-const interfaces DoubleProperty& were added for future passing to spinbox-serving functions. To the date, the property values are changed via functional pointer set() of DoubleDescriptor. It hides from the reader the real matter of fact which method can do such changes. With explicit references it should become more transparent, but from many lines the const keyword will be removed (this is an announcement).
Steps of Descriptor refactoring:
- reduce usage of functional pointers
set()andget()ofDoubleDescriptor - move
Descriptorfunctionality toProperty - use
Propertyinstead ofDescriptor - remove
Descriptorfrom code - refactor serialization of
Property - replace
Propertymacro definitions likeDOUBLE_PROPERTY(intensity, Intensity)by explicit member with setter and getter
This MR does 1 and 3 for DoubleDescriptor
Edited by Mikhail Svechnikov