Skip to content

Commit

Permalink
more spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 20, 2017
1 parent e69263b commit 4c3968b
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 42 deletions.
8 changes: 4 additions & 4 deletions python/console/console_editor.py
Expand Up @@ -258,12 +258,12 @@ def setLexers(self):
self.lexer.setPaper(paperColor, style)

self.api = QsciAPIs(self.lexer)
chekBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
chekBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if chekBoxAPI:
checkBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
checkBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if checkBoxAPI:
pap = os.path.join(QgsApplication.pkgDataPath(), "python", "qsci_apis", "pyqgis.pap")
self.api.loadPrepared(pap)
elif chekBoxPreparedAPI:
elif checkBoxPreparedAPI:
self.api.loadPrepared(self.settings.value("pythonConsole/preparedAPIFile"))
else:
apiPath = self.settings.value("pythonConsole/userAPI", [])
Expand Down
8 changes: 4 additions & 4 deletions python/console/console_sci.py
Expand Up @@ -210,12 +210,12 @@ def setLexers(self):
self.lexer.setPaper(paperColor, style)

self.api = QsciAPIs(self.lexer)
chekBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
chekBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if chekBoxAPI:
checkBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
checkBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if checkBoxAPI:
pap = os.path.join(QgsApplication.pkgDataPath(), "python", "qsci_apis", "pyqgis.pap")
self.api.loadPrepared(pap)
elif chekBoxPreparedAPI:
elif checkBoxPreparedAPI:
self.api.loadPrepared(self.settings.value("pythonConsole/preparedAPIFile"))
else:
apiPath = self.settings.value("pythonConsole/userAPI", [])
Expand Down
2 changes: 1 addition & 1 deletion python/core/raster/qgsrasterblock.sip
Expand Up @@ -274,7 +274,7 @@ class QgsRasterBlock

QString toString() const;

/** \brief For theExtent and theWidht, theHeight find rectangle covered by subextent.
/** \brief For theExtent and theWidth, theHeight find rectangle covered by subextent.
* The output rect has x oriented from left to right and y from top to bottom
* (upper-left to lower-right orientation).
* @param theExtent extent, usually the larger
Expand Down
8 changes: 4 additions & 4 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -155,11 +155,11 @@ def manageGui(self):
self.reset_buttons()

# get preferred connection save strategy from settings and set it
save_strat = self.settings.value('/MetaSearch/ows_save_strategy',
'title_ask')
if save_strat == 'temp_name':
save_strategy = self.settings.value('/MetaSearch/ows_save_strategy',
'title_ask')
if save_strategy == 'temp_name':
self.radioTempName.setChecked(True)
elif save_strat == 'title_no_ask':
elif save_strategy == 'title_no_ask':
self.radioTitleNoAsk.setChecked(True)
else:
self.radioTitleAsk.setChecked(True)
Expand Down
18 changes: 9 additions & 9 deletions python/plugins/processing/algs/qgis/CheckValidity.py
Expand Up @@ -100,31 +100,31 @@ def doCheck(self, feedback):
settings = QSettings()
method = int(settings.value(settings_method_key, 1))

valid_ouput = self.getOutputFromName(self.VALID_OUTPUT)
valid_output = self.getOutputFromName(self.VALID_OUTPUT)
valid_fields = layer.fields()
valid_writer = valid_ouput.getVectorWriter(
valid_writer = valid_output.getVectorWriter(
valid_fields,
layer.wkbType(),
layer.crs())
valid_count = 0

invalid_ouput = self.getOutputFromName(self.INVALID_OUTPUT)
invalid_output = self.getOutputFromName(self.INVALID_OUTPUT)
invalid_fields = layer.fields().toList() + [
QgsField(name='_errors',
type=QVariant.String,
len=255)]
invalid_writer = invalid_ouput.getVectorWriter(
invalid_writer = invalid_output.getVectorWriter(
invalid_fields,
layer.wkbType(),
layer.crs())
invalid_count = 0

error_ouput = self.getOutputFromName(self.ERROR_OUTPUT)
error_output = self.getOutputFromName(self.ERROR_OUTPUT)
error_fields = [
QgsField(name='message',
type=QVariant.String,
len=255)]
error_writer = error_ouput.getVectorWriter(
error_writer = error_output.getVectorWriter(
error_fields,
QgsWkbTypes.Point,
layer.crs())
Expand Down Expand Up @@ -179,8 +179,8 @@ def doCheck(self, feedback):
del error_writer

if valid_count == 0:
valid_ouput.open = False
valid_output.open = False
if invalid_count == 0:
invalid_ouput.open = False
invalid_output.open = False
if error_count == 0:
error_ouput.open = False
error_output.open = False
2 changes: 1 addition & 1 deletion python/server/qgsserverprojectparser.sip
Expand Up @@ -102,7 +102,7 @@ class QgsServerProjectParser
void addJoinLayersForElement( const QDomElement& layerElem ) const;

void addValueRelationLayersForLayer( const QgsVectorLayer *vl ) const;
/** Add layers which are necessary for the evaluation of the expression function 'getFeature( layer, attributField, value)'*/
/** Add layers which are necessary for the evaluation of the expression function 'getFeature( layer, attributeField, value)'*/
void addGetFeatureLayers( const QDomElement& layerElem ) const;

/** Returns the text of the <id> element for a layer element
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare-commit.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# prepare-commit.sh
# ---------------------
Expand Down
1 change: 1 addition & 0 deletions scripts/spell_check/.agignore
Expand Up @@ -38,6 +38,7 @@ Exception_to_GPL_for_Qt.txt
images/svg/symbol/blue-marker.svg
images/svg/symbol/red-marker.svg
images/themes/default/propertyicons/diagram.svg

images/themes/default/propertyicons/general.svg
images/themes/default/svgbase/hammer.svg
LexerR.py
Expand Down
5 changes: 4 additions & 1 deletion scripts/spell_check/spelling.dat
Expand Up @@ -796,6 +796,7 @@ atttribute:attribute
atttributes:attributes
audeince:audience
auromated:automated
australia:Australia
austrailia:Australia
austrailian:Australian
autenticate:authenticate
Expand Down Expand Up @@ -1229,6 +1230,7 @@ chcek:check
chceked:checked
chceking:checking
chceks:checks
checkk:check
checksuming:checksumming
cheif:chief
cheifs:chiefs
Expand Down Expand Up @@ -1806,6 +1808,7 @@ could't:couldn't
coult:could
councellor:councillor
councellors:councillors
cound:could
counries:countries
countains:contains
countires:countries
Expand Down Expand Up @@ -6377,7 +6380,7 @@ specif:specify
speciman:specimen
spectauclar:spectacular
spectaulars:spectaculars
spects:aspects
spects:aspects:*
spectum:spectrum
speficied:specified
spefic:specific:*
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterblock.h
Expand Up @@ -350,7 +350,7 @@ class CORE_EXPORT QgsRasterBlock

QString toString() const;

/** \brief For theExtent and theWidht, theHeight find rectangle covered by subextent.
/** \brief For theExtent and theWidth, theHeight find rectangle covered by subextent.
* The output rect has x oriented from left to right and y from top to bottom
* (upper-left to lower-right orientation).
* @param theExtent extent, usually the larger
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgscategorizedsymbolrenderer.cpp
Expand Up @@ -941,7 +941,7 @@ QgsCategorizedSymbolRenderer* QgsCategorizedSymbolRenderer::convertFromRenderer(
}

// If not one of the specifically handled renderers, then just grab the symbol from the renderer
// Could have applied this to specific renderer types (singleSymbol, graduatedSymbo)
// Could have applied this to specific renderer types (singleSymboll, graduatedSymbol)

if ( !r )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsgraduatedsymbolrenderer.cpp
Expand Up @@ -1615,7 +1615,7 @@ QgsGraduatedSymbolRenderer* QgsGraduatedSymbolRenderer::convertFromRenderer( con
}

// If not one of the specifically handled renderers, then just grab the symbol from the renderer
// Could have applied this to specific renderer types (singleSymbol, graduatedSymbo)
// Could have applied this to specific renderer types (singleSymboll, graduatedSymbol)

This comment has been minimized.

Copy link
@nyalldawson

nyalldawson Jan 20, 2017

Collaborator

Symboll?


if ( !r )
{
Expand Down
4 changes: 2 additions & 2 deletions src/gui/raster/qgsrendererrasterpropertieswidget.cpp
Expand Up @@ -108,7 +108,7 @@ QgsRendererRasterPropertiesWidget::QgsRendererRasterPropertiesWidget( QgsMapLaye
// this is not a problem - nobody is listening to our signals yet
syncToLayer( mRasterLayer );

connect( mRasterLayer, SIGNAL( styleChanged() ), this, SLOT( refreshAfterSyleChanged() ) );
connect( mRasterLayer, SIGNAL( styleChanged() ), this, SLOT( refreshAfterStyleChanged() ) );
}

void QgsRendererRasterPropertiesWidget::setMapCanvas( QgsMapCanvas *canvas )
Expand Down Expand Up @@ -390,7 +390,7 @@ void QgsRendererRasterPropertiesWidget::setRendererWidget( const QString &render

}

void QgsRendererRasterPropertiesWidget::refreshAfterSyleChanged()
void QgsRendererRasterPropertiesWidget::refreshAfterStyleChanged()
{
if ( mRendererWidget )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrendererrasterpropertieswidget.h
Expand Up @@ -80,7 +80,7 @@ class GUI_EXPORT QgsRendererRasterPropertiesWidget : public QgsMapLayerConfigWid
//! Enable or disable colorize controls depending on checkbox
void toggleColorizeControls( bool colorizeEnabled );

void refreshAfterSyleChanged();
void refreshAfterStyleChanged();

private:
void setRendererWidget( const QString& rendererName );
Expand Down
Expand Up @@ -124,7 +124,7 @@ void QgsGeometryCheckerSetupTab::validateInput()
nApplicable += factory->checkApplicability( ui, layer->geometryType() );
}
}
bool outputOk = ui.radioButtonOuputModifyInput->isChecked() || !ui.lineEditOutput->text().isEmpty();
bool outputOk = ui.radioButtonOutputModifyInput->isChecked() || !ui.lineEditOutput->text().isEmpty();
mRunButton->setEnabled( layer && nApplicable > 0 && outputOk );
}

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/geometry_checker/ui/qgsgeometrycheckersetuptab.ui
Expand Up @@ -615,7 +615,7 @@
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QRadioButton" name="radioButtonOuputModifyInput">
<widget class="QRadioButton" name="radioButtonOutputModifyInput">
<property name="text">
<string>&amp;Modify input layer</string>
</property>
Expand Down Expand Up @@ -754,7 +754,7 @@
<tabstop>checkBoxGaps</tabstop>
<tabstop>doubleSpinBoxGapArea</tabstop>
<tabstop>spinBoxTolerance</tabstop>
<tabstop>radioButtonOuputModifyInput</tabstop>
<tabstop>radioButtonOutputModifyInput</tabstop>
<tabstop>radioButtonOutputNew</tabstop>
<tabstop>lineEditOutput</tabstop>
<tabstop>pushButtonOutputBrowse</tabstop>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/qgsglobeplugindialog.ui
Expand Up @@ -600,7 +600,7 @@
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="2" column="0">
<widget class="QLabel" name="labelScollSensitivity">
<widget class="QLabel" name="labelScrollSensitivity">
<property name="text">
<string>Sensitivity</string>
</property>
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsserverexception.h
Expand Up @@ -82,7 +82,7 @@ class SERVER_EXPORT QgsOgcServiceException : public QgsServerException
//!return exception version
QString version() const { return mVersion; }

//! Overrided from QgsServerException
//! Overridden from QgsServerException
virtual QByteArray formatResponse( QString& responseFormat ) const override;

private:
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsserverprojectparser.h
Expand Up @@ -116,7 +116,7 @@ class SERVER_EXPORT QgsServerProjectParser
void addJoinLayersForElement( const QDomElement& layerElem ) const;

void addValueRelationLayersForLayer( const QgsVectorLayer *vl ) const;
//! Add layers which are necessary for the evaluation of the expression function 'getFeature( layer, attributField, value)'
//! Add layers which are necessary for the evaluation of the expression function 'getFeature( layer, attributeField, value)'
void addGetFeatureLayers( const QDomElement& layerElem ) const;

/** Returns the text of the <id> element for a layer element
Expand Down
4 changes: 2 additions & 2 deletions tests/src/core/testqgsfields.cpp
Expand Up @@ -353,9 +353,9 @@ void TestQgsFields::indexFromName()
QCOMPARE( fields.lookupField( QString( "teStFiEld2" ) ), 1 );

//test that fieldNameIndex prefers exact case matches over case insensitive matches
QgsField sameNameDifferentCase( QStringLiteral( "teStFielD" ) );
QgsField sameNameDifferentCase( QStringLiteral( "teStFielD" ) ); //#spellok
fields.append( sameNameDifferentCase );
QCOMPARE( fields.lookupField( QString( "teStFielD" ) ), 3 );
QCOMPARE( fields.lookupField( QString( "teStFielD" ) ), 3 ); //#spellok

//test that the alias is only matched with fieldNameIndex
QCOMPARE( fields.indexFromName( "testfieldAlias" ), -1 );
Expand Down
6 changes: 3 additions & 3 deletions tests/src/python/qgis_local_server.py
Expand Up @@ -494,13 +494,13 @@ def get_map(self, params, browser=False):
else:
raise ServerProcessError(
'Web/FCGI Process Request HTTPError',
'Cound not connect to process: ' + str(resp.code),
'Could not connect to process: ' + str(resp.code),
resp.message
)
except urllib.error.URLError as resp:
raise ServerProcessError(
'Web/FCGI Process Request URLError',
'Cound not connect to process',
'Could not connect to process',
resp.reason
)
else:
Expand All @@ -511,7 +511,7 @@ def get_map(self, params, browser=False):
if resp is not None:
raise ServerProcessError(
'Web/FCGI Process Request Error',
'Cound not connect to process: ' + str(resp.code)
'Could not connect to process: ' + str(resp.code)
)

if (tmp_png is not None
Expand Down

0 comments on commit 4c3968b

Please sign in to comment.