QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
Dialog to create connections and add layers WCS etc. More...
#include <qgsowssourceselect.h>
Classes | |
struct | SupportedFormat |
Formats supported by provider. More... | |
Public Slots | |
void | refresh () override |
Triggered when the provider's connections need to be refreshed. More... | |
Public Slots inherited from QgsAbstractDataSourceWidget | |
virtual void | addButtonClicked () |
Triggered when the add button is clicked, the add layer signal is emitted Concrete classes should implement the right behavior depending on the layer being added. More... | |
virtual void | refresh () |
Triggered when the provider's connections need to be refreshed The default implementation does nothing. More... | |
Public Member Functions | |
QgsOWSSourceSelect (const QString &service, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::None) | |
Constructor. More... | |
~QgsOWSSourceSelect () override | |
Public Member Functions inherited from QgsAbstractDataSourceWidget | |
void | setMapCanvas (const QgsMapCanvas *mapCanvas) |
Store a pointer to the map canvas to retrieve extent and CRS Used to select an appropriate CRS and possibly to retrieve data only in the current extent. More... | |
Protected Slots | |
void | showError (const QString &title, const QString &format, const QString &error) |
show whatever error is exposed. More... | |
void | showStatusMessage (const QString &message) |
Sets status message to theMessage. More... | |
Protected Member Functions | |
void | addDefaultServers () |
Add a few example servers to the list. More... | |
void | addWmsListItem (const QDomElement &el, int row, int column) |
void | addWmsListRow (const QDomElement &item, int row) |
void | clearCrs () |
Clear CRSs. More... | |
void | clearFormats () |
Clear previously set formats. More... | |
void | clearTimes () |
Clear times. More... | |
QString | connectionInfo () |
Connection info (uri) More... | |
QString | connName () |
Connection name. More... | |
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 More... | |
QString | descriptionForAuthId (const QString &authId) |
Returns a textual description for the authority id. More... | |
virtual void | enableLayersForCrs (QTreeWidgetItem *item) |
void | populateConnectionList () |
Populate the connection list combo box. More... | |
void | populateCrs () |
Sets supported CRSs. More... | |
void | populateFormats () |
Populate supported formats. More... | |
virtual void | populateLayerList () |
Populate the layer list. More... | |
void | populateTimes () |
Populate times. More... | |
virtual QList< QgsOWSSourceSelect::SupportedFormat > | providerFormats () |
List of image formats (encodings) supported by provider. More... | |
QNetworkRequest::CacheLoadControl | selectedCacheLoadControl () |
Returns currently selected cache load control. More... | |
QString | selectedCrs () |
Returns currently selected Crs. More... | |
QString | selectedFormat () |
Returns currently selected format. More... | |
virtual QStringList | selectedLayersCrses () |
Server CRS supported for currently selected layer item(s) More... | |
virtual QStringList | selectedLayersFormats () |
List of formats supported for currently selected layer item(s) More... | |
virtual QStringList | selectedLayersTimes () |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s) More... | |
QString | selectedTime () |
Returns currently selected time. More... | |
void | setConnectionListPosition () |
Sets the server connection combo box to that stored in the config file. More... | |
Protected Member Functions inherited from QgsAbstractDataSourceWidget | |
QgsAbstractDataSourceWidget (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::None) | |
Constructor. More... | |
QPushButton * | addButton () const |
Returns the add Button. More... | |
const QgsMapCanvas * | mapCanvas () const |
Returns the map canvas (can be null) More... | |
void | setupButtons (QDialogButtonBox *buttonBox) |
Connect the ok and apply/add buttons to the slots. More... | |
QgsProviderRegistry::WidgetMode | widgetMode () const |
Returns the widget mode. More... | |
Protected Attributes | |
QString | mConnectionInfo |
Connection info for selected connection. More... | |
QString | mConnName |
Name for selected connection. More... | |
QMap< QString, QString > | mCrsNames |
QList< QTreeWidgetItem * > | mCurrentSelection |
QTableWidgetItem * | mCurrentTileset = nullptr |
QString | mLastLayerName |
layer name derived from latest layer selection (updated as long it's not edited manually) More... | |
QString | mService |
Service name. More... | |
QgsDataSourceUri | mUri |
URI for selected connection. More... | |
Additional Inherited Members | |
Signals inherited from QgsAbstractDataSourceWidget | |
void | addDatabaseLayers (const QStringList &paths, const QString &providerKey) |
Emitted when a DB layer has been selected for addition. More... | |
void | addMeshLayer (const QString &url, const QString &baseName, const QString &providerKey) |
Emitted when a mesh layer has been selected for addition. More... | |
void | addRasterLayer (const QString &rasterLayerPath, const QString &baseName, const QString &providerKey) |
Emitted when a raster layer has been selected for addition. More... | |
void | addVectorLayer (const QString &uri, const QString &layerName, const QString &providerKey=QString()) |
Emitted when a vector layer has been selected for addition. More... | |
void | addVectorLayers (const QStringList &layerList, const QString &encoding, const QString &dataSourceType) |
Emitted when one or more OGR supported layers are selected for addition. More... | |
void | connectionsChanged () |
Emitted when the provider's connections have changed This signal is normally forwarded the app and used to refresh browser items. More... | |
void | enableButtons (bool enable) |
Emitted when the ok/add buttons should be enabled/disabled. More... | |
Q_DECL_DEPRECATED void | progress (int, int) |
Emitted when a progress dialog is shown by the provider dialog. More... | |
void | progressMessage (QString message) |
Emitted when a progress dialog is shown by the provider dialog. More... | |
void | replaceVectorLayer (const QString &oldId, const QString &source, const QString &name, const QString &provider) |
Emitted when a layer needs to be replaced. More... | |
Dialog to create connections and add layers WCS etc.
This dialog allows the user to define and save connection information for WMS servers, etc.
The user can then connect and add layers from the WCS server to the map canvas.
Definition at line 52 of file qgsowssourceselect.h.
QgsOWSSourceSelect::QgsOWSSourceSelect | ( | const QString & | service, |
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | fl = QgsGuiUtils::ModalDialogFlags , |
||
QgsProviderRegistry::WidgetMode | widgetMode = QgsProviderRegistry::WidgetMode::None |
||
) |
Constructor.
Definition at line 56 of file qgsowssourceselect.cpp.
|
override |
Definition at line 124 of file qgsowssourceselect.cpp.
|
protected |
Add a few example servers to the list.
Definition at line 610 of file qgsowssourceselect.cpp.
|
protected |
Definition at line 650 of file qgsowssourceselect.cpp.
|
protected |
Definition at line 640 of file qgsowssourceselect.cpp.
|
protected |
Clear CRSs.
Definition at line 465 of file qgsowssourceselect.cpp.
|
protected |
Clear previously set formats.
Definition at line 136 of file qgsowssourceselect.cpp.
|
protected |
Clear times.
Definition at line 234 of file qgsowssourceselect.cpp.
|
protected |
Connection info (uri)
Definition at line 504 of file qgsowssourceselect.cpp.
|
protected |
Connection name.
Definition at line 499 of file qgsowssourceselect.cpp.
|
protected |
create an item including possible parents
Definition at line 323 of file qgsowssourceselect.cpp.
|
protected |
Returns a textual description for the authority id.
Definition at line 600 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Definition at line 382 of file qgsowssourceselect.cpp.
|
protected |
Populate the connection list combo box.
Definition at line 240 of file qgsowssourceselect.cpp.
|
protected |
Sets supported CRSs.
Definition at line 426 of file qgsowssourceselect.cpp.
|
protected |
Populate supported formats.
Definition at line 142 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Populate the layer list.
false | if the layers could not be retrieved or parsed |
Definition at line 357 of file qgsowssourceselect.cpp.
|
protected |
Populate times.
Definition at line 227 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of image formats (encodings) supported by provider.
Definition at line 769 of file qgsowssourceselect.cpp.
|
overrideslot |
Triggered when the provider's connections need to be refreshed.
Definition at line 131 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected cache load control.
Definition at line 514 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected Crs.
Definition at line 520 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected format.
Definition at line 509 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Server CRS supported for currently selected layer item(s)
Definition at line 779 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of formats supported for currently selected layer item(s)
Definition at line 774 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
Definition at line 784 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected time.
Definition at line 525 of file qgsowssourceselect.cpp.
|
protected |
Sets the server connection combo box to that stored in the config file.
Definition at line 530 of file qgsowssourceselect.cpp.
|
protectedslot |
show whatever error is exposed.
Definition at line 573 of file qgsowssourceselect.cpp.
|
protectedslot |
Sets status message to theMessage.
Definition at line 564 of file qgsowssourceselect.cpp.
|
protected |
Connection info for selected connection.
Definition at line 186 of file qgsowssourceselect.h.
|
protected |
Name for selected connection.
Definition at line 183 of file qgsowssourceselect.h.
|
protected |
Definition at line 160 of file qgsowssourceselect.h.
|
protected |
Definition at line 179 of file qgsowssourceselect.h.
|
protected |
Definition at line 180 of file qgsowssourceselect.h.
|
protected |
layer name derived from latest layer selection (updated as long it's not edited manually)
Definition at line 158 of file qgsowssourceselect.h.
|
protected |
Service name.
Definition at line 134 of file qgsowssourceselect.h.
|
protected |
URI for selected connection.
Definition at line 189 of file qgsowssourceselect.h.