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
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssourceselectdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSourceSelectDialog : QDialog, protected Ui::QgsSourceSelectBase
{
%Docstring
Generic class listing layers available from a remote service.
%End
%TypeHeaderCode
#include "qgssourceselectdialog.h"
%End
public:
enum ServiceType { MapService, FeatureService };
QgsSourceSelectDialog( const QString &serviceName, ServiceType serviceType, QWidget *parent, Qt::WindowFlags fl );
%Docstring
Constructor
%End
~QgsSourceSelectDialog();
void setCurrentExtentAndCrs( const QgsRectangle &canvasExtent, const QgsCoordinateReferenceSystem &canvasCrs );
%Docstring
Sets the current extent and CRS. Used to select an appropriate CRS and possibly to retrieve data only in the current extent
%End
signals:
void addLayer( QString uri, QString typeName );
%Docstring
Emitted when a layer is added from the dialog
%End
void connectionsChanged();
%Docstring
Emitted when the connections for the service were changed
%End
protected:
virtual bool connectToService( const QgsOwsConnection &connection ) = 0;
%Docstring
To be implemented in the child class. Called when a new connection is initiated.
:rtype: bool
%End
virtual void buildQuery( const QgsOwsConnection &, const QModelIndex & );
%Docstring
May be implemented in child classes for services which support customized queries.
%End
virtual QString getLayerURI( const QgsOwsConnection &connection,
const QString &layerTitle,
const QString &layerName,
const QString &crs = QString(),
const QString &filter = QString(),
const QgsRectangle &bBox = QgsRectangle() ) const = 0;
%Docstring
To be implemented in the child class. Constructs an URI for the specified service layer.
:rtype: str
%End
void populateImageEncodings( const QStringList &availableEncodings );
%Docstring
Updates the UI for the list of available image encodings from the specified list.
%End
QString getSelectedImageEncoding() const;
%Docstring
Returns the selected image encoding.
:rtype: str
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssourceselectdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
|