QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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.

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 QgsMapLayerActionRegistry (QObject *parent=0)
 protected constructor

Protected Attributes

QList< QgsMapLayerAction * > mMapLayerActionList

Detailed Description

This class tracks map layer actions.

Constructor & Destructor Documentation

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

protected constructor

Member Function Documentation

void QgsMapLayerActionRegistry::addMapLayerAction ( QgsMapLayerAction action)

Adds a map layer action to the registry.

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.

QgsMapLayerActionRegistry * QgsMapLayerActionRegistry::instance ( )
static

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

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

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

bool QgsMapLayerActionRegistry::removeMapLayerAction ( QgsMapLayerAction action)

Removes a map layer action from the registry.

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

Sets the default action for a layer.

Member Data Documentation

QList< QgsMapLayerAction* > QgsMapLayerActionRegistry::mMapLayerActionList
protected

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