mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
These are implementation details only, and should not be part of the stable API. We need the flexibility to change these at any stage without being bound by any API contract.
209 lines
4.7 KiB
Plaintext
209 lines
4.7 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsowssourceselect.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsOWSSourceSelect : QgsAbstractDataSourceWidget, protected Ui::QgsOWSSourceSelectBase
|
|
{
|
|
%Docstring
|
|
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.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsowssourceselect.h"
|
|
%End
|
|
public:
|
|
struct SupportedFormat
|
|
{
|
|
QString format;
|
|
QString label;
|
|
};
|
|
|
|
QgsOWSSourceSelect( const QString &service, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::None );
|
|
%Docstring
|
|
Constructor
|
|
%End
|
|
|
|
~QgsOWSSourceSelect();
|
|
|
|
public slots:
|
|
|
|
virtual void refresh();
|
|
|
|
%Docstring
|
|
Triggered when the provider's connections need to be refreshed
|
|
%End
|
|
|
|
protected slots:
|
|
void showError( const QString &title, const QString &format, const QString &error );
|
|
%Docstring
|
|
show whatever error is exposed.
|
|
%End
|
|
|
|
void showStatusMessage( const QString &message );
|
|
%Docstring
|
|
Set status message to theMessage
|
|
%End
|
|
|
|
protected:
|
|
|
|
virtual QList<QgsOWSSourceSelect::SupportedFormat> providerFormats();
|
|
%Docstring
|
|
List of image formats (encodings) supported by provider
|
|
:return: list of format/label pairs
|
|
:rtype: list of QgsOWSSourceSelect.SupportedFormat
|
|
%End
|
|
|
|
virtual QStringList selectedLayersFormats();
|
|
%Docstring
|
|
List of formats supported for currently selected layer item(s)
|
|
:rtype: list of str
|
|
%End
|
|
|
|
virtual QStringList selectedLayersCrses();
|
|
%Docstring
|
|
Server CRS supported for currently selected layer item(s)
|
|
:rtype: list of str
|
|
%End
|
|
|
|
virtual QStringList selectedLayersTimes();
|
|
%Docstring
|
|
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
|
|
:rtype: list of str
|
|
%End
|
|
|
|
|
|
void populateConnectionList();
|
|
%Docstring
|
|
Populate the connection list combo box
|
|
%End
|
|
|
|
void populateFormats();
|
|
%Docstring
|
|
Populate supported formats
|
|
%End
|
|
|
|
void clearFormats();
|
|
%Docstring
|
|
Clear previously set formats
|
|
%End
|
|
|
|
void populateCrs();
|
|
%Docstring
|
|
Set supported CRSs
|
|
%End
|
|
|
|
void clearCrs();
|
|
%Docstring
|
|
Clear CRSs
|
|
%End
|
|
|
|
void populateTimes();
|
|
%Docstring
|
|
Populate times
|
|
%End
|
|
|
|
void clearTimes();
|
|
%Docstring
|
|
Clear times
|
|
%End
|
|
|
|
QString connName();
|
|
%Docstring
|
|
Connection name
|
|
:rtype: str
|
|
%End
|
|
|
|
QString connectionInfo();
|
|
%Docstring
|
|
Connection info (uri)
|
|
:rtype: str
|
|
%End
|
|
|
|
void setConnectionListPosition();
|
|
%Docstring
|
|
Set the server connection combo box to that stored in the config file.
|
|
%End
|
|
|
|
void addDefaultServers();
|
|
%Docstring
|
|
Add a few example servers to the list.
|
|
%End
|
|
|
|
|
|
virtual void populateLayerList();
|
|
%Docstring
|
|
Populate the layer list.
|
|
|
|
\retval false if the layers could not be retrieved or parsed
|
|
%End
|
|
|
|
|
|
QString descriptionForAuthId( const QString &authId );
|
|
%Docstring
|
|
Returns a textual description for the authority id
|
|
:rtype: str
|
|
%End
|
|
|
|
|
|
|
|
void addWmsListRow( const QDomElement &item, int row );
|
|
%Docstring
|
|
layer name derived from latest layer selection (updated as long it's not edited manually)
|
|
%End
|
|
void addWmsListItem( const QDomElement &el, int row, int column );
|
|
|
|
virtual void enableLayersForCrs( QTreeWidgetItem *item );
|
|
|
|
QString selectedFormat();
|
|
%Docstring
|
|
Returns currently selected format
|
|
:rtype: str
|
|
%End
|
|
|
|
QString selectedCrs();
|
|
%Docstring
|
|
Returns currently selected Crs
|
|
:rtype: str
|
|
%End
|
|
|
|
QString selectedTime();
|
|
%Docstring
|
|
Returns currently selected time
|
|
:rtype: str
|
|
%End
|
|
|
|
QNetworkRequest::CacheLoadControl selectedCacheLoadControl();
|
|
%Docstring
|
|
Returns currently selected cache load control
|
|
:rtype: QNetworkRequest.CacheLoadControl
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsowssourceselect.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|