38605 Commits

Author SHA1 Message Date
Matthias Kuhn
aa021bef0c Merge pull request #4307 from ghtmtt/proc_tests
[processing] other qgis test, clean commit
2017-05-10 09:07:59 +02:00
Alessandro Pasotti
8423aaf0bf Merge pull request #4525 from boundlessgeo/re-enable-ows-test
Re-enable OWS auth test
2017-05-09 20:35:54 +02:00
Alessandro Pasotti
403c03f779 Re-enable OWS auth test 2017-05-09 18:31:05 +02:00
Alessandro Pasotti
6d67379bb6 Remove unused forward declarations 2017-05-09 16:31:21 +02:00
Alessandro Pasotti
212acc120c Merge pull request #4503 from boundlessgeo/attributetable-fixes
[bugfix] Fixes attribute table duplicated rows #15974
2017-05-09 15:13:10 +02:00
Nyall Dawson
a4e3c8336e Merge pull request #4520 from nyalldawson/raster_combo_box
QgsRasterBandComboBox
2017-05-09 20:36:33 +10:00
Nyall Dawson
ea4143bbdc Don't disable band combo when only one band is present 2017-05-09 19:45:19 +10:00
Nyall Dawson
872cd13675 Add custom widget plugin for QgsRasterBandComboBox 2017-05-09 19:43:13 +10:00
Nyall Dawson
f4b353c09d Flip some more custom raster band combo boxes to QgsRasterBandComboBox 2017-05-09 19:35:28 +10:00
Nyall Dawson
e4a94bc457 Add unit tests for QgsRasterBandComboBox 2017-05-09 19:23:08 +10:00
Nyall Dawson
c9bfb9f2a1 Add a "not set" option to QgsRasterBandComboBox 2017-05-09 19:23:08 +10:00
Nyall Dawson
ddf8cc8485 Disable raster band combo box for rasters without multiple bands 2017-05-09 19:23:08 +10:00
Nyall Dawson
a32314d8b5 Add a new QgsRasterBandComboBox widget
And use wherever custom widgets were being created. Reduces
duplicate code and allows specialised handling for raster
band display/selection to be centralized.
2017-05-09 19:23:08 +10:00
Denis Rouzaud
0824280296 sipify gui editor widgets 2017-05-09 08:59:07 +02:00
Nyall Dawson
6aa10c6817 [processing] Cleanup some layer/writer related handling
Ensure that layers created by QgsProcessingUtils::createFeatureSink
can always be retrieved using QgsProcessingUtils::mapLayerFromString
2017-05-09 15:29:41 +10:00
nirvn
cb23ebed65 [FEATURE] Add opacity support to copyright decorator 2017-05-09 12:21:18 +07:00
nirvn
83e8ecec45 [FEATURE] Add outline and color opacity settings for scale bar decoration 2017-05-09 12:21:12 +07:00
nirvn
1445505a42 [FEATURE] Color settings for north arrow decoration 2017-05-09 12:21:04 +07:00
Nyall Dawson
592fcfa74b Merge pull request #4522 from nyalldawson/new_random
[needs-docs] Add a "shuffle random" option to color ramp button
2017-05-09 14:34:54 +10:00
Nyall Dawson
3cd3e5d378 Allow storing QgsProperty in QVariant 2017-05-09 12:22:30 +10:00
Nyall Dawson
927faf7037 [needs-docs] Add a "shuffle random" option to color ramp button
Allows quick regeneration of a new set of random colors if the
current color ramp is a random color ramp.
2017-05-09 12:03:18 +10:00
Nyall Dawson
499a35d0c8 Refine paletted raster renderer classification
Change behaviour from clearing all existing values on classification
to instead keeping any existing values which do exist in the raster,
maintaining their current color and label.
2017-05-09 11:52:10 +10:00
Nyall Dawson
bccba30af7 Fix unreadable text in plugin manager (fix #16516) 2017-05-09 11:26:59 +10:00
Nyall Dawson
cd248c620a Limit the initial feature request sent by expression builder widget
Should help avoid short delays in opening the expression widget
on slower layers (such as with the Postgres provider where features
are fetched in a minimum batch of 2000 by default)
2017-05-09 08:54:02 +10:00
Nyall Dawson
9a19a5fc58 Followup c2699b4, fix missing field names in expression builder 2017-05-09 08:53:07 +10:00
Juergen E. Fischer
135882259c include metadata headers in install (followup 3a965e6d) 2017-05-08 13:21:23 +02:00
Mathieu Pellerin
f004fc109e Update north arrow decorator to use a vector graphic (#4519) 2017-05-08 18:18:07 +07:00
Nyall Dawson
ac7cc12ca7 Merge pull request #4511 from nyalldawson/composer_async
Asyncronously render composer map previews
2017-05-08 20:18:16 +10:00
Nyall Dawson
29c87de679 [needs-docs][composer] Remove Render/Cache modes from composer maps
Make maps invalidate cache whenever layer order changes. Cache mode
is now identical to Render mode, so  all mode switching has been
removed from composer maps. This should greatly simplify the learning
curve and usability of composer maps.
2017-05-08 19:31:55 +10:00
Alessandro Pasotti
de03642ebb Consolidate QgsRequestHandler 2017-05-08 11:14:14 +02:00
Nyall Dawson
c5566e72c0 If composer map is set to use project CRS, update cached render
when project CRS changes

This should prevent one of the most common confusions with
composer maps - users inserting multiple maps, with apparently
different CRS due to outdated cache renders, and getting confused
because outputs from composer look different to the composer view....
2017-05-08 18:41:44 +10:00
Nyall Dawson
5e3b903955 [needs-docs][composer] Remove Rectangle mode from composer maps
No longer required - the Cache mode is now performant enough
that we don't have to rely on the old rectangle preview
when desiring responsive composers
2017-05-08 17:10:07 +10:00
Nyall Dawson
3f595ee8e1 [composer] Always update map caches when zoom changes
Before this would only happen with the "render" mode, not "cache"
mode. Now updating caches is so responsive and transparent to users
we can safely trigger the background cache update whenever the
zoom changes without any performance impact.
2017-05-08 17:10:02 +10:00
Nyall Dawson
491abc2b66 sipify QgsComposerMap 2017-05-08 17:10:02 +10:00
Nyall Dawson
abe8ead1a5 Rework how composer map cache is invalidated
Avoids unnecessary redraws and defers cache update until
when item is actually visible
2017-05-08 17:10:02 +10:00
Nyall Dawson
91b046a743 [FEATURE] Asyncronously render composer map previews without blocking UI
Makes working with compositions much more responsive and enjoyable!

Inspired by manisandro's commit in Sourcepole's fork
2017-05-08 17:09:42 +10:00
Denis Rouzaud
bfb62c4be9 [sipify] fix Abstract class
unblacklist qgstransaction.sip
(followup 931bf32a9fe46570ac80d947552d46c9f427457)
also fix method declaration with private only inheritance
2017-05-08 08:45:11 +02:00
Mathieu Pellerin
a88cf7ad31 [FEATURE] Save map/canvas as PDF (#4516) 2017-05-08 13:03:39 +07:00
Nyall Dawson
01f12221ad Fix intermittent QgsMapLayerStore test failure 2017-05-08 12:03:46 +10:00
Nyall Dawson
9ee9df7627 Fix a lot of leaks in crssync and related QgsCoordinateReferenceSystem methods 2017-05-08 08:57:46 +10:00
Nathan Woodrow
660aaa540f Black list some tests for now 2017-05-07 10:47:43 +01:00
Nathan Woodrow
2862439fb8 Fix build 2017-05-07 09:07:50 +01:00
Nathan Woodrow
6c41bdfd9f Fix #16474 - Clean up formatting of crash report data 2017-05-07 06:58:59 +01:00
Nyall Dawson
ddbb1702ba Merge pull request #4510 from qgis/revert-4494-composer_async
Revert "Asyncronously render composer map previews "
2017-05-07 10:25:59 +10:00
Nyall Dawson
40319df357 Revert "Asyncronously render composer map previews " 2017-05-07 10:25:45 +10:00
Juergen E. Fischer
4160e19bdc fix windows build 2017-05-07 01:49:33 +02:00
Nyall Dawson
bcca7af5c3 Merge pull request #4495 from nyalldawson/writer
[processing] Port vector.createVectorWriter to c++
2017-05-07 09:31:27 +10:00
Nyall Dawson
54e208b974 Merge pull request #4494 from nyalldawson/composer_async
Asyncronously render composer map previews
2017-05-07 09:22:47 +10:00
Nyall Dawson
06c4dea7ff [processing] Remove vector.createVectorWriter
Use QgsProcessingUtils.createFeatureSink instead
2017-05-07 08:02:54 +10:00
Nyall Dawson
a8a3cc82ed [processing] Port vector.createVectorWriter to c++
This implements an improved version of vector.createVectorWriter
in QgsProcessingUtils. The improved version relies on the
core class QgsVectorLayerImport to create empty layers,
which:
- reduces duplicate code and reuses the mature QgsVectorLayerImport
routines
- avoids manual conversion of field types to destination provider
field types
- potentially allows any writable provider to be used as a feature
sink for algorithms (e.g. output direct to MSSQL/Oracle/db2). This
should work now - it just needs exposing via UI.
2017-05-07 08:02:53 +10:00