Spelling fixes, updates to chkspelling.sh

This commit is contained in:
Nyall Dawson 2016-02-02 13:23:26 +11:00
parent d1cc6cc75f
commit f3c7ab61e6
14 changed files with 44 additions and 37 deletions

View File

@ -142,8 +142,8 @@ class QgsComposerMapGrid : QgsComposerMapItem
enum GridUnit enum GridUnit
{ {
MapUnit, /*!< grid units follow map units */ MapUnit, /*!< grid units follow map units */
MM, /*!< grid units in millimetres */ MM, /*!< grid units in millimeters */
CM /*!< grid units in centimetres */ CM /*!< grid units in centimeters */
}; };
/** Grid drawing style /** Grid drawing style
@ -297,7 +297,7 @@ class QgsComposerMapGrid : QgsComposerMapItem
/** Calculates the maximum distance the grid extends beyond the QgsComposerMap's /** Calculates the maximum distance the grid extends beyond the QgsComposerMap's
* item rect * item rect
* @returns maximum extension in millimetres * @returns maximum extension in millimeters
*/ */
double maxExtension(); double maxExtension();
@ -416,14 +416,14 @@ class QgsComposerMapGrid : QgsComposerMapItem
/** Sets the length of the cross segments drawn for the grid. This is only used for grids /** Sets the length of the cross segments drawn for the grid. This is only used for grids
* with QgsComposerMapGrid::Cross styles * with QgsComposerMapGrid::Cross styles
* @param length cross length in millimetres * @param length cross length in millimeters
* @see crossLength * @see crossLength
*/ */
void setCrossLength( const double length ); void setCrossLength( const double length );
/** Retrieves the length of the cross segments drawn for the grid. This is only used for grids /** Retrieves the length of the cross segments drawn for the grid. This is only used for grids
* with QgsComposerMapGrid::Cross styles * with QgsComposerMapGrid::Cross styles
* @returns cross length in millimetres * @returns cross length in millimeters
* @see setCrossLength * @see setCrossLength
*/ */
double crossLength() const; double crossLength() const;
@ -569,13 +569,13 @@ class QgsComposerMapGrid : QgsComposerMapItem
*/ */
AnnotationPosition annotationPosition( const BorderSide border ) const; AnnotationPosition annotationPosition( const BorderSide border ) const;
/** Sets the distance between the map frame and annotations. Units are in millimetres. /** Sets the distance between the map frame and annotations. Units are in millimeters.
* @param distance margin between map frame and annotations * @param distance margin between map frame and annotations
* @see annotationFrameDistance * @see annotationFrameDistance
*/ */
void setAnnotationFrameDistance( const double distance ); void setAnnotationFrameDistance( const double distance );
/** Gets the distance between the map frame and annotations. Units are in millimetres. /** Gets the distance between the map frame and annotations. Units are in millimeters.
* @returns margin between map frame and annotations * @returns margin between map frame and annotations
* @see setAnnotationFrameDistance * @see setAnnotationFrameDistance
*/ */
@ -701,7 +701,7 @@ class QgsComposerMapGrid : QgsComposerMapItem
/** Sets the grid frame width. This property controls how wide the grid frame is. /** Sets the grid frame width. This property controls how wide the grid frame is.
* The size of the line outlines drawn in the frame is controlled through the * The size of the line outlines drawn in the frame is controlled through the
* setFramePenSize method. * setFramePenSize method.
* @param width width of grid frame in millimetres * @param width width of grid frame in millimeters
* @see frameWidth * @see frameWidth
*/ */
void setFrameWidth( const double width ); void setFrameWidth( const double width );
@ -709,7 +709,7 @@ class QgsComposerMapGrid : QgsComposerMapItem
/** Gets the grid frame width. This property controls how wide the grid frame is. /** Gets the grid frame width. This property controls how wide the grid frame is.
* The size of the line outlines drawn in the frame can be retrieved via the * The size of the line outlines drawn in the frame can be retrieved via the
* framePenSize method. * framePenSize method.
* @returns width of grid frame in millimetres * @returns width of grid frame in millimeters
* @see setFrameWidth * @see setFrameWidth
*/ */
double frameWidth() const; double frameWidth() const;

View File

@ -46,7 +46,7 @@ class QgsStyleV2ExportImportDialog : QDialog
*/ */
void selectGroup( const QString& groupName ); void selectGroup( const QString& groupName );
/** /**
* Unselect the symbols belonging to the given group * Deselect the symbols belonging to the given group
* @param groupName the name of the group to be deselected * @param groupName the name of the group to be deselected
*/ */
void deselectGroup( const QString& groupName); void deselectGroup( const QString& groupName);

View File

@ -17,6 +17,6 @@
RE=$(echo $(cut -d: -f1 scripts/spelling.dat | sed -e 's/^/\\</; s/$/\\>|/;') | sed -e 's/| /|/g; s/|$//;') RE=$(echo $(cut -d: -f1 scripts/spelling.dat | sed -e 's/^/\\</; s/$/\\>|/;') | sed -e 's/| /|/g; s/|$//;')
EX="\.(svn-base|tmp|xpm|ts|o)|spelling\.dat|Exception_to_GPL_for_Qt.txt|sqlite3.c|debian/build|ms-windows/osgeo4w|ChangeLog|src/plugins/grass/qtermwidget|src/app/gps/qwtpolar-1.0|debian/tmp|src/plugins/dxf2shp_converter/dxflib|python/ext-libs" EX="\.(svn-base|tmp|xpm|ts|o)|spelling\.dat|Exception_to_GPL_for_Qt.txt|sqlite3.c|qgisstyle|LexerR.py|debian/build|ms-windows/osgeo4w|ChangeLog|src/plugins/grass/qtermwidget|src/app/gps/qwtpolar-1.0|debian/tmp|src/plugins/dxf2shp_converter/dxflib|python/ext-libs"
egrep --exclude-dir=.git --color=always "$RE" -ir . | egrep -iv "$EX" egrep --exclude=*.{png,svg,db,bz2,pdf,qgs,qml,api} --exclude-dir=.git --color=always "$RE" -ir . | egrep -iv "$EX"

View File

@ -485,3 +485,11 @@ occurence:occurrence
overide:override overide:override
supress:suppress supress:suppress
surpress:suppress surpress:suppress
artefact:artifact
artefacts:artifacts
metres:meters
millimetres:millimeters
centimetres:centimers
kilometres:kilometers
unselect:deselect

View File

@ -7568,7 +7568,7 @@ void QgisApp::layerSubsetString()
if ( QMessageBox::question( NULL, tr( "Filter on joined fields" ), if ( QMessageBox::question( NULL, tr( "Filter on joined fields" ),
tr( "You are about to set a subset filter on a layer that has joined fields. " tr( "You are about to set a subset filter on a layer that has joined fields. "
"Joined fields cannot be filtered, unless you convert the layer to a virtual layer first. " "Joined fields cannot be filtered, unless you convert the layer to a virtual layer first. "
"Would you like to create a virtual layer out of this layer first ?" ), "Would you like to create a virtual layer out of this layer first?" ),
QMessageBox::Yes | QMessageBox::No ) == QMessageBox::Yes ) QMessageBox::Yes | QMessageBox::No ) == QMessageBox::Yes )
{ {
QgsVirtualLayerDefinition def = QgsVirtualLayerDefinitionUtils::fromJoinedLayer( vlayer ); QgsVirtualLayerDefinition def = QgsVirtualLayerDefinitionUtils::fromJoinedLayer( vlayer );

View File

@ -36,7 +36,7 @@ QgsDecorationScaleBarDialog::QgsDecorationScaleBarDialog( QgsDecorationScaleBar&
switch ( units ) switch ( units )
{ {
case 0: case 0:
spnSize->setSuffix( tr( " metres/km" ) ); spnSize->setSuffix( tr( " meters/km" ) );
break; break;
case 1: case 1:
spnSize->setSuffix( tr( " feet/miles" ) ); spnSize->setSuffix( tr( " feet/miles" ) );

View File

@ -109,13 +109,13 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui:
void on_mWMSInspireScenario2_toggled( bool on ); void on_mWMSInspireScenario2_toggled( bool on );
/*! /*!
* Slots to select/unselect all the WFS layers * Slots to select/deselect all the WFS layers
*/ */
void on_pbnWFSLayersSelectAll_clicked(); void on_pbnWFSLayersSelectAll_clicked();
void on_pbnWFSLayersUnselectAll_clicked(); void on_pbnWFSLayersUnselectAll_clicked();
/*! /*!
* Slots to select/unselect all the WCS layers * Slots to select/deselect all the WCS layers
*/ */
void on_pbnWCSLayersSelectAll_clicked(); void on_pbnWCSLayersSelectAll_clicked();
void on_pbnWCSLayersUnselectAll_clicked(); void on_pbnWCSLayersUnselectAll_clicked();

View File

@ -172,8 +172,8 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
enum GridUnit enum GridUnit
{ {
MapUnit, /*!< grid units follow map units */ MapUnit, /*!< grid units follow map units */
MM, /*!< grid units in millimetres */ MM, /*!< grid units in millimeters */
CM /*!< grid units in centimetres */ CM /*!< grid units in centimeters */
}; };
/** Grid drawing style /** Grid drawing style
@ -327,7 +327,7 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
/** Calculates the maximum distance the grid extends beyond the QgsComposerMap's /** Calculates the maximum distance the grid extends beyond the QgsComposerMap's
* item rect * item rect
* @returns maximum extension in millimetres * @returns maximum extension in millimeters
*/ */
double maxExtension(); double maxExtension();
@ -446,14 +446,14 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
/** Sets the length of the cross segments drawn for the grid. This is only used for grids /** Sets the length of the cross segments drawn for the grid. This is only used for grids
* with QgsComposerMapGrid::Cross styles * with QgsComposerMapGrid::Cross styles
* @param length cross length in millimetres * @param length cross length in millimeters
* @see crossLength * @see crossLength
*/ */
void setCrossLength( const double length ) { mCrossLength = length; } void setCrossLength( const double length ) { mCrossLength = length; }
/** Retrieves the length of the cross segments drawn for the grid. This is only used for grids /** Retrieves the length of the cross segments drawn for the grid. This is only used for grids
* with QgsComposerMapGrid::Cross styles * with QgsComposerMapGrid::Cross styles
* @returns cross length in millimetres * @returns cross length in millimeters
* @see setCrossLength * @see setCrossLength
*/ */
double crossLength() const { return mCrossLength; } double crossLength() const { return mCrossLength; }
@ -617,13 +617,13 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
*/ */
AnnotationPosition annotationPosition( const BorderSide border ) const; AnnotationPosition annotationPosition( const BorderSide border ) const;
/** Sets the distance between the map frame and annotations. Units are in millimetres. /** Sets the distance between the map frame and annotations. Units are in millimeters.
* @param distance margin between map frame and annotations * @param distance margin between map frame and annotations
* @see annotationFrameDistance * @see annotationFrameDistance
*/ */
void setAnnotationFrameDistance( const double distance ) { mAnnotationFrameDistance = distance; } void setAnnotationFrameDistance( const double distance ) { mAnnotationFrameDistance = distance; }
/** Gets the distance between the map frame and annotations. Units are in millimetres. /** Gets the distance between the map frame and annotations. Units are in millimeters.
* @returns margin between map frame and annotations * @returns margin between map frame and annotations
* @see setAnnotationFrameDistance * @see setAnnotationFrameDistance
*/ */
@ -749,7 +749,7 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
/** Sets the grid frame width. This property controls how wide the grid frame is. /** Sets the grid frame width. This property controls how wide the grid frame is.
* The size of the line outlines drawn in the frame is controlled through the * The size of the line outlines drawn in the frame is controlled through the
* setFramePenSize method. * setFramePenSize method.
* @param width width of grid frame in millimetres * @param width width of grid frame in millimeters
* @see frameWidth * @see frameWidth
*/ */
void setFrameWidth( const double width ) { mGridFrameWidth = width; } void setFrameWidth( const double width ) { mGridFrameWidth = width; }
@ -757,7 +757,7 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
/** Gets the grid frame width. This property controls how wide the grid frame is. /** Gets the grid frame width. This property controls how wide the grid frame is.
* The size of the line outlines drawn in the frame can be retrieved via the * The size of the line outlines drawn in the frame can be retrieved via the
* framePenSize method. * framePenSize method.
* @returns width of grid frame in millimetres * @returns width of grid frame in millimeters
* @see setFrameWidth * @see setFrameWidth
*/ */
double frameWidth() const { return mGridFrameWidth; } double frameWidth() const { return mGridFrameWidth; }

View File

@ -251,7 +251,7 @@ void QgsProjectionSelector::applySelection( int column, QString value )
else else
{ {
QgsDebugMsg( QString( "nothing found for %1,%2" ).arg( column ).arg( value ) ); QgsDebugMsg( QString( "nothing found for %1,%2" ).arg( column ).arg( value ) );
// unselect the selected item to avoid confusing the user // deselect the selected item to avoid confusing the user
lstCoordinateSystems->clearSelection(); lstCoordinateSystems->clearSelection();
lstRecent->clearSelection(); lstRecent->clearSelection();
teProjection->setText( "" ); teProjection->setText( "" );

View File

@ -77,7 +77,7 @@ class GUI_EXPORT QgsStyleV2ExportImportDialog : public QDialog, private Ui::QgsS
*/ */
void selectGroup( const QString& groupName ); void selectGroup( const QString& groupName );
/** /**
* Unselect the symbols belonging to the given group * Deselect the symbols belonging to the given group
* @param groupName the name of the group to be deselected * @param groupName the name of the group to be deselected
*/ */
void deselectGroup( const QString& groupName ); void deselectGroup( const QString& groupName );

View File

@ -15,8 +15,7 @@
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset> <iconset>
<normaloff/> <normaloff>.</normaloff>.</iconset>
</iconset>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
@ -65,7 +64,7 @@
<item> <item>
<widget class="QPushButton" name="mSelectAllButton"> <widget class="QPushButton" name="mSelectAllButton">
<property name="text"> <property name="text">
<string>select all</string> <string>Select all</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -85,7 +84,7 @@
<item> <item>
<widget class="QPushButton" name="mUnselectAllButton"> <widget class="QPushButton" name="mUnselectAllButton">
<property name="text"> <property name="text">
<string>unselect all</string> <string>Deselect all</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -218,7 +218,7 @@ void QgsVirtualLayerSourceSelect::on_buttonBox_accepted()
QString id( mLayerNameCombo->itemData( idx ).toString() ); QString id( mLayerNameCombo->itemData( idx ).toString() );
if ( !id.isEmpty() && mLayerNameCombo->currentText() == QgsMapLayerRegistry::instance()->mapLayer( id )->name() ) if ( !id.isEmpty() && mLayerNameCombo->currentText() == QgsMapLayerRegistry::instance()->mapLayer( id )->name() )
{ {
int r = QMessageBox::warning( nullptr, tr( "Warning" ), tr( "A virtual layer of this name already exists, would you like to overwrite it ?" ), QMessageBox::Yes | QMessageBox::No ); int r = QMessageBox::warning( nullptr, tr( "Warning" ), tr( "A virtual layer of this name already exists, would you like to overwrite it?" ), QMessageBox::Yes | QMessageBox::No );
if ( r == QMessageBox::Yes ) if ( r == QMessageBox::Yes )
{ {
emit replaceVectorLayer( id, def.toString(), layerName, "virtual" ); emit replaceVectorLayer( id, def.toString(), layerName, "virtual" );

View File

@ -684,7 +684,7 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
if ( firstNewStyle || style ) if ( firstNewStyle || style )
{ {
// individual style selected => unselect layer and all parent groups // individual style selected => deselect layer and all parent groups
QTreeWidgetItem *parent = item; QTreeWidgetItem *parent = item;
while ( parent ) while ( parent )
{ {

View File

@ -78,7 +78,7 @@ def createColorRamp():
def createLabelFormat(): def createLabelFormat():
format = QgsRendererRangeV2LabelFormat() format = QgsRendererRangeV2LabelFormat()
template = "%1 - %2 metres" template = "%1 - %2 meters"
precision = 5 precision = 5
format.setFormat(template) format.setFormat(template)
format.setPrecision(precision) format.setPrecision(precision)
@ -189,7 +189,7 @@ class TestQgsGraduatedSymbolRendererV2(TestCase):
"""Test QgsRendererRangeV2LabelFormat getter/setter functions""" """Test QgsRendererRangeV2LabelFormat getter/setter functions"""
format = QgsRendererRangeV2LabelFormat() format = QgsRendererRangeV2LabelFormat()
self.assertTrue(format, "QgsRendererRangeV2LabelFomat construction failed") self.assertTrue(format, "QgsRendererRangeV2LabelFomat construction failed")
template = "%1 - %2 metres" template = "%1 - %2 meters"
precision = 5 precision = 5
format.setFormat(template) format.setFormat(template)
self.assertEqual(format.format(), template, "Format getter/setter failed") self.assertEqual(format.format(), template, "Format getter/setter failed")
@ -249,8 +249,8 @@ class TestQgsGraduatedSymbolRendererV2(TestCase):
("%2", "2.34"), ("%2", "2.34"),
("%2%", "2.34%"), ("%2%", "2.34%"),
("%1%1", "1.231.23"), ("%1%1", "1.231.23"),
("from %1 to %2 metres", "from 1.23 to 2.34 metres"), ("from %1 to %2 meters", "from 1.23 to 2.34 meters"),
("from %2 to %1 metres", "from 2.34 to 1.23 metres"), ("from %2 to %1 meters", "from 2.34 to 1.23 meters"),
) )
format.setPrecision(2) format.setPrecision(2)
format.setTrimTrailingZeroes(False) format.setTrimTrailingZeroes(False)