Skip to content
Permalink
Browse files

Indentation

  • Loading branch information
elpaso committed Jun 23, 2017
1 parent f3fe558 commit 95fc6edf256834bf3daf0cea0e95aaaa4fa2f02a
Showing with 18 additions and 2 deletions.
  1. +18 −2 src/gui/qgsdatasourcemanagerdialog.h
@@ -34,6 +34,12 @@ namespace Ui
class QgsDataSourceManagerDialog;
}

/** \ingroup gui
* 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.
*/
class GUI_EXPORT QgsDataSourceManagerDialog : public QgsOptionsDialogBase
{
Q_OBJECT
@@ -54,25 +60,35 @@ class GUI_EXPORT QgsDataSourceManagerDialog : public QgsOptionsDialogBase
//! Sync current page with the leftbar list
void setCurrentPage( int index );

//! For signal forwarding to QgisApp
//! A raster layer was added: for signal forwarding to QgisApp
void rasterLayerAdded( QString const &uri, QString const &baseName, QString const &providerKey );
//! A vector layer was added: for signal forwarding to QgisApp
void vectorLayerAdded( const QString &vectorLayerPath, const QString &baseName, const QString &providerKey );
//! One or more vector layer were added: for signal forwarding to QgisApp
void vectorLayersAdded( const QStringList &layerQStringList, const QString &enc, const QString &dataSourceType );
//! Reset current page to previously selected page
void setPreviousPage();

signals:
//! For signal forwarding to QgisApp
//! Emitted when a raster layer was selected for addition: for signal forwarding to QgisApp
void addRasterLayer( QString const &uri, QString const &baseName, QString const &providerKey );
//! Emitted when the user wants to select a raster layer: for signal forwarding to QgisApp
void addRasterLayer( );
//! Emitted when a vector layer was selected for addition: for signal forwarding to QgisApp
void addVectorLayer( const QString &vectorLayerPath, const QString &baseName, const QString &providerKey );
//! Replace the selected layer by a vector layer defined by uri, layer name, data source uri
void replaceSelectedVectorLayer( const QString &oldId, const QString &uri, const QString &layerName, const QString &provider );
//! Emitted when a WFS layer was selected for addition: for signal forwarding to QgisApp
void addWfsLayer( const QString &uri, const QString &typeName );
//! Emitted when a AFS layer was selected for addition: for signal forwarding to QgisApp
void addAfsLayer( const QString &uri, const QString &typeName );
//! Emitted when a one or more layer were selected for addition: for signal forwarding to QgisApp
void addVectorLayers( const QStringList &layerQStringList, const QString &enc, const QString &dataSourceType );
//! Emitted when the dialog is busy: for signal forwarding to QgisApp
void showProgress( int progress, int totalSteps );
//! Emitted when a status message needs to be shown: for signal forwarding to QgisApp
void showStatusMessage( const QString &message );
//! Emitted when a DB layer was selected for addition: for signal forwarding to QgisApp
void addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey );
//! Emitted when a file needs to be opened
void openFile( const QString & );

0 comments on commit 95fc6ed

Please sign in to comment.
You can’t perform that action at this time.