Skip to content
Permalink
Browse files

Merge pull request #3855 from wonder-sk/project-refactoring-part1

Project refactoring - part I
  • Loading branch information
wonder-sk committed Dec 11, 2016
2 parents 6eb330e + 04f8704 commit 20cdd4f0e6e326fb120f0adc160eb391acc51820
Showing with 2,590 additions and 2,682 deletions.
  1. +4 −0 doc/api_break.dox
  2. +2 −2 python/core/composer/qgscomposermap.sip
  3. +0 −1 python/core/core.sip
  4. +3 −0 python/core/layertree/qgslayertreegroup.sip
  5. +1 −1 python/core/layertree/qgslayertreelayer.sip
  6. +2 −1 python/core/layertree/qgslayertreeregistrybridge.sip
  7. +1 −1 python/core/qgsmaplayer.sip
  8. +0 −297 python/core/qgsmaplayerregistry.sip
  9. +6 −3 python/core/qgsmapsettings.sip
  10. +58 −44 python/core/qgsmapthemecollection.sip
  11. +280 −0 python/core/qgsproject.sip
  12. +1 −1 python/core/qgssnappingconfig.sip
  13. +3 −2 python/gui/qgsmapoverviewcanvas.sip
  14. +4 −4 python/plugins/GdalTools/tools/GdalTools_utils.py
  15. +2 −2 python/plugins/GdalTools/tools/doProjection.py
  16. +2 −2 python/plugins/GdalTools/tools/inOutSelector.py
  17. +4 −4 python/plugins/db_manager/db_manager_plugin.py
  18. +2 −2 python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py
  19. +4 −4 python/plugins/db_manager/db_plugins/vlayers/connector.py
  20. +2 −2 python/plugins/db_manager/db_plugins/vlayers/plugin.py
  21. +2 −2 python/plugins/db_manager/db_tree.py
  22. +2 −2 python/plugins/db_manager/dlg_import_vector.py
  23. +3 −4 python/plugins/db_manager/dlg_sql_layer_window.py
  24. +3 −4 python/plugins/db_manager/dlg_sql_window.py
  25. +3 −3 python/plugins/db_manager/layer_preview.py
  26. +0 −1 python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
  27. +2 −2 python/plugins/processing/algs/lidar/lastools/lasquery.py
  28. +3 −3 python/plugins/processing/gui/AlgorithmDialog.py
  29. +5 −5 python/plugins/processing/gui/AlgorithmDialogBase.py
  30. +1 −1 python/plugins/processing/gui/CommanderWindow.py
  31. +1 −1 python/plugins/processing/gui/ParametersPanel.py
  32. +2 −2 python/plugins/processing/gui/Postprocessing.py
  33. +3 −3 python/plugins/processing/tests/AlgorithmsTestBase.py
  34. +3 −3 python/plugins/processing/tools/dataobjects.py
  35. +2 −2 python/plugins/processing/tools/vector.py
  36. +0 −1 src/app/composer/qgsatlascompositionwidget.cpp
  37. +0 −1 src/app/composer/qgscomposer.cpp
  38. +0 −1 src/app/composer/qgscomposerattributetablewidget.cpp
  39. +0 −1 src/app/composer/qgscomposerlegendwidget.cpp
  40. +3 −5 src/app/composer/qgscomposermapwidget.cpp
  41. +3 −4 src/app/main.cpp
  42. +3 −3 src/app/openstreetmap/qgsosmdownloaddialog.cpp
  43. +2 −2 src/app/openstreetmap/qgsosmexportdialog.cpp
  44. +26 −27 src/app/qgisapp.cpp
  45. +0 −1 src/app/qgisappinterface.cpp
  46. +3 −3 src/app/qgsalignrasterdialog.cpp
  47. +3 −4 src/app/qgsapplayertreeviewmenuprovider.cpp
  48. +1 −1 src/app/qgsattributeactiondialog.cpp
  49. +0 −1 src/app/qgsattributetypedialog.cpp
  50. +0 −1 src/app/qgsbrowserdockwidget.cpp
  51. +1 −1 src/app/qgsdxfexportdialog.cpp
  52. +0 −1 src/app/qgsfieldsproperties.cpp
  53. +2 −2 src/app/qgsjoindialog.cpp
  54. +2 −2 src/app/qgslabelpropertydialog.cpp
  55. +1 −2 src/app/qgslayerstylingwidget.cpp
  56. +13 −115 src/app/qgsmapthemes.cpp
  57. +1 −1 src/app/qgsmapthemes.h
  58. +1 −2 src/app/qgsmaptooladdfeature.cpp
  59. +0 −1 src/app/qgsmaptoolfeatureaction.cpp
  60. +0 −1 src/app/qgsmaptoolidentifyaction.cpp
  61. +2 −2 src/app/qgsmaptoollabel.cpp
  62. +0 −1 src/app/qgsmaptoolmovelabel.cpp
  63. +2 −2 src/app/qgsmaptooloffsetcurve.cpp
  64. +2 −2 src/app/qgsmaptoolpinlabels.cpp
  65. +0 −1 src/app/qgsmaptoolrotatelabel.cpp
  66. +2 −2 src/app/qgsnewspatialitelayerdialog.cpp
  67. +5 −6 src/app/qgsprojectproperties.cpp
  68. +2 −2 src/app/qgsrastercalcdialog.cpp
  69. +0 −1 src/app/qgsrasterlayerproperties.cpp
  70. +1 −0 src/app/qgssnappingwidget.cpp
  71. +2 −2 src/app/qgsstatisticalsummarydockwidget.cpp
  72. +5 −6 src/app/qgsvectorlayerproperties.cpp
  73. +4 −4 src/browser/qgsbrowser.cpp
  74. +0 −2 src/core/CMakeLists.txt
  75. +3 −12 src/core/composer/qgsatlascomposition.cpp
  76. +3 −4 src/core/composer/qgscomposerattributetablev2.cpp
  77. +1 −2 src/core/composer/qgscomposerlegend.cpp
  78. +2 −2 src/core/composer/qgscomposerlegenditem.cpp
  79. +77 −71 src/core/composer/qgscomposermap.cpp
  80. +4 −4 src/core/composer/qgscomposermap.h
  81. +0 −1 src/core/dxf/qgsdxfexport.cpp
  82. +0 −2 src/core/geometry/qgsgeometry.cpp
  83. +1 −2 src/core/geometry/qgsgeometryeditutils.cpp
  84. +8 −3 src/core/layertree/qgslayertreegroup.cpp
  85. +3 −0 src/core/layertree/qgslayertreegroup.h
  86. +9 −9 src/core/layertree/qgslayertreelayer.cpp
  87. +1 −1 src/core/layertree/qgslayertreelayer.h
  88. +6 −7 src/core/layertree/qgslayertreeregistrybridge.cpp
  89. +4 −1 src/core/layertree/qgslayertreeregistrybridge.h
  90. +3 −3 src/core/qgsapplication.cpp
  91. +6 −7 src/core/qgsexpression.cpp
  92. +1 −2 src/core/qgsjsonutils.cpp
  93. +3 −2 src/core/qgslabelingengine.cpp
  94. +0 −1 src/core/qgslayerdefinition.cpp
  95. +0 −1 src/core/qgslegendrenderer.cpp
  96. +3 −3 src/core/qgsmaphittest.cpp
  97. +3 −4 src/core/qgsmaplayer.cpp
  98. +1 −1 src/core/qgsmaplayer.h
  99. +56 −0 src/core/qgsmaplayerlistutils.h
  100. +5 −5 src/core/qgsmaplayermodel.cpp
  101. +2 −2 src/core/qgsmaplayerproxymodel.cpp
  102. +0 −211 src/core/qgsmaplayerregistry.cpp
  103. +0 −367 src/core/qgsmaplayerregistry.h
  104. +4 −4 src/core/qgsmaprenderercache.cpp
  105. +2 −2 src/core/qgsmaprenderercustompainterjob.cpp
  106. +5 −15 src/core/qgsmaprendererjob.cpp
  107. +14 −19 src/core/qgsmapsettings.cpp
  108. +9 −4 src/core/qgsmapsettings.h
  109. +224 −109 src/core/qgsmapthemecollection.cpp
  110. +90 −56 src/core/qgsmapthemecollection.h
  111. +10 −11 src/core/qgsofflineediting.cpp
  112. +1 −2 src/core/qgspallabeling.cpp
  113. +3 −3 src/core/qgspluginlayerregistry.cpp
  114. +186 −14 src/core/qgsproject.cpp
  115. +312 −0 src/core/qgsproject.h
  116. +2 −2 src/core/qgsproviderregistry.cpp
  117. +3 −3 src/core/qgsrelation.cpp
  118. +1 −2 src/core/qgsrelationmanager.cpp
  119. +15 −15 src/core/qgssnappingconfig.cpp
  120. +4 −1 src/core/qgssnappingconfig.h
  121. +5 −5 src/core/qgssnappingutils.cpp
  122. +2 −2 src/core/qgstaskmanager.cpp
  123. +4 −4 src/core/qgstransaction.cpp
  124. +5 −6 src/core/qgsvectorlayer.cpp
  125. +1 −2 src/core/qgsvectorlayerfeatureiterator.cpp
  126. +7 −7 src/core/qgsvectorlayerjoinbuffer.cpp
  127. +2 −2 src/core/qgsvirtuallayerdefinitionutils.cpp
  128. +0 −1 src/core/raster/qgsrasterlayer.cpp
  129. +0 −1 src/gui/attributetable/qgsattributetablemodel.cpp
  130. +2 −3 src/gui/editorwidgets/core/qgseditorwidgetregistry.cpp
  131. +0 −1 src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.cpp
  132. +2 −2 src/gui/editorwidgets/qgsvaluerelationconfigdlg.cpp
  133. +0 −1 src/gui/editorwidgets/qgsvaluerelationsearchwidgetwrapper.cpp
  134. +0 −1 src/gui/editorwidgets/qgsvaluerelationwidgetfactory.cpp
  135. +2 −2 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
  136. +3 −3 src/gui/layertree/qgscustomlayerorderwidget.cpp
  137. +2 −2 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
  138. +5 −5 src/gui/qgsattributetypeloaddialog.cpp
  139. +2 −2 src/gui/qgsformannotationitem.cpp
  140. +2 −2 src/gui/qgshtmlannotationitem.cpp
  141. +13 −28 src/gui/qgsmapcanvas.cpp
  142. +1 −2 src/gui/qgsmapcanvassnapper.cpp
  143. +6 −6 src/gui/qgsmapcanvastracer.cpp
  144. +8 −12 src/gui/qgsmapoverviewcanvas.cpp
  145. +3 −2 src/gui/qgsmapoverviewcanvas.h
  146. +0 −1 src/gui/qgsmaptoolidentify.cpp
  147. +2 −2 src/gui/qgsnewgeopackagelayerdialog.cpp
  148. +0 −1 src/gui/symbology-ng/qgsellipsesymbollayerwidget.cpp
  149. +2 −2 src/gui/symbology-ng/qgssizescalewidget.cpp
  150. +5 −5 src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp
  151. +7 −7 src/plugins/geometry_checker/ui/qgsgeometrycheckersetuptab.cpp
  152. +3 −4 src/plugins/georeferencer/qgsgcpcanvasitem.cpp
  153. +6 −8 src/plugins/georeferencer/qgsgeorefplugingui.cpp
  154. +3 −4 src/plugins/globe/globe_plugin.cpp
  155. +2 −2 src/plugins/globe/qgsglobefeatureidentify.cpp
  156. +2 −3 src/plugins/globe/qgsglobewidget.cpp
  157. +2 −3 src/plugins/gps_importer/qgsgpsplugin.cpp
  158. +0 −1 src/plugins/grass/qgsgrassmoduleinput.cpp
  159. +3 −3 src/plugins/grass/qgsgrassmoduleoptions.cpp
  160. +1 −1 src/plugins/grass/qgsgrassmoduleoptions.h
  161. +10 −10 src/plugins/grass/qgsgrassmoduleparam.cpp
  162. +4 −5 src/plugins/grass/qgsgrassplugin.cpp
  163. +3 −3 src/plugins/interpolation/qgsinterpolationdialog.cpp
  164. +3 −4 src/plugins/offline_editing/offline_editing_plugin.cpp
  165. +0 −1 src/plugins/offline_editing/offline_editing_plugin_gui.cpp
  166. +3 −3 src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
  167. +0 −1 src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisplugin.cpp
  168. +4 −4 src/plugins/roadgraph/exportdlg.cpp
  169. +1 −2 src/plugins/roadgraph/roadgraphplugin.cpp
  170. +7 −8 src/plugins/spatialquery/qgsspatialquerydialog.cpp
  171. +0 −1 src/plugins/spatialquery/qgsspatialqueryplugin.cpp
  172. +7 −8 src/plugins/topology/checkDock.cpp
  173. +0 −2 src/plugins/topology/checkDock.h
  174. +12 −18 src/plugins/topology/rulesDialog.cpp
  175. +3 −3 src/plugins/topology/rulesDialog.h
  176. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
  177. +3 −3 src/providers/virtual/qgsvirtuallayerprovider.cpp
  178. +5 −5 src/providers/virtual/qgsvirtuallayersourceselect.cpp
  179. +2 −2 src/providers/virtual/qgsvirtuallayersqlitemodule.cpp
  180. +1 −1 src/providers/wcs/URI
  181. +14 −6 src/server/qgsmaprenderer.cpp
  182. +3 −0 src/server/qgsmaprenderer.h
  183. +4 −4 src/server/qgsmslayercache.cpp
  184. +0 −1 src/server/qgsowsserver.cpp
  185. +2 −2 src/server/qgsserver.cpp
  186. +9 −10 src/server/qgsserverprojectparser.cpp
  187. +2 −2 src/server/qgswfsprojectparser.cpp
  188. +2 −3 src/server/qgswfsserver.cpp
  189. +16 −6 src/server/qgswmsconfigparser.cpp
  190. +4 −4 src/server/qgswmsprojectparser.cpp
  191. +17 −18 src/server/qgswmsserver.cpp
  192. +2 −6 tests/bench/qgsbench.cpp
  193. +2 −2 tests/src/analysis/testqgsrastercalculator.cpp
  194. +2 −2 tests/src/analysis/testqgszonalstatistics.cpp
  195. +0 −1 tests/src/app/testqgisappclipboard.cpp
  196. +6 −6 tests/src/core/testmaprendererjob.cpp
  197. +4 −6 tests/src/core/testqgs25drenderer.cpp
  198. +5 −6 tests/src/core/testqgsatlascomposition.cpp
  199. +19 −23 tests/src/core/testqgsblendmodes.cpp
  200. +4 −6 tests/src/core/testqgscentroidfillsymbol.cpp
  201. +3 −4 tests/src/core/testqgscomposerdd.cpp
  202. +2 −3 tests/src/core/testqgscomposerhtml.cpp
  203. +2 −3 tests/src/core/testqgscomposerlabel.cpp
  204. +21 −20 tests/src/core/testqgscomposermap.cpp
  205. +0 −1 tests/src/core/testqgscomposermapgrid.cpp
  206. +3 −4 tests/src/core/testqgscomposermapoverview.cpp
  207. +3 −4 tests/src/core/testqgscomposerrotation.cpp
  208. +2 −4 tests/src/core/testqgscomposerscalebar.cpp
  209. +6 −7 tests/src/core/testqgscomposertablev2.cpp
  210. +2 −5 tests/src/core/testqgsdiagram.cpp
  211. +4 −6 tests/src/core/testqgsellipsemarker.cpp
  212. +5 −6 tests/src/core/testqgsexpression.cpp
  213. +4 −6 tests/src/core/testqgsfilledmarker.cpp
  214. +4 −6 tests/src/core/testqgsfontmarker.cpp
  215. +4 −6 tests/src/core/testqgsgradients.cpp
  216. +5 −6 tests/src/core/testqgsinvertedpolygonrenderer.cpp
  217. +13 −13 tests/src/core/testqgslabelingengine.cpp
  218. +9 −9 tests/src/core/testqgslayertree.cpp
  219. +18 −33 tests/src/core/testqgslegendrenderer.cpp
  220. +4 −6 tests/src/core/testqgslinefillsymbol.cpp
  221. +3 −3 tests/src/core/testqgsmaplayerstylemanager.cpp
  222. +6 −6 tests/src/core/testqgsmaprendererjob.cpp
  223. +7 −12 tests/src/core/testqgsmaprotation.cpp
  224. +48 −0 tests/src/core/testqgsmapsettings.cpp
  225. +5 −5 tests/src/core/testqgsmarkerlinesymbol.cpp
  226. +13 −13 tests/src/core/testqgspainteffect.cpp
  227. +2 −2 tests/src/core/testqgspointlocator.cpp
  228. +3 −3 tests/src/core/testqgspointpatternfillsymbol.cpp
  229. +3 −3 tests/src/core/testqgsrasterfill.cpp
  230. +10 −10 tests/src/core/testqgsrasterlayer.cpp
  231. +0 −1 tests/src/core/testqgsrastersublayer.cpp
  232. +5 −5 tests/src/core/testqgsrenderers.cpp
  233. +3 −3 tests/src/core/testqgsshapeburst.cpp
  234. +3 −3 tests/src/core/testqgssimplemarker.cpp
  235. +3 −3 tests/src/core/testqgssnappingutils.cpp
  236. +0 −1 tests/src/core/testqgsstyle.cpp
  237. +3 −3 tests/src/core/testqgssvgmarker.cpp
  238. +6 −6 tests/src/core/testqgssymbol.cpp
  239. +5 −5 tests/src/core/testqgstaskmanager.cpp
  240. +0 −1 tests/src/core/testqgstracer.cpp
  241. +5 −5 tests/src/core/testqgsvectorlayer.cpp
  242. +15 −16 tests/src/core/testqgsvectorlayerjoinbuffer.cpp
  243. +3 −3 tests/src/gui/testprojectionissues.cpp
  244. +2 −3 tests/src/gui/testqgseditorwidgetregistry.cpp
  245. +8 −9 tests/src/gui/testqgsfieldexpressionwidget.cpp
  246. +3 −3 tests/src/gui/testqgsmapcanvas.cpp
  247. +4 −4 tests/src/gui/testqgsquickprint.cpp
  248. +1 −2 tests/src/gui/testrenderergui.cpp
  249. +4 −4 tests/src/providers/testqgswcspublicservers.cpp
  250. +0 −1 tests/src/python/acceptable_missing_doc.py
  251. +2 −2 tests/src/python/offlineditingtestbase.py
  252. +2 −2 tests/src/python/qgis_interface.py
  253. +6 −6 tests/src/python/test_layer_dependencies.py
  254. +0 −1 tests/src/python/test_offline_editing_wfs.py
  255. +4 −5 tests/src/python/test_provider_spatialite.py
  256. +41 −42 tests/src/python/test_provider_virtual.py
  257. +7 −7 tests/src/python/test_qgsarrowsymbollayer.py
  258. +6 −7 tests/src/python/test_qgsatlascomposition.py
  259. +7 −15 tests/src/python/test_qgsblendmodes.py
  260. +3 −3 tests/src/python/test_qgscomposerlabel.py
  261. +13 −13 tests/src/python/test_qgscomposerlegend.py
  262. +3 −3 tests/src/python/test_qgscomposermap.py
  263. +3 −3 tests/src/python/test_qgscomposition.py
  264. +11 −11 tests/src/python/test_qgseditwidgets.py
  265. +7 −7 tests/src/python/test_qgsfeatureiterator.py
  266. +2 −2 tests/src/python/test_qgsgeometry_avoid_intersections.py
  267. +9 −9 tests/src/python/test_qgsgeometrygeneratorsymbollayer.py
  268. +1 −2 tests/src/python/test_qgsjsonutils.py
  269. +4 −5 tests/src/python/test_qgslayerdefinition.py
  270. +34 −34 tests/src/python/test_qgsmaplayermodel.py
  271. +170 −170 tests/src/python/test_qgsmaplayerregistry.py
  272. +8 −8 tests/src/python/test_qgsnewgeopackagelayerdialog.py
  273. +4 −4 tests/src/python/test_qgsnullsymbolrenderer.py
  274. +6 −6 tests/src/python/test_qgspallabeling_base.py
  275. +1 −1 tests/src/python/test_qgspallabeling_server.py
  276. +4 −4 tests/src/python/test_qgspointclusterrenderer.py
  277. +4 −4 tests/src/python/test_qgspointdisplacementrenderer.py
  278. +4 −4 tests/src/python/test_qgsrasterlayer.py
  279. +3 −3 tests/src/python/test_qgsrelation.py
  280. +3 −4 tests/src/python/test_qgsrelationeditwidget.py
  281. +3 −3 tests/src/python/test_qgsrelationmanager.py
  282. +4 −4 tests/src/python/test_qgsrulebasedrenderer.py
  283. +2 −2 tests/src/python/test_qgssearchwidgetwrapper.py
  284. +3 −3 tests/src/python/test_qgssinglesymbolrenderer.py
  285. +4 −4 tests/src/python/test_qgssymbolexpressionvariables.py
  286. +10 −10 tests/src/python/test_qgssymbollayer.py
  287. +2 −3 tests/src/python/test_qgsvectorlayer.py
  288. +0 −1 tests/src/python/test_qgsvectorlayereditbuffer.py
  289. +2 −2 tests/src/python/test_qgsvectorlayertools.py
  290. +2 −3 tests/src/python/utilities.py
@@ -250,6 +250,7 @@ should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinat
- removeLegendLayerAction() moved to QgisInterface::removeCustomActionForLayerType()
- QgsLegendModel was removed.
- QgsMapCanvasMap. It is an internal class used by map canvas.
- QgsMapLayerRegistry. Its functionality has been moved to QgsProject.
- QgsMapRenderer. It has been replaced by QgsMapRendererJob with subclasses and QgsMapSettings.
- QgsPseudoColorShader. This shader has been broken for some time and was replaced by QgsSingleBandPseudoColorRenderer.
- QgsRendererV2DataDefinedMenus was removed. Use QgsDataDefinedButton instead.
@@ -526,6 +527,7 @@ QgsComposerLegendItem {#qgis_api_break_3_0_QgsComposerLegendItem}
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.
@@ -1120,6 +1122,7 @@ QgsMapLayerRegistry {#qgis_api_break_3_0_QgsMapLayerRegistry}
QgsMapOverviewCanvas {#qgis_api_break_3_0_QgsMapOverviewCanvas}
--------------------

- layerSet() and setLayerSet() have been replaced by layers() and setLayers() which work with list of layers instead of layer IDs
- destinationSrsChanged() was renamed to destinationCrsChanged()


@@ -1173,6 +1176,7 @@ The whole class has been refactored to stop using WKB and to use QgsAbstractGeom
QgsMapSettings {#qgis_api_break_3_0_QgsMapSettings}
--------------

- layers() and setLayers() now work with list of layers instead of layer IDs
- layerTransform() now returns a QgsCoordinateTransform object, not a pointer. An invalid QgsCoordinateTransform will
be returned instead of a null pointer if no transformation is required.
- destinationCrs() now returns a copy instead of a reference to the CRS. This has no effect on PyQGIS code, but c++
@@ -136,9 +136,9 @@ class QgsComposerMap : QgsComposerItem
void setKeepLayerSet( bool enabled );

/** Getter for stored layer set that is used if mKeepLayerSet is true */
QStringList layerSet() const;
QList<QgsMapLayer*> layers() const;
/** Setter for stored layer set that is used if mKeepLayerSet is true */
void setLayerSet( const QStringList& layerSet );
void setLayers( const QList<QgsMapLayer*> layers );
/** Stores the current layer set of the qgis mapcanvas in mLayerSet*/
void storeCurrentLayerSet();

@@ -83,7 +83,6 @@
%Include qgsmaplayerlegend.sip
%Include qgsmaplayermodel.sip
%Include qgsmaplayerproxymodel.sip
%Include qgsmaplayerregistry.sip
%Include qgsmaplayerrenderer.sip
%Include qgsmaplayerstylemanager.sip
%Include qgsmaprenderercache.sip
@@ -46,6 +46,9 @@ class QgsLayerTreeGroup : QgsLayerTreeNode
//! Remove all child nodes. The nodes will be deleted.
void removeAllChildren();

//! Find layer node representing the map layer. Searches recursively the whole sub-tree.
//! @note added in 3.0
QgsLayerTreeLayer* findLayer( QgsMapLayer* layer ) const;
//! Find layer node representing the map layer specified by its ID. Searches recursively the whole sub-tree.
QgsLayerTreeLayer* findLayer( const QString& layerId );
//! Find all layer nodes. Searches recursively the whole sub-tree.
@@ -2,7 +2,7 @@
* Layer tree node points to a map layer.
*
* When using with existing QgsMapLayer instance, it is expected that the layer
* has been registered in QgsMapLayerRegistry earlier.
* has been registered in QgsProject earlier.
*
* The node can exist also without a valid instance of a layer (just ID). That
* means the referenced layer does not need to be loaded in order to use it
@@ -17,7 +17,8 @@ class QgsLayerTreeRegistryBridge : QObject
%End

public:
explicit QgsLayerTreeRegistryBridge( QgsLayerTreeGroup* root, QObject *parent /TransferThis/ = 0 );
//! Create the instance that synchronizes given project with a layer tree root
explicit QgsLayerTreeRegistryBridge( QgsLayerTreeGroup* root, QgsProject* project, QObject *parent /TransferThis/ = 0 );

void setEnabled( bool enabled );
bool isEnabled() const;
@@ -54,7 +54,7 @@ class QgsMapLayer : QObject
*/
QgsMapLayer::LayerType type() const;

/** Returns the layer's unique ID, which is used to access this layer from QgsMapLayerRegistry. */
/** Returns the layer's unique ID, which is used to access this layer from QgsProject. */
QString id() const;

/**

This file was deleted.

0 comments on commit 20cdd4f

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