| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
Individual map theme record of visible layers and styles. More...
#include <qgsmapthemecollection.h>
| Public Member Functions | |
| void | addLayerRecord (const QgsMapThemeCollection::MapThemeLayerRecord &record) | 
| Add a new record for a layer.  More... | |
| QSet< QString > | checkedGroupNodes () const | 
| Returns a set of group identifiers for group nodes that should have checked state (other group nodes should be unchecked).  More... | |
| QSet< QString > | expandedGroupNodes () const | 
| Returns a set of group identifiers for group nodes that should have expanded state (other group nodes should be collapsed).  More... | |
| bool | hasCheckedStateInfo () const | 
| Returns whether information about checked/unchecked state of groups has been recorded and thus whether checkedGroupNodes() is valid.  More... | |
| bool | hasExpandedStateInfo () const | 
| Returns whether information about expanded/collapsed state of nodes has been recorded and thus whether expandedGroupNodes() and expandedLegendItems + expandedLayerNode from layer records are valid.  More... | |
| QList< QgsMapThemeCollection::MapThemeLayerRecord > | layerRecords () const | 
| Returns a list of records for all visible layer belonging to the theme.  More... | |
| bool | operator!= (const QgsMapThemeCollection::MapThemeRecord &other) const | 
| bool | operator== (const QgsMapThemeCollection::MapThemeRecord &other) const | 
| void | removeLayerRecord (QgsMapLayer *layer) | 
| Removes a record for layer if present.  More... | |
| void | setCheckedGroupNodes (const QSet< QString > &checkedGroupNodes) | 
| Sets a set of group identifiers for group nodes that should have checked state.  More... | |
| void | setExpandedGroupNodes (const QSet< QString > &expandedGroupNodes) | 
| Sets a set of group identifiers for group nodes that should have expanded state.  More... | |
| void | setHasCheckedStateInfo (bool hasInfo) | 
| Sets whether the map theme contains valid checked/unchecked state of group nodes.  More... | |
| void | setHasExpandedStateInfo (bool hasInfo) | 
| Sets whether the map theme contains valid expanded/collapsed state of nodes.  More... | |
| void | setLayerRecords (const QList< QgsMapThemeCollection::MapThemeLayerRecord > &records) | 
| Sets layer records for the theme.  More... | |
| QHash< QgsMapLayer *, QgsMapThemeCollection::MapThemeLayerRecord > | validLayerRecords () const | 
| Returns set with only records for valid layers.  More... | |
| Friends | |
| class | QgsMapThemeCollection | 
Individual map theme record of visible layers and styles.
Definition at line 121 of file qgsmapthemecollection.h.
| void QgsMapThemeCollection::MapThemeRecord::addLayerRecord | ( | const QgsMapThemeCollection::MapThemeLayerRecord & | record | ) | 
Add a new record for a layer.
Definition at line 728 of file qgsmapthemecollection.cpp.
| 
 | inline | 
Returns a set of group identifiers for group nodes that should have checked state (other group nodes should be unchecked).
The returned value is valid only when hasCheckedStateInfo() returns true. Group identifiers are built using group names, a sub-group name is prepended by parent group's identifier and a forward slash, e.g. "level1/level2" 
Definition at line 197 of file qgsmapthemecollection.h.
| 
 | inline | 
Returns a set of group identifiers for group nodes that should have expanded state (other group nodes should be collapsed).
The returned value is valid only when hasExpandedStateInfo() returns true. Group identifiers are built using group names, a sub-group name is prepended by parent group's identifier and a forward slash, e.g. "level1/level2" 
Definition at line 188 of file qgsmapthemecollection.h.
| 
 | inline | 
Returns whether information about checked/unchecked state of groups has been recorded and thus whether checkedGroupNodes() is valid.
Definition at line 166 of file qgsmapthemecollection.h.
| 
 | inline | 
Returns whether information about expanded/collapsed state of nodes has been recorded and thus whether expandedGroupNodes() and expandedLegendItems + expandedLayerNode from layer records are valid.
Definition at line 158 of file qgsmapthemecollection.h.
| 
 | inline | 
Returns a list of records for all visible layer belonging to the theme.
Definition at line 137 of file qgsmapthemecollection.h.
| 
 | inline | 
Definition at line 131 of file qgsmapthemecollection.h.
| 
 | inline | 
Definition at line 125 of file qgsmapthemecollection.h.
| void QgsMapThemeCollection::MapThemeRecord::removeLayerRecord | ( | QgsMapLayer * | layer | ) | 
Removes a record for layer if present.
Definition at line 719 of file qgsmapthemecollection.cpp.
| 
 | inline | 
Sets a set of group identifiers for group nodes that should have checked state.
See checkedGroupNodes().
Definition at line 209 of file qgsmapthemecollection.h.
| 
 | inline | 
Sets a set of group identifiers for group nodes that should have expanded state.
See expandedGroupNodes().
Definition at line 203 of file qgsmapthemecollection.h.
| 
 | inline | 
Sets whether the map theme contains valid checked/unchecked state of group nodes.
Definition at line 179 of file qgsmapthemecollection.h.
| 
 | inline | 
Sets whether the map theme contains valid expanded/collapsed state of nodes.
Definition at line 172 of file qgsmapthemecollection.h.
| 
 | inline | 
Sets layer records for the theme.
Definition at line 140 of file qgsmapthemecollection.h.
| QHash< QgsMapLayer *, QgsMapThemeCollection::MapThemeLayerRecord > QgsMapThemeCollection::MapThemeRecord::validLayerRecords | ( | ) | const | 
Returns set with only records for valid layers.
Definition at line 733 of file qgsmapthemecollection.cpp.
| 
 | friend | 
Definition at line 232 of file qgsmapthemecollection.h.