37052 Commits

Author SHA1 Message Date
Nyall Dawson
efb0c4028f Add missing diagram is obstacle property button 2017-02-14 14:40:27 +10:00
Nyall Dawson
0dfa4ef99b Fix diagram property buttons do not hide with associated widget (fix #16164) 2017-02-14 14:33:58 +10:00
Nyall Dawson
3230e7bcbf Fix diagram legend symbol selector missing associated layer (refs #16164) 2017-02-14 14:29:49 +10:00
Nyall Dawson
852b1dfb79 Fix potential crash in color assistant, set a default ramp 2017-02-14 14:24:37 +10:00
Nyall Dawson
599d985fe1 Fix diagram distance property override button association (refs #16164) 2017-02-14 14:24:23 +10:00
Nyall Dawson
28d9c44d21 Tweak dialogs 2017-02-14 13:48:11 +10:00
Nyall Dawson
3215173692 Fix failing equality operator test 2017-02-14 13:48:11 +10:00
Nyall Dawson
3ca0b90a97 Update sip bindings 2017-02-14 13:48:11 +10:00
Nyall Dawson
c78f9405bb Fix doxygen warnings and failing test 2017-02-14 13:48:11 +10:00
Nyall Dawson
2468b27641 Replace QgsDataDefinedButton custom widget with QgsPropertyOverrideButton widget 2017-02-14 13:48:11 +10:00
Nyall Dawson
c4ec256dc2 Tweaked numeric assistant for rotation properties 2017-02-14 13:48:11 +10:00
Nyall Dawson
a30fe357f1 [FEATURE] Add a generic numeric transform assistant for easy scaling of values 2017-02-14 13:48:11 +10:00
Nyall Dawson
2df37a2313 Some visual tweaks to property assistant widget 2017-02-14 13:48:11 +10:00
Nyall Dawson
9c19142094 Add some spacing around preview icons in property assistant 2017-02-14 13:48:11 +10:00
Nyall Dawson
7bf97be941 Use a vertical layout for property assistant when in dock mode 2017-02-14 13:48:11 +10:00
Nyall Dawson
76e27818a5 [FEATURE] Interactive color assistant for data defined colors 2017-02-14 13:48:11 +10:00
Nyall Dawson
077e880444 Remove deprecated QgsScaleExpression and QgsSizeScaleWidget classes 2017-02-14 13:48:11 +10:00
Nyall Dawson
613ef634a5 Remove last use of QgsSizeScaleWidget 2017-02-14 13:48:11 +10:00
Nyall Dawson
85677196b2 Show a default symbol in assistant legend preview if none set 2017-02-14 13:48:11 +10:00
Nyall Dawson
42df2c8af0 Use width assistant for arrow width/start width 2017-02-14 13:48:11 +10:00
Nyall Dawson
a3b50e92c0 Fix clearing data defined outline width 2017-02-14 13:48:11 +10:00
Nyall Dawson
a380bda68b Show size assistant for stroke width properties 2017-02-14 13:48:11 +10:00
Nyall Dawson
2aae6e42d5 If transformer set on property, allow transformer to handle null values 2017-02-14 13:48:11 +10:00
Nyall Dawson
84dd983b79 Restore legend preview in symbol size assistant 2017-02-14 13:48:11 +10:00
Nyall Dawson
90dd988d9d Fix legend display of scaled sizes for QgsSingleSymbolRenderer 2017-02-14 13:48:11 +10:00
Nyall Dawson
3371003402 Small tweaks to property override button behavior 2017-02-14 13:48:11 +10:00
Nyall Dawson
516bdfeed9 Fix build 2017-02-14 13:48:11 +10:00
Nyall Dawson
d457a894b3 Remove QgsDataDefined
Now completely replaced by QgsProperty and the properties framework
2017-02-14 13:48:11 +10:00
Nyall Dawson
be46f78d7c Remove QgsDataDefinedButton
Now completely replaced by QgsPropertyOverrideButton
2017-02-14 13:48:11 +10:00
Nyall Dawson
1b5bf1d289 Deprecate QgsScaleExpression
Has now been completely replaced by QgsSizeScalePropertyTransformer
2017-02-14 13:48:11 +10:00
Nyall Dawson
b376ae103c Adds methods which attempt to parse expression based properties
as property transformers
2017-02-14 13:48:11 +10:00
Nyall Dawson
f70a03116e Add basic shell for widget 2017-02-14 13:48:11 +10:00
Nyall Dawson
edb30a2191 Merge pull request #4134 from nyalldawson/save_task
[FEATURE] Background saving of vector layers
2017-02-14 13:39:23 +10:00
Nyall Dawson
bd46b7809b Merge pull request #4140 from nyalldawson/label_order
Add non-stable API call to render a layer above the labels in the map canvas
2017-02-14 11:51:50 +10:00
Nyall Dawson
e740890cf6 Add custom layer property to render a layer over labels in the map canvas
Usage:

layer.setCustomProperty('rendering/renderAboveLabels', True)

This is exposed only as a layer custom property since it's really just
exposing some private internals of the rendering map composition. It's
not supported outside of canvas, and only works when parallel rendering
with render cache is enabled.

It's not exposed anywhere in GUI for this same reason. Consider it a
hidden API call until someone implements proper handling of mixed
layer/label stacking order.
2017-02-14 10:53:25 +10:00
Nyall Dawson
e025b58bfc Fix build warning 2017-02-14 08:03:58 +10:00
Nyall Dawson
91eea30e7d [FEATURE][processing] Algorithm to find an unknown layer's projection
If you have a layer with an unknown CRS, this algorithm gives a list
of possible candidate CRSes which the layer could be in.

It allows users to set the area (and corresponding CRS) which they know
the layer should be located near. The algorithm then tests every CRS
in the database to see what candidate CRSes would cause the layer
to be located at that preset area.

It's much faster than it sounds!! (just a couple of seconds)

Sponsored by SMEC/Surbana Jurong
2017-02-14 05:49:23 +10:00
Nyall Dawson
3ecafb3472 [processing] Allow extent parameters to avoid matching layer CRS check 2017-02-14 05:49:23 +10:00
Nyall Dawson
fbf99afd01 Add method to retrieve all valid srs ids from CRS databases 2017-02-14 05:49:23 +10:00
Nyall Dawson
f2ac60ab54 Merge pull request #4111 from nyalldawson/refresh_layers
[FEATURE] Allow layers to be automatically refreshed at a specified interval
2017-02-14 05:48:41 +10:00
arnaud.morvan@camptocamp.com
5028cc76ac [processing] Fix infinite recursion in DbError.__str__ 2017-02-13 15:02:54 +01:00
Harrissou Sant-anna
787c84667d Set a name to the raster resampling dialog 2017-02-13 12:27:44 +01:00
Vincent Mora
77bf999094 Merge pull request #3905 from nextgis/25d_enhancement
[FEATURE] QGIS setting to choose default Z value
2017-02-13 09:11:27 +01:00
Nyall Dawson
35bb5c611f Flip task manager to use weak layer pointers instead of layer ids 2017-02-13 08:55:55 +10:00
Nyall Dawson
c42f1ec7f5 Allow QgsVectorFileWriter to report approx progress 2017-02-13 08:30:29 +10:00
Nyall Dawson
8182ec2d3d QgsFeedback can handle report progress reports 2017-02-13 08:30:29 +10:00
Nyall Dawson
4b3d4017d0 Add unit tests for QgsVectorFileWriterTask 2017-02-13 08:30:29 +10:00
Nyall Dawson
15f8cfb44f Register vector file writer task as dependent on layer 2017-02-13 08:30:29 +10:00
Nyall Dawson
95d000f662 [FEATURE] Background saving of vector layers
Switches the vector layer save operation to a background task
using the task manager framework. Allows layers to saved without
blocking the interface.
2017-02-13 08:30:29 +10:00
Nyall Dawson
38f87a624e [FEATURE] Allow layers to be automatically refreshed at a specified interval
This allows users to set a timer interval in layer properties
for individual layers. These layers will be automatically refreshed
at a matching interval.

Canvas updates are deferred in order to avoid refreshing multiple
times if more than one layer has an auto update interval set.

Additionally, logic has been added to skip any auto redraws of
the canvas while the canvas is already being redrawn. This avoids
issues caused by setting a layer auto refresh to a shorter time than
is required to redraw the canvas.
2017-02-13 08:28:39 +10:00