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

The QgsMapLayerComboBox class is a combo box which displays the list of layers. More...

#include <qgsmaplayercombobox.h>

Inheritance diagram for QgsMapLayerComboBox:
Inheritance graph
[legend]

Public Slots

void setLayer (QgsMapLayer *layer)
 setLayer set the current layer selected in the combo More...
 

Signals

void layerChanged (QgsMapLayer *layer)
 layerChanged this signal is emitted whenever the currently selected layer changes More...
 

Public Member Functions

 QgsMapLayerComboBox (QWidget *parent=0)
 QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry). More...
 
void setFilters (QgsMapLayerProxyModel::Filters filters)
 setFilters allows fitering according to layer type and/or geometry type. More...
 
QgsMapLayerProxyModel::Filters filters () const
 currently used filter on list layers More...
 
QgsMapLayercurrentLayer () const
 currentLayer returns the current layer selected in the combo box More...
 

Protected Slots

void indexChanged (int i)
 

Detailed Description

The QgsMapLayerComboBox class is a combo box which displays the list of layers.

Note
added in 2.3

Constructor & Destructor Documentation

QgsMapLayerComboBox::QgsMapLayerComboBox ( QWidget *  parent = 0)
explicit

QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry).

The layers can be filtered and/or ordered.

Member Function Documentation

QgsMapLayer * QgsMapLayerComboBox::currentLayer ( ) const

currentLayer returns the current layer selected in the combo box

QgsMapLayerProxyModel::Filters QgsMapLayerComboBox::filters ( ) const
inline

currently used filter on list layers

void QgsMapLayerComboBox::indexChanged ( int  i)
protectedslot
void QgsMapLayerComboBox::layerChanged ( QgsMapLayer layer)
signal

layerChanged this signal is emitted whenever the currently selected layer changes

void QgsMapLayerComboBox::setFilters ( QgsMapLayerProxyModel::Filters  filters)

setFilters allows fitering according to layer type and/or geometry type.

void QgsMapLayerComboBox::setLayer ( QgsMapLayer layer)
slot

setLayer set the current layer selected in the combo


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