Class: QgsMapLayerActionRegistry¶
-
class
qgis.gui.
QgsMapLayerActionRegistry
(parent: QObject = None)¶ Bases:
PyQt5.QtCore.QObject
Constructor for QgsMapLayerActionRegistry.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through
QgsGui.mapLayerActionRegistry()
This class tracks map layer actions.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through
QgsGui.mapLayerActionRegistry()
Enums
Methods
Adds a map layer action to the registry
Returns the default action for a layer
Returns the map layer actions which can run on the specified layer
Removes a map layer action from the registry
Sets the default action for a layer
Signals
Triggered when an action is added or removed from the registry [signal]
Attributes
-
addMapLayerAction
(self, action: QgsMapLayerAction)¶ Adds a map layer action to the registry
-
changed
¶ Triggered when an action is added or removed from the registry [signal]
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
defaultActionForLayer
(self, layer: QgsMapLayer) → QgsMapLayerAction¶ Returns the default action for a layer
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
mapLayerActions
(self, layer: QgsMapLayer, targets: Union[QgsMapLayerAction.Targets, QgsMapLayerAction.Target] = QgsMapLayerAction.AllActions) → object¶ Returns the map layer actions which can run on the specified layer
-
receivers
()¶
-
removeMapLayerAction
(self, action: QgsMapLayerAction) → bool¶ Removes a map layer action from the registry
-
sender
()¶
-
senderSignalIndex
()¶
-
setDefaultActionForLayer
(self, layer: QgsMapLayer, action: QgsMapLayerAction)¶ Sets the default action for a layer
-
timerEvent
()¶
-