Convenience metadata class that uses static functions to create symbol layer and its widget.
More...
|
| QgsSymbolLayerMetadata (const QString &name, const QString &visibleName, Qgis::SymbolType type, QgsSymbolLayerCreateFunc pfCreate, QgsSymbolLayerCreateFromSldFunc pfCreateFromSld=nullptr, QgsSymbolLayerPathResolverFunc pfPathResolver=nullptr, QgsSymbolLayerWidgetFunc pfWidget=nullptr, QgsSymbolLayerFontResolverFunc pfFontResolver=nullptr) |
|
QgsSymbolLayerCreateFromSldFunc | createFromSldFunction () const |
|
QgsSymbolLayerCreateFunc | createFunction () const |
|
QgsSymbolLayer * | createSymbolLayer (const QVariantMap &map) override |
| Create a symbol layer of this type given the map of properties. More...
|
|
QgsSymbolLayer * | createSymbolLayerFromSld (QDomElement &elem) override |
| Create a symbol layer of this type given the map of properties. More...
|
|
QgsSymbolLayerWidget * | createSymbolLayerWidget (QgsVectorLayer *vl) override |
| Create widget for symbol layer of this type. Can return nullptr if there's no GUI. More...
|
|
QgsSymbolLayerPathResolverFunc | pathResolverFunction () const |
|
void | resolveFonts (const QVariantMap &properties, const QgsReadWriteContext &context) override |
| Resolve fonts from the symbol layer's properties. More...
|
|
void | resolvePaths (QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving) override |
| Resolve paths in symbol layer's properties (if there are any paths). More...
|
|
void | setWidgetFunction (QgsSymbolLayerWidgetFunc f) |
|
QgsSymbolLayerWidgetFunc | widgetFunction () const |
|
| QgsSymbolLayerAbstractMetadata (const QString &name, const QString &visibleName, Qgis::SymbolType type) |
| Constructor for QgsSymbolLayerAbstractMetadata. More...
|
|
virtual | ~QgsSymbolLayerAbstractMetadata ()=default |
|
QString | name () const |
|
Qgis::SymbolType | type () const |
|
QString | visibleName () const |
|
Convenience metadata class that uses static functions to create symbol layer and its widget.
Definition at line 110 of file qgssymbollayerregistry.h.
void QgsSymbolLayerMetadata::resolvePaths |
( |
QVariantMap & |
properties, |
|
|
const QgsPathResolver & |
pathResolver, |
|
|
bool |
saving |
|
) |
| |
|
inlineoverridevirtual |
Resolve paths in symbol layer's properties (if there are any paths).
When saving is true
, paths are converted from absolute to relative, when saving is false
, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in symbol layer instances the paths are always absolute
- Since
- QGIS 3.0
Reimplemented from QgsSymbolLayerAbstractMetadata.
Definition at line 144 of file qgssymbollayerregistry.h.