QGIS API Documentation
2.8.2-Wien
|
Dialog to create connections and add layers from WMS, WFS, WCS etc. More...
#include <qgsowssourceselect.h>
Classes | |
struct | SupportedFormat |
Formats supported by provider. More... |
Public Slots | |
virtual void | addClicked () |
Determines the layers the user selected. | |
void | on_mAddDefaultButton_clicked () |
Add some default wms servers to the list. | |
void | on_mChangeCRSButton_clicked () |
Opens the Spatial Reference System dialog. | |
void | on_mConnectButton_clicked () |
void | on_mConnectionsComboBox_activated (int) |
Stores the selected datasource whenerver it is changed. | |
void | on_mDeleteButton_clicked () |
Deletes the selected connection. | |
void | on_mDialogButtonBox_helpRequested () |
void | on_mEditButton_clicked () |
Opens a dialog to edit an existing connection. | |
virtual void | on_mLayersTreeWidget_itemSelectionChanged () |
Signaled when a layer selection is changed. | |
void | on_mLoadButton_clicked () |
Loads connections from the file. | |
void | on_mNewButton_clicked () |
Opens the create connection dialog to build a new connection. | |
void | on_mSaveButton_clicked () |
Saves connections to the file. | |
void | searchFinished () |
void | showError (const QString &theTitle, const QString &theFormat, const QString &theError) |
show whatever error is exposed. | |
void | showStatusMessage (const QString &theMessage) |
Set status message to theMessage. |
Signals | |
void | addRasterLayer (const QString &rasterLayerPath, const QString &baseName, const QString &providerKey) |
void | connectionsChanged () |
Public Member Functions | |
QgsOWSSourceSelect (QString service, QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags, bool managerMode=false, bool embeddedMode=false) | |
Constructor. | |
~QgsOWSSourceSelect () | |
Destructor. |
Protected Member Functions | |
void | addDefaultServers () |
Add a few example servers to the list. | |
void | addWMSListItem (const QDomElement &el, int row, int column) |
void | addWMSListRow (const QDomElement &item, int row) |
void | clearCRS () |
Clear CRSs. | |
void | clearFormats () |
Clear previously set formats. | |
void | clearTimes () |
Clear times. | |
QString | connectionInfo () |
Connection info (uri) | |
QString | connName () |
Connection name. | |
QgsNumericSortTreeWidgetItem * | createItem (int id, const QStringList &names, QMap< int, QgsNumericSortTreeWidgetItem * > &items, int &layerAndStyleCount, const QMap< int, int > &layerParents, const QMap< int, QStringList > &layerParentNames) |
create an item including possible parents | |
QString | descriptionForAuthId (QString authId) |
Returns a textual description for the authority id. | |
virtual void | enableLayersForCrs (QTreeWidgetItem *item) |
void | populateConnectionList () |
Populate the connection list combo box. | |
void | populateCRS () |
Set supported CRSs. | |
void | populateFormats () |
Populate supported formats. | |
virtual void | populateLayerList () |
Populate the layer list. | |
void | populateTimes () |
Populate times. | |
virtual QList< SupportedFormat > | providerFormats () |
List of image formats (encodings) supported by provider. | |
QNetworkRequest::CacheLoadControl | selectedCacheLoadControl () |
Returns currently selected cache load control. | |
QString | selectedCRS () |
Returns currently selected Crs. | |
QString | selectedFormat () |
Returns currently selected format. | |
virtual QStringList | selectedLayersCRSs () |
Server CRS supported for currently selected layer item(s) | |
virtual QStringList | selectedLayersFormats () |
List of formats supported for currently selected layer item(s) | |
virtual QStringList | selectedLayersTimes () |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s) | |
QString | selectedTime () |
Returns currently selected time. | |
void | setConnectionListPosition () |
Set the server connection combo box to that stored in the config file. |
Protected Attributes | |
QPushButton * | mAddButton |
QString | mConnectionInfo |
Connection info for selected connection. | |
QString | mConnName |
Name for selected connection. | |
QMap< QString, QString > | mCrsNames |
QList< QTreeWidgetItem * > | mCurrentSelection |
QTableWidgetItem * | mCurrentTileset |
bool | mEmbeddedMode |
Embedded mode, without 'Close'. | |
QString | mLastLayerName |
layer name derived from latest layer selection (updated as long it's not edited manually) | |
bool | mManagerMode |
Connections manager mode. | |
QString | mService |
Service name. | |
QgsDataSourceURI | mUri |
URI for selected connection. |
Dialog to create connections and add layers from WMS, WFS, 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 WMS server to the map canvas.
Definition at line 50 of file qgsowssourceselect.h.
QgsOWSSourceSelect::QgsOWSSourceSelect | ( | QString | service, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | fl = QgisGui::ModalDialogFlags , |
||
bool | managerMode = false , |
||
bool | embeddedMode = false |
||
) |
Constructor.
Definition at line 57 of file qgsowssourceselect.cpp.
QgsOWSSourceSelect::~QgsOWSSourceSelect | ( | ) |
Destructor.
Definition at line 126 of file qgsowssourceselect.cpp.
|
virtualslot |
Determines the layers the user selected.
Definition at line 367 of file qgsowssourceselect.cpp.
|
protected |
Add a few example servers to the list.
Definition at line 603 of file qgsowssourceselect.cpp.
|
signal |
|
protected |
Definition at line 643 of file qgsowssourceselect.cpp.
|
protected |
Definition at line 633 of file qgsowssourceselect.cpp.
|
protected |
Clear CRSs.
Definition at line 457 of file qgsowssourceselect.cpp.
|
protected |
Clear previously set formats.
Definition at line 133 of file qgsowssourceselect.cpp.
|
protected |
Clear times.
Definition at line 233 of file qgsowssourceselect.cpp.
|
protected |
Connection info (uri)
Definition at line 496 of file qgsowssourceselect.cpp.
|
signal |
|
protected |
Connection name.
Definition at line 491 of file qgsowssourceselect.cpp.
|
protected |
create an item including possible parents
Definition at line 307 of file qgsowssourceselect.cpp.
|
protected |
Returns a textual description for the authority id.
Definition at line 592 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Definition at line 372 of file qgsowssourceselect.cpp.
|
slot |
Add some default wms servers to the list.
Definition at line 587 of file qgsowssourceselect.cpp.
|
slot |
Opens the Spatial Reference System dialog.
Definition at line 376 of file qgsowssourceselect.cpp.
|
slot |
Connects to the database using the stored connection parameters. Once connected, available layers are displayed.
Definition at line 345 of file qgsowssourceselect.cpp.
|
slot |
Stores the selected datasource whenerver it is changed.
Definition at line 581 of file qgsowssourceselect.cpp.
|
slot |
Deletes the selected connection.
Definition at line 272 of file qgsowssourceselect.cpp.
|
inlineslot |
Definition at line 108 of file qgsowssourceselect.h.
|
slot |
Opens a dialog to edit an existing connection.
Definition at line 259 of file qgsowssourceselect.cpp.
|
virtualslot |
Signaled when a layer selection is changed.
Definition at line 413 of file qgsowssourceselect.cpp.
|
slot |
Loads connections from the file.
Definition at line 292 of file qgsowssourceselect.cpp.
|
slot |
Opens the create connection dialog to build a new connection.
Definition at line 246 of file qgsowssourceselect.cpp.
|
slot |
Saves connections to the file.
Definition at line 286 of file qgsowssourceselect.cpp.
|
protected |
Populate the connection list combo box.
Definition at line 239 of file qgsowssourceselect.cpp.
|
protected |
Set supported CRSs.
Definition at line 417 of file qgsowssourceselect.cpp.
|
protected |
Populate supported formats.
Definition at line 139 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Populate the layer list.
false | if the layers could not be retrieved or parsed |
Definition at line 341 of file qgsowssourceselect.cpp.
|
protected |
Populate times.
Definition at line 225 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of image formats (encodings) supported by provider.
Definition at line 762 of file qgsowssourceselect.cpp.
|
slot |
Definition at line 675 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected cache load control.
Definition at line 506 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected Crs.
Definition at line 512 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected format.
Definition at line 501 of file qgsowssourceselect.cpp.
|
protectedvirtual |
Server CRS supported for currently selected layer item(s)
Definition at line 772 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of formats supported for currently selected layer item(s)
Definition at line 767 of file qgsowssourceselect.cpp.
|
protectedvirtual |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
Definition at line 777 of file qgsowssourceselect.cpp.
|
protected |
Returns currently selected time.
Definition at line 517 of file qgsowssourceselect.cpp.
|
protected |
Set the server connection combo box to that stored in the config file.
Definition at line 522 of file qgsowssourceselect.cpp.
|
slot |
show whatever error is exposed.
Definition at line 565 of file qgsowssourceselect.cpp.
|
slot |
Set status message to theMessage.
Definition at line 556 of file qgsowssourceselect.cpp.
|
protected |
Definition at line 199 of file qgsowssourceselect.h.
|
protected |
Connection info for selected connection.
Definition at line 227 of file qgsowssourceselect.h.
|
protected |
Name for selected connection.
Definition at line 224 of file qgsowssourceselect.h.
|
protected |
Definition at line 201 of file qgsowssourceselect.h.
|
protected |
Definition at line 220 of file qgsowssourceselect.h.
|
protected |
Definition at line 221 of file qgsowssourceselect.h.
|
protected |
Embedded mode, without 'Close'.
Definition at line 174 of file qgsowssourceselect.h.
|
protected |
layer name derived from latest layer selection (updated as long it's not edited manually)
Definition at line 197 of file qgsowssourceselect.h.
|
protected |
Connections manager mode.
Definition at line 171 of file qgsowssourceselect.h.
|
protected |
Service name.
Definition at line 168 of file qgsowssourceselect.h.
|
protected |
URI for selected connection.
Definition at line 230 of file qgsowssourceselect.h.