mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-30 00:07:09 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			87 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * 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   *
 | |
|  ************************************************************************/
 |