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 )
51 void setFilters( QgsMapLayerProxyModel::Filters filters ) { mProxyModel->setFilters( filters ); }
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;
144 void dragEnterEvent( QDragEnterEvent *event )
override;
145 void dragLeaveEvent( QDragLeaveEvent *event )
override;
146 void dropEvent( QDropEvent *event )
override;
147 void paintEvent( QPaintEvent *e )
override;
150 void indexChanged(
int i );
155 bool mDragActive =
false;
156 bool mHighlight =
false;
162 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data )
const;
164 friend class QgsProcessingMapLayerComboBox;
167 #endif // QGSMAPLAYERCOMBOBOX_H