18 #ifndef QGSPROJECTSTYLESALGORITHMS_H 19 #define QGSPROJECTSTYLESALGORITHMS_H 24 #include "qgis_analysis.h" 48 QgsSaveToStyleVisitor(
QgsStyle *style,
const QList< QgsStyle::StyleEntity > &objects = QList< QgsStyle::StyleEntity >() );
57 QList< QgsStyle::StyleEntity > mObjects;
58 QStringList mParentNames;
70 QgsStyleFromProjectAlgorithm();
71 ~QgsStyleFromProjectAlgorithm()
override;
72 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
73 QString name()
const override;
74 QString displayName()
const override;
75 QStringList tags()
const override;
76 QString group()
const override;
77 QString groupId()
const override;
78 QString shortHelpString()
const override;
79 QString shortDescription()
const override;
80 QgsStyleFromProjectAlgorithm *createInstance()
const override SIP_FACTORY;
85 QVariantMap processAlgorithm(
const QVariantMap ¶meters,
91 QList< QgsStyle::StyleEntity > mObjects;
92 std::unique_ptr< QgsStyle > mStyle;
97 #endif // QGSPROJECTSTYLESALGORITHMS_H Base class for providing feedback from a processing algorithm.
An interface for classes which can visit style entity (e.g.
Abstract base class for processing algorithms.
virtual bool visit(const QgsStyleEntityVisitorInterface::StyleLeaf &entity)
Called when the visitor will visit a style entity.
virtual bool visitExit(const QgsStyleEntityVisitorInterface::Node &node)
Called when the visitor stops visiting a node.
Contains information relating to a node (i.e.
virtual bool visitEnter(const QgsStyleEntityVisitorInterface::Node &node)
Called when the visitor starts visiting a node.
Contains information about the context in which a processing algorithm is executed.
Contains information relating to the style entity currently being visited.