| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Serves as a factory of actions that can be used together with a layer tree view. More...
#include <qgslayertreeviewdefaultactions.h>

Public Slots | |
| void | addGroup () | 
| void | showInOverview () | 
Public Member Functions | |
| QgsLayerTreeViewDefaultActions (QgsLayerTreeView *view) | |
| QAction * | actionAddGroup (QObject *parent=nullptr) | 
| QAction * | actionCheckAndAllChildren (QObject *parent=nullptr) | 
| Action to check a group and all its children.   | |
| QAction * | actionCheckAndAllParents (QObject *parent=nullptr) | 
| Action to check a group and all its parents.   | |
| QAction * | actionGroupSelected (QObject *parent=nullptr) | 
| Q_DECL_DEPRECATED QAction * | actionMakeTopLevel (QObject *parent=nullptr) | 
| QAction * | actionMoveOutOfGroup (QObject *parent=nullptr) | 
| QAction * | actionMoveToBottom (QObject *parent=nullptr) | 
| QAction * | actionMoveToTop (QObject *parent=nullptr) | 
| QAction * | actionMutuallyExclusiveGroup (QObject *parent=nullptr) | 
| Action to enable/disable mutually exclusive flag of a group (only one child node may be checked)   | |
| QAction * | actionRemoveGroupOrLayer (QObject *parent=nullptr) | 
| QAction * | actionRenameGroupOrLayer (QObject *parent=nullptr) | 
| QAction * | actionShowFeatureCount (QObject *parent=nullptr) | 
| QAction * | actionShowInOverview (QObject *parent=nullptr) | 
| QAction * | actionUncheckAndAllChildren (QObject *parent=nullptr) | 
| Action to uncheck a group and all its children.   | |
| QAction * | actionZoomToGroup (QgsMapCanvas *canvas, QObject *parent=nullptr) | 
| Q_DECL_DEPRECATED QAction * | actionZoomToLayer (QgsMapCanvas *canvas, QObject *parent=nullptr) | 
| Action to zoom to the active layer from the layer tree.   | |
| QAction * | actionZoomToLayers (QgsMapCanvas *canvas, QObject *parent=nullptr) | 
| Action to zoom to all the selected layer(s) in the layer tree.   | |
| QAction * | actionZoomToSelection (QgsMapCanvas *canvas, QObject *parent=nullptr) | 
| Action to zoom to selected features of a vector layer.   | |
| void | zoomToGroup (QgsMapCanvas *canvas) | 
| Q_DECL_DEPRECATED void | zoomToLayer (QgsMapCanvas *canvas) | 
| Zooms a map canvas to the extent of the active layer in the layer tree.   | |
| void | zoomToLayers (QgsMapCanvas *canvas) | 
| Zooms a map canvas to all the selected layer(s) in the layer tree.   | |
| void | zoomToSelection (QgsMapCanvas *canvas) | 
Protected Slots | |
| void | groupSelected () | 
| Q_DECL_DEPRECATED void | makeTopLevel () | 
| void | moveOutOfGroup () | 
| Moves selected layer(s) out of the group(s) and places this/these above the group(s)   | |
| void | moveToBottom () | 
| Moves selected layer(s) and/or group(s) to the bottom of the layer panel or the bottom of the group if the layer/group is placed within a group.   | |
| void | moveToTop () | 
| Moves selected layer(s) and/or group(s) to the top of the layer panel or the top of the group if the layer/group is placed within a group.   | |
| void | mutuallyExclusiveGroup () | 
| Slot to enable/disable mutually exclusive group flag.   | |
| void | removeGroupOrLayer () | 
| void | renameGroupOrLayer () | 
| void | showFeatureCount () | 
| void | zoomToGroup () | 
| Q_DECL_DEPRECATED void | zoomToLayer () | 
| Zooms to the extent of the active layer in the layer tree.   | |
| void | zoomToLayers () | 
| Zooms to the combined extent of all the selected layer(s) in the layer tree.   | |
| void | zoomToSelection () | 
| Zooms to the bounding box of all selected features of a vector layer.   | |
Protected Member Functions | |
| QString | uniqueGroupName (QgsLayerTreeGroup *parentGroup) | 
| void | zoomToLayers (QgsMapCanvas *canvas, const QList< QgsMapLayer * > &layers) | 
Protected Attributes | |
| QgsLayerTreeView * | mView = nullptr | 
Serves as a factory of actions that can be used together with a layer tree view.
Definition at line 37 of file qgslayertreeviewdefaultactions.h.
| QgsLayerTreeViewDefaultActions::QgsLayerTreeViewDefaultActions | ( | QgsLayerTreeView * | view | ) | 
Definition at line 29 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionAddGroup | ( | QObject * | parent = nullptr | ) | 
Definition at line 35 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionCheckAndAllChildren | ( | QObject * | parent = nullptr | ) | 
Action to check a group and all its children.
Definition at line 176 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionCheckAndAllParents | ( | QObject * | parent = nullptr | ) | 
Action to check a group and all its parents.
Definition at line 204 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionGroupSelected | ( | QObject * | parent = nullptr | ) | 
Definition at line 156 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionMakeTopLevel | ( | QObject * | parent = nullptr | ) | 
Definition at line 126 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionMoveOutOfGroup | ( | QObject * | parent = nullptr | ) | 
Definition at line 135 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionMoveToBottom | ( | QObject * | parent = nullptr | ) | 
Definition at line 149 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionMoveToTop | ( | QObject * | parent = nullptr | ) | 
Definition at line 142 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionMutuallyExclusiveGroup | ( | QObject * | parent = nullptr | ) | 
Action to enable/disable mutually exclusive flag of a group (only one child node may be checked)
Definition at line 163 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionRemoveGroupOrLayer | ( | QObject * | parent = nullptr | ) | 
Definition at line 42 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionRenameGroupOrLayer | ( | QObject * | parent = nullptr | ) | 
Definition at line 62 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionShowFeatureCount | ( | QObject * | parent = nullptr | ) | 
Definition at line 79 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionShowInOverview | ( | QObject * | parent = nullptr | ) | 
Definition at line 49 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionUncheckAndAllChildren | ( | QObject * | parent = nullptr | ) | 
Action to uncheck a group and all its children.
Definition at line 190 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionZoomToGroup | ( | QgsMapCanvas * | canvas, | 
| QObject * | parent = nullptr  | 
        ||
| ) | 
Definition at line 118 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionZoomToLayer | ( | QgsMapCanvas * | canvas, | 
| QObject * | parent = nullptr  | 
        ||
| ) | 
Action to zoom to the active layer from the layer tree.
Definition at line 92 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionZoomToLayers | ( | QgsMapCanvas * | canvas, | 
| QObject * | parent = nullptr  | 
        ||
| ) | 
Action to zoom to all the selected layer(s) in the layer tree.
Definition at line 102 of file qgslayertreeviewdefaultactions.cpp.
| QAction * QgsLayerTreeViewDefaultActions::actionZoomToSelection | ( | QgsMapCanvas * | canvas, | 
| QObject * | parent = nullptr  | 
        ||
| ) | 
Action to zoom to selected features of a vector layer.
Definition at line 110 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  slot | 
Definition at line 238 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 506 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 433 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Moves selected layer(s) out of the group(s) and places this/these above the group(s)
Definition at line 449 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Moves selected layer(s) and/or group(s) to the bottom of the layer panel or the bottom of the group if the layer/group is placed within a group.
Definition at line 489 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Moves selected layer(s) and/or group(s) to the top of the layer panel or the top of the group if the layer/group is placed within a group.
Definition at line 471 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Slot to enable/disable mutually exclusive group flag.
Definition at line 532 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 254 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 264 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 280 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  slot | 
Definition at line 269 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protected | 
Definition at line 423 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Definition at line 359 of file qgslayertreeviewdefaultactions.cpp.
| void QgsLayerTreeViewDefaultActions::zoomToGroup | ( | QgsMapCanvas * | canvas | ) | 
Definition at line 321 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Zooms to the extent of the active layer in the layer tree.
Definition at line 335 of file qgslayertreeviewdefaultactions.cpp.
| void QgsLayerTreeViewDefaultActions::zoomToLayer | ( | QgsMapCanvas * | canvas | ) | 
Zooms a map canvas to the extent of the active layer in the layer tree.
Definition at line 292 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Zooms to the combined extent of all the selected layer(s) in the layer tree.
Definition at line 345 of file qgslayertreeviewdefaultactions.cpp.
| void QgsLayerTreeViewDefaultActions::zoomToLayers | ( | QgsMapCanvas * | canvas | ) | 
Zooms a map canvas to all the selected layer(s) in the layer tree.
Definition at line 302 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protected | 
Definition at line 366 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protectedslot | 
Zooms to the bounding box of all selected features of a vector layer.
Definition at line 352 of file qgslayertreeviewdefaultactions.cpp.
| void QgsLayerTreeViewDefaultActions::zoomToSelection | ( | QgsMapCanvas * | canvas | ) | 
Definition at line 309 of file qgslayertreeviewdefaultactions.cpp.
      
  | 
  protected | 
Definition at line 196 of file qgslayertreeviewdefaultactions.h.