2541 Commits

Author SHA1 Message Date
Marco Hugentobler
17b51ab28f Change comment for QgsCurveV2::sumUpArea
(forward-port from 1c02dc7)
2017-01-10 09:09:45 +10:00
Martin Dobias
0513bb357c Make QgsGeometry independent from QgsProject + better avoid intersections API 2017-01-07 11:50:08 +08:00
Martin Dobias
8c340f7144 Make composition associated with QgsProject (#3957)
... rather than using project singleton within compositions
2017-01-06 17:22:34 +08:00
Martin Dobias
660867cb4e Explicitly pass QgsProject object when dealing with expression contexts
Continued effort to reduce number of uses of QgsProject as singleton...
2017-01-06 11:34:55 +08:00
Even Rouault
f67cdc3965 Merge pull request #3935 from rouault/group_visibility
[FEATURE] Change of ergonomy of the visibility of layers inside groups
2017-01-04 15:22:48 +01:00
Martin Dobias
46252b5cd0 fix doxygen warning 2017-01-04 20:58:21 +08:00
Martin Dobias
6c5956b22b QgsProject: cleanup of read/write method + removal of unused bad layer handler class 2017-01-04 20:29:53 +08:00
Nyall Dawson
0ce30217f1 Implement some QGIS 3 TODOs for diagram API 2017-01-04 18:17:22 +10:00
Even Rouault
60a1701377 [FEATURE] Change of ergonomy of the visibility of layers inside groups
See https://github.com/qgis/QGIS-Enhancement-Proposals/issues/86

- Checking/unchecking a group doesn't change the check state of its children.
A node is visible if and only if it is checked and all its parents too.
- There is no more a semi-checked state for a group
- Ctrl-clic on a unchecked group will check the group and all its descendants.
- Ctrl-clic on a unchecked layer will check the lager and all its parents.
- Ctrl-clic on a checked group will uncheck the group and all its descendants.
- Ctrl-clic on a checked layer will uncheck the layer and all its parents.
- Those actions are available in contextual menu items in the tree view.
- Invisible layers because they or their parent(s) is unchecked are greyed out.
2017-01-02 13:25:25 +01:00
Nyall Dawson
48e72999ab Cleanup QgsProjectProperty headers and docs 2017-01-02 15:20:08 +10:00
Nyall Dawson
89cfa68369 Rename QgsProperty to QgsProjectProperty
and QgsPropertyKey/Value to QgsProjectPropertyKey/Value

The QgsProperty names are too generic to be used in this
context
2017-01-02 13:09:20 +10:00
Nyall Dawson
8ebc73b495 Merge pull request #3914 from nyalldawson/bye_singletons
Remove some singletons by moving instances to QgsApplication
2017-01-02 09:00:58 +10:00
Juergen E. Fischer
c6fb25375c allow limiting snapping to a given area 2017-01-01 18:40:14 +01:00
Nyall Dawson
78134ee9dc Merge pull request #3921 from DelazJ/example
Spelling fix: Replace "eg" by "e.g." or "for example"
2016-12-30 11:42:33 +10:00
Harrissou Sant-anna
ef85cdcf83 Replace "eg" by "e.g." or "for example" 2016-12-30 00:03:22 +01:00
Harrissou Sant-anna
f09633cc6c Replace rasterise by rasterize 2016-12-30 00:02:07 +01:00
Harrissou Sant-anna
7911994097 Replace capitalise by capitalize 2016-12-30 00:02:06 +01:00
Harrissou Sant-anna
ee1abdc507 Replace flavour by flavor 2016-12-29 01:53:25 +01:00
Harrissou Sant-anna
8dca115b1c Replace prioritise by prioritize 2016-12-29 01:46:19 +01:00
Nyall Dawson
9d4adc1c70 Remove some singletons by moving instances to QgsApplication
- QgsColorSchemeRegistry
- QgsDataItemProviderRegistry
- QgsGPSConnectionRegistry
- QgsMessageLog
- QgsPaintEffectRegistry
- QgsPluginLayerRegistry
- QgsRasterRendererRegistry
- QgsRendererRegistry
- QgsSvgCache
- QgsSymbolLayerRegistry
2016-12-28 16:59:03 +10:00
Nyall Dawson
bc98a326c0 [FEATURE] Add QgsVectorDataProvider::truncate for clearing layers
Adds a new method to QgsVectorDataProvider to truncate the layer.
The base implementation requires DeleteFeatures capability and
is not optimised. Providers can return the FastTruncate capability
and override the base implementation with a provider specific
optimised version. This is done in this commit for the Postgres
and Spatialite providers.
2016-12-27 13:55:42 +10:00
nirvn
181f84b86f [raster] move pseudocolor renderer classification out of gui into core 2016-12-27 10:16:51 +07:00
Juergen E. Fischer
e5a4426dce more spelling fixes 2016-12-26 23:36:16 +01:00
Matthias Kuhn
33abb78ac5 Pass variable values as QVariant 2016-12-22 20:21:21 +01:00
Matthias Kuhn
79f32ab6b2 Rename QgsProject::variables to QgsProject::customVariables 2016-12-22 20:21:21 +01:00
Matthias Kuhn
b07ecfa106 Let QgsApplication manage global custom variables 2016-12-22 20:21:21 +01:00
Matthias Kuhn
cbac49b63b Add QgsProject::write( filename ) convenience function 2016-12-21 17:39:58 +01:00
Matthias Kuhn
dbbf062e5d Fix bindings and tests 2016-12-20 01:20:08 +01:00
Matthias Kuhn
95fedd082d Expose QgsSnappingConfig to QML
Sponsored by QField
2016-12-20 01:20:08 +01:00
Matthias Kuhn
d169487850 bindings 2016-12-20 01:20:08 +01:00
Matthias Kuhn
0190e506a6 Move QgsConfigurationMap to QgsXmlUtils 2016-12-20 01:20:08 +01:00
Matthias Kuhn
afacbb1320 Make sure attribute table doesn't use deleted field formatters 2016-12-20 01:20:08 +01:00
Matthias Kuhn
928f360c77 Make attribute table aware of disappearing field formatters 2016-12-20 01:20:08 +01:00
Matthias Kuhn
8b2ea98871 Add missing bindings 2016-12-20 01:20:08 +01:00
Matthias Kuhn
1b5e577fd3 Generic code cleanup 2016-12-20 01:20:08 +01:00
Matthias Kuhn
22c492e6e5 Rename QgsFieldKit to QgsFieldFormatter 2016-12-20 01:20:08 +01:00
Matthias Kuhn
f294201e7b Remove QgsEditFormConfig::widgetType 2016-12-20 01:20:08 +01:00
Matthias Kuhn
1ad6e0bc2a Document api breakages and add more doxymentation 2016-12-20 01:20:08 +01:00
Matthias Kuhn
9fd0802939 Remove QgsEditorWidgetConfig
This is replaced with a QVariantMap. It was never really more than this in the
past and with the switch to QgsConfigurationProperties, there is really no
longer any reason to assume that this will change.
2016-12-20 01:20:08 +01:00
Matthias Kuhn
ab0dccf1d5 Rename vl parameters to layer 2016-12-20 01:20:08 +01:00
Matthias Kuhn
826c44092b Python bindings 2016-12-20 01:20:08 +01:00
Matthias Kuhn
f15284ec3d Save and load new-style widget configuration 2016-12-20 01:20:08 +01:00
Matthias Kuhn
80b3bfdf18 Add QgsConfigurationProperty class
This class holds a QVariantMap to manage key-value-pairs where each
value can be a string, bool, int, double or itself a map and can be
stored to and restored from XML.
2016-12-20 01:20:08 +01:00
Denis Rouzaud
9c4be41441 [spelling] labelling -> labeling 2016-12-19 23:58:29 +01:00
Even Rouault
792873af5c Merge pull request #3871 from rouault/auto_stretch
[FEATURE] Implement raster auto-stretching when updating canvas
2016-12-16 13:53:54 +01:00
Even Rouault
532eb58d1f [FEATURE] Implement raster auto-stretching when updating canvas
This commit implements the improvements described at:
https://lists.osgeo.org/pipermail/qgis-developer/2016-September/044393.html

The QgsRasterMinMaxWidget now offers a seetting to specify that the statistics
should be computed each time the canvas extent changes.

Other changes:
- the content of the QgsRasterMinMaxWidget is now persistant.
- there is no longer any Load button. The global Apply / OK button of the raster
  properties dialog has this effect.
- the default "limits" for single band raster is now MinMax and not CumulativeCut
- the default "limits" can be configured for single band, multi band single byte and
  multi band multi byte
- "Strech using current extent" honours the "limits" instead of forcing min/max.
2016-12-16 12:36:06 +01:00
Denis Rouzaud
2ffe1a764b spelling fixes 2016-12-15 15:26:36 +01:00
Denis Rouzaud
90fc0bb226 use Travis to look for spelling errors
use silver searcher for faster search (instead of grep)
2016-12-15 15:26:36 +01:00
Martin Dobias
8e5fb436b7 Remove QgsLabelingEngineInterface base class and implementation in QgsPalLabeling
It was ready to go for some time, just waiting for QgsMapRender that still used it.
2016-12-15 18:15:12 +08:00
nirvn
f02e4ad98f [FEATURE][raster] transparency support for paletted renderer 2016-12-14 14:24:02 +07:00