Skip to content

Commit

Permalink
More missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 6166d21 commit 9b04589
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/analysis/network/qgsgraph.sip
Expand Up @@ -107,7 +107,11 @@ class QgsGraph
#include "qgsgraph.h"
%End
public:

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


int addVertex( const QgsPointXY &pt );
Expand Down
5 changes: 5 additions & 0 deletions python/core/diagram/qgsdiagram.sip
Expand Up @@ -19,6 +19,7 @@ class QgsDiagram
#include "qgsdiagram.h"
%End
public:

virtual ~QgsDiagram();

virtual QgsDiagram *clone() const = 0 /Factory/;
Expand Down Expand Up @@ -71,7 +72,11 @@ Returns the size in map units the diagram will use to render. Interpolate size
%End

protected:

QgsDiagram();
%Docstring
Constructor for QgsDiagram.
%End
QgsDiagram( const QgsDiagram &other );

void setPenWidth( QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c );
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgscredentials.sip
Expand Up @@ -73,7 +73,11 @@ retrieves instance
%End

protected:

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

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

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

const QgsPathResolver &pathResolver() const;
%Docstring
Expand Down
10 changes: 10 additions & 0 deletions python/core/raster/qgsrastertransparency.sip
Expand Up @@ -19,7 +19,11 @@ class QgsRasterTransparency
#include "qgsrastertransparency.h"
%End
public:

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

struct TransparentThreeValuePixel
{
Expand Down Expand Up @@ -87,8 +91,14 @@ True if there are no entries in the pixel lists except the nodata value
%End

void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
%Docstring
Writes the transparency information to an XML document.
%End

void readXml( const QDomElement &elem );
%Docstring
Reads the transparency information from an XML document.
%End

};
/************************************************************************
Expand Down
4 changes: 4 additions & 0 deletions src/analysis/network/qgsgraph.h
Expand Up @@ -131,6 +131,10 @@ class ANALYSIS_EXPORT QgsGraphVertex
class ANALYSIS_EXPORT QgsGraph
{
public:

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

// Graph constructing methods
Expand Down
5 changes: 5 additions & 0 deletions src/core/diagram/qgsdiagram.h
Expand Up @@ -37,6 +37,7 @@ class QgsAttributes;
class CORE_EXPORT QgsDiagram
{
public:

virtual ~QgsDiagram() { clearCache(); }

/** Returns an instance that is equivalent to this one
Expand Down Expand Up @@ -73,6 +74,10 @@ class CORE_EXPORT QgsDiagram
virtual double legendSize( double value, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is ) const = 0;

protected:

/**
* Constructor for QgsDiagram.
*/
QgsDiagram() = default;
QgsDiagram( const QgsDiagram &other );

Expand Down
4 changes: 4 additions & 0 deletions src/core/qgscredentials.h
Expand Up @@ -75,6 +75,10 @@ class CORE_EXPORT QgsCredentials
QMutex *mutex() { return &mMutex; }

protected:

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

//! request a password
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsreadwritecontext.h
Expand Up @@ -29,6 +29,10 @@
class CORE_EXPORT QgsReadWriteContext
{
public:

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

//! Returns path resolver for conversion between relative and absolute paths
Expand Down
10 changes: 10 additions & 0 deletions src/core/raster/qgsrastertransparency.h
Expand Up @@ -32,6 +32,10 @@ class CORE_EXPORT QgsRasterTransparency
{

public:

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

//
Expand Down Expand Up @@ -82,8 +86,14 @@ class CORE_EXPORT QgsRasterTransparency
//! True if there are no entries in the pixel lists except the nodata value
bool isEmpty() const;

/**
* Writes the transparency information to an XML document.
*/
void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;

/**
* Reads the transparency information from an XML document.
*/
void readXml( const QDomElement &elem );

private:
Expand Down

0 comments on commit 9b04589

Please sign in to comment.