QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsvectortilesourceselect.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsvectortilesourceselect.h
3  ---------------------------------
4  begin : April 2020
5  copyright : (C) 2020 by Alexander Bruy
6  email : alexander dot bruy at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSVECTORTILESOURCESELECT_H
19 #define QGSVECTORTILESOURCESELECT_H
20 
22 #define SIP_NO_FILE
23 
25 #include "ui_qgstilesourceselectbase.h"
26 
36 class QgsVectorTileSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsTileSourceSelectBase
37 {
38  Q_OBJECT
39 
40  public:
42  QgsVectorTileSourceSelect( QWidget *parent = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::None );
43 
45  void addButtonClicked() override;
46 
47  private slots:
48 
50  void btnNew_clicked();
52  void btnEdit_clicked();
54  void btnDelete_clicked();
56  void btnSave_clicked();
58  void btnLoad_clicked();
60  void cmbConnections_currentTextChanged( const QString &text );
61 
62  private:
63  void populateConnectionList();
64  void setConnectionListPosition();
65  void showHelp();
66 };
67 
69 
70 #endif // QGSVECTORTILESOURCESELECT_H
QgsAbstractDataSourceWidget
Abstract base Data Source Widget to create connections and add layers This class provides common func...
Definition: qgsabstractdatasourcewidget.h:42
qgsabstractdatasourcewidget.h
QgsAbstractDataSourceWidget::addButtonClicked
virtual void addButtonClicked()
Triggered when the add button is clicked, the add layer signal is emitted Concrete classes should imp...
Definition: qgsabstractdatasourcewidget.cpp:61
QgsProviderRegistry::WidgetMode
WidgetMode
Different ways a source select dialog can be used.
Definition: qgsproviderregistry.h:63