The QgsDataSourceManagerDialog class embeds the browser panel and all the provider dialogs.
More...
#include <qgsdatasourcemanagerdialog.h>
|
void | rasterLayerAdded (QString const &uri, QString const &baseName, QString const &providerKey) |
| A raster layer was added: for signal forwarding to QgisApp. More...
|
|
void | refresh () |
| Refresh the browser view. More...
|
|
void | reset () |
| Resets the interface of the datasource manager after reopening the dialog. More...
|
|
void | setCurrentPage (int index) |
| Sync current page with the leftbar list. More...
|
|
void | setPreviousPage () |
| Reset current page to previously selected page. More...
|
|
void | vectorLayerAdded (const QString &vectorLayerPath, const QString &baseName, const QString &providerKey) |
| A vector layer was added: for signal forwarding to QgisApp. More...
|
|
void | vectorLayersAdded (const QStringList &layerQStringList, const QString &enc, const QString &dataSourceType) |
| One or more vector layer were added: for signal forwarding to QgisApp. More...
|
|
void | searchText (const QString &text) |
| searchText searches for a text in all the pages of the stacked widget and highlight the results More...
|
|
|
void | addDatabaseLayers (const QStringList &layerPathList, const QString &providerKey) |
| Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp. More...
|
|
void | addMeshLayer (const QString &uri, const QString &baseName, const QString &providerKey) |
| Emitted when a mesh layer was selected for addition: for signal forwarding to QgisApp. More...
|
|
void | addRasterLayer (const QString &uri, const QString &baseName, const QString &providerKey) |
| Emitted when a raster layer was selected for addition: for signal forwarding to QgisApp. More...
|
|
void | addRasterLayer () |
| Emitted when the user wants to select a raster layer: for signal forwarding to QgisApp. More...
|
|
void | addVectorLayer (const QString &vectorLayerPath, const QString &baseName, const QString &providerKey) |
| Emitted when a vector layer was selected for addition: for signal forwarding to QgisApp. More...
|
|
void | addVectorLayers (const QStringList &layerQStringList, const QString &enc, const QString &dataSourceType) |
| Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp. More...
|
|
void | connectionsChanged () |
| Emitted when a connection has changed inside the provider dialogs This signal is normally forwarded to the application to notify other browsers that they need to refresh their connections list. More...
|
|
void | handleDropUriList (const QgsMimeDataUtils::UriList &) |
| Emitted when drop uri list needs to be handled from the browser. More...
|
|
void | openFile (const QString &fileName, const QString &fileTypeHint=QString()) |
| Emitted when a file needs to be opened. More...
|
|
void | providerDialogsRefreshRequested () |
| One or more provider connections have changed and the dialogs should be refreshed. More...
|
|
void | replaceSelectedVectorLayer (const QString &oldId, const QString &uri, const QString &layerName, const QString &provider) |
| Replace the selected layer by a vector layer defined by uri, layer name, data source uri. More...
|
|
void | showStatusMessage (const QString &message) |
| Emitted when a status message needs to be shown: for signal forwarding to QgisApp. More...
|
|
void | updateProjectHome () |
| Update project home directory. More...
|
|
The QgsDataSourceManagerDialog class embeds the browser panel and all the provider dialogs.
The dialog does not handle layer addition directly but emits signals that need to be forwarded to the QGIS application to be handled.
- Note
- not available in Python bindings
- Since
- QGIS 3.0
Definition at line 47 of file qgsdatasourcemanagerdialog.h.
◆ QgsDataSourceManagerDialog()
QgsDataSourceManagerDialog::QgsDataSourceManagerDialog |
( |
QgsBrowserGuiModel * |
browserModel, |
|
|
QWidget * |
parent = nullptr , |
|
|
QgsMapCanvas * |
canvas = nullptr , |
|
|
Qt::WindowFlags |
fl = QgsGuiUtils::ModalDialogFlags |
|
) |
| |
|
explicit |
◆ ~QgsDataSourceManagerDialog()
QgsDataSourceManagerDialog::~QgsDataSourceManagerDialog |
( |
| ) |
|
|
override |
◆ addDatabaseLayers
void QgsDataSourceManagerDialog::addDatabaseLayers |
( |
const QStringList & |
layerPathList, |
|
|
const QString & |
providerKey |
|
) |
| |
|
signal |
Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp.
◆ addMeshLayer
void QgsDataSourceManagerDialog::addMeshLayer |
( |
const QString & |
uri, |
|
|
const QString & |
baseName, |
|
|
const QString & |
providerKey |
|
) |
| |
|
signal |
Emitted when a mesh layer was selected for addition: for signal forwarding to QgisApp.
- Since
- QGIS 3.4
◆ addRasterLayer [1/2]
void QgsDataSourceManagerDialog::addRasterLayer |
( |
const QString & |
uri, |
|
|
const QString & |
baseName, |
|
|
const QString & |
providerKey |
|
) |
| |
|
signal |
Emitted when a raster layer was selected for addition: for signal forwarding to QgisApp.
◆ addRasterLayer [2/2]
void QgsDataSourceManagerDialog::addRasterLayer |
( |
| ) |
|
|
signal |
Emitted when the user wants to select a raster layer: for signal forwarding to QgisApp.
◆ addVectorLayer
void QgsDataSourceManagerDialog::addVectorLayer |
( |
const QString & |
vectorLayerPath, |
|
|
const QString & |
baseName, |
|
|
const QString & |
providerKey |
|
) |
| |
|
signal |
Emitted when a vector layer was selected for addition: for signal forwarding to QgisApp.
◆ addVectorLayers
void QgsDataSourceManagerDialog::addVectorLayers |
( |
const QStringList & |
layerQStringList, |
|
|
const QString & |
enc, |
|
|
const QString & |
dataSourceType |
|
) |
| |
|
signal |
Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp.
◆ connectionsChanged
void QgsDataSourceManagerDialog::connectionsChanged |
( |
| ) |
|
|
signal |
Emitted when a connection has changed inside the provider dialogs This signal is normally forwarded to the application to notify other browsers that they need to refresh their connections list.
◆ handleDropUriList
Emitted when drop uri list needs to be handled from the browser.
◆ messageBar()
◆ openFile
void QgsDataSourceManagerDialog::openFile |
( |
const QString & |
fileName, |
|
|
const QString & |
fileTypeHint = QString() |
|
) |
| |
|
signal |
Emitted when a file needs to be opened.
◆ openPage()
void QgsDataSourceManagerDialog::openPage |
( |
const QString & |
pageName | ) |
|
Open a given page in the dialog.
- Parameters
-
pageName | the page name, usually the provider name or "browser" (for the browser panel) or "ogr" (vector layers) or "raster" (raster layers) |
Definition at line 88 of file qgsdatasourcemanagerdialog.cpp.
◆ providerDialogsRefreshRequested
void QgsDataSourceManagerDialog::providerDialogsRefreshRequested |
( |
| ) |
|
|
signal |
One or more provider connections have changed and the dialogs should be refreshed.
◆ rasterLayerAdded
void QgsDataSourceManagerDialog::rasterLayerAdded |
( |
QString const & |
uri, |
|
|
QString const & |
baseName, |
|
|
QString const & |
providerKey |
|
) |
| |
|
slot |
◆ refresh
void QgsDataSourceManagerDialog::refresh |
( |
| ) |
|
|
slot |
◆ replaceSelectedVectorLayer
void QgsDataSourceManagerDialog::replaceSelectedVectorLayer |
( |
const QString & |
oldId, |
|
|
const QString & |
uri, |
|
|
const QString & |
layerName, |
|
|
const QString & |
provider |
|
) |
| |
|
signal |
Replace the selected layer by a vector layer defined by uri, layer name, data source uri.
◆ reset
void QgsDataSourceManagerDialog::reset |
( |
| ) |
|
|
slot |
Resets the interface of the datasource manager after reopening the dialog.
Will clear the selection of embedded all source selection widgets.
- Since
- QGIS 3.10
Definition at line 122 of file qgsdatasourcemanagerdialog.cpp.
◆ setCurrentPage
void QgsDataSourceManagerDialog::setCurrentPage |
( |
int |
index | ) |
|
|
slot |
◆ setPreviousPage
void QgsDataSourceManagerDialog::setPreviousPage |
( |
| ) |
|
|
slot |
◆ showEvent()
void QgsDataSourceManagerDialog::showEvent |
( |
QShowEvent * |
event | ) |
|
|
overrideprotected |
◆ showStatusMessage
void QgsDataSourceManagerDialog::showStatusMessage |
( |
const QString & |
message | ) |
|
|
signal |
Emitted when a status message needs to be shown: for signal forwarding to QgisApp.
◆ updateProjectHome
void QgsDataSourceManagerDialog::updateProjectHome |
( |
| ) |
|
|
signal |
Update project home directory.
◆ vectorLayerAdded
void QgsDataSourceManagerDialog::vectorLayerAdded |
( |
const QString & |
vectorLayerPath, |
|
|
const QString & |
baseName, |
|
|
const QString & |
providerKey |
|
) |
| |
|
slot |
◆ vectorLayersAdded
void QgsDataSourceManagerDialog::vectorLayersAdded |
( |
const QStringList & |
layerQStringList, |
|
|
const QString & |
enc, |
|
|
const QString & |
dataSourceType |
|
) |
| |
|
slot |
The documentation for this class was generated from the following files: