Skip to content

Commit d3bc0e3

Browse files
committed
[sip] mass introduction of annotations into headers
1 parent b249d48 commit d3bc0e3

File tree

243 files changed

+724
-505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+724
-505
lines changed

src/analysis/interpolation/NormVecDecorator.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define NORMVECDECORATOR_H
1919

2020
#include "TriDecorator.h"
21+
#include "qgis.h"
2122
#include <TriangleInterpolator.h>
2223
#include <MathUtils.h>
2324
#include "qgslogger.h"
@@ -52,7 +53,7 @@ class ANALYSIS_EXPORT NormVecDecorator: public TriDecorator
5253
//! Returns a pointer to the normal vector for the point with the number n
5354
Vector3D *getNormal( int n ) const;
5455
//! Finds out, in which triangle a point with coordinates x and y is and assigns the triangle points to p1, p2, p3 and the estimated normals to v1, v2, v3. The vectors are normally taken from 'mNormVec', except if p1, p2 or p3 is a point on a breakline. In this case, the normal is calculated on-the-fly. Returns false, if something went wrong and true otherwise
55-
bool getTriangle( double x, double y, Point3D *p1, Vector3D *v1, Point3D *p2, Vector3D *v2, Point3D *p3, Vector3D *v3 );
56+
bool getTriangle( double x, double y, Point3D *p1 SIP_OUT, Vector3D *v1 SIP_OUT, Point3D *p2 SIP_OUT, Vector3D *v2 SIP_OUT, Point3D *p3 SIP_OUT, Vector3D *v3 SIP_OUT );
5657

5758
/** This function behaves similar to the one above. Additionally, the numbers of the points are returned (ptn1, ptn2, ptn3) as well as the PointStates of the triangle points (state1, state2, state3)
5859
* \note not available in Python bindings

src/analysis/interpolation/Triangulation.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define TRIANGULATION_H
1919

2020
#include <QList>
21+
#include "qgis.h"
2122
#include <qpainter.h>
2223
#include <TriangleInterpolator.h>
2324
#include "qgis_analysis.h"
@@ -42,7 +43,7 @@ class ANALYSIS_EXPORT Triangulation
4243
* Adds a line (e.g. a break-, structure- or an isoline) to the triangulation.
4344
* The class takes ownership of the line object and its points
4445
*/
45-
virtual void addLine( Line3D *line, bool breakline ) = 0;
46+
virtual void addLine( Line3D *line SIP_TRANSFER, bool breakline ) = 0;
4647

4748
/**
4849
* Adds a point to the triangulation
@@ -71,10 +72,10 @@ class ANALYSIS_EXPORT Triangulation
7172
/** Finds out in which triangle the point with coordinates x and y is and
7273
* assigns the numbers of the vertices to 'n1', 'n2' and 'n3' and the vertices to 'p1', 'p2' and 'p3'
7374
*/
74-
virtual bool getTriangle( double x, double y, Point3D *p1, int *n1, Point3D *p2, int *n2, Point3D *p3, int *n3 ) = 0;
75+
virtual bool getTriangle( double x, double y, Point3D *p1, int *n1 SIP_OUT, Point3D *p2 SIP_OUT, int *n2 SIP_OUT, Point3D *p3 SIP_OUT, int *n3 SIP_OUT ) = 0;
7576

7677
//! Finds out, in which triangle the point with coordinates x and y is and assigns the points at the vertices to 'p1', 'p2' and 'p3
77-
virtual bool getTriangle( double x, double y, Point3D *p1, Point3D *p2, Point3D *p3 ) = 0;
78+
virtual bool getTriangle( double x, double y, Point3D *p1 SIP_OUT, Point3D *p2 SIP_OUT, Point3D *p3 SIP_OUT ) = 0;
7879

7980
//! Returns the number of the point opposite to the triangle points p1, p2 (which have to be on a halfedge)
8081
virtual int getOppositePoint( int p1, int p2 ) = 0;

src/analysis/network/qgsgraphbuilder.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#define QGSGRAPHBUILDER_H
1818

1919
#include "qgsgraphbuilderinterface.h"
20+
#include "qgis.h"
2021

2122
#include <qgsspatialindex.h>
2223
#include "qgis_analysis.h"
@@ -52,7 +53,7 @@ class ANALYSIS_EXPORT QgsGraphBuilder : public QgsGraphBuilderInterface
5253
/**
5354
* Returns generated QgsGraph
5455
*/
55-
QgsGraph *graph();
56+
QgsGraph *graph() SIP_FACTORY;
5657

5758
private:
5859

src/analysis/raster/qgsrastercalcnode.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define QGSRASTERCALCNODE_H
2121

2222
#include <QMap>
23+
#include "qgis.h"
2324
#include <QString>
2425
#include "qgis_analysis.h"
2526

@@ -98,7 +99,7 @@ class ANALYSIS_EXPORT QgsRasterCalcNode
9899
*/
99100
bool calculate( QMap<QString, QgsRasterBlock * > &rasterData, QgsRasterMatrix &result, int row = -1 ) const;
100101

101-
static QgsRasterCalcNode *parseRasterCalcString( const QString &str, QString &parserErrorMsg );
102+
static QgsRasterCalcNode *parseRasterCalcString( const QString &str, QString &parserErrorMsg ) SIP_FACTORY;
102103

103104
private:
104105
Type mType;

src/core/annotations/qgsannotation.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSANNOTATION_H
2020

2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgspoint.h"
2324
#include "qgscoordinatereferencesystem.h"
2425
#include "qgsrendercontext.h"
@@ -55,13 +56,13 @@ class CORE_EXPORT QgsAnnotation : public QObject
5556
/**
5657
* Constructor for QgsAnnotation.
5758
*/
58-
QgsAnnotation( QObject *parent = nullptr );
59+
QgsAnnotation( QObject *parent SIP_TRANSFERTHIS = 0 );
5960

6061
/**
6162
* Clones the annotation, returning a new copy of the annotation
6263
* reflecting the annotation's current state.
6364
*/
64-
virtual QgsAnnotation *clone() const = 0;
65+
virtual QgsAnnotation *clone() const = 0 SIP_FACTORY;
6566

6667
/**
6768
* Returns true if the annotation is visible and should be rendered.
@@ -182,7 +183,7 @@ class CORE_EXPORT QgsAnnotation : public QObject
182183
* of the symbol is transferred to the annotation.
183184
* \see fillSymbol()
184185
*/
185-
void setFillSymbol( QgsFillSymbol *symbol );
186+
void setFillSymbol( QgsFillSymbol *symbol SIP_TRANSFER );
186187

187188
/**
188189
* Returns the symbol that is used for rendering the annotation frame.
@@ -216,7 +217,7 @@ class CORE_EXPORT QgsAnnotation : public QObject
216217
* of the symbol is transferred to the annotation.
217218
* \see markerSymbol()
218219
*/
219-
void setMarkerSymbol( QgsMarkerSymbol *symbol );
220+
void setMarkerSymbol( QgsMarkerSymbol *symbol SIP_TRANSFER );
220221

221222
/**
222223
* Returns the symbol that is drawn at the annotation's map position.

src/core/composer/qgsaddremoveitemcommand.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSADDREMOVEITEMCOMMAND_H
2020

2121
#include <QUndoCommand>
22+
#include "qgis.h"
2223

2324
#include "qgis_core.h"
2425

@@ -40,7 +41,7 @@ class CORE_EXPORT QgsAddRemoveItemCommand: public QObject, public QUndoCommand
4041
Removed
4142
};
4243

43-
QgsAddRemoveItemCommand( State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent = nullptr );
44+
QgsAddRemoveItemCommand( State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent SIP_TRANSFERTHIS = 0 );
4445
~QgsAddRemoveItemCommand();
4546

4647
void redo() override;

src/core/composer/qgsaddremovemultiframecommand.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSADDREMOVEMULTIFRAMECOMMAND_H
2020

2121
#include <QUndoCommand>
22+
#include "qgis.h"
2223

2324
#include "qgis_core.h"
2425

@@ -38,7 +39,7 @@ class CORE_EXPORT QgsAddRemoveMultiFrameCommand: public QUndoCommand
3839
Removed
3940
};
4041

41-
QgsAddRemoveMultiFrameCommand( State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent = nullptr );
42+
QgsAddRemoveMultiFrameCommand( State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent SIP_TRANSFERTHIS = 0 );
4243
~QgsAddRemoveMultiFrameCommand();
4344
void redo() override;
4445
void undo() override;

src/core/composer/qgscomposerarrow.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERARROW_H
2020

2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgscomposeritem.h"
2324
#include <QBrush>
2425
#include <QPen>
@@ -44,14 +45,14 @@ class CORE_EXPORT QgsComposerArrow: public QgsComposerItem
4445
/** Constructor
4546
* \param c parent composition
4647
*/
47-
QgsComposerArrow( QgsComposition *c );
48+
QgsComposerArrow( QgsComposition *c SIP_TRANSFERTHIS );
4849

4950
/** Constructor
5051
* \param startPoint start point for line
5152
* \param stopPoint end point for line
5253
* \param c parent composition
5354
*/
54-
QgsComposerArrow( QPointF startPoint, QPointF stopPoint, QgsComposition *c );
55+
QgsComposerArrow( QPointF startPoint, QPointF stopPoint, QgsComposition *c SIP_TRANSFERTHIS );
5556

5657
~QgsComposerArrow();
5758

@@ -158,7 +159,7 @@ class CORE_EXPORT QgsComposerArrow: public QgsComposerItem
158159
* \see lineSymbol
159160
* \since QGIS 2.5
160161
*/
161-
void setLineSymbol( QgsLineSymbol *symbol );
162+
void setLineSymbol( QgsLineSymbol *symbol SIP_TRANSFER );
162163

163164
/** Returns the line symbol used for drawing the line portion of the arrow
164165
* \returns line symbol

src/core/composer/qgscomposerattributetablemodelv2.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERATTRIBUTETABLEMODELV2_H
2020

2121
#include <QAbstractTableModel>
22+
#include "qgis.h"
2223
#include <QSortFilterProxyModel>
2324

2425
#include "qgis_core.h"
@@ -49,7 +50,7 @@ class CORE_EXPORT QgsComposerAttributeTableColumnModelV2: public QAbstractTableM
4950
* \param composerTable QgsComposerAttributeTable the model is attached to
5051
* \param parent optional parent
5152
*/
52-
QgsComposerAttributeTableColumnModelV2( QgsComposerAttributeTableV2 *composerTable, QObject *parent = nullptr );
53+
QgsComposerAttributeTableColumnModelV2( QgsComposerAttributeTableV2 *composerTable, QObject *parent SIP_TRANSFERTHIS = 0 );
5354

5455
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const override;
5556
int columnCount( const QModelIndex &parent = QModelIndex() ) const override;
@@ -149,7 +150,7 @@ class CORE_EXPORT QgsComposerTableSortColumnsProxyModelV2: public QSortFilterPro
149150
* \param filterType filter for columns, controls whether sorted or unsorted columns are shown
150151
* \param parent optional parent
151152
*/
152-
QgsComposerTableSortColumnsProxyModelV2( QgsComposerAttributeTableV2 *composerTable, ColumnFilterType filterType, QObject *parent = nullptr );
153+
QgsComposerTableSortColumnsProxyModelV2( QgsComposerAttributeTableV2 *composerTable, ColumnFilterType filterType, QObject *parent SIP_TRANSFERTHIS = 0 );
153154

154155
bool lessThan( const QModelIndex &left, const QModelIndex &right ) const override;
155156
int columnCount( const QModelIndex &parent = QModelIndex() ) const override;

src/core/composer/qgscomposerattributetablev2.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERATTRIBUTETABLEV2_H
2020

2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgscomposertablev2.h"
2324
#include "qgsvectorlayerref.h"
2425

@@ -68,7 +69,7 @@ class CORE_EXPORT QgsComposerAttributeTableV2: public QgsComposerTableV2
6869
RelationChildren //!< Table shows attributes from related child features
6970
};
7071

71-
QgsComposerAttributeTableV2( QgsComposition *composition, bool createUndoCommands );
72+
QgsComposerAttributeTableV2( QgsComposition *composition SIP_TRANSFERTHIS, bool createUndoCommands );
7273

7374
virtual QString displayName() const override;
7475

src/core/composer/qgscomposerframe.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#define QGSCOMPOSERFRAME_H
1818

1919
#include "qgis_core.h"
20+
#include "qgis.h"
2021
#include "qgscomposeritem.h"
2122

2223
class QgsComposition;
@@ -30,7 +31,7 @@ class CORE_EXPORT QgsComposerFrame: public QgsComposerItem
3031
Q_OBJECT
3132

3233
public:
33-
QgsComposerFrame( QgsComposition *c, QgsComposerMultiFrame *mf, qreal x, qreal y, qreal width, qreal height );
34+
QgsComposerFrame( QgsComposition *c SIP_TRANSFERTHIS, QgsComposerMultiFrame *mf, qreal x, qreal y, qreal width, qreal height );
3435

3536
/** Sets the visible part of the multiframe's content which is visible within
3637
* this frame (relative to the total multiframe extent in mm).

src/core/composer/qgscomposerhtml.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#define QGSCOMPOSERHTML_H
1818

1919
#include "qgis_core.h"
20+
#include "qgis.h"
2021
#include "qgscomposermultiframe.h"
2122
#include "qgsfeature.h"
2223
#include <QUrl>
@@ -43,7 +44,7 @@ class CORE_EXPORT QgsComposerHtml: public QgsComposerMultiFrame
4344
ManualHtml //!< HTML content is manually set for the item
4445
};
4546

46-
QgsComposerHtml( QgsComposition *c, bool createUndoCommands );
47+
QgsComposerHtml( QgsComposition *c SIP_TRANSFERTHIS, bool createUndoCommands );
4748

4849
~QgsComposerHtml();
4950

src/core/composer/qgscomposeritem.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define QGSCOMPOSERITEM_H
1919

2020
#include "qgis_core.h"
21+
#include "qgis.h"
2122
#include "qgscomposeritemcommand.h"
2223
#include "qgscomposerobject.h"
2324
#include <QGraphicsRectItem>
@@ -108,7 +109,7 @@ class CORE_EXPORT QgsComposerItem: public QgsComposerObject, public QGraphicsRec
108109
/** Constructor
109110
\param composition parent composition
110111
\param manageZValue true if the z-Value of this object should be managed by mComposition*/
111-
QgsComposerItem( QgsComposition *composition, bool manageZValue = true );
112+
QgsComposerItem( QgsComposition *composition SIP_TRANSFERTHIS, bool manageZValue = true );
112113

113114
/** Constructor with box position and composer object
114115
\param x x coordinate of item
@@ -117,7 +118,7 @@ class CORE_EXPORT QgsComposerItem: public QgsComposerObject, public QGraphicsRec
117118
\param height height of item
118119
\param composition parent composition
119120
\param manageZValue true if the z-Value of this object should be managed by mComposition*/
120-
QgsComposerItem( qreal x, qreal y, qreal width, qreal height, QgsComposition *composition, bool manageZValue = true );
121+
QgsComposerItem( qreal x, qreal y, qreal width, qreal height, QgsComposition *composition SIP_TRANSFERTHIS, bool manageZValue = true );
121122
virtual ~QgsComposerItem();
122123

123124
//! Return correct graphics item type.

src/core/composer/qgscomposeritemcommand.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERITEMCOMMAND_H
2020

2121
#include <QUndoCommand>
22+
#include "qgis.h"
2223
#include <QDomDocument>
2324

2425
#include "qgis_core.h"
@@ -32,7 +33,7 @@ class QgsComposerMultiFrame;
3233
class CORE_EXPORT QgsComposerItemCommand: public QUndoCommand
3334
{
3435
public:
35-
QgsComposerItemCommand( QgsComposerItem *item, const QString &text, QUndoCommand *parent = nullptr );
36+
QgsComposerItemCommand( QgsComposerItem *item, const QString &text, QUndoCommand *parent SIP_TRANSFERTHIS = 0 );
3637

3738
//! Reverses the command
3839
void undo() override;

src/core/composer/qgscomposeritemgroup.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define QGSCOMPOSERITEMGROUP_H
1919

2020
#include "qgis_core.h"
21+
#include "qgis.h"
2122
#include "qgscomposeritem.h"
2223
#include <QSet>
2324

@@ -28,7 +29,7 @@ class CORE_EXPORT QgsComposerItemGroup: public QgsComposerItem
2829
{
2930
Q_OBJECT
3031
public:
31-
QgsComposerItemGroup( QgsComposition *c );
32+
QgsComposerItemGroup( QgsComposition *c SIP_TRANSFERTHIS );
3233
~QgsComposerItemGroup();
3334

3435
//! Return correct graphics item type.

src/core/composer/qgscomposerlegend.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERLEGEND_H
2020

2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgscomposeritem.h"
2324
#include "qgslayertreemodel.h"
2425
#include "qgslegendsettings.h"
@@ -42,7 +43,7 @@ class CORE_EXPORT QgsLegendModel : public QgsLayerTreeModel
4243

4344
public:
4445
//! Construct the model based on the given layer tree
45-
QgsLegendModel( QgsLayerTree *rootNode, QObject *parent = nullptr );
46+
QgsLegendModel( QgsLayerTree *rootNode, QObject *parent SIP_TRANSFERTHIS = 0 );
4647

4748
QVariant data( const QModelIndex &index, int role ) const override;
4849

src/core/composer/qgscomposermap.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
//#include "ui_qgscomposermapbase.h"
2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgscomposeritem.h"
2324
#include "qgsrectangle.h"
2425
#include "qgscoordinatereferencesystem.h"
@@ -53,9 +54,9 @@ class CORE_EXPORT QgsComposerMap : public QgsComposerItem
5354

5455
public:
5556
//! Constructor.
56-
QgsComposerMap( QgsComposition *composition, int x, int y, int width, int height );
57+
QgsComposerMap( QgsComposition *composition SIP_TRANSFERTHIS, int x, int y, int width, int height );
5758
//! Constructor. Settings are read from project.
58-
QgsComposerMap( QgsComposition *composition );
59+
QgsComposerMap( QgsComposition *composition SIP_TRANSFERTHIS );
5960
virtual ~QgsComposerMap();
6061

6162
//! Return correct graphics item type.

src/core/composer/qgscomposermapgrid.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define QGSCOMPOSERMAPGRID_H
2020

2121
#include "qgis_core.h"
22+
#include "qgis.h"
2223
#include "qgscomposermapitem.h"
2324
#include "qgscoordinatereferencesystem.h"
2425
#include "qgsrectangle.h"
@@ -60,7 +61,7 @@ class CORE_EXPORT QgsComposerMapGridStack : public QgsComposerMapItemStack
6061
* should be called for the QgsComposerMap to prevent rendering artifacts
6162
* \see removeGrid
6263
*/
63-
void addGrid( QgsComposerMapGrid *grid );
64+
void addGrid( QgsComposerMapGrid *grid SIP_TRANSFER );
6465

6566
/** Removes a grid from the stack and deletes the corresponding QgsComposerMapGrid
6667
* \param gridId id for the QgsComposerMapGrid to remove
@@ -479,7 +480,7 @@ class CORE_EXPORT QgsComposerMapGrid : public QgsComposerMapItem
479480
* \see setMarkerSymbol
480481
* \see setStyle
481482
*/
482-
void setLineSymbol( QgsLineSymbol *symbol );
483+
void setLineSymbol( QgsLineSymbol *symbol SIP_TRANSFER );
483484

484485
/** Gets the line symbol used for drawing grid lines. This is only used for grids with
485486
* QgsComposerMapGrid::Solid or QgsComposerMapGrid::Cross styles.

0 commit comments

Comments
 (0)