1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourceselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsOWSSourceSelect : QgsAbstractDataSourceWidget
{
%Docstring(signature="appended")
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::Standalone );
%Docstring
Constructor
%End
virtual void refresh();
%Docstring
Triggered when the provider's connections need to be refreshed
%End
virtual void reset();
virtual void setMapCanvas( QgsMapCanvas *mapCanvas );
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
Sets 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
%End
virtual QStringList selectedLayersFormats();
%Docstring
List of formats supported for currently selected layer item(s)
%End
virtual QStringList selectedLayersCrses();
%Docstring
Server CRS supported for currently selected layer item(s)
%End
virtual QStringList selectedLayersTimes();
%Docstring
List of times (temporalDomain timePosition/timePeriod for currently
selected layer item(s)
%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
Sets 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
%End
QString connectionInfo();
%Docstring
Connection info (uri)
%End
void setConnectionListPosition();
%Docstring
Sets 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.
%End
QString descriptionForAuthId( const QString &authId );
%Docstring
Returns a textual description for the authority id
%End
virtual void enableLayersForCrs( QTreeWidgetItem *item );
%Docstring
layer name derived from latest layer selection (updated as long it's not
edited manually)
%End
QString selectedFormat();
%Docstring
Returns currently selected format
%End
QString selectedCrs();
%Docstring
Returns currently selected Crs
%End
QString selectedTime();
%Docstring
Returns currently selected time
%End
QNetworkRequest::CacheLoadControl selectedCacheLoadControl();
%Docstring
Returns currently selected cache load control
%End
void prepareExtent();
%Docstring
Prepares the spatial extent box with the general settings including
original crs, destination crs and the map canvas if it is available.
.. versionadded:: 3.26
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourceselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|