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 TODO: use this with an internal source select dialog instead of forwarding the whole raster selection to app. More...
|
|
void | refresh () |
| Refresh the browser view. 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 |
( |
QgsBrowserModel * |
browserModel, |
|
|
QWidget * |
parent = nullptr , |
|
|
QgsMapCanvas * |
canvas = nullptr , |
|
|
Qt::WindowFlags |
fl = QgsGuiUtils::ModalDialogFlags |
|
) |
| |
|
explicit |
QgsDataSourceManagerDialog::~QgsDataSourceManagerDialog |
( |
| ) |
|
|
override |
void QgsDataSourceManagerDialog::addDatabaseLayers |
( |
const QStringList & |
layerPathList, |
|
|
const QString & |
providerKey |
|
) |
| |
|
signal |
Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp.
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
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.
void QgsDataSourceManagerDialog::addRasterLayer |
( |
| ) |
|
|
signal |
Emitted when the user wants to select a raster layer: for signal forwarding to QgisApp.
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.
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.
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.
Emitted when drop uri list needs to be handled from the browser.
void QgsDataSourceManagerDialog::openFile |
( |
const QString & |
fileName, |
|
|
const QString & |
fileTypeHint = QString() |
|
) |
| |
|
signal |
Emitted when a file needs to be opened.
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 87 of file qgsdatasourcemanagerdialog.cpp.
void QgsDataSourceManagerDialog::providerDialogsRefreshRequested |
( |
| ) |
|
|
signal |
One or more provider connections have changed and the dialogs should be refreshed.
void QgsDataSourceManagerDialog::rasterLayerAdded |
( |
QString const & |
uri, |
|
|
QString const & |
baseName, |
|
|
QString const & |
providerKey |
|
) |
| |
|
slot |
A raster layer was added: for signal forwarding to QgisApp TODO: use this with an internal source select dialog instead of forwarding the whole raster selection to app.
Definition at line 120 of file qgsdatasourcemanagerdialog.cpp.
void QgsDataSourceManagerDialog::refresh |
( |
| ) |
|
|
slot |
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.
void QgsDataSourceManagerDialog::setCurrentPage |
( |
int |
index | ) |
|
|
slot |
void QgsDataSourceManagerDialog::setPreviousPage |
( |
| ) |
|
|
slot |
void QgsDataSourceManagerDialog::showEvent |
( |
QShowEvent * |
event | ) |
|
|
overrideprotected |
void QgsDataSourceManagerDialog::showStatusMessage |
( |
const QString & |
message | ) |
|
|
signal |
Emitted when a status message needs to be shown: for signal forwarding to QgisApp.
void QgsDataSourceManagerDialog::updateProjectHome |
( |
| ) |
|
|
signal |
Update project home directory.
void QgsDataSourceManagerDialog::vectorLayerAdded |
( |
const QString & |
vectorLayerPath, |
|
|
const QString & |
baseName, |
|
|
const QString & |
providerKey |
|
) |
| |
|
slot |
void QgsDataSourceManagerDialog::vectorLayersAdded |
( |
const QStringList & |
layerQStringList, |
|
|
const QString & |
enc, |
|
|
const QString & |
dataSourceType |
|
) |
| |
|
slot |
The documentation for this class was generated from the following files: