20#ifndef QGSOWSSOURCESELECT_H
21#define QGSOWSSOURCESELECT_H
22#include "ui_qgsowssourceselectbase.h"
31#include <QNetworkRequest>
67 const QString &service,
69 Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags,
76 void reset()
override;
83 void showError(
const QString &title,
const QString &format,
const QString &error );
152 int id,
const QStringList &names, QMap<int, QgsTreeWidgetItem *> &items,
int &layerAndStyleCount,
const QMap<int, int> &layerParents,
const QMap<int, QStringList> &layerParentNames
201 void mNewButton_clicked();
203 void mEditButton_clicked();
205 void mDeleteButton_clicked();
207 void mSaveButton_clicked();
209 void mLoadButton_clicked();
215 void mConnectButton_clicked();
218 void mChangeCRSButton_clicked();
221 virtual void mLayersTreeWidget_itemSelectionChanged();
224 void mConnectionsComboBox_activated(
int );
227 void mAddDefaultButton_clicked();
232 QString mSelectedCRS;
235 QSet<QString> mSelectedLayersCRSs;
238 QList<SupportedFormat> mProviderFormats;
241 QMap<QString, QString> mMimeLabelMap;
244 void mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
245 void mLayerUpButton_clicked();
246 void mLayerDownButton_clicked();
247 virtual void updateButtons();
Abstract base class for spatial data provider implementations.
Stores the component parts of a data source URI (e.g.
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QStringList selectedLayersCrses()
Server CRS supported for currently selected layer item(s).
virtual QStringList selectedLayersTimes()
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s).
QString descriptionForAuthId(const QString &authId)
Returns a textual description for the authority id.
QString selectedTime()
Returns currently selected time.
void clearCrs()
Clear CRSs.
void populateCrs()
Sets supported CRSs.
virtual void enableLayersForCrs(QTreeWidgetItem *item)
QString mService
Service name.
virtual QList< QgsOWSSourceSelect::SupportedFormat > providerFormats()
List of image formats (encodings) supported by provider.
QString connectionInfo()
Connection info (uri).
QNetworkRequest::CacheLoadControl selectedCacheLoadControl()
Returns currently selected cache load control.
void populateFormats()
Populate supported formats.
QTableWidgetItem * mCurrentTileset
QString selectedCrs()
Returns currently selected Crs.
void populateTimes()
Populate times.
QgsOWSSourceSelect(const QString &service, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::Standalone)
Constructor.
virtual QStringList selectedLayersFormats()
List of formats supported for currently selected layer item(s).
void setConnectionListPosition()
Sets the server connection combo box to that stored in the config file.
void clearTimes()
Clear times.
QString mLastLayerName
layer name derived from latest layer selection (updated as long it's not edited manually)
QgsTreeWidgetItem * createItem(int id, const QStringList &names, QMap< int, QgsTreeWidgetItem * > &items, int &layerAndStyleCount, const QMap< int, int > &layerParents, const QMap< int, QStringList > &layerParentNames)
create an item including possible parents
QString selectedFormat()
Returns currently selected format.
QString mConnName
Name for selected connection.
void showError(const QString &title, const QString &format, const QString &error)
show whatever error is exposed.
void populateConnectionList()
Populate the connection list combo box.
QString connName()
Connection name.
void addDefaultServers()
Add a few example servers to the list.
void showStatusMessage(const QString &message)
Sets status message to theMessage.
QgsDataSourceUri mUri
URI for selected connection.
QString mConnectionInfo
Connection info for selected connection.
void prepareExtent()
Prepares the spatial extent box with the general settings including original crs, destination crs and...
QList< QTreeWidgetItem * > mCurrentSelection
void clearFormats()
Clear previously set formats.
virtual void populateLayerList()
Populate the layer list.
QMap< QString, QString > mCrsNames
WidgetMode
Different ways a source select dialog can be used.
@ Standalone
Basic mode when the widget is used as a standalone dialog.