QGIS API Documentation
2.4.0-Chugiak
|
The QgsMapLayerComboBox class is a combo box which displays the list of layers. More...
#include <qgsmaplayercombobox.h>
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 () |
currently used filter on list layers More... | |
QgsMapLayer * | currentLayer () |
currentLayer returns the current layer selected in the combo box More... | |
Protected Slots | |
void | indexChanged (int i) |
Properties | |
QgsMapLayerProxyModel::Filters | filters |
Private Attributes | |
QgsMapLayerProxyModel * | mProxyModel |
The QgsMapLayerComboBox class is a combo box which displays the list of layers.
Definition at line 30 of file qgsmaplayercombobox.h.
|
explicit |
QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry).
The layers can be filtered and/or ordered.
Definition at line 20 of file qgsmaplayercombobox.cpp.
References indexChanged(), and mProxyModel.
QgsMapLayer * QgsMapLayerComboBox::currentLayer | ( | ) |
currentLayer returns the current layer selected in the combo box
Definition at line 51 of file qgsmaplayercombobox.cpp.
References index, and mProxyModel.
Referenced by indexChanged(), and setLayer().
|
inline |
currently used filter on list layers
Definition at line 47 of file qgsmaplayercombobox.h.
References QgsMapLayerProxyModel::filters().
|
protectedslot |
Definition at line 75 of file qgsmaplayercombobox.cpp.
References currentLayer(), and layerChanged().
Referenced by QgsMapLayerComboBox().
|
signal |
layerChanged this signal is emitted whenever the currently selected layer changes
Referenced by indexChanged(), and setLayer().
void QgsMapLayerComboBox::setFilters | ( | QgsMapLayerProxyModel::Filters | filters | ) |
setFilters allows fitering according to layer type and/or geometry type.
Definition at line 29 of file qgsmaplayercombobox.cpp.
References mProxyModel, and QgsMapLayerProxyModel::setFilters().
|
slot |
setLayer set the current layer selected in the combo
Definition at line 34 of file qgsmaplayercombobox.cpp.
References currentLayer(), QgsMapLayerModel::indexFromLayer(), layerChanged(), mProxyModel, and QgsMapLayerProxyModel::sourceLayerModel().
|
private |
Definition at line 64 of file qgsmaplayercombobox.h.
Referenced by currentLayer(), QgsMapLayerComboBox(), setFilters(), and setLayer().
|
readwrite |
Definition at line 34 of file qgsmaplayercombobox.h.