QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsMapLayerActionRegistry Class Reference

This class tracks map layer actions. More...

#include <qgsmaplayeractionregistry.h>

Inheritance diagram for QgsMapLayerActionRegistry:
Inheritance graph
[legend]

Signals

void changed ()
 Triggered when an action is added or removed from the registry. More...
 

Public Member Functions

 ~QgsMapLayerActionRegistry ()
 
void addMapLayerAction (QgsMapLayerAction *action)
 Adds a map layer action to the registry. More...
 
QgsMapLayerActiondefaultActionForLayer (QgsMapLayer *layer)
 Returns the default action for a layer. More...
 
QList< QgsMapLayerAction * > mapLayerActions (QgsMapLayer *layer, QgsMapLayerAction::Targets targets=QgsMapLayerAction::AllActions)
 Returns the map layer actions which can run on the specified layer. More...
 
bool removeMapLayerAction (QgsMapLayerAction *action)
 Removes a map layer action from the registry. More...
 
void setDefaultActionForLayer (QgsMapLayer *layer, QgsMapLayerAction *action)
 Sets the default action for a layer. More...
 

Static Public Member Functions

static QgsMapLayerActionRegistryinstance ()
 Returns the instance pointer, creating the object on the first call. More...
 

Protected Member Functions

 QgsMapLayerActionRegistry (QObject *parent=0)
 protected constructor More...
 

Protected Attributes

QList< QgsMapLayerAction * > mMapLayerActionList
 

Detailed Description

This class tracks map layer actions.

Definition at line 106 of file qgsmaplayeractionregistry.h.

Constructor & Destructor Documentation

QgsMapLayerActionRegistry::~QgsMapLayerActionRegistry ( )

Definition at line 115 of file qgsmaplayeractionregistry.cpp.

QgsMapLayerActionRegistry::QgsMapLayerActionRegistry ( QObject *  parent = 0)
protected

protected constructor

Definition at line 110 of file qgsmaplayeractionregistry.cpp.

Member Function Documentation

void QgsMapLayerActionRegistry::addMapLayerAction ( QgsMapLayerAction action)

Adds a map layer action to the registry.

Definition at line 120 of file qgsmaplayeractionregistry.cpp.

void QgsMapLayerActionRegistry::changed ( )
signal

Triggered when an action is added or removed from the registry.

QgsMapLayerAction * QgsMapLayerActionRegistry::defaultActionForLayer ( QgsMapLayer layer)

Returns the default action for a layer.

Definition at line 168 of file qgsmaplayeractionregistry.cpp.

QgsMapLayerActionRegistry * QgsMapLayerActionRegistry::instance ( )
static

Returns the instance pointer, creating the object on the first call.

Definition at line 97 of file qgsmaplayeractionregistry.cpp.

QList< QgsMapLayerAction * > QgsMapLayerActionRegistry::mapLayerActions ( QgsMapLayer layer,
QgsMapLayerAction::Targets  targets = QgsMapLayerAction::AllActions 
)

Returns the map layer actions which can run on the specified layer.

Definition at line 126 of file qgsmaplayeractionregistry.cpp.

bool QgsMapLayerActionRegistry::removeMapLayerAction ( QgsMapLayerAction action)

Removes a map layer action from the registry.

Definition at line 141 of file qgsmaplayeractionregistry.cpp.

void QgsMapLayerActionRegistry::setDefaultActionForLayer ( QgsMapLayer layer,
QgsMapLayerAction action 
)

Sets the default action for a layer.

Definition at line 163 of file qgsmaplayeractionregistry.cpp.

Member Data Documentation

QList< QgsMapLayerAction* > QgsMapLayerActionRegistry::mMapLayerActionList
protected

Definition at line 134 of file qgsmaplayeractionregistry.h.


The documentation for this class was generated from the following files: