Mercurial > hg > svgui
diff layer/LayerFactory.h @ 1455:9e846af73f3e single-point
Add setLayerProperties (from XML string)
author | Chris Cannam |
---|---|
date | Fri, 10 May 2019 09:22:20 +0100 |
parents | 43a28a52f8ab |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/LayerFactory.h Fri May 10 08:44:32 2019 +0100 +++ b/layer/LayerFactory.h Fri May 10 09:22:20 2019 +0100 @@ -68,8 +68,20 @@ Layer *createLayer(LayerType type); + /** + * Set the default properties of a layer, from the XML string + * contained in the LayerDefaults settings group for the given + * layer type. Leave unchanged any properties not mentioned in the + * settings. + */ void setLayerDefaultProperties(LayerType type, Layer *layer); + /** + * Set the properties of a layer, from the XML string + * provided. Leave unchanged any properties not mentioned. + */ + void setLayerProperties(Layer *layer, QString xmlString); + QString getLayerPresentationName(LayerType type); bool isLayerSliceable(const Layer *);