QGIS/python/gui/auto_generated/qgsowssourceselect.sip.in

195 lines
4.3 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourceselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-07 16:16:21 +02:00
class QgsOWSSourceSelect : QgsAbstractDataSourceWidget, protected Ui::QgsOWSSourceSelectBase
{
2017-06-07 16:16:21 +02:00
%Docstring
Dialog to create connections and add layers WCS etc.
2017-06-07 16:16:21 +02:00
2017-12-15 10:36:55 -04:00
This dialog allows the user to define and save connection information
for WMS servers, etc.
2017-06-07 16:16:21 +02:00
2017-12-15 10:36:55 -04:00
The user can then connect and add
layers from the WCS server to the map canvas.
%End
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
#include "qgsowssourceselect.h"
%End
public:
struct SupportedFormat
{
QString format;
QString label;
};
2017-06-07 16:16:21 +02:00
QgsOWSSourceSelect( const QString &service, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::None );
%Docstring
Constructor
%End
2017-07-19 09:19:37 +02:00
virtual void refresh();
%Docstring
Triggered when the provider's connections need to be refreshed
%End
2019-07-25 11:15:25 +02:00
virtual void reset();
protected slots:
void showError( const QString &title, const QString &format, const QString &error );
2017-06-07 16:16:21 +02:00
%Docstring
show whatever error is exposed.
%End
void showStatusMessage( const QString &message );
2017-06-07 16:16:21 +02:00
%Docstring
Sets status message to theMessage
2017-06-07 16:16:21 +02:00
%End
protected:
2017-06-07 16:16:21 +02:00
virtual QList<QgsOWSSourceSelect::SupportedFormat> providerFormats();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
List of image formats (encodings) supported by provider
:return: list of format/label pairs
2017-06-07 16:16:21 +02:00
%End
virtual QStringList selectedLayersFormats();
2017-06-07 16:16:21 +02:00
%Docstring
List of formats supported for currently selected layer item(s)
%End
virtual QStringList selectedLayersCrses();
2017-06-07 16:16:21 +02:00
%Docstring
Server CRS supported for currently selected layer item(s)
%End
virtual QStringList selectedLayersTimes();
2017-06-07 16:16:21 +02:00
%Docstring
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
%End
void populateConnectionList();
2017-06-07 16:16:21 +02:00
%Docstring
Populate the connection list combo box
%End
void populateFormats();
2017-06-07 16:16:21 +02:00
%Docstring
Populate supported formats
%End
void clearFormats();
2017-06-07 16:16:21 +02:00
%Docstring
Clear previously set formats
%End
void populateCrs();
2017-06-07 16:16:21 +02:00
%Docstring
Sets supported CRSs
2017-06-07 16:16:21 +02:00
%End
void clearCrs();
2017-06-07 16:16:21 +02:00
%Docstring
Clear CRSs
%End
void populateTimes();
2017-06-07 16:16:21 +02:00
%Docstring
Populate times
%End
void clearTimes();
2017-06-07 16:16:21 +02:00
%Docstring
Clear times
%End
QString connName();
2017-06-07 16:16:21 +02:00
%Docstring
Connection name
%End
QString connectionInfo();
2017-06-07 16:16:21 +02:00
%Docstring
Connection info (uri)
%End
void setConnectionListPosition();
2017-06-07 16:16:21 +02:00
%Docstring
Sets the server connection combo box to that stored in the config file.
2017-06-07 16:16:21 +02:00
%End
void addDefaultServers();
2017-06-07 16:16:21 +02:00
%Docstring
Add a few example servers to the list.
%End
virtual void populateLayerList();
2017-06-07 16:16:21 +02:00
%Docstring
Populate the layer list.
2017-06-07 16:16:21 +02:00
2019-02-26 21:05:33 +10:00
:return: ``False`` if the layers could not be retrieved or parsed
2017-06-07 16:16:21 +02:00
%End
QString descriptionForAuthId( const QString &authId );
2017-06-07 16:16:21 +02:00
%Docstring
Returns a textual description for the authority id
%End
virtual void enableLayersForCrs( QTreeWidgetItem *item );
2017-06-07 16:16:21 +02:00
%Docstring
layer name derived from latest layer selection (updated as long it's not edited manually)
%End
QString selectedFormat();
2017-06-07 16:16:21 +02:00
%Docstring
Returns currently selected format
%End
QString selectedCrs();
2017-06-07 16:16:21 +02:00
%Docstring
Returns currently selected Crs
%End
QString selectedTime();
2017-06-07 16:16:21 +02:00
%Docstring
Returns currently selected time
%End
QNetworkRequest::CacheLoadControl selectedCacheLoadControl();
2017-06-07 16:16:21 +02:00
%Docstring
Returns currently selected cache load control
%End
};
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourceselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/