15#ifndef QGSLABELINGENGINERULEREGISTRY_H
16#define QGSLABELINGENGINERULEREGISTRY_H
105 std::map< QString, std::unique_ptr< QgsAbstractLabelingEngineRule > > mRules;
Abstract base class for labeling engine rules.
QgsAbstractLabelingEngineRule * create(const QString &id) const
Creates a new rule from the type with matching id.
QgsLabelingEngineRuleRegistry(const QgsLabelingEngineRuleRegistry &other)=delete
QgsLabelingEngineRuleRegistry cannot be copied.
QgsLabelingEngineRuleRegistry()
Constructor for QgsLabelingEngineRuleRegistry, containing a set of default rules.
QgsLabelingEngineRuleRegistry & operator=(const QgsLabelingEngineRuleRegistry &other)=delete
QgsLabelingEngineRuleRegistry cannot be copied.
bool isAvailable(const QString &id) const
Returns true if the rule is with matching id is available for use within the current QGIS environment...
~QgsLabelingEngineRuleRegistry()
bool addRule(QgsAbstractLabelingEngineRule *rule)
Adds a new rule type to the registry.
QString displayType(const QString &id) const
Returns a user-friendly, translated string representing the rule type with matching id.
QStringList ruleIds() const
Returns a list of the rule IDs for rules present in the registry.
void removeRule(const QString &id)
Removes the rule with matching id from the registry.