Skip to content

Commit

Permalink
[sipify] Another batch of sip
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 15, 2017
1 parent 922b162 commit 2abb146
Show file tree
Hide file tree
Showing 57 changed files with 3,487 additions and 1,576 deletions.
40 changes: 0 additions & 40 deletions python/auto_sip.blacklist
Original file line number Diff line number Diff line change
@@ -1,49 +1,9 @@
core/conversions.sip
core/qgsexception.sip
core/qgis.sip
core/qgsdataitemprovider.sip
core/qgsdataitemproviderregistry.sip
core/qgsdbfilterproxymodel.sip
core/qgseditformconfig.sip
core/qgseditorwidgetsetup.sip
core/qgserror.sip
core/qgsexpressioncontext.sip
core/qgsexpressioncontextgenerator.sip
core/qgsfeaturerequest.sip
core/qgsgeometrysimplifier.sip
core/qgsgeometryvalidator.sip
core/qgsmaptopixelgeometrysimplifier.sip
core/qgstransactiongroup.sip
core/qgsdartmeasurement.sip
core/qgsexpressionfieldbuffer.sip
core/qgsfontutils.sip
core/qgslabelsearchtree.sip
core/qgslegendrenderer.sip
core/qgslegendsettings.sip
core/qgslogger.sip
core/qgsmaphittest.sip
core/qgsmaplayerdependency.sip
core/qgsmaplayerlegend.sip
core/qgsmaplayerrenderer.sip
core/qgsmaplayerstylemanager.sip
core/qgsmaprenderercache.sip
core/qgsmaprenderercustompainterjob.sip
core/qgsmaprendererjob.sip
core/qgsmaprendererparalleljob.sip
core/qgsmaprenderersequentialjob.sip
core/qgsmapsettings.sip
core/qgsmaptopixel.sip
core/qgsmapunitscale.sip
core/qgsmargins.sip
core/qgsmessageoutput.sip
core/qgsmimedatautils.sip
core/qgsmultirenderchecker.sip
core/qgsnetworkaccessmanager.sip
core/qgsnetworkcontentfetcher.sip
core/qgsobjectcustomproperties.sip
core/qgsogcutils.sip
core/qgsoptionalexpression.sip
core/qgsowsconnection.sip
core/qgspaintenginehack.sip
core/qgspainting.sip
core/qgspallabeling.sip
Expand Down
29 changes: 28 additions & 1 deletion python/core/qgsdartmeasurement.sip
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdartmeasurement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsDartMeasurement
{

%TypeHeaderCode
#include <qgsdartmeasurement.h>
#include "qgsdartmeasurement.h"
%End
public:
enum Type
Expand All @@ -16,8 +28,23 @@ class QgsDartMeasurement
QgsDartMeasurement( const QString &name, Type type, const QString &value );

const QString toString() const;
%Docstring
:rtype: str
%End

void send() const;

static const QString typeToString( QgsDartMeasurement::Type type );
%Docstring
:rtype: str
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdartmeasurement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
50 changes: 45 additions & 5 deletions python/core/qgsdataitemprovider.sip
Original file line number Diff line number Diff line change
@@ -1,20 +1,60 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsDataItemProvider
{
%Docstring
This is the interface for those who want to add custom data items to the browser tree.

The method createDataItem() is ever called only if capabilities() return non-zero value.
There are two occasions when createDataItem() is called:
1. to create root items (passed path is empty, parent item is null).
2. to create items in directory structure. For this capabilities have to return at least
of the following: QgsDataProider.Dir or QgsDataProvider.File. Passed path is the file
or directory being inspected, parent item is a valid QgsDirectoryItem

.. versionadded:: 2.10
%End

%TypeHeaderCode
#include <qgsdataitemprovider.h>
#include "qgsdataitemprovider.h"
%End
public:
virtual ~QgsDataItemProvider();

//! Human-readable name of the provider name
virtual QString name() = 0;
%Docstring
Human-readable name of the provider name
:rtype: str
%End

//! Return combination of flags from QgsDataProvider::DataCapabilities
virtual int capabilities() = 0;
%Docstring
Return combination of flags from QgsDataProvider.DataCapabilities
:rtype: int
%End

//! Create a new instance of QgsDataItem (or null) for given path and parent item.
//! Caller takes responsibility of deleting created items.
virtual QgsDataItem *createDataItem( const QString &path, QgsDataItem *parentItem ) = 0 /Factory/;
%Docstring
Caller takes responsibility of deleting created items.
:rtype: QgsDataItem
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
59 changes: 44 additions & 15 deletions python/core/qgsdataitemproviderregistry.sip
Original file line number Diff line number Diff line change
@@ -1,30 +1,59 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





/**
* This singleton class keeps a list of data item providers that may add items to the browser tree.
* When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...)
*
* @note added in 2.10
*/
class QgsDataItemProviderRegistry
{
%Docstring
This class keeps a list of data item providers that may add items to the browser tree.
When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...)

QgsDataItemProviderRegistry is not usually directly created, but rather accessed through
QgsApplication.dataItemProviderRegistry().

.. versionadded:: 2.10
%End

%TypeHeaderCode
#include <qgsdataitemproviderregistry.h>
#include "qgsdataitemproviderregistry.h"
%End
public:

QgsDataItemProviderRegistry();

~QgsDataItemProviderRegistry();

//! Get list of available providers
QList<QgsDataItemProvider*> providers() const;

//! Add a provider implementation. Takes ownership of the object.
QList<QgsDataItemProvider *> providers() const;
%Docstring
Get list of available providers
:rtype: list of QgsDataItemProvider
%End

void addProvider( QgsDataItemProvider *provider /Transfer/ );
%Docstring
Add a provider implementation. Takes ownership of the object.
%End

//! Remove provider implementation from the list (provider object is deleted)
void removeProvider( QgsDataItemProvider *provider );

private:

QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry &rh );
%Docstring
Remove provider implementation from the list (provider object is deleted)
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
43 changes: 39 additions & 4 deletions python/core/qgsdbfilterproxymodel.sip
Original file line number Diff line number Diff line change
@@ -1,16 +1,51 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdbfilterproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsDatabaseFilterProxyModel: QSortFilterProxyModel
{
%Docstring
A class that implements a custom filter and can be used
as a proxy for QgsDbTableModel
.. versionadded:: 3.0
%End

%TypeHeaderCode
#include <qgsdbfilterproxymodel.h>
#include "qgsdbfilterproxymodel.h"
%End
public:

QgsDatabaseFilterProxyModel( QObject *parent /TransferThis/ = 0 );
~QgsDatabaseFilterProxyModel();
/** Calls QSortFilterProxyModel::setFilterWildcard and triggers update*/
%Docstring
Constructor for QgsDatabaseFilterProxyModel.
%End

void _setFilterWildcard( const QString &pattern );
/** Calls QSortFilterProxyModel::setFilterRegExp and triggers update*/
%Docstring
Calls QSortFilterProxyModel.setFilterWildcard and triggers update
%End

void _setFilterRegExp( const QString &pattern );
%Docstring
Calls QSortFilterProxyModel.setFilterRegExp and triggers update
%End

protected:
virtual bool filterAcceptsRow( int row, const QModelIndex &source_parent ) const;
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdbfilterproxymodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
Loading

0 comments on commit 2abb146

Please sign in to comment.