Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 727d209 commit 6166d21
Show file tree
Hide file tree
Showing 36 changed files with 128 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/core/fieldformatter/qgsvaluerelationfieldformatter.sip
Expand Up @@ -35,6 +35,9 @@ class QgsValueRelationFieldFormatter : QgsFieldFormatter
typedef QVector < QgsValueRelationFieldFormatter::ValueRelationItem > ValueRelationCache;

QgsValueRelationFieldFormatter();
%Docstring
Constructor for QgsValueRelationFieldFormatter.
%End

virtual QString id() const;

Expand Down
4 changes: 4 additions & 0 deletions python/core/gps/qgsgpsconnectionregistry.sip
Expand Up @@ -25,7 +25,11 @@ class QgsGPSConnectionRegistry
#include "qgsgpsconnectionregistry.h"
%End
public:

QgsGPSConnectionRegistry();
%Docstring
Constructor for QgsGPSConnectionRegistry.
%End
~QgsGPSConnectionRegistry();


Expand Down
3 changes: 3 additions & 0 deletions python/core/qgscolorscheme.sip
Expand Up @@ -286,6 +286,9 @@ class QgsProjectColorScheme : QgsColorScheme
public:

QgsProjectColorScheme();
%Docstring
Constructor for QgsProjectColorScheme.
%End

virtual QString schemeName() const;

Expand Down
3 changes: 3 additions & 0 deletions python/core/qgscredentials.sip
Expand Up @@ -30,6 +30,9 @@ class QgsCredentials
public:

virtual ~QgsCredentials();
%Docstring
Destructor.
%End

bool get( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsdatadefinedsizelegend.sip
Expand Up @@ -25,7 +25,11 @@ class QgsDataDefinedSizeLegend
#include "qgsdatadefinedsizelegend.h"
%End
public:

QgsDataDefinedSizeLegend();
%Docstring
Constructor for QgsDataDefinedSizeLegend.
%End

QgsDataDefinedSizeLegend( const QgsDataDefinedSizeLegend &other );
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsexpressionfieldbuffer.sip
Expand Up @@ -31,6 +31,9 @@ class QgsExpressionFieldBuffer
};

QgsExpressionFieldBuffer();
%Docstring
Constructor for QgsExpressionFieldBuffer.
%End

void addExpression( const QString &exp, const QgsField &fld );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsgmlschema.sip
Expand Up @@ -18,7 +18,11 @@ class QgsGmlFeatureClass
#include "qgsgmlschema.h"
%End
public:

QgsGmlFeatureClass();
%Docstring
Constructor for QgsGmlFeatureClass.
%End
QgsGmlFeatureClass( const QString &name, const QString &path );

QList<QgsField> &fields();
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgslabelsearchtree.sip
Expand Up @@ -20,7 +20,11 @@ class QgsLabelSearchTree
#include "qgslabelsearchtree.h"
%End
public:

QgsLabelSearchTree();
%Docstring
Constructor for QgsLabelSearchTree.
%End
~QgsLabelSearchTree();


Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsobjectcustomproperties.sip
Expand Up @@ -23,7 +23,11 @@ class QgsObjectCustomProperties
#include "qgsobjectcustomproperties.h"
%End
public:

QgsObjectCustomProperties();
%Docstring
Constructor for QgsObjectCustomProperties.
%End

QStringList keys() const;
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgspluginlayerregistry.sip
Expand Up @@ -68,6 +68,9 @@ class QgsPluginLayerRegistry
public:

QgsPluginLayerRegistry();
%Docstring
Constructor for QgsPluginLayerRegistry.
%End
~QgsPluginLayerRegistry();


Expand Down
3 changes: 3 additions & 0 deletions python/core/qgspropertycollection.sip
Expand Up @@ -368,6 +368,9 @@ class QgsPropertyCollectionStack : QgsAbstractPropertyCollection
public:

QgsPropertyCollectionStack();
%Docstring
Constructor for QgsPropertyCollectionStack.
%End

~QgsPropertyCollectionStack();

Expand Down
4 changes: 4 additions & 0 deletions python/core/qgstrackedvectorlayertools.sip
Expand Up @@ -14,7 +14,11 @@ class QgsTrackedVectorLayerTools : QgsVectorLayerTools
#include "qgstrackedvectorlayertools.h"
%End
public:

QgsTrackedVectorLayerTools();
%Docstring
Constructor for QgsTrackedVectorLayerTools.
%End

virtual bool addFeature( QgsVectorLayer *layer, const QgsAttributeMap &defaultValues, const QgsGeometry &defaultGeometry, QgsFeature *feature ) const;

Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgsbilinearrasterresampler.sip
Expand Up @@ -20,7 +20,11 @@ Bilinear Raster Resampler
#include "qgsbilinearrasterresampler.h"
%End
public:

QgsBilinearRasterResampler();
%Docstring
Constructor for QgsBilinearRasterResampler.
%End

virtual void resample( const QImage &srcImage, QImage &dstImage );

Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgsrasterpipe.sip
Expand Up @@ -34,6 +34,10 @@ class QgsRasterPipe
};

QgsRasterPipe();
%Docstring
Constructor for QgsRasterPipe.
%End


~QgsRasterPipe();

Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgssourceselectproviderregistry.sip
Expand Up @@ -30,7 +30,11 @@ class QgsSourceSelectProviderRegistry
#include "qgssourceselectproviderregistry.h"
%End
public:

QgsSourceSelectProviderRegistry();
%Docstring
Constructor for QgsSourceSelectProviderRegistry.
%End

~QgsSourceSelectProviderRegistry();

Expand Down
3 changes: 3 additions & 0 deletions python/gui/symbology/qgssymbolwidgetcontext.sip
Expand Up @@ -26,6 +26,9 @@ class QgsSymbolWidgetContext
public:

QgsSymbolWidgetContext();
%Docstring
Constructor for QgsSymbolWidgetContext.
%End

QgsSymbolWidgetContext( const QgsSymbolWidgetContext &other );
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions src/core/fieldformatter/qgsvaluerelationfieldformatter.h
Expand Up @@ -49,6 +49,9 @@ class CORE_EXPORT QgsValueRelationFieldFormatter : public QgsFieldFormatter

typedef QVector < QgsValueRelationFieldFormatter::ValueRelationItem > ValueRelationCache;

/**
* Constructor for QgsValueRelationFieldFormatter.
*/
QgsValueRelationFieldFormatter() = default;

QString id() const override;
Expand Down
6 changes: 6 additions & 0 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -111,10 +111,16 @@ static GEOSInit geosinit;
class GEOSGeomScopedPtr
{
public:

/**
* Constructor for GEOSGeomScopedPtr, owning the specified \a geom.
*/
explicit GEOSGeomScopedPtr( GEOSGeometry *geom = nullptr ) : mGeom( geom ) {}
~GEOSGeomScopedPtr() { GEOSGeom_destroy_r( geosinit.ctxt, mGeom ); }

//! GEOSGeomScopedPtr cannot be copied
GEOSGeomScopedPtr( const GEOSGeomScopedPtr &rh ) = delete;
//! GEOSGeomScopedPtr cannot be copied
GEOSGeomScopedPtr &operator=( const GEOSGeomScopedPtr &rh ) = delete;

GEOSGeometry *get() const { return mGeom; }
Expand Down
4 changes: 4 additions & 0 deletions src/core/gps/qgsgpsconnectionregistry.h
Expand Up @@ -35,6 +35,10 @@ class QgsGPSConnection;
class CORE_EXPORT QgsGPSConnectionRegistry
{
public:

/**
* Constructor for QgsGPSConnectionRegistry.
*/
QgsGPSConnectionRegistry() = default;
~QgsGPSConnectionRegistry();

Expand Down
3 changes: 3 additions & 0 deletions src/core/qgscolorscheme.h
Expand Up @@ -268,6 +268,9 @@ class CORE_EXPORT QgsProjectColorScheme : public QgsColorScheme
{
public:

/**
* Constructor for QgsProjectColorScheme.
*/
QgsProjectColorScheme() = default;

virtual QString schemeName() const override { return QObject::tr( "Project colors" ); }
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgscredentials.h
Expand Up @@ -41,6 +41,9 @@ class CORE_EXPORT QgsCredentials
{
public:

/**
* Destructor.
*/
virtual ~QgsCredentials() = default;

bool get( const QString &realm, QString &username SIP_INOUT, QString &password SIP_INOUT, const QString &message = QString() );
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsdatadefinedsizelegend.h
Expand Up @@ -39,6 +39,10 @@ class QgsSizeScaleTransformer;
class CORE_EXPORT QgsDataDefinedSizeLegend
{
public:

/**
* Constructor for QgsDataDefinedSizeLegend.
*/
QgsDataDefinedSizeLegend() = default;

//! Copy constructor
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsexpressionfieldbuffer.h
Expand Up @@ -45,6 +45,9 @@ class CORE_EXPORT QgsExpressionFieldBuffer
QgsField field;
};

/**
* Constructor for QgsExpressionFieldBuffer.
*/
QgsExpressionFieldBuffer() = default;

/**
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsgmlschema.h
Expand Up @@ -39,6 +39,10 @@ class QgsFeature;
class CORE_EXPORT QgsGmlFeatureClass
{
public:

/**
* Constructor for QgsGmlFeatureClass.
*/
QgsGmlFeatureClass() = default;
QgsGmlFeatureClass( const QString &name, const QString &path );

Expand Down
4 changes: 4 additions & 0 deletions src/core/qgslabelsearchtree.h
Expand Up @@ -36,6 +36,10 @@ class QgsPointXY;
class CORE_EXPORT QgsLabelSearchTree
{
public:

/**
* Constructor for QgsLabelSearchTree.
*/
QgsLabelSearchTree() = default;
~QgsLabelSearchTree();

Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsobjectcustomproperties.h
Expand Up @@ -34,6 +34,10 @@ class QDomNode;
class CORE_EXPORT QgsObjectCustomProperties
{
public:

/**
* Constructor for QgsObjectCustomProperties.
*/
QgsObjectCustomProperties() = default;

//! Return list of stored keys
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgspluginlayerregistry.h
Expand Up @@ -66,6 +66,9 @@ class CORE_EXPORT QgsPluginLayerRegistry
{
public:

/**
* Constructor for QgsPluginLayerRegistry.
*/
QgsPluginLayerRegistry() = default;
~QgsPluginLayerRegistry();

Expand Down
3 changes: 3 additions & 0 deletions src/core/qgspropertycollection.h
Expand Up @@ -368,6 +368,9 @@ class CORE_EXPORT QgsPropertyCollectionStack : public QgsAbstractPropertyCollect
{
public:

/**
* Constructor for QgsPropertyCollectionStack.
*/
QgsPropertyCollectionStack() = default;

~QgsPropertyCollectionStack();
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgssqlstatement.cpp
Expand Up @@ -198,6 +198,9 @@ class QgsSQLStatementCollectTableNames: public QgsSQLStatement::RecursiveVisitor
public:
typedef QPair<QString, QString> TableColumnPair;

/**
* Constructor for QgsSQLStatementCollectTableNames.
*/
QgsSQLStatementCollectTableNames() = default;

void visit( const QgsSQLStatement::NodeColumnRef &n ) override;
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgstrackedvectorlayertools.h
Expand Up @@ -26,6 +26,10 @@ class CORE_EXPORT QgsTrackedVectorLayerTools : public QgsVectorLayerTools
{
Q_OBJECT
public:

/**
* Constructor for QgsTrackedVectorLayerTools.
*/
QgsTrackedVectorLayerTools() = default;

bool addFeature( QgsVectorLayer *layer, const QgsAttributeMap &defaultValues, const QgsGeometry &defaultGeometry, QgsFeature *feature ) const override;
Expand Down
4 changes: 4 additions & 0 deletions src/core/raster/qgsbilinearrasterresampler.h
Expand Up @@ -30,6 +30,10 @@
class CORE_EXPORT QgsBilinearRasterResampler: public QgsRasterResampler
{
public:

/**
* Constructor for QgsBilinearRasterResampler.
*/
QgsBilinearRasterResampler() = default;

void resample( const QImage &srcImage, QImage &dstImage ) override;
Expand Down
4 changes: 4 additions & 0 deletions src/core/raster/qgsrasterpipe.h
Expand Up @@ -58,7 +58,11 @@ class CORE_EXPORT QgsRasterPipe
HueSaturationRole = 7
};

/**
* Constructor for QgsRasterPipe.
*/
QgsRasterPipe() = default;

QgsRasterPipe( const QgsRasterPipe &pipe ) SIP_SKIP;

~QgsRasterPipe();
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -76,6 +76,10 @@ email : sherman at mrcc.com
class QgsMapCanvas::CanvasProperties
{
public:

/**
* Constructor for CanvasProperties.
*/
CanvasProperties() = default;

//!Flag to indicate status of mouse button
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgssourceselectproviderregistry.h
Expand Up @@ -37,6 +37,10 @@ class QgsSourceSelectProvider;
class GUI_EXPORT QgsSourceSelectProviderRegistry
{
public:

/**
* Constructor for QgsSourceSelectProviderRegistry.
*/
QgsSourceSelectProviderRegistry() = default;

~QgsSourceSelectProviderRegistry();
Expand Down
3 changes: 3 additions & 0 deletions src/gui/symbology/qgssymbolwidgetcontext.h
Expand Up @@ -35,6 +35,9 @@ class GUI_EXPORT QgsSymbolWidgetContext // clazy:exclude=rule-of-three
{
public:

/**
* Constructor for QgsSymbolWidgetContext.
*/
QgsSymbolWidgetContext() = default;

/** Copy constructor.
Expand Down
2 changes: 1 addition & 1 deletion tests/code_layout/doxygen_parser.py
Expand Up @@ -264,7 +264,7 @@ def memberSignature(self, elem):
signature = elem.find('name').text + a.text
else:
signature = elem.find('name').text
if signature.endsWith('= default'):
if signature.endswith('= default'):
signature = signature[:-len('= default')]
return signature
except:
Expand Down

0 comments on commit 6166d21

Please sign in to comment.