20#ifndef QGSOWSSOURCESELECT_H
21#define QGSOWSSOURCESELECT_H
22#include "ui_qgsowssourceselectbase.h"
31#include <QNetworkRequest>
71 void reset()
override;
78 void showError(
const QString &title,
const QString &format,
const QString &error );
146 QgsTreeWidgetItem *
createItem(
int id,
const QStringList &names, QMap<int, QgsTreeWidgetItem *> &items,
int &layerAndStyleCount,
const QMap<int, int> &layerParents,
const QMap<int, QStringList> &layerParentNames )
SIP_FACTORY SIP_SKIP;
194 void mNewButton_clicked();
196 void mEditButton_clicked();
198 void mDeleteButton_clicked();
200 void mSaveButton_clicked();
202 void mLoadButton_clicked();
208 void mConnectButton_clicked();
211 void mChangeCRSButton_clicked();
214 virtual void mLayersTreeWidget_itemSelectionChanged();
217 void mConnectionsComboBox_activated(
int );
220 void mAddDefaultButton_clicked();
225 QString mSelectedCRS;
228 QSet<QString> mSelectedLayersCRSs;
231 QList<SupportedFormat> mProviderFormats;
234 QMap<QString, QString> mMimeLabelMap;
237 void mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
238 void mLayerUpButton_clicked();
239 void mLayerDownButton_clicked();
240 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.