2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* tests/scripts/sipifyheader.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef qint64 QgsFeatureId;
|
|
|
|
|
2017-03-30 09:57:22 +02:00
|
|
|
typedef QSet<qint64 > QgsFeatureIds;
|
|
|
|
typedef QMap<qint64 , QMap<int, QVariant>> QgsChangedAttributesMap;
|
|
|
|
typedef QMap<qint64, QMap<int, QVariant> > QgsChangedAttributesMap;
|
|
|
|
typedef QMap<qint64, QMap<int, QVariant>> QgsChangedAttributesMap;
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
typedef QVector<QVariant> QgsSuperClass;
|
|
|
|
|
|
|
|
%MappedType QgsSuperClass
|
|
|
|
{
|
|
|
|
// The annotations are modified by astyle (these will be fixed by sipify.pl)
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgssipifyheader.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
%ConvertFromTypeCode
|
|
|
|
// Create the list.
|
|
|
|
PyObject *l;
|
|
|
|
return l;
|
|
|
|
%End
|
|
|
|
}
|
|
|
|
|
|
|
|
class QgsSipifyHeader : QtClass<QVariant>
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
Documentation goes here
|
2017-04-05 10:32:27 +10:00
|
|
|
|
|
|
|
Here's some comment mentioning another class QgsAutoAwesomemater.makeAwesome.
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
some other note
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
2017-04-02 12:53:31 +02:00
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
|
|
|
if ( sipCpp->headerType() == QgsSipifyHeader::Special )
|
|
|
|
sipType = sipType_QgsSpecialSipifyHeader;
|
|
|
|
else
|
|
|
|
sipType = sipType_QgsStandardSipifyHeader;
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
enum MyEnum
|
|
|
|
{
|
|
|
|
Success,
|
|
|
|
NoSuccess,
|
2017-04-03 14:09:28 +10:00
|
|
|
ImaginarySuccess,
|
|
|
|
RecursiveSuccess,
|
2017-03-29 16:15:07 +02:00
|
|
|
};
|
2017-04-03 13:53:29 +10:00
|
|
|
typedef QFlags<QgsSipifyHeader::MyEnum> Flags;
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-04 10:37:58 +02:00
|
|
|
struct Data
|
|
|
|
{
|
|
|
|
QString name;
|
|
|
|
int count;
|
|
|
|
};
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
explicit QgsSipifyHeader();
|
|
|
|
%Docstring
|
|
|
|
A constructor with definition in header
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsSipifyHeader( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
A classic constructor with arguments
|
|
|
|
%End
|
|
|
|
|
2017-04-02 10:54:04 +02:00
|
|
|
QgsSipifyHeader( bool a = true );
|
|
|
|
%Docstring
|
|
|
|
A constructor with no empty `()`
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsSipifyHeader( QList<Point> a, const Issues &b = Issues::weDontHaveIssues(), QgsClass *b = 0 );
|
|
|
|
%Docstring
|
|
|
|
A constructor with some special character types
|
|
|
|
%End
|
|
|
|
{}
|
|
|
|
|
2017-04-02 16:21:23 +10:00
|
|
|
QgsSipifyHeader();
|
|
|
|
%Docstring
|
|
|
|
Default constructor
|
2017-04-02 12:53:31 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
// QgsSipifyHeader &operator=( const QgsSipifyHeader other );
|
|
|
|
|
|
|
|
bool operator==( const QgsSipifyHeader other );
|
|
|
|
%Docstring
|
|
|
|
Comparison operator should be kept
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: bool
|
2017-04-02 16:21:23 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
void multilineMethod( const QgsPoint &startPoint,
|
|
|
|
QgsFeatureId featureId,
|
|
|
|
QgsVectorLayer *vl,
|
|
|
|
QgsSnapper::SnappingType snap_to ) const;
|
|
|
|
%Docstring
|
|
|
|
A multiline method signature
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
2017-04-17 10:49:29 +10:00
|
|
|
void nonAnnotatedMethodFollowingSkip();
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) /Factory/;
|
|
|
|
%Docstring
|
|
|
|
Factory annotation
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QgsMapLayerRenderer
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-02 21:19:52 +10:00
|
|
|
SomeObject *createAnother() /Factory/;
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: SomeObject
|
|
|
|
%End
|
2017-04-02 21:19:52 +10:00
|
|
|
|
2017-04-17 11:03:02 +10:00
|
|
|
SomeObject *createAnother2() /Factory/;
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
void LongDocStringMethod();
|
|
|
|
%Docstring
|
|
|
|
My long doc string
|
|
|
|
is not very interesting!
|
|
|
|
%End
|
|
|
|
|
2017-04-02 21:28:20 +10:00
|
|
|
void LongDocStringMethodWithBrief();
|
|
|
|
%Docstring
|
|
|
|
some brief
|
|
|
|
My long doc string
|
|
|
|
is not very interesting!
|
2017-04-05 10:32:27 +10:00
|
|
|
Here's some comment mentioning another class QgsAutoAwesomemater.makeLessAwesome.
|
2017-04-02 21:28:20 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-07 09:19:34 +10:00
|
|
|
MyPointer *pointerReturnValue();
|
|
|
|
%Docstring
|
|
|
|
I return a pointer. If something bad happens, I return None.
|
2017-04-07 11:23:53 +10:00
|
|
|
:return: pointer to something cool
|
|
|
|
:rtype: MyPointer
|
2017-04-07 09:19:34 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
bool isOKwithErrMesg( QString &ErrMsg /Out/ );
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
void InOutParam( bool &ok = true /In,Out/ );
|
|
|
|
|
|
|
|
void setDiagramRenderer( QgsDiagramRenderer *r /Transfer/ );
|
|
|
|
|
2017-03-30 09:57:22 +02:00
|
|
|
void differentDefaultValue( bool defaultValue = false , QWidget *parent = 0, QString msg = "hello" );
|
|
|
|
|
2017-04-02 10:54:04 +02:00
|
|
|
void differentType( QList<qint64> & list );
|
2017-03-30 09:57:22 +02:00
|
|
|
|
|
|
|
void complexDefaultValueAndType( QList<QPair<qint64 , QMap<int, QString>>> list = QList<QPair<qint64, QMap<int, QString>>> );
|
|
|
|
%Docstring
|
|
|
|
complex default value and type (i.e. containing commas) should be given as a string with single quotes
|
|
|
|
%End
|
|
|
|
|
2017-04-07 11:23:53 +10:00
|
|
|
int inlineKeyWordShouldNotAppear();
|
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
QString labelForRange( double lower, double upper ) const /PyName=labelForLowerUpper/;
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
void setComposition( QgsComposition *c /KeepReference/ );
|
|
|
|
|
|
|
|
void removeProxyFactory( QNetworkProxyFactory *factory /TransferBack/ );
|
|
|
|
|
|
|
|
bool removeFunctionBody( const QList<int, QString> &list, QgsVectorLayer *vl );
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2017-04-07 09:14:44 +10:00
|
|
|
QgsRaster::RasterBuildPyramids buildPyramidsFlag() const;
|
|
|
|
%Docstring
|
|
|
|
Removing function body with namespaced return value
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QgsRaster.RasterBuildPyramids
|
2017-04-07 09:14:44 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-11 16:21:38 +10:00
|
|
|
virtual const QgsLayerMetadata &metadata() const;
|
|
|
|
%Docstring
|
|
|
|
Removing function body with virtual const reference
|
|
|
|
:rtype: QgsLayerMetadata
|
|
|
|
%End
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-02 20:45:41 +02:00
|
|
|
virtual int overriddenProperty();
|
2017-04-07 11:23:53 +10:00
|
|
|
QString returnTypeString() const;
|
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
double returnTypeDouble() const;
|
|
|
|
%Docstring
|
|
|
|
:rtype: float
|
|
|
|
%End
|
|
|
|
|
|
|
|
QList< QgsAnnotation * > returnTypeList();
|
|
|
|
%Docstring
|
|
|
|
:rtype: list of QgsAnnotation
|
|
|
|
%End
|
|
|
|
|
|
|
|
QVector< QgsAnnotation > returnTypeVector();
|
|
|
|
%Docstring
|
|
|
|
:rtype: list of QgsAnnotation
|
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList returnTypeStringList();
|
|
|
|
%Docstring
|
|
|
|
:rtype: list of str
|
|
|
|
%End
|
|
|
|
|
|
|
|
QSet<QgsActionScope> returnTypeSet();
|
|
|
|
%Docstring
|
|
|
|
:rtype: set of QgsActionScope
|
|
|
|
%End
|
|
|
|
|
2017-04-08 10:06:55 +02:00
|
|
|
This<Member> shouldBeIncluded;
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
protected:
|
|
|
|
bool thisShouldBeListed();
|
2017-04-07 11:23:53 +10:00
|
|
|
%Docstring
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-05 09:46:14 +02:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
private:
|
|
|
|
void privateMethodSIPRUNareShown();
|
|
|
|
public:
|
|
|
|
void FallBackToPublic();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClassWithPrivateInheritanceOnly
|
|
|
|
{
|
2017-04-02 20:30:22 +10:00
|
|
|
%Docstring
|
|
|
|
Documentation goes here
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
|
|
|
%End
|
2017-04-07 10:36:40 +02:00
|
|
|
public:
|
2017-03-29 16:15:07 +02:00
|
|
|
explicit ClassWithPrivateInheritanceOnly();
|
|
|
|
%Docstring
|
|
|
|
A constructor with definition in header on several lines
|
|
|
|
%End
|
|
|
|
|
2017-04-07 10:36:40 +02:00
|
|
|
};
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-17 10:49:29 +10:00
|
|
|
|
2017-04-05 14:14:25 +02:00
|
|
|
class AbstractClass /Abstract/
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
Documentation goes here
|
|
|
|
%End
|
2017-04-03 13:53:29 +10:00
|
|
|
|
2017-04-05 14:14:25 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
explicit AbstractClass();
|
|
|
|
%Docstring
|
|
|
|
A constructor
|
|
|
|
%End
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-08 08:18:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
QFlags<QgsSipifyHeader::MyEnum> operator|(QgsSipifyHeader::MyEnum f1, QFlags<QgsSipifyHeader::MyEnum> f2);
|
|
|
|
|
|
|
|
|
2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* tests/scripts/sipifyheader.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|