Open rainman110 opened 1 month ago
Properties can be extended via the PropertyInterface.
PropertyLists though are tied only to fixed properties, namely:
QList<int>
QList<bool>
QList<QPointF>
QVector<double>
QStringList
which are defined in https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L39-L44
Also, this code is limited to a fixed list type:
https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L843-L892
We should think about making this list extensible.
Currently, it is impossible to define a VariantListProperty, as the serialization to xml is allowed only to these types.
Quite some refactoring seems to be required.
No response
Summary
Properties can be extended via the PropertyInterface.
PropertyLists though are tied only to fixed properties, namely:
QList<int>
QList<bool>
QList<QPointF>
QVector<double>
QStringList
which are defined in https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L39-L44
Also, this code is limited to a fixed list type:
https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L843-L892
We should think about making this list extensible.
Improvements
Currently, it is impossible to define a VariantListProperty, as the serialization to xml is allowed only to these types.
Drawbacks
Quite some refactoring seems to be required.
Current workarounds
No response