Skip to content
Permalink
Browse files
typo
  • Loading branch information
vcloarec authored and nyalldawson committed Jan 8, 2022
1 parent 4def77c commit 789ca07972dce408531a208aed06e330b361cbb3
@@ -132,7 +132,7 @@ class QgsWmsConverter
};


//! Abstract class to convert color to float value following the mapTiler terrain RGB encoding scheme
//! Class to convert color to float value following the mapTiler terrain RGB encoding scheme
class QgsWmsConverterMapTilerTerrainRGB : public QgsWmsConverter
{
public:
@@ -275,7 +275,7 @@ class QgsWmsProvider final: public QgsRasterDataProvider
QList< double > nativeResolutions() const override;
QgsLayerMetadata layerMetadata() const override;

//! Statitics could be available if the provider has a converter from colors to other value type, the returned statistics depend on the converter
// Statitics could be available if the provider has a converter from colors to other value type, the returned statistics depend on the converter
QgsRasterBandStats bandStatistics( int bandNo,
int stats = QgsRasterBandStats::All,
const QgsRectangle &extent = QgsRectangle(),
@@ -143,7 +143,7 @@ QgsWMSSourceSelect::QgsWMSSourceSelect( QWidget *parent, Qt::WindowFlags fl, Qgs
tabLayers->layout()->removeWidget( gbCRS );
}

mEncodingSchemeWidget = new QgsWMSEncodingSchemeWidget( this );
mEncodingSchemeWidget = new QgsWmsEncodingSchemeWidget( this );
mEncodingSchemeLayout->addWidget( mEncodingSchemeWidget );

clear();
@@ -1317,7 +1317,7 @@ void QgsWMSSourceSelect::showHelp()
QgsHelp::openHelp( QStringLiteral( "working_with_ogc/ogc_client_support.html" ) );
}

QgsWMSEncodingSchemeWidget::QgsWMSEncodingSchemeWidget( QWidget *parent ): QWidget( parent )
QgsWmsEncodingSchemeWidget::QgsWmsEncodingSchemeWidget( QWidget *parent ): QWidget( parent )
{
QHBoxLayout *lay = new QHBoxLayout( this );
lay->setContentsMargins( 0, 0, 0, 0 );
@@ -1336,12 +1336,12 @@ QgsWMSEncodingSchemeWidget::QgsWMSEncodingSchemeWidget( QWidget *parent ): QWidg
populateEncodingScheme();
}

void QgsWMSEncodingSchemeWidget::populateEncodingScheme()
void QgsWmsEncodingSchemeWidget::populateEncodingScheme()
{
mCombo->addItem( QgsWmsConverterMapTilerTerrainRGB::displayName(), QgsWmsConverterMapTilerTerrainRGB::encodingSchemeKey() );
}

void QgsWMSEncodingSchemeWidget::setEncodingScheme( const QString &encodingSchemeKey )
void QgsWmsEncodingSchemeWidget::setEncodingScheme( const QString &encodingSchemeKey )
{
bool checked = false;
if ( ! encodingSchemeKey.isEmpty() )
@@ -1360,7 +1360,7 @@ void QgsWMSEncodingSchemeWidget::setEncodingScheme( const QString &encodingSchem
mCombo->setEnabled( checked );
}

QString QgsWMSEncodingSchemeWidget::encodingScheme() const
QString QgsWmsEncodingSchemeWidget::encodingScheme() const
{
if ( mCheckBox->isChecked() )
return mCombo->currentData().toString();
@@ -33,7 +33,7 @@ class QgsTreeWidgetItem;
class QDomDocument;
class QDomElement;
class QgsWmsCapabilities;
class QgsWMSEncodingSchemeWidget;
class QgsWmsEncodingSchemeWidget;

/*!
* \brief Dialog to create connections and add layers from WMS, etc.
@@ -193,7 +193,7 @@ class QgsWMSSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsWM
// save the current status of the layer true
QMap<QTreeWidgetItem *, bool> mTreeInitialExpand = QMap<QTreeWidgetItem *, bool>();

QgsWMSEncodingSchemeWidget *mEncodingSchemeWidget = nullptr;
QgsWmsEncodingSchemeWidget *mEncodingSchemeWidget = nullptr;

private slots:
void lstTilesets_itemClicked( QTableWidgetItem *item );
@@ -206,11 +206,11 @@ class QgsWMSSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsWM
/*!
* \brief Widget that embeds a checkbox and a combobox to select an encoding scheme to convert image to a single band raster
*/
class QgsWMSEncodingSchemeWidget : public QWidget
class QgsWmsEncodingSchemeWidget : public QWidget
{
public:
//! Constructor
QgsWMSEncodingSchemeWidget( QWidget *parent = nullptr );
QgsWmsEncodingSchemeWidget( QWidget *parent = nullptr );

/**
* Sets the current encoding scheme from its key \a encodingSchemeKey,
@@ -32,7 +32,7 @@ QgsXyzSourceWidget::QgsXyzSourceWidget( QWidget *parent )
mSpinZMax->setClearValue( 18 );

connect( mEditUrl, &QLineEdit::textChanged, this, &QgsXyzSourceWidget::validate );
mEncodingSchemeWidget = new QgsWMSEncodingSchemeWidget( this );
mEncodingSchemeWidget = new QgsWmsEncodingSchemeWidget( this );
mEncodingSchemeLayout->addWidget( mEncodingSchemeWidget );
}

@@ -21,7 +21,7 @@
#include "ui_qgsxyzsourcewidgetbase.h"
#include <QVariantMap>

class QgsWMSEncodingSchemeWidget;
class QgsWmsEncodingSchemeWidget;

class QgsXyzSourceWidget : public QgsProviderSourceWidget, private Ui::QgsXyzSourceWidgetBase
{
@@ -68,7 +68,7 @@ class QgsXyzSourceWidget : public QgsProviderSourceWidget, private Ui::QgsXyzSou
QVariantMap mSourceParts;
bool mIsValid = false;

QgsWMSEncodingSchemeWidget *mEncodingSchemeWidget = nullptr;
QgsWmsEncodingSchemeWidget *mEncodingSchemeWidget = nullptr;
};

#endif // QGGXYZSOURCEWIDGET_H

0 comments on commit 789ca07

Please sign in to comment.