2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-06-02 21:39:44 +02:00
|
|
|
* tests/code_layout/sipifyheader.h *
|
2017-04-01 11:05:22 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-01 18:32:37 +03:00
|
|
|
%ModuleHeaderCode
|
2017-05-01 16:08:35 +02:00
|
|
|
#include <qgsnetworkspeedstrategy.h>
|
|
|
|
#include <qgsnetworkdistancestrategy.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2017-05-18 14:16:42 +02:00
|
|
|
|
|
|
|
typedef QtClass<QVariant> QtClassQVariantBase;
|
|
|
|
|
|
|
|
class QgsSipifyHeader : QtClassQVariantBase
|
2017-03-29 16:15:07 +02:00
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:50:32 -04:00
|
|
|
Documentation goes here
|
|
|
|
|
|
|
|
Here's some comment mentioning another class QgsAutoAwesomemater.makeAwesome.
|
2017-04-05 10:32:27 +10:00
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
some other note
|
2018-05-28 11:54:35 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
2017-05-18 14:16:42 +02:00
|
|
|
#include "qtclass.h"
|
|
|
|
typedef QtClass<QVariant> QtClassQVariantBase;
|
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-04-19 15:03:31 +02:00
|
|
|
SuccessCombination,
|
2017-06-02 12:03:19 +02:00
|
|
|
PythonName /PyName=DifferentName/,
|
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-20 11:18:29 +02:00
|
|
|
|
2017-04-24 14:52:10 +02:00
|
|
|
enum OneLiner { Success, NoSuccess };
|
|
|
|
|
2017-04-04 10:37:58 +02:00
|
|
|
struct Data
|
|
|
|
{
|
2017-04-19 15:49:22 +02:00
|
|
|
Data( QgsMapLayer *layer, Qstring name );
|
2017-04-26 11:04:25 +02:00
|
|
|
|
2017-04-19 15:49:22 +02:00
|
|
|
QString mName;
|
|
|
|
int mCount;
|
|
|
|
QgsMapLayer *mLayer;
|
2018-11-27 13:44:54 -04:00
|
|
|
QList<QAction *> contextMenuActions;
|
2017-04-04 10:37:58 +02:00
|
|
|
};
|
|
|
|
|
2017-05-02 20:34:25 +02:00
|
|
|
static const int MONTHS;
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
explicit QgsSipifyHeader();
|
|
|
|
%Docstring
|
|
|
|
A constructor with definition in header
|
|
|
|
%End
|
2017-04-26 11:04:25 +02:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
QgsSipifyHeader( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:50:32 -04:00
|
|
|
A classic constructor with arguments
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-02 10:54:04 +02:00
|
|
|
QgsSipifyHeader( bool a = true );
|
|
|
|
%Docstring
|
|
|
|
A constructor with no empty `()`
|
|
|
|
%End
|
2017-04-26 11:04:25 +02:00
|
|
|
|
2017-04-02 10:54:04 +02:00
|
|
|
QgsSipifyHeader( QList<Point> a, const Issues &b = Issues::weDontHaveIssues(), QgsClass *b = 0 );
|
|
|
|
%Docstring
|
|
|
|
A constructor with some special character types
|
|
|
|
%End
|
|
|
|
|
2017-04-29 17:36:40 +02:00
|
|
|
Constructor();
|
|
|
|
virtual ~Destructor();
|
|
|
|
|
|
|
|
Constructor( const QString &name,
|
|
|
|
bool optional = false,
|
|
|
|
const QVariant &defaultValue = QVariant() );
|
2017-04-29 16:16:17 +02:00
|
|
|
|
2017-04-02 16:21:23 +10:00
|
|
|
QgsSipifyHeader();
|
|
|
|
%Docstring
|
|
|
|
Default constructor
|
2017-04-02 12:53:31 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-26 11:31:56 +02:00
|
|
|
|
2017-04-02 12:53:31 +02:00
|
|
|
bool operator==( const QgsSipifyHeader other );
|
2017-04-02 16:21:23 +10:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
void multilineMethod( const QgsPointXY &startPoint,
|
2017-03-29 16:15:07 +02:00
|
|
|
QgsFeatureId featureId,
|
|
|
|
QgsVectorLayer *vl,
|
2017-04-17 17:05:45 +08:00
|
|
|
QgsSnappingResult::SnappingType snap_to ) const;
|
2017-03-29 16:15:07 +02:00
|
|
|
%Docstring
|
|
|
|
A multiline method signature
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
2017-04-17 10:49:29 +10:00
|
|
|
void nonAnnotatedMethodFollowingSkip();
|
|
|
|
|
2017-04-20 14:37:22 +02:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) /Factory/;
|
|
|
|
%Docstring
|
|
|
|
Factory annotation
|
|
|
|
%End
|
|
|
|
|
2017-04-02 21:19:52 +10:00
|
|
|
SomeObject *createAnother() /Factory/;
|
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual SomeObject *createAnother2() /Factory/;
|
2017-04-17 11:03:02 +10:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
void LongDocStringMethod();
|
|
|
|
%Docstring
|
2017-12-15 10:50:32 -04:00
|
|
|
My long doc string
|
|
|
|
is not very interesting!
|
2017-03-29 16:15:07 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-02 21:28:20 +10:00
|
|
|
void LongDocStringMethodWithBrief();
|
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
some brief
|
2017-12-15 10:50:32 -04:00
|
|
|
My long doc ``string``
|
|
|
|
is not very interesting!
|
|
|
|
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
|
2019-02-27 07:10:43 +10:00
|
|
|
I return a pointer. If something bad happens, I return ``None``.
|
2017-12-15 10:50:32 -04:00
|
|
|
|
|
|
|
:return: pointer to something cool
|
2017-04-07 09:19:34 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
bool isOKwithErrMesg( QString &ErrMsg /Out/ );
|
|
|
|
|
|
|
|
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();
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
QString labelForRange( double lower, double upper ) const /PyName=labelForLowerUpper/;
|
|
|
|
|
|
|
|
void setComposition( QgsComposition *c /KeepReference/ );
|
|
|
|
|
|
|
|
void removeProxyFactory( QNetworkProxyFactory *factory /TransferBack/ );
|
|
|
|
|
2017-04-26 11:04:25 +02:00
|
|
|
bool removeFunctionBody( const QList<int, QString> &list, QgsVectorLayer *vl, Some::Thing _part = -1 /*default =-1*/ );
|
2017-04-24 14:52:10 +02:00
|
|
|
|
2017-04-27 10:38:12 +02:00
|
|
|
|
2017-04-26 11:04:25 +02:00
|
|
|
void multilineBodyAndDefinition( const QList<int,
|
|
|
|
QString> &list,
|
|
|
|
QgsVectorLayer *vl,
|
|
|
|
Some::Thing _part = -1 /*default =-1*/ );
|
|
|
|
|
2017-04-07 09:14:44 +10:00
|
|
|
QgsRaster::RasterBuildPyramids buildPyramidsFlag() const;
|
|
|
|
%Docstring
|
|
|
|
Removing function body with namespaced return value
|
|
|
|
%End
|
|
|
|
|
2017-04-11 16:21:38 +10:00
|
|
|
virtual const QgsLayerMetadata &metadata() const;
|
|
|
|
%Docstring
|
|
|
|
Removing function body with virtual const reference
|
|
|
|
%End
|
|
|
|
|
2017-04-24 16:37:23 +02:00
|
|
|
bool myMultiLineBody();
|
|
|
|
%Docstring
|
|
|
|
Mulitline body
|
|
|
|
%End
|
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2017-04-02 20:45:41 +02:00
|
|
|
virtual int overriddenProperty();
|
2017-04-27 10:38:12 +02:00
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual int overrideWithoutVirtual();
|
|
|
|
|
2017-04-20 11:18:29 +02:00
|
|
|
|
2017-04-20 13:58:56 +02:00
|
|
|
virtual void overrideWithoutVirtualMultLine( const QList<int, QString> &list1,
|
|
|
|
const QList<int, QString> &list2 );
|
|
|
|
|
2017-04-07 11:23:53 +10:00
|
|
|
QString returnTypeString() const;
|
|
|
|
|
|
|
|
double returnTypeDouble() const;
|
|
|
|
|
|
|
|
QList< QgsAnnotation * > returnTypeList();
|
|
|
|
|
|
|
|
QVector< QgsAnnotation > returnTypeVector();
|
|
|
|
|
|
|
|
QStringList returnTypeStringList();
|
|
|
|
|
|
|
|
QSet<QgsActionScope> returnTypeSet();
|
|
|
|
|
2017-04-08 10:06:55 +02:00
|
|
|
This<Member> shouldBeIncluded;
|
|
|
|
|
2017-04-19 11:16:09 +02:00
|
|
|
static QString invokableMethod();
|
|
|
|
|
2017-04-18 09:53:00 +10:00
|
|
|
bool initializedMember;
|
|
|
|
|
2017-04-24 11:50:46 +02:00
|
|
|
struct PublicStruct
|
|
|
|
{
|
2017-04-26 08:22:27 +02:00
|
|
|
explicit PublicStruct( int _part = -1, int _ring = -1, int _vertex = -1, VertexType _type = SegmentVertex );
|
|
|
|
|
|
|
|
bool isValid( const QgsAbstractGeometry *geom ) const;
|
|
|
|
|
|
|
|
int part;
|
|
|
|
int ring;
|
|
|
|
int vertex;
|
|
|
|
VertexType type;
|
2017-04-24 11:50:46 +02:00
|
|
|
}
|
|
|
|
|
2017-04-30 17:16:33 +02:00
|
|
|
void combinedAnnotations() /Factory,PyName=otherName/;
|
2017-05-04 07:36:35 +02:00
|
|
|
void multiAnnotationArg( SomeClass **object /Out,TransferBack/, int &another /Out/ );
|
2017-04-30 17:16:33 +02:00
|
|
|
|
2017-07-19 10:34:46 +02:00
|
|
|
void simple();
|
2017-04-26 11:31:56 +02:00
|
|
|
%Docstring
|
|
|
|
remove argument
|
|
|
|
%End
|
2017-07-19 10:37:28 +02:00
|
|
|
void method();
|
|
|
|
void test();
|
2017-04-26 11:31:56 +02:00
|
|
|
void avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers );
|
|
|
|
|
2017-07-19 10:34:46 +02:00
|
|
|
void position();
|
2017-04-26 11:31:56 +02:00
|
|
|
void position( bool keep );
|
|
|
|
void position( bool keep, bool keep );
|
|
|
|
void position( bool keep );
|
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
static SIP_PYLIST changeReturnType( QVector<int> *resultTree = 0, QVector<double> &resultCost = 0 );
|
2017-05-03 07:22:30 +02:00
|
|
|
|
2017-05-01 00:13:26 +02:00
|
|
|
Whatever &operator[]( int i ) /Factory/;
|
2017-04-30 16:52:10 +02:00
|
|
|
%MethodCode
|
2017-05-01 00:13:26 +02:00
|
|
|
....
|
2017-04-30 16:52:10 +02:00
|
|
|
%End
|
2017-05-01 00:13:26 +02:00
|
|
|
|
2017-04-26 07:47:58 +02:00
|
|
|
void ZshouldBeShown();
|
|
|
|
|
2017-04-27 10:38:12 +02:00
|
|
|
void methodCodeWithMultiLineDef();
|
|
|
|
%MethodCode
|
|
|
|
if ( QgsWkbTypes::flatType( a0 ) != QgsWkbTypes::Point )
|
|
|
|
{
|
|
|
|
multiLineDef( PyExc_ValueError,
|
|
|
|
QString( "%1 is not nice" ).arg( QgsWkbTypes::displayString( a0 ) ).toUtf8().constData() );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-06-01 12:18:43 +02:00
|
|
|
sipCpp = new sipQgsPoint( a0, a1, a2, a3, a4 );
|
2017-04-27 10:38:12 +02:00
|
|
|
}
|
|
|
|
%End
|
2017-04-26 07:47:58 +02:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
protected:
|
|
|
|
bool thisShouldBeListed();
|
|
|
|
|
2017-04-05 09:46:14 +02:00
|
|
|
|
2017-03-29 16:15:07 +02:00
|
|
|
private:
|
|
|
|
void privateMethodSIPRUNareShown();
|
|
|
|
public:
|
|
|
|
void FallBackToPublic();
|
|
|
|
|
2017-04-24 08:48:12 +02:00
|
|
|
private:
|
2018-01-16 11:54:23 -04:00
|
|
|
void ShowThisPrivateOne();
|
2017-03-29 16:15:07 +02:00
|
|
|
};
|
|
|
|
|
2017-05-08 07:34:37 +02:00
|
|
|
class ClassWithPrivateInheritanceOnly /Abstract/
|
2017-03-29 16:15:07 +02:00
|
|
|
{
|
2017-04-02 20:30:22 +10:00
|
|
|
%Docstring
|
2017-12-15 10:50:32 -04:00
|
|
|
Documentation goes here
|
2017-04-02 20:30:22 +10:00
|
|
|
%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
|
2017-12-15 10:50:32 -04:00
|
|
|
Documentation goes here
|
2017-04-05 14:14:25 +02:00
|
|
|
%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-04-26 11:04:25 +02:00
|
|
|
|
2017-04-08 08:18:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
QFlags<QgsSipifyHeader::MyEnum> operator|(QgsSipifyHeader::MyEnum f1, QFlags<QgsSipifyHeader::MyEnum> f2);
|
|
|
|
|
|
|
|
|
2017-05-18 14:16:42 +02:00
|
|
|
|
|
|
|
typedef QgsTemplate<Something> QgsTemplateSomethingBase;
|
|
|
|
|
|
|
|
class TemplateInheritance1 : QgsTemplateSomethingBase
|
2017-05-16 08:39:03 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
2017-05-18 14:16:42 +02:00
|
|
|
#include "qgstemplate.h"
|
|
|
|
typedef QgsTemplate<Something> QgsTemplateSomethingBase;
|
2017-05-16 08:39:03 +02:00
|
|
|
%End
|
|
|
|
}
|
|
|
|
class TemplateInheritance2
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
|
|
|
%End
|
|
|
|
}
|
2017-05-18 14:16:42 +02:00
|
|
|
|
|
|
|
typedef QgsTemplate<Something> QgsTemplateSomethingBase;
|
|
|
|
|
|
|
|
class TemplateInheritance3 : QgsTemplateSomethingBase, SomethingElse
|
2017-05-16 08:39:03 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
2017-05-18 14:16:42 +02:00
|
|
|
#include "qgstemplate.h"
|
|
|
|
typedef QgsTemplate<Something> QgsTemplateSomethingBase;
|
2017-05-16 08:39:03 +02:00
|
|
|
%End
|
|
|
|
}
|
|
|
|
class TemplateInheritance4 : SomethingElse1, SomethingElse2
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
|
|
|
%End
|
|
|
|
}
|
|
|
|
class TemplateInheritance5 : SomethingElse
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "sipifyheader.h"
|
|
|
|
%End
|
|
|
|
}
|
|
|
|
|
2017-04-20 11:18:29 +02:00
|
|
|
|
2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-06-02 21:39:44 +02:00
|
|
|
* tests/code_layout/sipifyheader.h *
|
2017-04-01 11:05:22 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|