Skip to content
Permalink
Browse files

Drop all composer classes from Python bindings

  • Loading branch information
nyalldawson committed Jan 8, 2018
1 parent e2ce85f commit db906273b5e93f25a0f7e31e47dac2f8fe93f58a
Showing with 210 additions and 12,538 deletions.
  1. +8 −237 doc/api_break.dox
  2. +0 −54 python/core/composer/qgsaddremoveitemcommand.sip
  3. +0 −46 python/core/composer/qgsaddremovemultiframecommand.sip
  4. +0 −438 python/core/composer/qgsatlascomposition.sip
  5. +0 −274 python/core/composer/qgscomposerarrow.sip
  6. +0 −252 python/core/composer/qgscomposerattributetablemodelv2.sip
  7. +0 −393 python/core/composer/qgscomposerattributetablev2.sip
  8. +0 −44 python/core/composer/qgscomposereffect.sip
  9. +0 −137 python/core/composer/qgscomposerframe.sip
  10. +0 −307 python/core/composer/qgscomposerhtml.sip
  11. +0 −902 python/core/composer/qgscomposeritem.sip
  12. +0 −175 python/core/composer/qgscomposeritemcommand.sip
  13. +0 −95 python/core/composer/qgscomposeritemgroup.sip
  14. +0 −211 python/core/composer/qgscomposerlabel.sip
  15. +0 −373 python/core/composer/qgscomposerlegend.sip
  16. +0 −638 python/core/composer/qgscomposermap.sip
  17. +0 −1,080 python/core/composer/qgscomposermapgrid.sip
  18. +0 −329 python/core/composer/qgscomposermapitem.sip
  19. +0 −323 python/core/composer/qgscomposermapoverview.sip
  20. +0 −436 python/core/composer/qgscomposermodel.sip
  21. +0 −376 python/core/composer/qgscomposermultiframe.sip
  22. +0 −99 python/core/composer/qgscomposermultiframecommand.sip
  23. +0 −197 python/core/composer/qgscomposernodesitem.sip
  24. +0 −252 python/core/composer/qgscomposerobject.sip
  25. +0 −396 python/core/composer/qgscomposerpicture.sip
  26. +0 −106 python/core/composer/qgscomposerpolygon.sip
  27. +0 −106 python/core/composer/qgscomposerpolyline.sip
  28. +0 −449 python/core/composer/qgscomposerscalebar.sip
  29. +0 −149 python/core/composer/qgscomposershape.sip
  30. +0 −287 python/core/composer/qgscomposertablecolumn.sip
  31. +0 −745 python/core/composer/qgscomposertablev2.sip
  32. +0 −66 python/core/composer/qgscomposertexttable.sip
  33. +0 −364 python/core/composer/qgscomposerutils.sip
  34. +0 −1,171 python/core/composer/qgscomposition.sip
  35. +0 −67 python/core/composer/qgsgroupungroupitemscommand.sip
  36. +4 −37 python/core/composer/qgslayoutmanager.sip
  37. +0 −87 python/core/composer/qgspaperitem.sip
  38. +0 −35 python/core/core_auto.sip
  39. +1 −68 python/core/layout/qgslayoutitem.sip
  40. +0 −74 python/core/qgsexpressioncontext.sip
  41. +0 −17 python/core/qgsmultirenderchecker.sip
  42. +0 −4 python/gui/gui_auto.sip
  43. +0 −46 python/gui/layout/qgslayoutitemregistryguiutils.sip
  44. +0 −57 python/gui/qgscomposerinterface.sip
  45. +0 −112 python/gui/qgscomposeritemcombobox.sip
  46. +0 −64 python/gui/qgscomposerruler.sip
  47. +0 −283 python/gui/qgscomposerview.sip
  48. +4 −0 src/core/composer/qgsaddremoveitemcommand.h
  49. +4 −0 src/core/composer/qgsaddremovemultiframecommand.h
  50. +4 −0 src/core/composer/qgsatlascomposition.h
  51. +4 −0 src/core/composer/qgscomposerarrow.h
  52. +4 −0 src/core/composer/qgscomposerattributetablemodelv2.h
  53. +5 −1 src/core/composer/qgscomposerattributetablev2.h
  54. +4 −0 src/core/composer/qgscomposereffect.h
  55. +4 −0 src/core/composer/qgscomposerframe.h
  56. +4 −0 src/core/composer/qgscomposerhtml.h
  57. +4 −0 src/core/composer/qgscomposeritem.h
  58. +4 −0 src/core/composer/qgscomposeritemcommand.h
  59. +4 −0 src/core/composer/qgscomposeritemgroup.h
  60. +4 −0 src/core/composer/qgscomposerlabel.h
  61. +1 −0 src/core/composer/qgscomposerlegend.h
  62. +4 −0 src/core/composer/qgscomposermap.h
  63. +4 −0 src/core/composer/qgscomposermapgrid.h
  64. +4 −0 src/core/composer/qgscomposermapitem.h
  65. +4 −0 src/core/composer/qgscomposermapoverview.h
  66. +4 −0 src/core/composer/qgscomposermodel.h
  67. +2 −1 src/core/composer/qgscomposermousehandles.h
  68. +3 −0 src/core/composer/qgscomposermultiframe.h
  69. +4 −0 src/core/composer/qgscomposermultiframecommand.h
  70. +4 −0 src/core/composer/qgscomposernodesitem.h
  71. +4 −0 src/core/composer/qgscomposerobject.h
  72. +5 −1 src/core/composer/qgscomposerpicture.h
  73. +4 −0 src/core/composer/qgscomposerpolygon.h
  74. +4 −0 src/core/composer/qgscomposerpolyline.h
  75. +4 −0 src/core/composer/qgscomposerscalebar.h
  76. +6 −1 src/core/composer/qgscomposershape.h
  77. +6 −1 src/core/composer/qgscomposertablecolumn.h
  78. +5 −0 src/core/composer/qgscomposertablev2.h
  79. +5 −0 src/core/composer/qgscomposertexttable.h
  80. +5 −0 src/core/composer/qgscomposerutils.h
  81. +5 −0 src/core/composer/qgscomposition.h
  82. +6 −1 src/core/composer/qgsgroupungroupitemscommand.h
  83. +6 −5 src/core/composer/qgslayoutmanager.h
  84. +5 −0 src/core/composer/qgspaperitem.h
  85. +1 −68 src/core/layout/qgslayoutitem.h
  86. +15 −0 src/core/qgsexpressioncontext.h
  87. +5 −0 src/core/qgsmultirenderchecker.h
  88. +4 −0 src/gui/qgscomposerinterface.h
  89. +5 −0 src/gui/qgscomposeritemcombobox.h
  90. +6 −1 src/gui/qgscomposerruler.h
  91. +4 −0 src/gui/qgscomposerview.h
@@ -75,9 +75,6 @@ Renamed Classes {#qgis_api_break_3_0_renamed_classes}
<tr><td>QgsCentroidFillSymbolLayerV2Widget<td>QgsCentroidFillSymbolLayerWidget
<tr><td>QgsCircularStringV2<td>QgsCircularString
<tr><td>QgsColorButtonV2<td>QgsColorButton
<tr><td>QgsComposerLegendStyle<td>QgsLegendStyle
<tr><td>QgsComposerSymbolV2Item<td>QgsComposerSymbolItem
<tr><td>QgsComposerTableAvailableSortProxyModelV2<td>QgsComposerTableAvailableSortProxyModel
<tr><td>QgsCompoundCurveV2<td>QgsCompoundCurve
<tr><td>QgsCoordinateSequenceV2<td>QgsCoordinateSequence
<tr><td>QgsCptCityColorRampV2<td>QgsCptCityColorRamp
@@ -227,7 +224,6 @@ Renamed Classes {#qgis_api_break_3_0_renamed_classes}
<tr><td>QgsAnnotation<td>mapPositionFixed<td>hasFixedMapPosition
<tr><td>QgsApplication<td>defaultStyleV2Path<td>defaultStylePath
<tr><td>QgsApplication<td>userStyleV2Path<td>userStylePath
<tr><td>QgsComposerShape<td>setUseSymbolV2<td>setUseSymbol
<tr><td>QgsIFeatureSelectionManager<td>selectedFeaturesIds<td>selectedFeatureIds
<tr><td>QgsMapLayer<td>capitaliseLayerName<td>capitalizeLayerName <!--#spellok-->
<tr><td>QgsSymbolLayerUtils<td>createSymbolLayerV2ListFromSld<td>createSymbolLayerListFromSld
@@ -238,7 +234,6 @@ Renamed Classes {#qgis_api_break_3_0_renamed_classes}
<tr><td>QgsVectorLayer<td>rendererV2<td>renderer
<tr><td>QgsVectorLayer<td>selectedFeaturesIds<td>selectedFeatureIds
<tr><td>QgsVectorLayerEditUtils<td>deleteVertexV2<td>deleteVertex
<tr><td>QgsComposerSymbolItem<td>symbolV2<td>symbol
<tr><td>QgsServerInterface<td>capabiblitiesCache<td>capabilitiesCache
<tr><td>QgsGraphEdge<td>property<td>cost
<tr><td>QgsGraphEdge<td>properties<td>strategies
@@ -267,12 +262,6 @@ Removed Classes {#qgis_api_break_3_0_removed_classes}
- QgsColorDialog was removed, and QgsColorDialogV2 was renamed to QgsColorDialog. Hence, QgsColorButtonV2 does not exist anymore.
All the functionality from the old QgsColorDialog has been moved to the new class.
- QgsColorRampComboBox was removed, replaced by QgsColorRampButton
- QgsComposerAttributeTable and associated classes (eg QgsComposerAttributeTableCompare,
QgsComposerAttributeTableColumnModel, QgsComposerTableSortColumnsProxyModel) were removed.
Use QgsComposerAttributeTableV2 instead.
- QgsComposerLegendItem and subclasses were removed (QgsComposerSymbolItem, QgsComposerRasterSymbolItem, QgsComposerLayerItem, QgsComposerGroupItem, QgsComposerStyleItem).
- QgsComposerTable was removed. Use QgsComposerAttributeTableV2 instead.
- ComposerTextTable was removed. Use ComposerTextTableV2 instead.
- QgsCRSCache was removed. QgsCoordinateReferenceSystem now internally uses a cache for CRS creation,
so there is no longer a need for the separate cache class. Code which previously called QgsCRSCache::updateCRSCache()
should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinateTransformCache::instance()->invalidateCrs( authid ).
@@ -355,6 +344,14 @@ General changes {#qgis_api_break_3_0_global}
- Network analysis library has been merged into analysis library


Composer {#qgis_api_break_3_0_Composer}
--------

All composer related methods have been removed from the public API and Python bindings. These classes
have been replaced with the new layouts engine, based on QgsLayout, QgsLayoutItem, and the other
related classes.


Labeling {#qgis_api_break_3_0_Labeling}
--------

@@ -427,14 +424,6 @@ QgisInterface {#qgis_api_break_3_0_QgisInterface}
- fileMenu() has been removed, use projectMenu() instead.
- actionRemoveLayer was removed as it no longer exists.
- actionTouch was removed, as the corresponding action no longer exists (see notes on QgsMapToolTouch)
- activeComposers(), createNewComposer(), duplicateComposer(), deleteComposer(), composerAdded(),
composerWillBeRemoved(), composerRemoved() were all removed. Composer windows are now only created
on demand, and destroyed when the window is closed. The new interface methods openComposers(),
openComposer(), closeComposer(), composerOpened(), composerWillBeClosed() and composerClosed()
are similar, but only apply to composer windows when they exist. To access all compositions
from a project, the new QgsProject.instance().layoutManager() class should be used instead.
Additionally, the new interface methods work with QgsComposerInterface objects instead
of QgsComposerView objects.
- interaction with the main window status bar should no longer use the native Qt statusBar() method.
Instead iface.statusBarIface() should be used.

@@ -511,22 +500,6 @@ QgsApplication {#qgis_api_break_3_0_QgsApplication}
- createDB() was renamed to createDatabase()


QgsAtlasComposition {#qgis_api_break_3_0_QgsAtlasComposition}
-------------------

- readXMLMapSettings() was removed. QGIS no longer supports upgrading pre 2.2 compositions and if this is a
requirement the projects should first be upgraded by opening and saving in 2.18.
- composerMap() and setComposerMap() were removed. Use QgsComposerMap::atlasDriven() and setAtlasDriven()
instead
- fixedScale() and setFixedScale() were removed. Use QgsComposerMap::atlasScalingMode() and setAtlasScalingMode()
instead
- margin() and setMargin() were removed. Use QgsComposerMap::atlasMargin() and setAtlasMargin()
instead
- setSortKeyAttributeIndex() and sortKeyAttributeIndex() were removed. Use sortKeyAttributeName()
and setSortKeyAttributeName() instead.
- currentFeature() was removed. Use feature() instead.


QgsAttributeDialog {#qgis_api_break_3_0_QgsAttributeDialog}
------------------

@@ -680,208 +653,6 @@ QgsColorSchemeRegistry {#qgis_api_break_3_0_QgsColorSchemeRegistry}
- This class is no longer a singleton and instance() has been removed. Instead use QgsApplication::colorSchemeRegistry() to access an application-wide registry.


QgsComposerArrow {#qgis_api_break_3_0_QgsComposerArrow}
----------------

- setOutlineWidth(), outlineWidth(), arrowColor() and setArrowColor() were removed.
Use setArrowHeadOutlineWidth(), arrowHeadOutlineWidth(), arrowHeadOutlineColor(),
setArrowHeadOutlineColor(), arrowHeadFillColor(), setArrowHeadFillColor(),
setLineSymbol() or lineSymbol() instead.


QgsComposerAttributeTableV2 {#qgis_api_break_3_0_QgsComposerAttributeTableV2}
---------------------------

- setDisplayAttributes() was removed. Use setDisplayedFields() instead.


QgsComposerItem {#qgis_api_break_3_0_QgsComposerItem}
---------------

- zoomContent( int delta, double x, double y ) was removed. Use zoomContent( double, QPointF, ZoomMode )
instead.
- drawText(), textWidthMillimeters(), fontHeightCharacterMM(), fontAscentMillimeters(),
fontDescentMillimeters(), fontHeightMillimeters(), pixelFontSize(), scaledFontPixelSize(),
drawArrowHead(), angle(), largestRotatedRectWithinBounds(), and rotate() were removed.
Use the corresponding methods in QgsComposerUtils instead.
- rotation() and setRotation() were removed. Use itemRotation() and setItemRotation()
instead.
- lockSymbolSize(), imageSizeConsideringRotation(), cornerPointOnRotatedAndScaledRect(),
sizeChangedByRotation() were removed. No replacement is offered for these methods.
- transparency() and setTransparency() were removed. Use itemOpacity() and setItemOpacity() instead.

QgsComposerItemCommand {#qgis_api_break_3_0_QgsComposerItemCommand}
----------------------

- ItemTransparency was removed. Use ItemOpacity instead.


QgsComposerLabel {#qgis_api_break_3_0_QgsComposerLabel}
----------------

- setExpressionContext() has been removed. Setup the composition using an atlas and with
expression variables in the composer label item instead.
- setSubstitutions has been removed. Use expression context variables in the composer
label item instead.
- margin() was removed. Use marginX() and marginY() instead.


QgsComposerLegend {#qgis_api_break_3_0_QgsComposerLegend}
-----------------

- model() now returns the new QgsLegendModel (previously QgsLegendModelV2, see \ref qgis_api_break_3_0_renamed_classes).
- modelV2() has been renamed to model().


QgsComposerLegendItem {#qgis_api_break_3_0_QgsComposerLegendItem}
---------------------

- writeXMLChildren() has been renamed to writeXmlChildren()


QgsComposerMap {#qgis_api_break_3_0_QgsComposerMap}
--------------

- layerSet() and setLayerSet() have been replaced by layers() and setLayers() which work with list of layers instead of layer IDs
- containsWMSLayer() has been renamed to containsWmsLayer()
- mapRenderer() has been removed. Use mapSettings() instead.
- All grid style and format enums were moved to QgsComposerMapGrid.
- All grid property getters and setters were moved to QgsComposerMapGrid,
and should be accessed using QgsComposerMap::grid() or QgsComposerMap::grids().
- All overview property getters and setters were moved to QgsComposerMapOverview,
and should be accessed using QgsComposerMap::overview() or QgsComposerMap::overviews().
- overviewExtentChanged() was moved to QgsComposerMapOverview.
- toggleAtlasPreview(), connectMapOverviewSignals() were no longer required and are removed.
- setRotation() and rotation() were removed. Use setMapRotation() and mapRotation()
instead.
- atlasFixedScale() and setAtlasFixedScale() were removed. Use atlasScalingMode()
and setAtlasScalingMode() instead.
- storeCurrentLayerSet() was removed. Use setLayers() instead.
- The layersChanged() slot was removed.
- setMapCanvas() was removed. This is no longer required to draw map annotations, which are instead retrieved from the composition's
associated project's annotationManager()
- setDrawCanvasItems() and drawCanvasItems() were renamed to setDrawAnnotations() and drawAnnotations()
- setCacheUpdated(), updateCachedImage(), renderModeUpdateCachedImage() and cache() were removed. Use invalidateCache() instead.
- The PreviewMode mode enums were removed. These are no longer used.
- previewMode() and setPreviewMode() were removed. These are no longer required.


QgsComposerMapGrid {#qgis_api_break_3_0_QgsComposerMapGrid}
------------------

- The annotation position Disabled was removed. QgsComposerMapGrid::HideAll
should be used instead.


QgsComposerMultiFrame {#qgis_api_break_3_0_QgsComposerMultiFrame}
---------------------

- render( QPainter* p, const QRectF& renderExtent ) was removed. Use
render( QPainter* painter, const QRectF& renderExtent, const int frameIndex )
instead.
- render( QPainter* painter, const QRectF& renderExtent, const int frameIndex )
was made pure virtual.


QgsComposerNodesItem {#qgis_api_break_3_0_QgsComposerNodesItem}
--------------------

- _readXMLStyle() has been renamed to _readXmlStyle()
- _writeXMLStyle() has been renamed to _writeXMLStyle()
- unselectNode() has been renamed to deselectNode() <!--#spellok-->

QgsComposerObject {#qgis_api_break_3_0_QgsComposerObject}
-----------------

- dataDefinedProperty() and setDataDefinedProperty() no longer use QgsDataDefined objects.
Instead these methods have been ported to the QgsProperty framework.
- dataDefinedEvaluate() was removed. Use the QgsProperty evaluation methods instead.


QgsComposerPicture {#qgis_api_break_3_0_QgsComposerPicture}
------------------

- setPictureFile() and pictureFile() were removed. Use setPicturePath()
and picturePath() instead.
- rotation() and setRotation() were removed. Use pictureRotation()
and setPictureRotation() instead.
- usePictureExpression() and pictureExpression() were removed. Use
QgsComposerObject::dataDefinedProperty instead.
- setUsePictureExpression() was removed. Use
QgsComposerObject::setDataDefinedProperty() instead.
- updatePictureExpression() was removed.

QgsComposerScaleBar {#qgis_api_break_3_0_QgsComposerScaleBar}
-------------------

- The Alignment and SegmentSizeMode enums were moved to QgsScaleBarSettings
- The ScaleBarUnits enum was removed. Use QgsUnitTypes::DistanceUnit instead.
- setBrush() was removed. Use setFillColor() instead.
- setBrush2() was removed. Use setFillColor2() instead.
- setPen() was removed. Use setLineColor() and setLineWidth() instead.
- segmentMillimeters() and firstLabelString() were removed.


QgsComposerTable {#qgis_api_break_3_0_QgsComposerTable}
----------------

- tableWriteXML() has been renamed to tableWriteXml()
- tableReadXML() has been renamed to tableReadXml()


QgsComposerTableV2 {#qgis_api_break_3_0_QgsComposerTableV2}
------------------

- rowsVisible(), rowRange(), drawHorizontalGridLines() and
drawVerticalGridLines() were removed.
- WrapBehaviour enum and its setter and getter methods has been renamed to WrapBehavior <!--#spellok-->
- EmptyTableBehaviour enum and its setter and getter methods has been renamed to EmptyTableBehavior <!--#spellok-->


QgsComposerView {#qgis_api_break_3_0_QgsComposerView}
--------------------

- unselectNode() has been renamed to deselectNode() <!--#spellok-->


QgsComposerUtils {#qgis_api_break_3_0_QgsComposerUtils}
-----------------

- readDataDefinedPropertyMap() was renamed to readOldDataDefinedPropertyMap() and the signature has changed
to use a QgsPropertyCollection object.
- readDataDefinedProperty() was renamed to readOldDataDefinedProperty() and the signature has changed
to use the QgsProperty framework objects.
- writeDataDefinedPropertyMap() was removed. This is now handled by QgsPropertyCollection::writeXml()


QgsComposition {#qgis_api_break_3_0_QgsComposition}
--------------

- The constructor no longer takes a reference to a QgsMapSettings object. This is no longer
used by compositions. To set the layers to show in composer maps, the QgsComposerMap::setLayers()
method should be used instead.
- constructor requires QgsProject instance
- addItemsFromXML() has been renamed to addItemsFromXml()
- Constructor with QgsMapRenderer parameter has been removed. Use the variant with QgsMapSettings parameter.
- mapRenderer() has been removed. Use mapSettings() instead.
- setSnapGridTolerance(), setAlignmentSnapTolerance(), alignmentSnapTolerance() and snapGridTolerance()
were removed. Use setSnapTolerance() and snapTolerance() instead.
- getComposerHtmlByItem() was removed. Use QgsComposerFrame::multiFrame() instead.
- pixelFontSize(), pointFontSize(), relativeResizeRect(), relativePosition() were removed. Use the corresponding methods in QgsComposerUtils instead.
- sortZList() was removed. Use refreshZList() instead.
- addComposerTable(), composerTableAdded() were removed.
- setAllUnselected() has been renamed to setAllDeselected. <!--#spellok-->
- worldFileMap() and setWorldFileMap() have been renamed to referenceMap() and setReferenceMap()
- dataDefinedProperty() and setDataDefinedProperty() now use the QgsProperty framework instead
of QgsDataDefined objects.
- mapSettings() was removed. Use QgsComposerMap::mapSettings() instead.
- The composerArrowAdded, composerPolygonAdded, composerPolylineAdded, composerHtmlFrameAdded, composerItemGroupAdded,
composerLabelAdded, composerMapAdded, composerScaleBarAdded, composerLegendAdded, composerPictureAdded,
composerShapeAdded, and composerTableFrameAdded were removed. Use the general itemAdded signal instead to catch
all these item added events.
- addComposerMap no longer takes a setDefaultPreviewStyle argument.
- the mapsToRestore parameter has been removed from addItemsFromXml

QgsCompoundColorWidget {#qgis_api_break_3_0_QgsCompoundColorWidget}
----------------------

This file was deleted.

0 comments on commit db90627

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