17#ifndef QGSDATASOURCEMANAGERDIALOG_H
18#define QGSDATASOURCEMANAGERDIALOG_H
22#include "ui_qgsdatasourcemanagerdialog.h"
66 void openPage(
const QString &pageName );
89 void rasterLayersAdded(
const QStringList &layersList );
92 void vectorLayersAdded(
const QStringList &layerQStringList,
const QString &enc,
const QString &dataSourceType );
94 void setPreviousPage();
112 void configureFromUri(
const QString &pageName,
const QString &uri );
116 void showEvent( QShowEvent *event )
override;
138 void addVectorLayers(
const QStringList &layerQStringList,
const QString &enc,
const QString &dataSourceType );
145 void openFile(
const QString &fileName,
const QString &fileTypeHint = QString() );
165 void addProviderDialog(
QgsAbstractDataSourceWidget *dlg,
const QString &providerKey,
const QString &providerName,
const QString &text,
const QIcon &icon,
const QString &toolTip = QString() );
166 void removeProviderDialog(
const QString &providerName );
168 Ui::QgsDataSourceManagerDialog *ui =
nullptr;
171 QStringList mPageProviderKeys;
172 QStringList mPageProviderNames;
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.
The QgsDataSourceManagerDialog class embeds the browser panel and all the provider dialogs.
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.
void openFile(const QString &fileName, const QString &fileTypeHint=QString())
Emitted when a file needs to be opened.
void showStatusMessage(const QString &message)
Emitted when a status message needs to be shown: for signal forwarding to QgisApp.
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.
void connectionsChanged()
Emitted when a connection has changed inside the provider dialogs This signal is normally forwarded t...
void addDatabaseLayers(const QStringList &layerPathList, const QString &providerKey)
Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp.
void handleDropUriList(const QgsMimeDataUtils::UriList &)
Emitted when drop uri list needs to be handled from the browser.
void providerDialogsRefreshRequested()
One or more provider connections have changed and the dialogs should be refreshed.
void addLayer(Qgis::LayerType type, const QString &url, const QString &baseName, const QString &providerKey)
Emitted when a layer has been selected for addition.
void updateProjectHome()
Update project home directory.
void addRasterLayers(const QStringList &layersList)
Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp.
Map canvas is a class for displaying all GIS data types on a canvas.
A bar for displaying non-blocking messages to the user.
QList< QgsMimeDataUtils::Uri > UriList
A base dialog for options and properties dialogs that offers vertical tabs.
void showEvent(QShowEvent *e) override
void setCurrentPage(const QString &page)
Sets the dialog page (by object name) to show.
Represents a raster layer.