|
| QgsMapThemeCollection (QgsProject *project=nullptr) |
| Create map theme collection that handles themes of the given project. More...
|
|
void | applyTheme (const QString &name, QgsLayerTreeGroup *root, QgsLayerTreeModel *model) |
| Apply theme given by its name and modify layer tree, current style of layers and checked legend items of passed layer tree model. More...
|
|
void | clear () |
| Removes all map themes from the collection. More...
|
|
bool | hasMapTheme (const QString &name) const |
| Returns whether a map theme with a matching name exists. More...
|
|
void | insert (const QString &name, const QgsMapThemeCollection::MapThemeRecord &state) |
| Inserts a new map theme to the collection. More...
|
|
QStringList | mapThemes () const |
| Returns a list of existing map theme names. More...
|
|
QgsMapThemeCollection::MapThemeRecord | mapThemeState (const QString &name) const |
| Returns the recorded state of a map theme. More...
|
|
QMap< QString, QString > | mapThemeStyleOverrides (const QString &name) |
| Gets layer style overrides (for QgsMapSettings) of the visible layers for given map theme. More...
|
|
QStringList | mapThemeVisibleLayerIds (const QString &name) const |
| Returns the list of layer IDs that are visible for the specified map theme. More...
|
|
QList< QgsMapLayer * > | mapThemeVisibleLayers (const QString &name) const |
| Returns the list of layers that are visible for the specified map theme. More...
|
|
QList< QgsMapLayer * > | masterLayerOrder () const |
| Returns the master layer order (this will always match the project's QgsProject::layerOrder() ). More...
|
|
QList< QgsMapLayer * > | masterVisibleLayers () const |
| Returns the master list of visible layers. More...
|
|
QgsProject * | project () |
| The QgsProject on which this map theme collection works. More...
|
|
void | readXml (const QDomDocument &doc) |
| Reads the map theme collection state from XML. More...
|
|
void | removeMapTheme (const QString &name) |
| Removes an existing map theme from collection. More...
|
|
bool | renameMapTheme (const QString &name, const QString &newName) |
| Renames the existing map theme called name to newName. More...
|
|
void | setProject (QgsProject *project) |
|
void | update (const QString &name, const QgsMapThemeCollection::MapThemeRecord &state) |
| Updates a map theme within the collection. More...
|
|
void | writeXml (QDomDocument &doc) |
| Writes the map theme collection state to XML. More...
|
|