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 );
89 void expandPath(
const QString &path,
bool selectPath =
false );
97 void showFilterWidget(
bool visible );
99 void setFilterSyntax( QAction * );
101 void setCaseSensitive(
bool caseSensitive );
105 void showEvent( QShowEvent *e )
override;
107 void dragEnterEvent( QDragEnterEvent *event )
override;
108 void dropEvent( QDropEvent *event )
override;
132 void onLayerSelected(
const QModelIndex &index );
134 void itemDoubleClicked(
const QModelIndex &index );
139 void refreshModel(
const QModelIndex &index );
141 void setValid(
bool valid );
144 QString acceptableFilePath( QDropEvent *event )
const;
149 QLabel *mDescriptionLabel =
nullptr;
150 bool mIsValid =
true;
184 bool setFilterByLayerType =
false,
186 QWidget *parent =
nullptr );
199 void setDescription(
const QString &description );
210 void expandPath(
const QString &path,
bool selectPath =
false );
218 void showFilterWidget(
bool visible );
220 void setFilterSyntax( QAction * );
222 void setCaseSensitive(
bool caseSensitive );
LayerType
Types of layers that can be added to a map.
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.