16 #ifndef QGSMAPLAYERCOMBOBOX_H 17 #define QGSMAPLAYERCOMBOBOX_H 37 Q_PROPERTY( QgsMapLayerProxyModel::Filters filters READ filters WRITE setFilters )
38 Q_PROPERTY(
bool allowEmptyLayer READ allowEmptyLayer WRITE setAllowEmptyLayer )
39 Q_PROPERTY(
bool showCrs READ showCrs WRITE setShowCrs )
40 Q_PROPERTY( QStringList excludedProviders READ excludedProviders WRITE setExcludedProviders )
54 QgsMapLayerProxyModel::Filters
filters()
const {
return mProxyModel->filters(); }
57 void setExceptedLayerList(
const QList<QgsMapLayer *> &layerList ) { mProxyModel->setExceptedLayerList( layerList );}
67 void setExcludedProviders(
const QStringList &providers );
74 QStringList excludedProviders()
const;
81 void setAllowEmptyLayer(
bool allowEmpty );
88 bool allowEmptyLayer()
const;
95 void setShowCrs(
bool showCrs );
102 bool showCrs()
const;
111 void setAdditionalItems(
const QStringList &items );
118 QStringList additionalItems()
const;
143 void indexChanged(
int i );
150 #endif // QGSMAPLAYERCOMBOBOX_H QList< QgsMapLayer * > exceptedLayerList() const
returns the list of excepted layers
Base class for all map layer types.
void setExceptedLayerList(const QList< QgsMapLayer * > &layerList)
except a list of layers not to be listed
void setFilters(QgsMapLayerProxyModel::Filters filters)
setFilters allows fitering according to layer type and/or geometry type.
The QgsMapLayerComboBox class is a combo box which displays the list of layers.
The QgsMapLayerProxyModel class provides an easy to use model to display the list of layers in widget...
QgsMapLayerProxyModel::Filters filters() const
currently used filter on list layers
Represents a vector layer which manages a vector based data sets.