Showing with 6 additions and 95 deletions.
  1. +0 −1 python/analysis/network/qgsgraphbuilderinterface.sip
  2. +0 −1 python/analysis/network/qgsgraphdirector.sip
  3. +0 −1 python/analysis/network/qgsnetworkstrategy.sip
  4. +0 −1 python/analysis/raster/qgsalignraster.sip
  5. +0 −1 python/core/annotations/qgsannotation.sip
  6. +0 −2 python/core/composer/qgscomposeritem.sip
  7. +0 −1 python/core/composer/qgscomposermultiframe.sip
  8. +0 −1 python/core/effects/qgspainteffect.sip
  9. +0 −1 python/core/expression/qgsexpressionnode.sip
  10. +0 −1 python/core/geometry/qgsabstractgeometry.sip
  11. +0 −2 python/core/gps/qgsgpsconnection.sip
  12. +0 −1 python/core/layertree/qgslayertreemodel.sip
  13. +0 −1 python/core/layertree/qgslayertreenode.sip
  14. +0 −2 python/core/layout/qgslayoutitem.sip
  15. +0 −1 python/core/processing/qgsprocessingalgorithm.sip
  16. +0 −1 python/core/processing/qgsprocessingoutputs.sip
  17. +0 −1 python/core/processing/qgsprocessingparameters.sip
  18. +0 −1 python/core/qgsapplication.sip
  19. +0 −1 python/core/qgsattributeeditorelement.sip
  20. +0 −1 python/core/qgscolorramp.sip
  21. +0 −1 python/core/qgscolorscheme.sip
  22. +0 −1 python/core/qgsdataitem.sip
  23. +0 −1 python/core/qgsdataprovider.sip
  24. +0 −1 python/core/qgsdiagramrenderer.sip
  25. +0 −1 python/core/qgsfeature.sip
  26. +0 −1 python/core/qgsmaplayer.sip
  27. +0 −1 python/core/qgspropertycollection.sip
  28. +0 −1 python/core/qgspropertytransformer.sip
  29. +0 −1 python/core/qgsrunprocess.sip
  30. +0 −1 python/core/qgssqlstatement.sip
  31. +0 −2 python/core/raster/qgsrasterinterface.sip
  32. +0 −2 python/core/raster/qgsrasterresampler.sip
  33. +0 −2 python/core/raster/qgsrastershaderfunction.sip
  34. +0 −1 python/core/symbology/qgsmarkersymbollayer.sip
  35. +0 −1 python/core/symbology/qgspointclusterrenderer.sip
  36. +0 −1 python/core/symbology/qgspointdisplacementrenderer.sip
  37. +0 −1 python/core/symbology/qgsrenderer.sip
  38. +0 −1 python/core/symbology/qgssymbol.sip
  39. +0 −2 python/core/symbology/qgssymbollayer.sip
  40. +0 −1 python/gui/editorwidgets/core/qgswidgetwrapper.sip
  41. +0 −1 python/gui/editorwidgets/qgsdoublespinbox.sip
  42. +0 −1 python/gui/editorwidgets/qgsrelationreferencewidget.sip
  43. +0 −1 python/gui/editorwidgets/qgsspinbox.sip
  44. +0 −1 python/gui/layertree/qgslayertreeview.sip
  45. +0 −1 python/gui/layout/qgslayoutviewmouseevent.sip
  46. +0 −1 python/gui/layout/qgslayoutviewrubberband.sip
  47. +0 −1 python/gui/layout/qgslayoutviewtool.sip
  48. +0 −1 python/gui/qgscolorbutton.sip
  49. +0 −1 python/gui/qgscomposerview.sip
  50. +0 −1 python/gui/qgsexternalresourcewidget.sip
  51. +0 −1 python/gui/qgsfeatureselectiondlg.sip
  52. +0 −1 python/gui/qgsfilewidget.sip
  53. +0 −1 python/gui/qgsfilterlineedit.sip
  54. +0 −1 python/gui/qgsmapcanvas.sip
  55. +0 −1 python/gui/qgsmapmouseevent.sip
  56. +0 −1 python/gui/qgsmaptool.sip
  57. +0 −19 python/gui/qgsrasterformatsaveoptionswidget.sip
  58. +0 −3 python/gui/qgsrasterpyramidsoptionswidget.sip
  59. +0 −1 python/gui/qgsrelationeditorwidget.sip
  60. +0 −3 python/gui/symbology/qgsrendererwidget.sip
  61. +0 −1 python/server/qgsaccesscontrol.sip
  62. +0 −1 python/server/qgsservice.sip
  63. +6 −3 scripts/sipify.pl
  64. +0 −1 tests/code_layout/sipifyheader.expected.sip
@@ -23,7 +23,6 @@ class QgsGraphBuilderInterface
%TypeHeaderCode
#include "qgsgraphbuilderinterface.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsGraphBuilder * >( sipCpp ) != NULL )
sipType = sipType_QgsGraphBuilder;
@@ -24,7 +24,6 @@ class QgsGraphDirector : QObject
%TypeHeaderCode
#include "qgsgraphdirector.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsVectorLayerDirector * >( sipCpp ) != NULL )
sipType = sipType_QgsVectorLayerDirector;
@@ -28,7 +28,6 @@ class QgsNetworkStrategy
%TypeHeaderCode
#include "qgsnetworkstrategy.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsNetworkDistanceStrategy * >( sipCpp ) != NULL )
sipType = sipType_QgsNetworkDistanceStrategy;
@@ -25,7 +25,6 @@ class QgsAlignRaster

%TypeHeaderCode
#include "qgsalignraster.h"

#include <gdal_version.h>
%End
public:
@@ -30,7 +30,6 @@ class QgsAnnotation : QObject
%TypeHeaderCode
#include "qgsannotation.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsTextAnnotation * >( sipCpp ) )
sipType = sipType_QgsTextAnnotation;
@@ -17,7 +17,6 @@ class QgsComposerItem: QgsComposerObject, QGraphicsRectItem

%TypeHeaderCode
#include "qgscomposeritem.h"

#include <qgscomposerarrow.h>
#include <qgscomposerframe.h>
#include <qgscomposeritemgroup.h>
@@ -34,7 +33,6 @@ class QgsComposerItem: QgsComposerObject, QGraphicsRectItem
#include <qgslayoutitemshape.h>
#include <qgslayoutitempage.h>
%End

%ConvertToSubClassCode
// the conversions have to be static, because they're using multiple inheritance
// (seen in PyQt4 .sip files for some QGraphicsItem classes)
@@ -27,7 +27,6 @@ class QgsComposerMultiFrame: QgsComposerObject
%TypeHeaderCode
#include "qgscomposermultiframe.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsComposerHtml *>( sipCpp ) != NULL )
sipType = sipType_QgsComposerHtml;
@@ -37,7 +37,6 @@ class QgsPaintEffect
%TypeHeaderCode
#include "qgspainteffect.h"
%End

%ConvertToSubClassCode
if ( sipCpp->type() == "drawSource" && dynamic_cast<QgsDrawSourceEffect *>( sipCpp ) != NULL )
{
@@ -21,7 +21,6 @@ class QgsExpressionNode /Abstract/
%TypeHeaderCode
#include "qgsexpressionnode.h"
%End

%ConvertToSubClassCode
switch ( sipCpp->nodeType() )
{
@@ -24,7 +24,6 @@ class QgsAbstractGeometry
%TypeHeaderCode
#include "qgsabstractgeometry.h"
%End

%ConvertToSubClassCode
if ( qgsgeometry_cast<QgsPoint *>( sipCpp ) != nullptr )
sipType = sipType_QgsPoint;
@@ -51,11 +51,9 @@ class QgsGPSConnection : QObject

%TypeHeaderCode
#include "qgsgpsconnection.h"

#include <qgsgpsdconnection.h>
#include <qgsnmeaconnection.h>
%End

%ConvertToSubClassCode
if ( sipCpp->inherits( "QgsGpsdConnection" ) )
sipType = sipType_QgsGpsdConnection;
@@ -30,7 +30,6 @@ class QgsLayerTreeModel : QAbstractItemModel
%TypeHeaderCode
#include "qgslayertreemodel.h"
%End

%ConvertToSubClassCode
if ( sipCpp->inherits( "QgsLayerTreeModel" ) )
sipType = sipType_QgsLayerTreeModel;
@@ -57,7 +57,6 @@ class QgsLayerTreeNode : QObject
%TypeHeaderCode
#include "qgslayertreenode.h"
%End

%ConvertToSubClassCode
if ( sipCpp->inherits( "QgsLayerTreeNode" ) )
{
@@ -18,11 +18,9 @@ class QgsLayoutItem : QgsLayoutObject, QGraphicsRectItem, QgsLayoutUndoObjectInt

%TypeHeaderCode
#include "qgslayoutitem.h"

#include <qgslayoutitemshape.h>
#include <qgslayoutitempage.h>
%End

%ConvertToSubClassCode
// the conversions have to be static, because they're using multiple inheritance
// (seen in PyQt4 .sip files for some QGraphicsItem classes)
@@ -26,7 +26,6 @@ class QgsProcessingAlgorithm
%TypeHeaderCode
#include "qgsprocessingalgorithm.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsProcessingModelAlgorithm * >( sipCpp ) != NULL )
sipType = sipType_QgsProcessingModelAlgorithm;
@@ -26,7 +26,6 @@ class QgsProcessingOutputDefinition
%TypeHeaderCode
#include "qgsprocessingoutputs.h"
%End

%ConvertToSubClassCode
if ( sipCpp->type() == QgsProcessingOutputVectorLayer::typeName() )
sipType = sipType_QgsProcessingOutputVectorLayer;
@@ -143,7 +143,6 @@ class QgsProcessingParameterDefinition
%TypeHeaderCode
#include "qgsprocessingparameters.h"
%End

%ConvertToSubClassCode
if ( sipCpp->type() == QgsProcessingParameterBoolean::typeName() )
sipType = sipType_QgsProcessingParameterBoolean;
@@ -29,7 +29,6 @@ to change due to centralization.
%TypeHeaderCode
#include "qgsapplication.h"
%End

%TypeCode
// Convert a Python argv list to a conventional C argc count and argv array.
static char **qtgui_ArgvToC( PyObject *argvlist, int &argc )
@@ -24,7 +24,6 @@ class QgsAttributeEditorElement /Abstract/
%TypeHeaderCode
#include "qgsattributeeditorelement.h"
%End

%ConvertToSubClassCode
switch ( sipCpp->type() )
{
@@ -18,7 +18,6 @@ class QgsColorRamp
%TypeHeaderCode
#include "qgscolorramp.h"
%End

%ConvertToSubClassCode
if ( sipCpp->type() == "gradient" )
sipType = sipType_QgsGradientColorRamp;
@@ -26,7 +26,6 @@ class QgsColorScheme
%TypeHeaderCode
#include "qgscolorscheme.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsUserColorScheme *>( sipCpp ) != NULL )
sipType = sipType_QgsUserColorScheme;
@@ -22,7 +22,6 @@ class QgsDataItem : QObject
%TypeHeaderCode
#include "qgsdataitem.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsLayerItem *>( sipCpp ) )
sipType = sipType_QgsLayerItem;
@@ -29,7 +29,6 @@ class QgsDataProvider : QObject
%TypeHeaderCode
#include "qgsdataprovider.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsVectorDataProvider *>( sipCpp ) )
{
@@ -452,7 +452,6 @@ class QgsDiagramRenderer
%TypeHeaderCode
#include "qgsdiagramrenderer.h"
%End

%ConvertToSubClassCode
if ( sipCpp->rendererName() == QStringLiteral( "SingleCategory" ) )
sipType = sipType_QgsSingleCategoryDiagramRenderer;
@@ -28,7 +28,6 @@ class QgsFeature

%TypeHeaderCode
#include "qgsfeature.h"

#if (SIP_VERSION >= 0x040900 && SIP_VERSION < 0x040c01)
#define sipType_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
#endif
@@ -22,7 +22,6 @@ class QgsMapLayer : QObject
%TypeHeaderCode
#include "qgsmaplayer.h"
%End

%ConvertToSubClassCode
QgsMapLayer *layer = qobject_cast<QgsMapLayer *>( sipCpp );

@@ -21,7 +21,6 @@ class QgsAbstractPropertyCollection
%TypeHeaderCode
#include "qgspropertycollection.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsPropertyCollection *>( sipCpp ) )
sipType = sipType_QgsPropertyCollection;
@@ -149,7 +149,6 @@ class QgsPropertyTransformer
%TypeHeaderCode
#include "qgspropertytransformer.h"
%End

%ConvertToSubClassCode
if ( sipCpp->transformerType() == QgsPropertyTransformer::GenericNumericTransformer )
sipType = sipType_QgsGenericNumericTransformer;
@@ -38,7 +38,6 @@ class QgsRunProcess: QObject /NoDefaultCtors/

private:
QgsRunProcess( const QString &action, bool capture ) ;
private:
~QgsRunProcess() ;
};

@@ -191,7 +191,6 @@ Returns root node of the statement. Root node is null is parsing has failed
%TypeHeaderCode
#include "qgssqlstatement.h"
%End

%ConvertToSubClassCode
switch ( sipCpp->nodeType() )
{
@@ -72,7 +72,6 @@ class QgsRasterInterface

%TypeHeaderCode
#include "qgsrasterinterface.h"

// QgsRasterInterface subclasses
#include <qgsbrightnesscontrastfilter.h>
#include <qgshuesaturationfilter.h>
@@ -90,7 +89,6 @@ class QgsRasterInterface
#include <qgssinglebandgrayrenderer.h>
#include <qgssinglebandpseudocolorrenderer.h>
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsBrightnessContrastFilter *>( sipCpp ) )
sipType = sipType_QgsBrightnessContrastFilter;
@@ -18,11 +18,9 @@ class QgsRasterResampler

%TypeHeaderCode
#include "qgsrasterresampler.h"

#include "qgsbilinearrasterresampler.h"
#include "qgscubicrasterresampler.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsBilinearRasterResampler *>( sipCpp ) != NULL )
sipType = sipType_QgsBilinearRasterResampler;
@@ -20,10 +20,8 @@ class QgsRasterShaderFunction

%TypeHeaderCode
#include "qgsrastershaderfunction.h"

#include <qgscolorrampshader.h>
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsColorRampShader *>( sipCpp ) != NULL )
sipType = sipType_QgsColorRampShader;
@@ -463,7 +463,6 @@ class QgsFilledMarkerSymbolLayer : QgsSimpleMarkerSymbolLayerBase

private:
QgsFilledMarkerSymbolLayer( const QgsFilledMarkerSymbolLayer & );
private:
virtual void draw( QgsSymbolRenderContext &context, QgsSimpleMarkerSymbolLayerBase::Shape shape, const QPolygonF &polygon, const QPainterPath &path ) ;
};

@@ -65,7 +65,6 @@ Creates a renderer from XML element
%Docstring
:rtype: QgsPointClusterRenderer
%End
private:
virtual void drawGroup( QPointF centerPoint, QgsRenderContext &context, const QgsPointDistanceRenderer::ClusteredGroup &group ) ;

};
@@ -137,7 +137,6 @@ Create a renderer from XML element
%Docstring
:rtype: QgsPointDisplacementRenderer
%End
private:
virtual void drawGroup( QPointF centerPoint, QgsRenderContext &context, const QgsPointDistanceRenderer::ClusteredGroup &group ) ;
};

@@ -48,7 +48,6 @@ class QgsFeatureRenderer
%TypeHeaderCode
#include "qgsrenderer.h"
%End

%ConvertToSubClassCode
if ( sipCpp->type() == "singleSymbol" )
sipType = sipType_QgsSingleSymbolRenderer;
@@ -19,7 +19,6 @@ class QgsSymbol
%TypeHeaderCode
#include "qgssymbol.h"
%End

%ConvertToSubClassCode
switch ( sipCpp->type() )
{
@@ -16,10 +16,8 @@ class QgsSymbolLayer

%TypeHeaderCode
#include "qgssymbollayer.h"

#include <qgslinesymbollayer.h>
%End

%ConvertToSubClassCode
switch ( sipCpp->type() )
{
@@ -32,7 +32,6 @@ class QgsWidgetWrapper : QObject
%TypeHeaderCode
#include "qgswidgetwrapper.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsEditorWidgetWrapper *>( sipCpp ) )
sipType = sipType_QgsEditorWidgetWrapper;
@@ -29,7 +29,6 @@ class QgsDoubleSpinBox : QDoubleSpinBox
%TypeHeaderCode
#include "qgsdoublespinbox.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsDoubleSpinBox *>( sipCpp ) )
sipType = sipType_QgsDoubleSpinBox;
@@ -23,7 +23,6 @@ class QgsRelationReferenceWidget : QWidget
%TypeHeaderCode
#include "qgsrelationreferencewidget.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsRelationReferenceWidget *>( sipCpp ) )
sipType = sipType_QgsRelationReferenceWidget;
@@ -29,7 +29,6 @@ class QgsSpinBox : QSpinBox
%TypeHeaderCode
#include "qgsspinbox.h"
%End

%ConvertToSubClassCode
if ( qobject_cast<QgsSpinBox *>( sipCpp ) )
sipType = sipType_QgsSpinBox;
@@ -30,7 +30,6 @@ class QgsLayerTreeView : QTreeView
%TypeHeaderCode
#include "qgslayertreeview.h"
%End

%ConvertToSubClassCode
if ( sipCpp->inherits( "QgsLayerTreeView" ) )
sipType = sipType_QgsLayerTreeView;
@@ -23,7 +23,6 @@ class QgsLayoutViewMouseEvent : QMouseEvent
%TypeHeaderCode
#include "qgslayoutviewmouseevent.h"
%End

%ConvertToSubClassCode
if ( dynamic_cast<QgsLayoutViewMouseEvent *>( sipCpp ) )
sipType = sipType_QgsLayoutViewMouseEvent;