16#ifndef QGSSELECTIVEMASKINGSOURCESETMANAGER_H
17#define QGSSELECTIVEMASKINGSOURCESETMANAGER_H
108 bool renameSet(
const QString &oldName,
const QString &newName );
113 QVector< QgsSelectiveMaskingSourceSet >
sets()
const;
166 void setRenamed(
const QString &oldName,
const QString &newName );
QgsAbstractProjectStoredObjectManager(QgsProject *project=nullptr)
Manages storage of a set of objects attached to a QgsProject.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A container for the context for various read/write operations on objects.
Manages storage of a set of selective masking source sets.
bool renameSet(const QString &oldName, const QString &newName)
Renames a set in the manager from oldName to newName.
QVector< QgsSelectiveMaskingSourceSet > sets() const
Returns a list of all sets contained in the manager.
void setRemoved(const QString &name)
Emitted when a set was removed from the manager.
QgsSelectiveMaskingSourceSet setByName(const QString &name) const
Returns the set with a matching name, or an invalid set if no matching sets were found.
void setRenamed(const QString &oldName, const QString &newName)
Emitted when a set is renamed.
void clear()
Removes and deletes all sets from the manager.
bool readXml(const QDomElement &element, const QDomDocument &doc, const QgsReadWriteContext &context)
Reads the manager's state from a DOM element, restoring all sets present in the XML document.
QgsSelectiveMaskingSourceSet setById(const QString &id) const
Returns the set with a matching id, or an invalid set if no matching sets were found.
QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context) const
Returns a DOM element representing the state of the manager.
void setAdded(const QString &name)
Emitted when a set has been added to the manager.
QgsSelectiveMaskingSourceSetManager(QgsProject *project=nullptr)
Constructor for QgsSelectiveMaskingSourceSetManager.
bool addSet(const QgsSelectiveMaskingSourceSet &set)
Adds a set to the manager.
QString generateUniqueTitle() const
Generates a unique title for a new set, which does not clash with any already contained by the manage...
void setAboutToBeAdded(const QString &name)
Emitted when a set is about to be added to the manager.
bool removeSet(const QString &name)
Removes the set with matching name from the manager.
void setAboutToBeRemoved(const QString &name)
Emitted when a set is about to be removed from the manager.
void changed()
Emitted whenever sets stored within the manager are changed.
bool updateSet(const QgsSelectiveMaskingSourceSet &set)
Updates the definition of a set already in the manager.
Represents a named set of selective masking sources (QgsSelectiveMaskSource).