2677 Commits

Author SHA1 Message Date
Nyall Dawson
e7f8e0e04f Update test masks (ubuntu 16.04 qt5) 2016-09-19 09:45:16 +10:00
Nyall Dawson
5e9619249e Merge pull request #3489 from nyalldawson/preset_color_ramp
[FEATURE] "Preset colors" color ramp
2016-09-17 08:33:13 +10:00
Juergen E. Fischer
4358db6b5c fix typo
(cherry picked from commit 9ae12c811d7d8bcb1cba93f1ff14f46e747e3039)
2016-09-16 22:15:11 +02:00
Nyall Dawson
7f9cc87f85 Merge pull request #3494 from nyalldawson/deprecated
Remove remaining deprecated methods
2016-09-16 21:02:25 +10:00
Nyall Dawson
8746932193 Merge pull request #3467 from pvalsecc/arrays
[FEATURE] Add support for array attributes
2016-09-16 06:13:34 +10:00
Nyall Dawson
2a8333ef6b Catch exceptions in transform() expression function 2016-09-15 23:45:32 +10:00
Nyall Dawson
fe65063c2b Remove many deprecated methods 2016-09-15 18:34:15 +10:00
Nyall Dawson
5c1151ccb6 Merge pull request #3487 from nyalldawson/truncate
Make sure files are truncated before writing
2016-09-15 05:59:45 +10:00
Nyall Dawson
aac7e9aa39 Merge pull request #3485 from nyalldawson/composer_dep
Remove deprecated methods from composer
2016-09-15 05:59:17 +10:00
Nyall Dawson
ec50cac2ef [FEATURE] New "preset" colors color ramp option
Allows use of a color ramp consisting of a list of selected colors.
Currently there's no way in QGIS to classify a renderer using
some list of colors you've previously selected. So you can modify
the colors manually after classifying, but that's a pain
if you're regularly using the same color scheme.

Basically, it's like the color brewer color ramp options but
allowing users to pick their own preset list of colors to use*

(Because Cynthia Brewer isn't the only cartographic color expert!)
2016-09-14 19:17:26 +10:00
Nyall Dawson
06d2d79185 Make sure files are truncated before writing 2016-09-14 15:12:36 +10:00
Nyall Dawson
b4d9f64796 Add method to retrieve most recently used color 2016-09-14 11:47:52 +10:00
Nyall Dawson
25125b089e Remove deprecated composer methods 2016-09-14 07:20:17 +10:00
Nyall Dawson
26d7235e85 Merge pull request #3480 from nyalldawson/symbol
Remove deprecated members from symbology
2016-09-14 06:41:01 +10:00
Alexander Bruy
1f715c1acd add tests for Plugin Manager version compare function 2016-09-13 15:28:42 +03:00
Patrick Valsecchi
57d00949f7 Add an editor widget for QVariantList 2016-09-13 09:16:17 +02:00
Nyall Dawson
8301ba26c4 Remove sizeScaleField and sizeScaleMethods from renderers
These were unused (since they were moved to data defined properties
at the symbol layer level) and were not set anywhere in
core QGIS (ie, the only way to set them was by manually calling
this api)
2016-09-13 11:05:45 +10:00
Nyall Dawson
ae9023fe0f Remove last deprecated methods from symbology 2016-09-13 11:05:45 +10:00
Nyall Dawson
55fc40d87f Remove more deprecated methods from symbology 2016-09-13 11:05:45 +10:00
Nyall Dawson
a921c190d0 Remove deprecated members and fix TODOs for QgsFeatureRenderer 2016-09-13 11:05:45 +10:00
Patrick Valsecchi
abc55f4c42 Add support for arrays in PostgresQL
Fix parsing of PostgresQL hstore. Had problems when the key or values were
containing comas.
2016-09-12 10:33:00 +02:00
Nyall Dawson
e3313fac95 Test masks 2016-09-10 14:42:33 +10:00
Nyall Dawson
570e6936b6 Add a bunch of tests for legend grouping into columns 2016-09-10 14:42:33 +10:00
Nyall Dawson
4d0453eb52 Fix test try #5 2016-09-10 14:41:52 +10:00
Matthias Kuhn
5980165706 Testing the new online IDE github 2016-09-10 00:22:21 +02:00
Matthias Kuhn
fa67c55a6f One more try to get green light 2016-09-10 00:04:08 +02:00
Matthias Kuhn
f2fa09343e Fix tabwidget test for Qt5 2016-09-09 16:08:05 +02:00
Matthias Kuhn
9631688c85 [tests] Accept brief tags with <ref>erences 2016-09-09 14:26:27 +02:00
Matthias Kuhn
ac41436de3 Add QgsTabWidget
This is almost like the QTabWidget but has additional methods for
showing and hiding individual tabs
2016-09-09 14:26:27 +02:00
Matthias Kuhn
8cf0ef93c4 Add QgsOptional and QgsOptionalExpression 2016-09-09 14:26:24 +02:00
Matthias Kuhn
760816bb41 Public default constructor and comparison operator for QgsExpression 2016-09-09 14:25:58 +02:00
Nyall Dawson
d959384c8b Allow hiding clear button in QgsFilterLineEdit 2016-09-08 21:48:25 +10:00
Nyall Dawson
d71453d84a Add ability to set default values for QgsFilterLineEdit
and have clearing the widget reset to default rather than
null
2016-09-08 21:48:25 +10:00
Nyall Dawson
edcc247c3e Add unit tests for QgsFilterLineEdit, improve docs, add clearValue slot 2016-09-08 21:48:25 +10:00
Patrick Valsecchi
e533f0ccf8 Add widget to edit QVariantMap 2016-09-08 11:11:08 +02:00
Patrick Valsecchi
3d6e7c8bdb Add hstore support to the postgres provider 2016-09-08 09:51:46 +02:00
Patrick Valsecchi
8d9cf9de06 Fix auto conf of QgsRangeWidgetWrapper
The default range was 0..100, made it to min..max of the type.
QgsRangeWidgetWrapper is auto selected only for Int and Double QVariants,
now. The used widgets don't support 64 bits and Uint ranges.
2016-09-07 08:05:56 +02:00
Nyall Dawson
9ccbe179a4 Increase some test timeouts to handle when Travis is slow 2016-09-07 08:06:50 +10:00
Patrick Valsecchi
7169079f91 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-09-05 14:22:17 +02:00
Hugo Mercier
b23e58a6d9 Restore virtual layer tests in PyQt5 2016-09-05 13:43:00 +02:00
Hugo Mercier
5c3a43e286 Fix spatialite access with python3 2016-09-05 13:43:00 +02:00
Matthias Kuhn
63654e5c79 Fix loading of editor widget configuration 2016-09-05 10:42:03 +02:00
Nyall Dawson
6dbdd4c24b Update test masks for qt5 2016-09-05 13:44:41 +10:00
Nyall Dawson
766ae97d35 Fix some errors when using python3 tempfile 2016-09-05 13:30:41 +10:00
Nyall Dawson
e54f9bee7a Fix PyQgsMapUnitScale test under qt5 2016-09-05 10:56:07 +10:00
Nyall Dawson
679797e22b [FEATURE] New simplify + smoothing expression functions
Exposes simplification and smoothing algorithms to expression
engine, via:

- simplify(): applies Douglas-Peucker geometry simplification
- simplify_vw(): applies Visvalingam-Whyatt geometry simplification
- smooth(): smoothes a geometry

Carto tip: use smooth along with geometry generators to minimise
the typical "GIS" noded look of rendered geometries!
2016-09-03 21:52:06 +10:00
Nyall Dawson
4d60d0cdb5 [FEATURE] Add option to QgsGeometry::smooth to not smooth
segments shorter than a certain threshold or sharp corners
with an angle exceeding a threshold

Expose the angle threshold to processing smooth algorithm

Also:
- optimise QgsGeometry::smooth for new geometry classes
- Fix smooth does not work with geometries containing Z/M
2016-09-03 08:31:33 +10:00
Hugo Mercier
b496376419 Merge pull request #3445 from mhugo/fix_virtual
Fix virtual layer queries with accents in layer name
2016-09-01 16:31:23 +02:00
Hugo Mercier
af0d6b93a6 Fix virtual layer queries with accents in layer name 2016-09-01 14:39:31 +02:00
Matthias Kuhn
665df5fbd6 Merge pull request #3436 from aaime/scaledep
Export map level scale based dependencies in most vector symbology
2016-09-01 13:28:48 +02:00