QGIS API Documentation
2.6.0-Brighton
|
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 | |
void | on_mNewButton_clicked () |
Opens the create connection dialog to build a new connection. | |
void | on_mEditButton_clicked () |
Opens a dialog to edit an existing connection. | |
void | on_mDeleteButton_clicked () |
Deletes the selected connection. | |
void | on_mSaveButton_clicked () |
Saves connections to the file. | |
void | on_mLoadButton_clicked () |
Loads connections from the file. | |
void | on_mConnectButton_clicked () |
virtual void | addClicked () |
Determines the layers the user selected. | |
void | searchFinished () |
void | on_mChangeCRSButton_clicked () |
Opens the Spatial Reference System dialog. | |
virtual void | on_mLayersTreeWidget_itemSelectionChanged () |
Signaled when a layer selection is changed. | |
void | showStatusMessage (const QString &theMessage) |
Set status message to theMessage. | |
void | showError (const QString &theTitle, const QString &theFormat, const QString &theError) |
show whatever error is exposed. | |
void | on_mConnectionsComboBox_activated (int) |
Stores the selected datasource whenerver it is changed. | |
void | on_mAddDefaultButton_clicked () |
Add some default wms servers to the list. | |
void | on_mDialogButtonBox_helpRequested () |
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 | |
virtual QList< SupportedFormat > | providerFormats () |
List of image formats (encodings) supported by provider. | |
virtual QStringList | selectedLayersFormats () |
List of formats supported for currently selected layer item(s) | |
virtual QStringList | selectedLayersCRSs () |
Server CRS supported for currently selected layer item(s) | |
virtual QStringList | selectedLayersTimes () |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s) | |
void | populateConnectionList () |
Populate the connection list combo box. | |
void | populateFormats () |
Populate supported formats. | |
void | clearFormats () |
Clear previously set formats. | |
void | populateCRS () |
Set supported CRSs. | |
void | clearCRS () |
Clear CRSs. | |
void | populateTimes () |
Populate times. | |
void | clearTimes () |
Clear times. | |
QString | connName () |
Connection name. | |
QString | connectionInfo () |
Connection info (uri) | |
void | setConnectionListPosition () |
Set the server connection combo box to that stored in the config file. | |
void | addDefaultServers () |
Add a few example servers to the list. | |
virtual void | populateLayerList () |
Populate the layer list. | |
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. | |
void | addWMSListRow (const QDomElement &item, int row) |
void | addWMSListItem (const QDomElement &el, int row, int column) |
virtual void | enableLayersForCrs (QTreeWidgetItem *item) |
QString | selectedFormat () |
Returns currently selected format. | |
QString | selectedCRS () |
Returns currently selected Crs. | |
QString | selectedTime () |
Returns currently selected time. | |
QNetworkRequest::CacheLoadControl | selectedCacheLoadControl () |
Returns currently selected cache load control. |
Protected Attributes | |
QString | mService |
Service name. | |
bool | mManagerMode |
Connections manager mode. | |
bool | mEmbeddedMode |
Embedded mode, without 'Close'. | |
QString | mLastLayerName |
layer name derived from latest layer selection (updated as long it's not edited manually) | |
QPushButton * | mAddButton |
QMap< QString, QString > | mCrsNames |
QList< QTreeWidgetItem * > | mCurrentSelection |
QTableWidgetItem * | mCurrentTileset |
QString | mConnName |
Name for selected connection. | |
QString | mConnectionInfo |
Connection info for selected connection. | |
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.
QgsOWSSourceSelect::QgsOWSSourceSelect | ( | QString | service, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | fl = QgisGui::ModalDialogFlags , |
||
bool | managerMode = false , |
||
bool | embeddedMode = false |
||
) |
Constructor.
QgsOWSSourceSelect::~QgsOWSSourceSelect | ( | ) |
Destructor.
|
virtualslot |
Determines the layers the user selected.
|
protected |
Add a few example servers to the list.
|
signal |
|
protected |
|
protected |
|
protected |
Clear CRSs.
|
protected |
Clear previously set formats.
|
protected |
Clear times.
|
protected |
Connection info (uri)
|
signal |
|
protected |
Connection name.
|
protected |
create an item including possible parents
|
protected |
Returns a textual description for the authority id.
|
protectedvirtual |
|
slot |
Add some default wms servers to the list.
|
slot |
Opens the Spatial Reference System dialog.
|
slot |
Connects to the database using the stored connection parameters. Once connected, available layers are displayed.
|
slot |
Stores the selected datasource whenerver it is changed.
|
slot |
Deletes the selected connection.
|
inlineslot |
|
slot |
Opens a dialog to edit an existing connection.
|
virtualslot |
Signaled when a layer selection is changed.
|
slot |
Loads connections from the file.
|
slot |
Opens the create connection dialog to build a new connection.
|
slot |
Saves connections to the file.
|
protected |
Populate the connection list combo box.
|
protected |
Set supported CRSs.
|
protected |
Populate supported formats.
|
protectedvirtual |
Populate the layer list.
false | if the layers could not be retrieved or parsed |
|
protected |
Populate times.
|
protectedvirtual |
List of image formats (encodings) supported by provider.
|
slot |
|
protected |
Returns currently selected cache load control.
|
protected |
Returns currently selected Crs.
|
protected |
Returns currently selected format.
|
protectedvirtual |
Server CRS supported for currently selected layer item(s)
|
protectedvirtual |
List of formats supported for currently selected layer item(s)
|
protectedvirtual |
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
|
protected |
Returns currently selected time.
|
protected |
Set the server connection combo box to that stored in the config file.
|
slot |
show whatever error is exposed.
|
slot |
Set status message to theMessage.
|
protected |
|
protected |
Connection info for selected connection.
|
protected |
Name for selected connection.
|
protected |
|
protected |
|
protected |
|
protected |
Embedded mode, without 'Close'.
|
protected |
layer name derived from latest layer selection (updated as long it's not edited manually)
|
protected |
Connections manager mode.
|
protected |
Service name.
|
protected |
URI for selected connection.