Skip to content

Commit

Permalink
Merge pull request #5762 from pblottiere/fix_typo_as
Browse files Browse the repository at this point in the history
Fixes typos in auxiliary storage documentation
  • Loading branch information
pblottiere authored Nov 30, 2017
2 parents f6acf37 + 6d87c2b commit 3b7d2e3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions python/core/qgsauxiliarystorage.sip
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class QgsAuxiliaryLayer : QgsVectorLayer

bool addAuxiliaryField( const QgsPropertyDefinition &definition );
%Docstring
Add an an auxiliary field for the given property. Setup for widget
editors are updated in the target layer as weel as the attribute
Adds an auxiliary field for the given property. Setup for widget
editors are updated in the target layer as well as the attribute
table config to hide auxiliary fields by default.

\param definition The definition of the property to add
Expand All @@ -125,15 +125,15 @@ class QgsAuxiliaryLayer : QgsVectorLayer

bool save();
%Docstring
Commit changes and starts editing then.
Commits changes and starts editing then.

:return: true if commit step passed, false otherwise
:rtype: bool
%End

virtual bool deleteAttribute( int attr );
%Docstring
Remove attribute from the layer and commit changes. The layer remains
Removes attribute from the layer and commits changes. The layer remains
editable.

\param attr The index of the attribute to remove
Expand All @@ -144,7 +144,7 @@ class QgsAuxiliaryLayer : QgsVectorLayer

bool isHiddenProperty( int index ) const;
%Docstring
Returns true if the underlying field have to be hidden from editing
Returns true if the underlying field has to be hidden from editing
tools like attribute table, false otherwise.

\param index The index of the field for which visibility is checked
Expand Down Expand Up @@ -175,7 +175,7 @@ class QgsAuxiliaryLayer : QgsVectorLayer

QgsPropertyDefinition propertyDefinitionFromIndex( int index ) const;
%Docstring
Returns the property definition fir the underlying field index.
Returns the property definition for the underlying field index.

\param index The index of the field
:rtype: QgsPropertyDefinition
Expand All @@ -184,7 +184,7 @@ class QgsAuxiliaryLayer : QgsVectorLayer
static int createProperty( QgsPalLayerSettings::Property property, QgsVectorLayer *vlayer );
%Docstring
Creates if necessary a new auxiliary field for a PAL property and
activate this property in settings.
activates this property in settings.

\param property The property to create
\param vlayer The vector layer
Expand All @@ -196,7 +196,7 @@ class QgsAuxiliaryLayer : QgsVectorLayer
static int createProperty( QgsDiagramLayerSettings::Property property, QgsVectorLayer *vlayer );
%Docstring
Creates if necessary a new auxiliary field for a diagram's property and
activate this this property in settings.
activates this property in settings.

\param property The property to create
\param vlayer The vector layer
Expand Down Expand Up @@ -299,7 +299,7 @@ class QgsAuxiliaryStorage

bool isValid() const;
%Docstring
Returns the status of the auxiliary storage currently definied.
Returns the status of the auxiliary storage currently defined.

:return: true if the auxiliary storage is valid, false otherwise
:rtype: bool
Expand All @@ -313,8 +313,8 @@ class QgsAuxiliaryStorage

QString currentFileName() const;
%Docstring
Returns the path of current database used. It may be different from the
target filename if the auxiliary storage is opened in copy mode.
Returns the path of the current database used. It may be different from
the target filename if the auxiliary storage is opened in copy mode.
:rtype: str
%End

Expand Down
22 changes: 11 additions & 11 deletions src/core/qgsauxiliarystorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
bool exists( const QgsPropertyDefinition &definition ) const;

/**
* Add an an auxiliary field for the given property. Setup for widget
* editors are updated in the target layer as weel as the attribute
* Adds an auxiliary field for the given property. Setup for widget
* editors are updated in the target layer as well as the attribute
* table config to hide auxiliary fields by default.
*
* \param definition The definition of the property to add
Expand All @@ -141,14 +141,14 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
QgsFields auxiliaryFields() const;

/**
* Commit changes and starts editing then.
* Commits changes and starts editing then.
*
* \returns true if commit step passed, false otherwise
*/
bool save();

/**
* Remove attribute from the layer and commit changes. The layer remains
* Removes attribute from the layer and commits changes. The layer remains
* editable.
*
* \param attr The index of the attribute to remove
Expand All @@ -158,7 +158,7 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
virtual bool deleteAttribute( int attr ) override;

/**
* Returns true if the underlying field have to be hidden from editing
* Returns true if the underlying field has to be hidden from editing
* tools like attribute table, false otherwise.
*
* \param index The index of the field for which visibility is checked
Expand Down Expand Up @@ -186,15 +186,15 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
int propertyFromIndex( int index ) const;

/**
* Returns the property definition fir the underlying field index.
* Returns the property definition for the underlying field index.
*
* \param index The index of the field
*/
QgsPropertyDefinition propertyDefinitionFromIndex( int index ) const;

/**
* Creates if necessary a new auxiliary field for a PAL property and
* activate this property in settings.
* activates this property in settings.
*
* \param property The property to create
* \param vlayer The vector layer
Expand All @@ -205,7 +205,7 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer

/**
* Creates if necessary a new auxiliary field for a diagram's property and
* activate this this property in settings.
* activates this property in settings.
*
* \param property The property to create
* \param vlayer The vector layer
Expand Down Expand Up @@ -306,7 +306,7 @@ class CORE_EXPORT QgsAuxiliaryStorage
virtual ~QgsAuxiliaryStorage();

/**
* Returns the status of the auxiliary storage currently definied.
* Returns the status of the auxiliary storage currently defined.
*
* \returns true if the auxiliary storage is valid, false otherwise
*/
Expand All @@ -318,8 +318,8 @@ class CORE_EXPORT QgsAuxiliaryStorage
QString fileName() const;

/**
* Returns the path of current database used. It may be different from the
* target filename if the auxiliary storage is opened in copy mode.
* Returns the path of the current database used. It may be different from
* the target filename if the auxiliary storage is opened in copy mode.
*/
QString currentFileName() const;

Expand Down

0 comments on commit 3b7d2e3

Please sign in to comment.