QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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. More...
#include <qgsdatasourcemanagerdialog.h>
Public Slots | |
void | rasterLayerAdded (QString const &uri, QString const &baseName, QString const &providerKey) |
A raster layer was added: for signal forwarding to QgisApp. More... | |
void | rasterLayersAdded (const QStringList &layersList) |
One or more raster layer were 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... | |
Public Slots inherited from QgsOptionsDialogBase | |
void | searchText (const QString &text) |
searchText searches for a text in all the pages of the stacked widget and highlight the results More... | |
Signals | |
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 | addPointCloudLayer (const QString &pointCloudLayerPath, const QString &baseName, const QString &providerKey) |
Emitted when a point cloud 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 | addRasterLayers (const QStringList &layersList) |
Emitted when a one or more layer were selected for addition: 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 | addVectorTileLayer (const QString &uri, const QString &baseName) |
Emitted when a vector tile layer was 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... | |
Public Member Functions | |
QgsDataSourceManagerDialog (QgsBrowserGuiModel *browserModel, QWidget *parent=nullptr, QgsMapCanvas *canvas=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) | |
QgsDataSourceManagerDialog constructor. More... | |
~QgsDataSourceManagerDialog () override | |
QgsMessageBar * | messageBar () const |
Returns the dialog's message bar. More... | |
void | openPage (const QString &pageName) |
Open a given page in the dialog. More... | |
Public Member Functions inherited from QgsOptionsDialogBase | |
QgsOptionsDialogBase (const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr) | |
Constructor. More... | |
~QgsOptionsDialogBase () override | |
void | addPage (const QString &title, const QString &tooltip, const QIcon &icon, QWidget *widget, const QStringList &path=QStringList()) |
Adds a new page to the dialog pages. More... | |
bool | iconOnly () |
Determine if the options list is in icon only mode. More... | |
void | initOptionsBase (bool restoreUi=true, const QString &title=QString()) |
Set up the base ui connections for vertical tabs. More... | |
void | insertPage (const QString &title, const QString &tooltip, const QIcon &icon, QWidget *widget, const QString &before, const QStringList &path=QStringList()) |
Inserts a new page into the dialog pages. More... | |
void | resizeAlltabs (int index) |
Resizes all tabs when the dialog is resized. More... | |
void | restoreLastPage () |
Refocus the active tab from the last time the dialog was shown. More... | |
void | restoreOptionsBaseUi (const QString &title=QString()) |
Restore the base ui. More... | |
void | setCurrentPage (const QString &page) |
Sets the dialog page (by object name) to show. More... | |
void | setSettings (QgsSettings *settings) |
Protected Member Functions | |
void | showEvent (QShowEvent *event) override |
Protected Member Functions inherited from QgsOptionsDialogBase | |
QStandardItem * | createItem (const QString &name, const QString &tooltip, const QString &icon) |
Creates a new QStandardItem with the specified name, tooltip and icon. More... | |
void | paintEvent (QPaintEvent *e) override |
void | registerTextSearchWidgets () |
register widgets in the dialog to search for text in it it is automatically called if a line edit has "mSearchLineEdit" as object name. More... | |
void | showEvent (QShowEvent *e) override |
virtual void | updateWindowTitle () |
Additional Inherited Members | |
Protected Slots inherited from QgsOptionsDialogBase | |
virtual void | optionsStackedWidget_CurrentChanged (int index) |
Select relevant tab on current page change. More... | |
virtual void | optionsStackedWidget_WidgetRemoved (int index) |
Remove tab and unregister widgets on page remove. More... | |
virtual void | updateOptionsListVerticalTabs () |
Update tabs on the splitter move. More... | |
void | warnAboutMissingObjects () |
Protected Attributes inherited from QgsOptionsDialogBase | |
bool | mDelSettings = false |
QString | mDialogTitle |
bool | mIconOnly = false |
bool | mInit = false |
QDialogButtonBox * | mOptButtonBox = nullptr |
QListWidget * | mOptListWidget = nullptr |
QString | mOptsKey |
QSplitter * | mOptSplitter = nullptr |
QStackedWidget * | mOptStackedWidget = nullptr |
QStandardItemModel * | mOptTreeModel = nullptr |
QTreeView * | mOptTreeView = nullptr |
QList< QPair< QgsOptionsDialogHighlightWidget *, int > > | mRegisteredSearchWidgets |
QgsFilterLineEdit * | mSearchLineEdit = nullptr |
QPointer< QgsSettings > | mSettings |
QgsOptionsProxyModel * | mTreeProxyModel = nullptr |
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.
Definition at line 47 of file qgsdatasourcemanagerdialog.h.
|
explicit |
QgsDataSourceManagerDialog constructor.
browserModel | instance of the (shared) browser model |
parent | the object |
canvas | a pointer to the map canvas |
fl | window flags |
Definition at line 34 of file qgsdatasourcemanagerdialog.cpp.
|
override |
Definition at line 84 of file qgsdatasourcemanagerdialog.cpp.
|
signal |
Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a mesh layer was selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a point cloud layer was selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a raster layer was selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a vector layer was selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp.
|
signal |
Emitted when a vector tile layer was selected for addition: for signal forwarding to QgisApp.
|
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.
|
signal |
Emitted when drop uri list needs to be handled from the browser.
QgsMessageBar * QgsDataSourceManagerDialog::messageBar | ( | ) | const |
Returns the dialog's message bar.
Definition at line 98 of file qgsdatasourcemanagerdialog.cpp.
|
signal |
Emitted when a file needs to be opened.
void QgsDataSourceManagerDialog::openPage | ( | const QString & | pageName | ) |
Open a given page in the dialog.
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 89 of file qgsdatasourcemanagerdialog.cpp.
|
signal |
One or more provider connections have changed and the dialogs should be refreshed.
|
slot |
A raster layer was added: for signal forwarding to QgisApp.
Definition at line 135 of file qgsdatasourcemanagerdialog.cpp.
|
slot |
One or more raster layer were added: for signal forwarding to QgisApp.
Definition at line 140 of file qgsdatasourcemanagerdialog.cpp.
|
slot |
Refresh the browser view.
Definition at line 117 of file qgsdatasourcemanagerdialog.cpp.
|
signal |
Replace the selected layer by a vector layer defined by uri, layer name, data source uri.
|
slot |
Resets the interface of the datasource manager after reopening the dialog.
Will clear the selection of embedded all source selection widgets.
Definition at line 123 of file qgsdatasourcemanagerdialog.cpp.
|
slot |
Sync current page with the leftbar list.
Definition at line 103 of file qgsdatasourcemanagerdialog.cpp.
|
slot |
Reset current page to previously selected page.
Definition at line 111 of file qgsdatasourcemanagerdialog.cpp.
|
overrideprotected |
Definition at line 219 of file qgsdatasourcemanagerdialog.cpp.
|
signal |
Emitted when a status message needs to be shown: for signal forwarding to QgisApp.
|
signal |
Update project home directory.
|
slot |
A vector layer was added: for signal forwarding to QgisApp.
Definition at line 145 of file qgsdatasourcemanagerdialog.cpp.
|
slot |
One or more vector layer were added: for signal forwarding to QgisApp.
Definition at line 150 of file qgsdatasourcemanagerdialog.cpp.