-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed QgsSourceSelectDialog to QgsArcGisServiceSourceSelect
- Loading branch information
Showing
14 changed files
with
147 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsarcgisservicesourceselect.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsArcGisServiceSourceSelect : QDialog, protected Ui::QgsArcGisServiceSourceSelectBase | ||
{ | ||
%Docstring | ||
Generic class listing layers available from a remote service. | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsarcgisservicesourceselect.h" | ||
%End | ||
public: | ||
enum ServiceType { MapService, FeatureService }; | ||
|
||
QgsArcGisServiceSourceSelect( const QString &serviceName, ServiceType serviceType, QWidget *parent, Qt::WindowFlags fl ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
~QgsArcGisServiceSourceSelect(); | ||
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/qgsarcgisservicesourceselect.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.