1383 Commits

Author SHA1 Message Date
Nyall Dawson
aab3b15991 Replace use of expressions for symbology data defined properties
with QgsDataDefined. Allows for direct use of fields and for
deactivating data defined properties without loss of expression/
specified field.
2015-05-06 18:35:59 +10:00
Nyall Dawson
6ad2f9f091 Some improvements to QgsDataDefined and QgsDataDefinedButton:
- enhanced methods for storing/retrieving QgsDataDefined in a
  string map
- add method to QgsDataDefinedButton to update parameters for a
  QgsDataDefined
- deprecate an unused method
- const correctness
2015-05-06 18:35:59 +10:00
Nyall Dawson
e05246d754 Const correctness for QgsGeometry methods 2015-05-04 21:00:23 +10:00
vmora
72cfe46f6a [FEATURE] Add diagram nodes to legends (fix #4255) 2015-05-04 16:34:43 +10:00
Nyall Dawson
4a9a9361aa Fix legend text not customisable for QgsSimpleLegendNode items 2015-05-04 16:34:30 +10:00
Juergen E. Fischer
edeafa95ac indentation and minor sip updates 2015-05-03 17:10:32 +02:00
Nyall Dawson
bd9e02be95 Add alias support for expression functions
Standardise naming of all internal functions to lowercase with
underscore convention. Add aliases for old names to avoid
breakage.
2015-05-03 20:57:36 +10:00
Nyall Dawson
bb648306b6 Implicit sharing for QgsFields 2015-05-03 20:57:36 +10:00
Nyall Dawson
31e8611230 Add quartiles and IQR to QgsStatisticalSummary calculations 2015-05-03 20:48:22 +10:00
Nyall Dawson
154468bd84 Add QgsStatisticalSummary class for calculating stats from a list
of values.
2015-05-02 23:19:39 +10:00
Nyall Dawson
bb0e583f4b Move methods for returning lists of values from a vector layer field
or expression to QgsVectorLayer. Add unit tests.
2015-05-02 20:32:16 +10:00
Nyall Dawson
fadaf12490 Implement implicit sharing for QgsField 2015-05-02 19:12:44 +10:00
Nyall Dawson
7314047698 Fix missing doc strings due to invalid doxygen tags 2015-04-30 17:26:58 +10:00
Nyall Dawson
721d9f5908 Formatting and code cleanups for QgsScaleExpression 2015-04-30 06:28:05 +10:00
vmora
0f35192f3f Add cropTransparent to QgsImageOperation, for cropping transparent
borders from around an image
2015-04-27 18:23:03 +10:00
vmora
cf3a712711 Move prettyBreaks calculation to QgsSymbolLayerV2Utils 2015-04-27 18:22:48 +10:00
vmora
0c5063fee6 Add method to create a QgsDataDefined from a string.
Automatically analyses to determine whether the string refers to
a column or is an expression.
2015-04-27 18:22:36 +10:00
vmora
d4319621a5 Add an isField test for QgsExpression
Checks whether expression consists of solely a field reference
2015-04-27 18:22:18 +10:00
Nyall Dawson
b2ca7faf3e Modernise diagram properties UI:
Switch to stacked widget, QgsScaleRangeWidget, QgsFieldExpression
widget, QgsDoubleSpinBoxes.

Rearrange and reword controls to clarify their behaviour.
2015-04-22 18:03:32 +10:00
Nyall Dawson
16af787192 Fix line placement flags for diagrams. Line placement options for
PAL are flags, not an enum
2015-04-22 18:03:24 +10:00
Nyall Dawson
774e5d3012 Fix crash on QgsDataDefined copy (fix #12027) 2015-04-22 06:00:59 +10:00
Juergen E. Fischer
d79268cbd7 indentation update 2015-04-17 09:51:24 +02:00
Nyall Dawson
cfe397e718 Better fix for ffd81f4, avoid unnecessary copies of geometry 2015-04-14 10:36:04 +10:00
Nyall Dawson
7c7ef6d8cd Fix diagrams not respecting canvas rotation
Also fixes diagrams not showing for invalid polygons (fix #11955)
2015-04-13 23:16:14 +10:00
Nyall Dawson
437fc82435 Followup 43f150d, fix labels always enabling with diagrams 2015-04-13 23:16:14 +10:00
Nyall Dawson
28b5217bb8 Merge pull request #1974 from vmora/graduated_by_size
[feature] graduated with varying size
2015-04-11 11:15:50 +10:00
vmora
84af60ad56 [feature] graduated with varying size
The graduated symbol renderer now allows to use varying size instead of
varying color.

The classification remains the same an tabbed size/color in the gui
allows the use to choose one type or the other.
2015-04-10 09:14:14 +02:00
Nyall Dawson
d7eec444a2 [FEATURE] Add checkbox to always show diagrams for a layer
Unlike the global labeling setting this applies only to diagrams,
and only for a single layer. Defaults to on. (fix #8706)
2015-04-09 17:50:53 +10:00
Nyall Dawson
43f150dc71 Allow diagrams to be disabled without losing settings (fix #11288) 2015-04-09 17:50:29 +10:00
Nyall Dawson
134067716d Fix diagrams not initially showing when toggling on/off layers 2015-04-09 17:50:18 +10:00
Nyall Dawson
ccfe557cbe Fix DPI scaling issue with paint effects and composer 2015-04-08 05:54:45 +10:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Nyall Dawson
8b37ea2b05 [FEATURE] Add option to symbology to prevent clipping of features
This option (located under the symbol advanced menu) disables the
automatic clipping of lines/polygons to the canvas extent. In
some cases this clipping results in unfavourable symbology (eg
centroid fills where the centroid must always be the actual
feature's centroid). (fix #9757)
2015-03-28 21:16:45 +11:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Matthias Kuhn
c44285ba04 Make virtual fields updatable
Fix #11547
Fix #10994
2015-03-27 14:12:03 +01:00
Nyall Dawson
837c7ee8d3 [composer] Don't redraw map if layers change and map is set to cached
Previously map was being redrawn every time a layer was added or
removed from the registry, which blocked the ui until the map
redraw is complete.

Now the map will only be redrawn as a result of layer changes
if it's set to Render mode.

Possible fix for 12234 and 12125. (refs #12234, #12125)
2015-03-26 10:58:19 +11:00
Juergen E. Fischer
80bbed1595 include qgslayerdefinition.sip in bindings 2015-03-24 13:19:03 +01:00
Juergen E. Fischer
f17755cec4 indentation update 2015-03-19 22:58:11 +01:00
Nyall Dawson
5c14c21b1d Implement smoothing algorithm for geometries 2015-03-19 23:26:59 +11:00
Nyall Dawson
7882fe2f25 Add methods for comparison of QgsPoint, QgsPolyline and QgsPolygon
These methods allow for fuzzy comparison of coordinates with a
specified tolerance.
2015-03-19 19:48:57 +11:00
Nyall Dawson
44f7930ecf [FEATURE] Add follow point alignment for multiline labels
When set to this mode, text alignment for labels will be dependant
on the final placement of the label relative to the point. Eg, if
the label is placed to the left of the point then the label will
be right aligned, and if it is placed to the right of the point
then the label will be left aligned.
(fix #11153)
2015-03-19 19:48:38 +11:00
Juergen E. Fischer
bfb8ab6893 edit widgets: keep default values of new feature's attributes until they are added
(fixes #12391 & #12386)
2015-03-18 16:09:47 +01:00
Martin Dobias
69d0b30d58 Allow data items from plugins 2015-03-18 14:24:36 +07:00
Nyall Dawson
a4d17c0e9b Ignore position of thousands seperators when editing scale combo box
... be more permissive about the conversion from string to number
after a value is entered in the combo box (fix #12385)
2015-03-17 18:56:53 +11:00
Martin Dobias
d6f0dbd403 Allow 3rd-party data item providers to be plugged 2015-03-05 00:13:06 +07:00
Martin Dobias
59e710c2cd Fix QgsDataItem python bindings - transfer of ownership 2015-03-05 00:13:05 +07:00
Martin Dobias
cdb44a3cc6 Browser: Abstract creation of custom data items into QgsDataItemProvider 2015-03-05 00:13:05 +07:00
Juergen E. Fischer
919b8b6183 fix measurement dialog translation (fixes #12262) 2015-02-26 03:09:46 +01:00
Matthias Kuhn
edd8a375ab Fix a const... 2015-02-25 21:15:15 +01:00
Nyall Dawson
3c71498c3e Add some missing /TransferThis/ to sip bindings for QObject parents 2015-02-18 17:35:47 +11:00