removed qgsowssourcewidget from sip, updated pointer variables in qgsowssourceselect

This commit is contained in:
Samweli 2021-12-20 23:54:39 +03:00 committed by Nyall Dawson
parent 06f9f71dc8
commit 66503f31be
3 changed files with 15 additions and 92 deletions

View File

@ -47,6 +47,7 @@ Triggered when the provider's connections need to be refreshed
virtual void reset();
virtual void setMapCanvas( QgsMapCanvas *mapCanvas );
%Docstring
@ -195,8 +196,6 @@ Returns currently selected cache load control
};
/************************************************************************

View File

@ -1,76 +0,0 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourcewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsOWSSourceWidget : QgsProviderSourceWidget
{
%Docstring(signature="appended")
*************************************************************************
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
**************************************************************************
%End
%TypeHeaderCode
#include "qgsowssourcewidget.h"
%End
public:
QgsOWSSourceWidget( const QString &providerKey, QWidget *parent = 0 );
virtual void setSourceUri( const QString &uri );
virtual QString sourceUri() const;
void setTimes( const QStringList &times );
QStringList times() const;
void hideInputWidgets();
void prepareExtent( QgsMapCanvas *mapCanvas );
bool extentChecked();
QgsRectangle outputExtent();
void clearFormats();
void clearCrs();
void populateTimes();
void clearTimes();
QString selectedTimeText();
void setCRSLabel( const QString &label );
void setSelectedCRSLabel( const QString &label );
void setChangeCRSButtonEnabled( bool enabled );
void insertItemFormat( int index, const QString &label );
void setFormatCurrentIndex( int index );
void setFormatEnabled( bool enabled );
int formatCurrentIndex();
QVariant cacheData();
signals:
void changeCRSButtonClicked();
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsowssourcewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

View File

@ -69,6 +69,15 @@ class GUI_EXPORT QgsOWSSourceSelect : public QgsAbstractDataSourceWidget, protec
void reset() override;
/**
* Prepares the spatial extent box with the general settings
* including original crs, destination crs and the map
* canvas if it is available.
*
* \since QGIS 3.24
*/
void prepareExtent() SIP_SKIP;
/**
* Stores the provided map \a canvas to the widget.
*
@ -194,11 +203,6 @@ class GUI_EXPORT QgsOWSSourceSelect : public QgsAbstractDataSourceWidget, protec
//! URI for selected connection
QgsDataSourceUri mUri;
//! Layer specific settings widget
QgsOWSSourceWidget *mSourceWidget;
QgsMapCanvas *mMapCanvas;
private slots:
//! Opens the create connection dialog to build a new connection
@ -233,15 +237,6 @@ class GUI_EXPORT QgsOWSSourceSelect : public QgsAbstractDataSourceWidget, protec
private:
/**
* Prepares the spatial extent box with the general settings
* including original crs, destination crs and the map
* canvas if it is available.
*
* \since QGIS 3.24
*/
void prepareExtent();
//! Selected CRS
QString mSelectedCRS;
@ -254,6 +249,11 @@ class GUI_EXPORT QgsOWSSourceSelect : public QgsAbstractDataSourceWidget, protec
//! Map mime type labels to supported formats
QMap<QString, QString> mMimeLabelMap;
//! Layer specific settings widget
QgsOWSSourceWidget *mSourceWidget = nullptr;
QgsMapCanvas *mMapCanvas = nullptr;
private slots:
void mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
void mLayerUpButton_clicked();