Nyall Dawson
0d84ca74c5
Make QgsMapLayer::metadata() const
2016-07-15 06:07:08 +10:00
Nyall Dawson
0935b58fef
Cleanup QgsMapLayer for 3.0
...
- implement QGIS 3.0 TODOs
- mark methods as const correct
- rename 'the...' parameters to remove 'the'
- mark QgsVectorLayer::getFeatures as const
2016-07-15 06:07:00 +10:00
Nathan Woodrow
ca914f118e
[FEATURE] Add style/history tab to style dock
2016-05-10 10:32:30 +10:00
Nyall Dawson
5e08626051
Add QgsMapLayer::isSpatial() method
...
The current approach of testing !vl || vl->geometryType() != NoGeometry
is not intuitive and has been the source of 2 recent bugs.
Replacing these tests with the new isSpatial() function makes it
immediately obvious what is being tested. It also allows for
non-spatial plugin layers to be correctly handled by overriding
this method.
2016-03-16 12:38:16 +11:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +11:00
Nyall Dawson
9cc9d424ce
Add extra check for deprecations to documentation test
...
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.
It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.
Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Nyall Dawson
c6df096c38
Followup c49b5b7, more fixes
2015-10-07 18:32:24 +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
9752c468c1
indentation update
2015-07-29 11:52:14 +02:00
Martin Dobias
40acaa051a
Deprecate QgsRasterLayer::setDrawingStyle() ( fixes #12635 )
2015-06-18 12:47:45 +08:00
Juergen E. Fischer
9ceb5ceab6
sip sync
2014-11-21 01:17:21 +01:00
Martin Dobias
fba5c5a656
Move triggerRepaint() to QgsMapLayer, use it instead of deprecated clearCacheImage()
2014-09-11 23:52:21 +07:00
Martin Dobias
62e499e1be
Promote rendererChanged() signal from raster+vector layer to base map layer
2014-05-26 21:29:28 +07:00
Juergen E. Fischer
5db13abcf5
* remove deprecated overloads QgsRasterLayer::lastError() and QgsRasterLayer::lastErrorTitle()
...
* deprecate QgsRasterLayer::previewAsPixmap() (doesn't work in background threads)
* QImage::fill( QColor ) does not exists prior to Qt 4.8
diff --git a/src/core/raster/qgsrasterlayerrenderer.h b/src/core/raster/qgsrasterlayerrenderer.h
index 6ab4a49..40a27a2 100644
--- a/src/core/raster/qgsrasterlayerrenderer.h
+++ b/src/core/raster/qgsrasterlayerrenderer.h
@@ -8,7 +8,7 @@ class QPainter;
class QgsMapToPixel;
class QgsRasterLayer;
class QgsRasterPipe;
-class QgsRasterViewPort;
+struct QgsRasterViewPort;
class QgsRenderContext;
class QgsRasterLayerRenderer : public QgsMapLayerRenderer
2014-02-24 18:11:20 +01:00
Etienne Tourigny
75a2edb3e9
add QgsRasterLayer::previewAsImage() for MTR rendering (see bug 9626)
2014-02-24 12:20:17 -03: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
Juergen E. Fischer
d4e369414b
update sip bindings
2014-01-26 18:36:29 +01:00
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Hugo Mercier
bf076a0c1f
Emit a signal when layer symbology changes
2013-10-04 09:59:18 +02:00
Etienne Tourigny
7cceaaf73b
replace QgsRasterLayer::buildSupportedRasterFileFilter() with QgsProviderRegistry::instance()->fileRasterFilters()
2013-06-14 13:09:13 -03:00
Radim Blazek
9e14b8eef0
raster DrawingStyle to QgsRaster to avoid circular header include
2013-06-12 10:50:06 +02:00
Etienne Tourigny
097536c30c
fix buildSupportedRasterFileFilter for sip api v2
2013-06-04 18:25:27 -03:00
Radim Blazek
378a55ec9b
removed raster layer drawing style getter/setter
2013-05-15 17:59:32 +02:00
Radim Blazek
229419ee13
raster cleanup
2013-04-29 17:29:29 +02:00
Radim Blazek
5533d571c8
common raster enums moved to raster namespace
2013-04-24 17:18:33 +02:00
Radim Blazek
8b18577a67
raster cleanup
2013-04-19 21:10:38 +02:00
Juergen E. Fischer
4cbec1811c
fix warnings, add copyright headers, cosmetics
2013-01-28 01:39:58 +01:00
Martin Dobias
5f304b34a1
Merge remote-tracking branch 'origin/master' into new_vector_api
...
Conflicts:
python/core/qgsvectordataprovider.sip
src/app/legend/qgslegendlayer.cpp
src/app/qgisapp.cpp
src/app/qgsmergeattributesdialog.cpp
src/core/qgsvectordataprovider.cpp
src/core/qgsvectordataprovider.h
src/core/qgsvectorlayer.cpp
src/gui/qgssearchquerybuilder.cpp
src/providers/postgres/qgspostgresprovider.cpp
src/providers/wfs/CMakeLists.txt
2013-01-23 23:46:56 +01:00
Alexander Bruy
5e45a22d06
remove deprecated methods from API
2012-12-23 10:40:23 +02:00
Martin Dobias
9317ffd89a
Merge remote-tracking branch 'origin/master' into new_vector_api
...
Also disabled mapserver until compilation is fixed.
Fixed tests.
Conflicts:
src/app/legend/qgslegendlayer.cpp
src/app/qgsattributedialog.cpp
src/app/qgsattributedialog.h
src/app/qgslabelpropertydialog.cpp
src/app/qgsmaptoollabel.cpp
src/app/qgsvectorlayerproperties.cpp
src/core/CMakeLists.txt
src/core/composer/qgsatlascomposition.cpp
src/core/qgsexpression.cpp
src/core/qgspallabeling.cpp
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerimport.cpp
src/mapserver/qgsprojectparser.cpp
src/mapserver/qgswfsserver.cpp
src/mapserver/qgswfsserver.h
src/mapserver/qgswmsserver.cpp
src/providers/postgres/qgspostgresprovider.cpp
src/providers/spatialite/qgsspatialiteprovider.h
tests/src/core/testqgsexpression.cpp
tests/src/python/test_qgsmemoryprovider.py
2012-12-18 01:35:06 +01:00
Radim Blazek
e210a57101
QgsError for better error propagation to user, started using for rasters
2012-10-24 13:59:19 +02:00
Martin Dobias
51122d263a
Store attributes and fields in vectors instead of maps
2012-10-20 22:19:55 +02:00
Radim Blazek
df85492c40
raster identify context, QVariant values, enables wcs caching and makes wms more robust
2012-10-17 14:51:35 +02:00
Radim Blazek
7cb523a26f
+ QgsRasterBlock
2012-10-11 16:12:09 +02:00
Juergen E. Fischer
3c525fdf30
python fixes:
...
- update sip bindings (including QgsRasterPipe and QgsOWSSourceSelect)
- helpConsole: show icons from resources
2012-10-05 21:56:43 +02:00
Juergen E. Fischer
14cad93bae
setup sip dependencies
2012-10-04 13:15:42 +02:00
Etienne Tourigny
777ce59420
replace QgsRasterLayer::thumbnailAsPixmap() with previewAsPixmap() : return QPixmap and add size and background color parameters ; remove QgsRasterLayer::thumbnailAsImage() as it's not used
2012-10-04 01:45:27 -03:00
Juergen E. Fischer
c918952c74
more sip fixes
2012-09-26 18:46:52 +02:00
Juergen E. Fischer
eef8627663
more sip fixes
2012-09-24 22:40:24 +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