QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgstiledscenesourceselect.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenesourceselect.h
3 ---------------------------------
4 begin : June 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson 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 QGSTILEDSCENESOURCESELECT_H
19#define QGSTILEDSCENESOURCESELECT_H
20
22#define SIP_NO_FILE
23
25#include "ui_qgstiledscenesourceselectbase.h"
26
36class QgsTiledSceneSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsTiledSceneSourceSelectBase
37{
38 Q_OBJECT
39
40 public:
42 QgsTiledSceneSourceSelect( QWidget *parent = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Standalone );
43
45 void addButtonClicked() override;
46
47 private slots:
48
50 void btnEdit_clicked();
52 void btnDelete_clicked();
54 void btnSave_clicked();
56 void btnLoad_clicked();
58 void cmbConnections_currentTextChanged( const QString &text );
59
60 void showHelp();
61
62 private:
64 void newConnection( QString provider );
65 void populateConnectionList();
66 void setConnectionListPosition();
67};
68
70
71#endif // QGSTILEDSCENESOURCESELECT_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.
@ Standalone
Basic mode when the widget is used as a standalone dialog.