36 Commits

Author SHA1 Message Date
Nyall Dawson
fe65063c2b Remove many deprecated methods 2016-09-15 18:34:15 +10:00
Nyall Dawson
1a08f0ab53 Add full test suite for QgsMapLayerRegistry, also don't emit
any layer removed signals when no layers will actually be
removed
2016-07-04 12:26:25 +10:00
Nyall Dawson
6b3cb245a9 Cleanups to QgsMapLayerRegistry
- const correctness
- improve and clarify docs, remove outdated notes
- add some QGIS 3.0 todos
2016-07-04 12:26:25 +10:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Matthias Kuhn
71fc4576c9 Doxymentation fix 2015-12-01 12:51:57 +01:00
Matthias Kuhn
4d679511fb Add API to QgsMapLayerRegistry to rely less on ids 2015-12-01 11:45:44 +01:00
Nyall Dawson
f1633a1796 Change all signals to use const refs for non trivial objects 2015-10-26 22:46:25 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Juergen E. Fischer
621edef24e make QgsMapLayerRegistry ctor private (it's a singleton) 2014-08-18 11:50:05 +02:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Martin Dobias
5a4f8d07a0 Change "added/deprecated in 2.1" notes to 2.4 for stuff related to threading 2014-02-21 17:33:09 +07:00
Martin Dobias
a3af93394e Merge branch 'master' into threading-revival
Some features are still disabled - will be fixed later

Conflicts:
	python/core/composer/qgscomposition.sip
	python/core/diagram/qgsdiagram.sip
	python/core/diagram/qgshistogramdiagram.sip
	python/core/diagram/qgspiediagram.sip
	python/core/diagram/qgstextdiagram.sip
	python/core/qgsdiagramrendererv2.sip
	python/core/qgsfield.sip
	python/core/qgslabelsearchtree.sip
	python/core/qgsmaprenderer.sip
	python/core/qgsrenderchecker.sip
	python/core/symbology-ng/qgssymbollayerv2.sip
	python/gui/qgsmapcanvas.sip
	src/app/composer/qgscomposerlegendwidget.cpp
	src/app/qgisapp.cpp
	src/core/composer/qgsatlascomposition.cpp
	src/core/composer/qgscomposerattributetable.cpp
	src/core/composer/qgscomposermap.cpp
	src/core/composer/qgscomposition.cpp
	src/core/composer/qgscomposition.h
	src/core/diagram/qgsdiagram.h
	src/core/diagram/qgshistogramdiagram.cpp
	src/core/diagram/qgshistogramdiagram.h
	src/core/diagram/qgspiediagram.cpp
	src/core/diagram/qgspiediagram.h
	src/core/diagram/qgstextdiagram.cpp
	src/core/diagram/qgstextdiagram.h
	src/core/qgsdiagramrendererv2.cpp
	src/core/qgsdiagramrendererv2.h
	src/core/qgsmaprenderer.cpp
	src/core/qgsmaprenderer.h
	src/core/qgsnetworkaccessmanager.h
	src/core/qgspallabeling.cpp
	src/core/qgsrenderchecker.h
	src/core/qgsvectorlayer.cpp
	src/core/qgsvectorlayer.h
	src/core/qgsvectorlayerfeatureiterator.cpp
	src/core/qgsvectorlayerfeatureiterator.h
	src/core/raster/qgsrasterlayer.cpp
	src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
	src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.h
	src/core/symbology-ng/qgssymbolv2.cpp
	src/gui/qgshighlight.cpp
	src/gui/qgsmapcanvas.cpp
	src/gui/qgsmapcanvas.h
	src/gui/qgsmapcanvasitem.cpp
	src/gui/qgsmaptoolidentify.cpp
	src/plugins/georeferencer/qgsgeorefplugingui.cpp
	src/providers/memory/qgsmemoryfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.h
	src/providers/ogr/qgsogrprovider.cpp
	src/providers/oracle/qgsoraclefeatureiterator.cpp
	src/providers/oracle/qgsoracleprovider.cpp
	src/providers/postgres/qgspostgresconn.cpp
	src/providers/postgres/qgspostgresfeatureiterator.cpp
	src/providers/postgres/qgspostgresfeatureiterator.h
	src/providers/wfs/qgswfsfeatureiterator.cpp
	src/providers/wms/qgswmsprovider.cpp
	src/providers/wms/qgswmsprovider.h
	src/ui/qgsoptionsbase.ui
	tests/src/core/CMakeLists.txt
	tests/src/core/testqgscomposereffects.cpp
	tests/src/core/testqgscomposerhtml.cpp
	tests/src/core/testqgscomposerscalebar.cpp
	tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Martin Dobias
2bece090f5 Update Python bindings to match changes in core/gui libraries. 2013-12-05 18:27:45 +07:00
Juergen E. Fischer
3854086d47 sip update 2013-06-23 16:00:24 +02:00
Matthias Kuhn
35de29df9b Disallow changing of map layer registry directly
QgsMapLayerRegistry::mapLayers() returned reference is now const
2013-05-17 09:22:21 +02:00
Matthias Kuhn
b98db8842b [Fix #7674] Transfer ownership of layer to C++ when added to the registry 2013-04-23 10:42:14 +02:00
Matthias Kuhn
193b6154d2 QgsMapLayerRegistry add/remove signals reworked
* "theEmitSignal" parameter renamed to addToLegend
* layer(s)WillBeRemoved has no more "theEmitSingal" parameter
* layer(s)WillBeRemoved and layer(s)(Was)Added emitted in every case
* legendLayersAdded( QList<QgsMapLayer*> theMapLayers ) signal added
* removedAll renamed to removeAll (is emitted BEFORE layers are removed)
2013-04-20 13:50:25 +02:00
Martin Dobias
ed48ffb68a Map layer registry: un-deprecated addMapLayer(), added removeMapLayer() for convenience 2013-03-05 21:36:52 +01:00
Etienne Tourigny
aae400ecf1 [API] restore QgsMapLayerRegistry::addMapLayer() but keep it deprecated 2013-02-01 15:22:37 -02:00
Tim Sutton
c610f37735 Applied patch from Hans-Peter Jansen <hpj [at] urpla.net> to address build issues with python-sip 4.15 and fix srs.db update issue when srs table has no noupdate column. 2013-12-08 22:40:35 +02:00
Nathan Woodrow
7e29d7ced1 [API] Add method to QgsMapLayerRegistry to get layers using name 2013-01-08 07:12:10 +10:00
Alexander Bruy
5e45a22d06 remove deprecated methods from API 2012-12-23 10:40:23 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Juergen E. Fischer
d78e605243 fix #5747 2012-06-06 08:34:34 +02:00
Tim Sutton
669ffcbe12 Move deprecated tag from addMapLayers to addMapLayer where it was originally intended to go. Small updates to comments. 2012-04-19 11:25:13 +02:00
Tim Sutton
8d4a656e4d [BACKPORT] to 1.8. Further improvements to multiple layer removal in one operation support for the registry and apply suggested improvements from Jürgen. 2012-04-05 00:04:24 +02:00
Juergen E. Fischer
3289c098c4 heatmap updates:
- fix warnings on windows
- minor cleanups
- some string updates
2012-02-08 19:04:07 +01:00
mhugent
2222397334 [FEATURE]: added reload method to map layers and provider interface. Like this, caching providers (currently WMS and WFS) can synchronize with changes in the datasource
git-svn-id: http://svn.osgeo.org/qgis/trunk@14264 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-09-20 11:27:12 +00:00
timlinux
763fbb2049 [FEATURE] Applied patch from #1974 to enable render caching capability in QGIS. This speeds up common operations such as layer re-ordering, changing symbology, WMS / WFS client, hiding / showing layers and opens the door for future enhancements such as threaded rendering and pre-compositing layer cache manipulation.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11831 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-24 13:30:36 +00:00
jef
7cd83173d5 fix #1490
git-svn-id: http://svn.osgeo.org/qgis/trunk@9977 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-01-16 21:08:35 +00:00
jef
41f62a8e3a fix gcc 4.3 warnings, a gcc 4.3 compile error and a MSVC warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@8666 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-21 15:35:32 +00:00
telwertowski
21708a56fb Remove all use of Qt3 compatibiliy routines except for the GRASS provider/plugin. Automatic casts of QString to char* have also been removed for compatibility with Qt/Mac-Cocoa (64-bit).
git-svn-id: http://svn.osgeo.org/qgis/trunk@8406 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-07 05:15:58 +00:00
wonder
3b8ce29485 - changed return type of QgsMapLayerRegistry::mapLayers() from std::map to QMap
- wrapped the above function in PyQGIS


git-svn-id: http://svn.osgeo.org/qgis/trunk@7984 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 20:07:55 +00:00
wonder
46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00