QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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_qgsvectortilesourceselectbase.h"
26
36class QgsVectorTileSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsVectorTileSourceSelectBase
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();
51 void newArcgisVectorTileServerConnection();
53 void btnEdit_clicked();
55 void btnDelete_clicked();
57 void btnSave_clicked();
59 void btnLoad_clicked();
61 void cmbConnections_currentTextChanged( const QString &text );
62
63 private:
64 void populateConnectionList();
65 void setConnectionListPosition();
66 void showHelp();
67};
68
70
71#endif // QGSVECTORTILESOURCESELECT_H
Abstract base Data Source Widget to create connections and add layers This class provides common func...
virtual void addButtonClicked()
Triggered when the add button is clicked, the add layer signal is emitted Concrete classes should imp...
WidgetMode
Different ways a source select dialog can be used.
@ None
Basic mode when the widget is used as a standalone dialog.