SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
wmtsconnectiondialog.h
Go to the documentation of this file.
1
11#ifndef WMTSCONNECTIONDIALOG_H
12#define WMTSCONNECTIONDIALOG_H
13
14#include <QDialog>
15#include <QString>
16#include <QUrl>
17
18class QLineEdit;
19class QComboBox;
20class QTreeWidget;
21class QLabel;
22class QDialogButtonBox;
23class WMTSLayer;
24struct WMTSServiceInfo;
25
49class WMTSConnectionDialog : public QDialog
50{
51 Q_OBJECT
52
53public:
54
55 explicit WMTSConnectionDialog(QWidget *parent = nullptr);
56 ~WMTSConnectionDialog() override;
57
62 [[nodiscard]] WMTSLayer *createLayer(QObject *parent = nullptr) const;
63
64private slots:
65 void onConnectClicked();
66 void onCapabilitiesFetched(const WMTSServiceInfo &info);
67 void onCapabilitiesError(const QString &error);
68 void onLayerSelectionChanged();
69 void onUrlComboChanged(const QString &text);
70
71private:
72 void setupUi();
73 void populateLayerList(const WMTSServiceInfo &info);
74 void saveRecentUrls();
75 void loadRecentUrls();
76
77 QComboBox *m_urlCombo = nullptr;
78 QTreeWidget *m_layerList = nullptr;
79 QComboBox *m_tileMatrixCombo = nullptr;
80 QComboBox *m_styleCombo = nullptr;
81 QComboBox *m_formatCombo = nullptr;
82 QLabel *m_serviceTitle = nullptr;
83 QDialogButtonBox *m_buttonBox = nullptr;
84
85 WMTSLayer *m_pendingLayer = nullptr;
86 WMTSServiceInfo *m_serviceInfo = nullptr;
87 QString m_selectedLayerId;
88};
89
90#endif // WMTSCONNECTIONDIALOG_H
Dialog for connecting to an OGC WMTS service and selecting a layer to add.
Definition wmtsconnectiondialog.h:50
WMTSLayer * createLayer(QObject *parent=nullptr) const
Returns a configured WMTSLayer for the user's selection.
Definition wmtsconnectiondialog.cpp:52
~WMTSConnectionDialog() override
Definition wmtsconnectiondialog.cpp:40
A map layer that fetches tiled imagery from an OGC WMTS service.
Definition wmtslayer.h:101
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString text
Definition queryparser.cpp:35
Metadata returned by a WMTS GetCapabilities request.
Definition wmtslayer.h:78