Skip to content
Permalink
Browse files

sip update

  • Loading branch information
jef-n committed Feb 3, 2015
1 parent 932baa9 commit abd4a043998ae601835bd6749e5bcac5caa7a949
Showing with 689 additions and 239 deletions.
  1. +1 −1 python/core/composer/qgscomposerattributetablemodel.sip
  2. +1 −2 python/core/composer/qgscomposerattributetablemodelv2.sip
  3. +4 −3 python/core/composer/qgscomposerattributetablev2.sip
  4. +2 −1 python/core/composer/qgscomposerframe.sip
  5. +3 −1 python/core/composer/qgscomposerhtml.sip
  6. +3 −3 python/core/composer/qgscomposeritem.sip
  7. +3 −2 python/core/composer/qgscomposeritemcommand.sip
  8. +1 −1 python/core/composer/qgscomposeritemgroup.sip
  9. +1 −1 python/core/composer/qgscomposermap.sip
  10. +7 −1 python/core/composer/qgscomposermapgrid.sip
  11. +3 −2 python/core/composer/qgscomposermapitem.sip
  12. +1 −2 python/core/composer/qgscomposermapoverview.sip
  13. +19 −1 python/core/composer/qgscomposermodel.sip
  14. +0 −1 python/core/composer/qgscomposermultiframecommand.sip
  15. +6 −4 python/core/composer/qgscomposerobject.sip
  16. +4 −3 python/core/composer/qgscomposerpicture.sip
  17. +1 −3 python/core/composer/qgscomposertable.sip
  18. +2 −2 python/core/composer/qgscomposertablev2.sip
  19. +1 −1 python/core/composer/qgscomposertexttable.sip
  20. +1 −1 python/core/composer/qgscomposition.sip
  21. +1 −0 python/core/composer/qgslegendmodel.sip
  22. +1 −1 python/core/composer/qgspaperitem.sip
  23. +1 −1 python/core/effects/qgsimageoperation.sip
  24. +0 −2 python/core/layertree/qgslayertreemodellegendnode.sip
  25. +1 −0 python/core/layertree/qgslayertreenode.sip
  26. +1 −1 python/core/qgsapplication.sip
  27. +13 −2 python/core/qgsbrowsermodel.sip
  28. +3 −3 python/core/qgscolorscheme.sip
  29. +15 −2 python/core/qgscolorschemeregistry.sip
  30. +1 −1 python/core/qgsdatadefined.sip
  31. +66 −12 python/core/qgsdataitem.sip
  32. +18 −2 python/core/qgsexpression.sip
  33. +4 −4 python/core/qgsfield.sip
  34. +1 −1 python/core/qgsgeometry.sip
  35. +1 −1 python/core/qgslegendrenderer.sip
  36. +0 −1 python/core/qgsmaplayer.sip
  37. +0 −9 python/core/qgsmaplayerregistry.sip
  38. +4 −0 python/core/qgsmaprenderer.sip
  39. +1 −0 python/core/qgsmaprendererjob.sip
  40. +46 −6 python/core/qgsmaptopixel.sip
  41. +2 −0 python/core/qgsmimedatautils.sip
  42. +4 −0 python/core/qgspointlocator.sip
  43. +57 −0 python/core/qgsrelationmanager.sip
  44. +10 −2 python/core/qgssnapper.sip
  45. +10 −3 python/core/qgstransaction.sip
  46. +5 −0 python/core/qgsvectordataprovider.sip
  47. +1 −1 python/core/qgsvectorlayer.sip
  48. +10 −0 python/core/qgsvectorlayerfeatureiterator.sip
  49. +1 −0 python/core/raster/qgsrasterchecker.sip
  50. +48 −2 python/core/raster/qgsrasterdataprovider.sip
  51. +3 −1 python/core/raster/qgsrasterdrawer.sip
  52. +10 −1 python/core/raster/qgsrasterfilewriter.sip
  53. +2 −2 python/core/raster/qgsrasterinterface.sip
  54. +2 −0 python/core/symbology-ng/qgsfillsymbollayerv2.sip
  55. +1 −0 python/core/symbology-ng/qgslinesymbollayerv2.sip
  56. +23 −0 python/gui/attributetable/qgsattributetablemodel.sip
  57. +3 −0 python/gui/attributetable/qgsfeaturelistview.sip
  58. +1 −1 python/gui/attributetable/qgsfeatureselectionmodel.sip
  59. +5 −0 python/gui/editorwidgets/core/qgseditorwidgetfactory.sip
  60. +1 −1 python/gui/editorwidgets/core/qgseditorwidgetregistry.sip
  61. +8 −0 python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip
  62. 0 python/gui/{ → editorwidgets}/qgsdatetimeedit.sip
  63. +2 −3 python/gui/editorwidgets/qgsrelationreferencewidget.sip
  64. +1 −1 python/gui/gui.sip
  65. +6 −0 python/gui/layertree/qgscustomlayerorderwidget.sip
  66. +2 −2 python/gui/layertree/qgslayertreemapcanvasbridge.sip
  67. +6 −0 python/gui/layertree/qgslayertreeview.sip
  68. +14 −0 python/gui/layertree/qgslayertreeviewdefaultactions.sip
  69. +4 −5 python/gui/qgisinterface.sip
  70. +2 −3 python/gui/qgsattributeeditorcontext.sip
  71. +14 −1 python/gui/qgscodeeditorpython.sip
  72. +1 −1 python/gui/qgscolorbuttonv2.sip
  73. +3 −2 python/gui/qgscolorschemelist.sip
  74. +1 −1 python/gui/qgscolorswatchgrid.sip
  75. +1 −1 python/gui/qgscolorwidgets.sip
  76. +2 −0 python/gui/qgsfieldmodel.sip
  77. +2 −0 python/gui/qgsfieldvalidator.sip
  78. +17 −2 python/gui/qgsgenericprojectionselector.sip
  79. +2 −0 python/gui/qgshighlight.sip
  80. +0 −1 python/gui/qgsidentifymenu.sip
  81. +1 −0 python/gui/qgsmapoverviewcanvas.sip
  82. +0 −2 python/gui/qgsmaptool.sip
  83. +0 −1 python/gui/qgsmaptoolemitpoint.sip
  84. +5 −2 python/gui/qgsmaptoolidentify.sip
  85. +2 −0 python/gui/qgsmaptoolzoom.sip
  86. +1 −0 python/gui/qgsnewvectorlayerdialog.sip
  87. +2 −2 python/gui/qgsprojectionselectionwidget.sip
  88. +2 −0 python/gui/qgsrubberband.sip
  89. +7 −3 python/gui/qgsscalewidget.sip
  90. +1 −1 python/gui/qgsvectorlayertools.sip
  91. +1 −1 python/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.sip
  92. +1 −1 python/gui/symbology-ng/qgsstylev2managerdialog.sip
  93. +0 −1 python/gui/symbology-ng/qgssymbollayerv2widget.sip
  94. +1 −1 python/gui/symbology-ng/qgssymbolslistwidget.sip
  95. +1 −1 python/gui/symbology-ng/qgssymbolv2selectordialog.sip
  96. +4 −0 python/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.sip
  97. +2 −4 python/server/qgscapabilitiescache.sip
  98. +2 −4 python/server/qgsmapserviceexception.sip
  99. +14 −12 python/server/qgsrequesthandler.sip
  100. +28 −29 python/server/qgsserverfilter.sip
  101. +1 −1 src/analysis/interpolation/TriDecorator.h
  102. +1 −1 src/core/composer/qgscomposerobject.h
  103. +1 −0 src/core/qgsdataitem.h
  104. +0 −2 src/core/qgsfield.h
  105. +1 −1 src/core/qgsgeometrysimplifier.h
  106. +4 −4 src/core/qgsmaptopixel.h
  107. +1 −1 src/core/qgssnapper.h
  108. +3 −3 src/core/raster/qgsrasterdataprovider.h
  109. +2 −1 src/core/raster/qgsrasterdrawer.h
  110. +1 −1 src/gui/attributetable/qgsattributetabledelegate.h
  111. +1 −1 src/gui/attributetable/qgsattributetablefiltermodel.h
  112. +1 −1 src/gui/attributetable/qgsfeaturelistmodel.h
  113. +2 −1 src/gui/editorwidgets/core/qgseditorwidgetregistry.h
  114. +1 −0 src/gui/editorwidgets/qgsdoublespinbox.h
  115. +1 −0 src/gui/editorwidgets/qgsspinbox.h
  116. +2 −2 src/gui/qgisinterface.h
  117. +1 −1 src/gui/qgscolorbuttonv2.h
  118. +6 −5 src/gui/qgscomposerview.h
  119. +1 −1 src/gui/qgsdatadefinedbutton.h
  120. +0 −1 src/gui/qgsmaptoolemitpoint.h
  121. +2 −0 src/gui/qgsmaptoolzoom.h
  122. +2 −1 src/gui/qgsprojectionselectionwidget.h
  123. +2 −8 src/gui/symbology-ng/qgssmartgroupeditordialog.h
  124. +10 −5 src/server/qgsmapserviceexception.h
  125. +9 −3 src/server/qgsrequesthandler.h
  126. +29 −7 src/server/qgsserverfilter.h
@@ -40,7 +40,7 @@ class QgsComposerAttributeTableColumnModel: QAbstractTableModel
* @param direction direction to move the attribute table column
* @note added in 2.3
*/
bool moveRow( int row , ShiftDirection direction );
bool moveRow( int row, ShiftDirection direction );

/**Resets the attribute table's columns to match the source layer's fields. Remove all existing
* attribute table columns and column customisations.
@@ -15,7 +15,6 @@ class QgsComposerAttributeTableColumnModelV2: QAbstractTableModel
ShiftDown /*!< shift the row/column down */
};

/**Constructor for QgsComposerAttributeTableColumnModel.
/**Constructor for QgsComposerAttributeTableColumnModel.
* @param composerTable QgsComposerAttributeTable the model is attached to
* @param parent optional parent
@@ -41,7 +40,7 @@ class QgsComposerAttributeTableColumnModelV2: QAbstractTableModel
* @param direction direction to move the attribute table column
* @note added in 2.3
*/
bool moveRow( int row , ShiftDirection direction );
bool moveRow( int row, ShiftDirection direction );

/**Resets the attribute table's columns to match the source layer's fields. Remove all existing
* attribute table columns and column customisations.
@@ -7,9 +7,7 @@ class QgsComposerAttributeTableCompareV2
%End

public:

QgsComposerAttributeTableCompareV2();

bool operator()( const QgsComposerTableRow& m1, const QgsComposerTableRow& m2 );

/**Sets column number to sort by
@@ -24,6 +22,7 @@ class QgsComposerAttributeTableCompareV2

};


/**A table that displays attributes from a vector layer*/
class QgsComposerAttributeTableV2 : QgsComposerTableV2
{
@@ -50,13 +49,15 @@ class QgsComposerAttributeTableV2 : QgsComposerTableV2
/**Writes properties specific to attribute tables
* @param elem an existing QDomElement in which to store the attribute table's properties.
* @param doc QDomDocument for the destination xml.
* @param ignoreFrames ignore frames
* @see readXML
*/
virtual bool writeXML( QDomElement& elem, QDomDocument & doc, bool ignoreFrames = false ) const;

/**Reads the properties specific to an attribute table from xml.
* @param itemElem a QDomElement holding the attribute table's desired properties.
* @param doc QDomDocument for the source xml.
* @param ignoreFrames ignore frames
* @see writeXML
*/
virtual bool readXML( const QDomElement& itemElem, const QDomDocument& doc, bool ignoreFrames = false );
@@ -248,7 +249,7 @@ class QgsComposerAttributeTableV2 : QgsComposerTableV2
//QList<QPair<int, bool> > sortAttributes() const;

/**Queries the attribute table's vector layer for attributes to show in the table.
* @param attributeMaps list of QgsAttributeMaps where the fetched feature attributes will be stored
* @param contents table content
* @returns true if attributes were successfully fetched
* @note not available in python bindings
*/
@@ -5,8 +5,9 @@ class QgsComposerFrame: QgsComposerItem
#include "qgscomposerframe.h"
%End

public:
public:
QgsComposerFrame( QgsComposition* c /TransferThis/, QgsComposerMultiFrame* mf, qreal x, qreal y, qreal width, qreal height );

~QgsComposerFrame();

/**Sets the visible part of the multiframe's content which is visible within
@@ -15,7 +15,10 @@ class QgsComposerHtml: QgsComposerMultiFrame
};

QgsComposerHtml( QgsComposition* c /TransferThis/, bool createUndoCommands );

//should be private - fix for QGIS 3.0
QgsComposerHtml();

~QgsComposerHtml();

/**Sets the source mode for item's HTML content.
@@ -192,7 +195,6 @@ class QgsComposerHtml: QgsComposerMultiFrame

/**Recalculates the frame sizes for the current viewport dimensions*/
void recalculateFrameSizes();

void refreshExpressionContext();

virtual void refreshDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property = QgsComposerObject::AllProperties );
@@ -507,7 +507,7 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
/**Returns a font where size is in pixel and font size is upscaled with FONT_WORKAROUND_SCALE
* @deprecated use QgsComposerUtils::scaledFontPixelSize instead
*/
QFont scaledFontPixelSize( const QFont& font ) const;
QFont scaledFontPixelSize( const QFont& font ) const /Deprecated/;

/**Locks / unlocks the item position for mouse drags
* @param lock set to true to prevent item movement and resizing via the mouse
@@ -672,10 +672,10 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
/**Draws arrowhead
* @deprecated use QgsComposerUtils::drawArrowHead instead
*/
void drawArrowHead( QPainter* p, double x, double y, double angle, double arrowHeadWidth ) const;
void drawArrowHead( QPainter* p, double x, double y, double angle, double arrowHeadWidth ) const /Deprecated/;

/**Returns angle of the line from p1 to p2 (clockwise, starting at N)*/
double angle( const QPointF& p1, const QPointF& p2 ) const;
double angle( const QPointF& p1, const QPointF& p2 ) const /Deprecated/;

/**Returns the current (zoom level dependent) tolerance to decide if mouse position is close enough to the
item border for resizing*/
@@ -28,7 +28,7 @@ class QgsComposerItemCommand: QUndoCommand
/**Returns the target item the command applies to.
* @returns target composer item
*/
QgsComposerItem* item() const;
QgsComposerItem *item() const;

protected:
void saveState( QDomDocument& stateDoc ) const;
@@ -94,7 +94,8 @@ class QgsComposerMergeCommand : QgsComposerItemCommand
ItemOutlineWidth,
ItemMove,
ItemRotation,
ItemTransparency
ItemTransparency,
ItemZoomContent
};

QgsComposerMergeCommand( Context c, QgsComposerItem* item, const QString& text );
@@ -7,7 +7,7 @@ class QgsComposerItemGroup: QgsComposerItem
QgsComposerItemGroup( QgsComposition* c /TransferThis/ );
~QgsComposerItemGroup();

/** return correct graphics item type. Added in v1.7 */
/** return correct graphics item type. */
virtual int type() const;

/**Adds an item to the group. All the group members are deleted
@@ -521,7 +521,7 @@ class QgsComposerMap : QgsComposerItem
*/
QgsComposerMapGrid* grid();

/**Returns the map item's overview stack, which is used to control how over
/**Returns the map item's overview stack, which is used to control how overviews
* are drawn over the map's contents.
* @returns pointer to overview stack
* @see overview()
@@ -105,6 +105,10 @@ class QgsComposerMapGridStack : QgsComposerMapItemStack

};

//
// QgsComposerMapGrid
//

/**\ingroup MapComposer
* \class QgsComposerMapGrid
* \brief An individual grid which is drawn above the map content in a
@@ -226,7 +230,7 @@ class QgsComposerMapGrid : QgsComposerMapItem

/**Constructor for QgsComposerMapGrid.
* @param name friendly display name for grid
* @parm map QgsComposerMap the grid stack is attached to
* @param map QgsComposerMap the grid is attached to
*/
QgsComposerMapGrid( const QString& name, QgsComposerMap* map );

@@ -275,6 +279,8 @@ class QgsComposerMapGrid : QgsComposerMapItem
*/
QPainter::CompositionMode blendMode() const;

bool usesAdvancedEffects() const;

/**Calculates the maximum distance the grid extends beyond the QgsComposerMap's
* item rect
* @returns maximum extension in millimetres
@@ -86,6 +86,7 @@ class QgsComposerMapItem : QgsComposerObject
};



/**\ingroup MapComposer
* \class QgsComposerMapItemStack
* \brief A collection of map items which are drawn above the map content in a
@@ -154,7 +155,7 @@ class QgsComposerMapItemStack
void addItem( QgsComposerMapItem* item /Transfer/);

/**Removes an item from the stack and deletes the corresponding QgsComposerMapItem
* @param QgsComposerMapItem id for the QgsComposerMapItem to remove
* @param itemId id for the QgsComposerMapItem to remove
* @note after removing an item from the stack, update()
* should be called for the QgsComposerMap to prevent rendering artifacts
* @see addItem
@@ -205,7 +206,7 @@ class QgsComposerMapItemStack
* @see item
* @note not available in python bindings
*/
//QgsComposerMapItem &operator[]( int idx );
// QgsComposerMapItem &operator[]( int idx );

/**Returns a list of QgsComposerMapItems contained by the stack
* @returns list of items
@@ -98,7 +98,6 @@ class QgsComposerMapOverviewStack : QgsComposerMapItemStack

};


/**\ingroup MapComposer
* \class QgsComposerMapOverview
* \brief An individual overview which is drawn above the map content in a
@@ -173,7 +172,7 @@ class QgsComposerMapOverview : QgsComposerMapItem
QPainter::CompositionMode blendMode() const;

/**Sets the blending mode used for drawing the overview.
* @param mode blending mode for overview
* @param blendMode blending mode for overview
* @see blendMode
*/
void setBlendMode( const QPainter::CompositionMode blendMode );
@@ -24,7 +24,8 @@ class QgsComposerModel : QAbstractItemModel
public:

/**Constructor
* @param composition parent composition
* @param composition composition to attach to
* @param parent parent object
*/
explicit QgsComposerModel( QgsComposition* composition, QObject* parent = 0 );

@@ -39,6 +40,11 @@ class QgsComposerModel : QAbstractItemModel
Qt::ItemFlags flags( const QModelIndex & index ) const;
bool setData( const QModelIndex & index, const QVariant & value, int role );
QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
Qt::DropActions supportedDropActions() const;
virtual QStringList mimeTypes() const;
virtual QMimeData* mimeData( const QModelIndexList &indexes ) const;
bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
bool removeRows( int row, int count, const QModelIndex & parent = QModelIndex() );

/**Clears all items from z-order list and resets the model
* @note added in QGIS 2.5
@@ -164,6 +170,7 @@ class QgsComposerModel : QAbstractItemModel
* @param item item to update
* @see updateItemLockStatus
* @see updateItemVisibility
* @see updateItemSelectStatus
* @note added in QGIS 2.5
*/
void updateItemDisplayName( QgsComposerItem *item );
@@ -172,6 +179,7 @@ class QgsComposerModel : QAbstractItemModel
* @param item item to update
* @see updateItemDisplayName
* @see updateItemVisibility
* @see updateItemSelectStatus
* @note added in QGIS 2.5
*/
void updateItemLockStatus( QgsComposerItem *item );
@@ -180,10 +188,20 @@ class QgsComposerModel : QAbstractItemModel
* @param item item to update
* @see updateItemDisplayName
* @see updateItemLockStatus
* @see updateItemSelectStatus
* @note added in QGIS 2.5
*/
void updateItemVisibility( QgsComposerItem *item );

/**Must be called when an item's selection status changes
* @param item item to update
* @see updateItemDisplayName
* @see updateItemVisibility
* @see updateItemLockStatus
* @note added in QGIS 2.5
*/
void updateItemSelectStatus( QgsComposerItem *item );

public slots:

/**Sets an item as the current selection from a QModelIndex
@@ -29,7 +29,6 @@ class QgsComposerMultiFrameCommand : QUndoCommand
bool checkFirstRun();
};


/**A composer command that merges together with other commands having the same context (=id)
* for multi frame items. Keeps the oldest previous state and uses the newest after state.
* The purpose is to avoid too many micro changes in the history*/
@@ -15,6 +15,7 @@ class QgsComposerObject : QObject
{
NoProperty = 0, /*< no property */
AllProperties, /*< all properties for item */
TestProperty, /*< dummy property with no effect on item*/
//composer page properties
PresetPaperSize, /*< preset paper size for composition */
PaperWidth, /*< paper width */
@@ -40,7 +41,9 @@ class QgsComposerObject : QObject
MapYMax, /*< map extent y maximum */
MapAtlasMargin, /*< map atlas margin*/
//composer picture
PictureSource /*< picture source url */
PictureSource, /*< picture source url */
//html item
SourceUrl /*< html source url */
};

/** Specifies whether the value returned by a function should be the original, user
@@ -57,7 +60,6 @@ class QgsComposerObject : QObject
* @param composition parent composition
*/
QgsComposerObject( QgsComposition* composition );

virtual ~QgsComposerObject();

/**Returns the composition the item is attached to.
@@ -66,7 +68,7 @@ class QgsComposerObject : QObject
const QgsComposition* composition() const;

/**Stores item state in DOM element
* @param elem is DOM element corresponding to 'Composer' tag
* @param elem is DOM element corresponding to item tag
* @param doc is the DOM document
*/
virtual bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
@@ -88,7 +90,7 @@ class QgsComposerObject : QObject
* @param active true if data defined property is active, false if it is disabled
* @param useExpression true if the expression should be used
* @param expression expression for data defined property
* @field field name if the data defined property should take its value from a field
* @param field field name if the data defined property should take its value from a field
* @note this method was added in version 2.5
*/
void setDataDefinedProperty( const DataDefinedProperty property, const bool active, const bool useExpression, const QString &expression, const QString &field );
@@ -33,7 +33,7 @@ class QgsComposerPicture: QgsComposerItem
QgsComposerPicture( QgsComposition *composition /TransferThis/);
~QgsComposerPicture();

/** return correct graphics item type. Added in v1.7 */
/** return correct graphics item type. */
virtual int type() const;

/**Reimplementation of QCanvasItem::paint*/
@@ -57,7 +57,7 @@ class QgsComposerPicture: QgsComposerItem
*/
QString pictureFile() const /Deprecated/;

/**Sets the source path of the image (may be svg or a raster format). Data defined
/**Sets the source path of the image (may be svg or a raster format). Data defined
* picture source may override this value. The path can either be a local path
* or a remote (http) path.
* @param path path for the source image
@@ -76,7 +76,6 @@ class QgsComposerPicture: QgsComposerItem
*/
QString picturePath() const;


/**Sets this items bound in scene coordinates such that 1 item size units
* corresponds to 1 scene size unit and resizes the svg symbol / image
*/
@@ -263,6 +262,8 @@ class QgsComposerPicture: QgsComposerItem
*/
void recalculateSize();

virtual void refreshDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property = QgsComposerObject::AllProperties );

signals:
/**Is emitted on picture rotation change*/
void pictureRotationChanged( double newRotation );
@@ -20,7 +20,7 @@ class QgsComposerTable: QgsComposerItem
QgsComposerTable( QgsComposition* composition /TransferThis/ );
virtual ~QgsComposerTable();

/** return correct graphics item type. Added in v1.7 */
/** return correct graphics item type. */
virtual int type() const;

/** \brief Reimplementation of QCanvasItem::paint*/
@@ -219,8 +219,6 @@ class QgsComposerTable: QgsComposerItem
virtual void adjustFrameToSize();

protected:
/**Retrieves feature attributes*/
// virtual bool getFeatureAttributes( QList<QgsAttributeMap>& attributeMaps );
/**Calculates the maximum width of text shown in columns.
* @param maxWidthMap QMap of int to double in which to store the maximum widths. The int will be filled
* with the column number and the double with the maximum width of text present in the column.

0 comments on commit abd4a04

Please sign in to comment.
You can’t perform that action at this time.