16#ifndef QGSDATASOURCESELECTDIALOG_H
17#define QGSDATASOURCESELECTDIALOG_H
19#include "ui_qgsdatasourceselectdialog.h"
60 bool setFilterByLayerType =
false,
62 QWidget *parent =
nullptr );
78 void setDescription(
const QString &description );
87 void expandPath(
const QString &path );
95 void showFilterWidget(
bool visible );
97 void setFilterSyntax( QAction * );
99 void setCaseSensitive(
bool caseSensitive );
103 void showEvent( QShowEvent *e )
override;
127 void onLayerSelected(
const QModelIndex &index );
129 void itemDoubleClicked(
const QModelIndex &index );
134 void refreshModel(
const QModelIndex &index );
136 void setValid(
bool valid );
141 QLabel *mDescriptionLabel =
nullptr;
142 bool mIsValid =
true;
176 bool setFilterByLayerType =
false,
178 QWidget *parent =
nullptr );
191 void setDescription(
const QString &description );
200 void expandPath(
const QString &path );
208 void showFilterWidget(
bool visible );
210 void setFilterSyntax( QAction * );
212 void setCaseSensitive(
bool caseSensitive );
A model for showing available data sources and other items in a structured tree.
A QSortFilterProxyModel subclass for filtering and sorting browser model items.
The QgsDataSourceSelectDialog class embeds the browser view to select an existing data source.
QgsMapLayerType
Types of layers that can be added to a map.
@ VectorLayer
Vector layer.