32498 Commits

Author SHA1 Message Date
Nyall Dawson
7b64feb7e1 Group add db layer actions together in toolbar
The add layer toolbar is very full and users are unlikely to be
connecting to more than one db provider type frequently (eg
at a workplace they will likely have access to a Postgres db
OR a MSSQL db, not both concurrently)
2016-05-13 08:05:34 +10:00
Nyall Dawson
1f59541b9c Fix flipped marker fill and outline color 2016-05-13 08:05:33 +10:00
Nyall Dawson
79b979458f [FEATURE] New map tool for interactively setting point symbol offset
Allows for setting a point's offset if it is bound to a field using
data defined overrides (fix #14738)

TODO: replace temporary icons

Sponsored by North Road
2016-05-13 08:05:23 +10:00
Alexander Bruy
583eaeff7f [processing] don't crash if user canceled script loading 2016-05-12 16:27:24 +03:00
Nyall Dawson
6886ea0d0c [FEATURE] Redesigned interactive gradient editor
Uses new gradient editor widget and color controls for easier
manipulation of gradients. Also adds an interactive plot
for modifying gradient stops via the color HSV or RGB values.

Fix #8383

Sponsored by North Road
2016-05-12 21:03:59 +10:00
Nyall Dawson
881be0f365 [FEATURE] New reusable interactive widget for editing gradient ramps
Supports:

- drag to move color stops
- double clicking to add a new stop
- pressing delete will remove the selected stop
- pressing arrow keys will move the selected stop, shift+arrow= larger
  move
- drag and drop a color onto the widget to add a new stop

Sponsored by North Road
2016-05-12 21:03:51 +10:00
Nyall Dawson
79f3d4221b Add equality operator for gradients, ensure stops are always in order 2016-05-12 20:55:27 +10:00
Nyall Dawson
77fc122bed Move internals of QgsColorDialogV2 to new QgsCompoundColorWidget widget
This allows reuse of the full options from the color dialog when
required in a widget form.
2016-05-12 20:52:16 +10:00
Nyall Dawson
0332157d8a Partial revert 18b69d 2016-05-12 10:22:22 +10:00
Nathan
febd18eec7 [Style Dock] Attach widget changed for graduated widgets 2016-05-12 09:07:36 +10:00
Nyall Dawson
18b69d26ef Indentation 2016-05-11 23:02:34 +10:00
Nyall Dawson
88d3e2aa7f [FEATURE] Show stats for string and date fields in stats dock 2016-05-11 23:02:33 +10:00
Nyall Dawson
b053ad8769 New class QgsDateTimeStatisticalSummary
Calculates summary statistics on lists of datetime values, such
as count, count distinct, min, max and range
2016-05-11 23:02:33 +10:00
Matthias Kuhn
0d165e5621 Merge pull request #3058 from arnaud-morvan/processing_postgis_errors
Processing - Fix unicode/str error in postgis_utils
2016-05-11 12:30:14 +02:00
Matthias Kuhn
ab7a07a64e Migrate "Hidden" widgets to "Hidden" attribute table columns 2016-05-11 12:28:40 +02:00
arnaud.morvan@camptocamp.com
66b1416dfe Processing - Fix unicode/str error in postgis_utils 2016-05-11 11:27:58 +02:00
Matthias Kuhn
5a2ab50699 Followup d088fe0: Fix failing test 2016-05-11 11:09:38 +02:00
Matthias Kuhn
1e9a40fb62 Fix python bindings for QgsAttributeAction 2016-05-11 10:04:00 +02:00
Matthias Kuhn
d088fe072d Fix action widget on attribute table 2016-05-11 09:22:49 +02:00
Matthias Kuhn
604da1f24d Followup 59db4d0: Cleanup 2016-05-11 09:22:49 +02:00
Matthias Kuhn
86ccaff49a Merge pull request #3063 from DelazJ/fields
use same icons as in other dialogs for this task
2016-05-11 07:57:45 +02:00
Nyall Dawson
5177d93b5a Add time field filter option for QgsFieldComboWidget (also add docs) 2016-05-11 11:59:39 +10:00
Nyall Dawson
b4029dc7f0 Fix datetime fields not shown in QgsFieldComboWidget when set to date filter 2016-05-11 11:59:39 +10:00
Nyall Dawson
a389d237fc Fix QgsFieldComboWidget not updating fields when calling setFilter() 2016-05-11 11:59:39 +10:00
Nathan Woodrow
54e6eb3410 [Style Dock] Only disable the widget and not the dock 2016-05-11 10:55:59 +10:00
Nyall Dawson
ab288c6b12 Fix coverity mixed enum warning, switch 0 -> nullptr 2016-05-11 10:00:01 +10:00
Nyall Dawson
f4b63c6861 Fix coverity uninitialized variable warnings 2016-05-11 10:00:01 +10:00
Nathan Woodrow
4dde0c3dd3 Code style 2016-05-11 09:37:08 +10:00
Nyall Dawson
5306f552c9 Fix crash when selecting geometryless layer and style widget is open 2016-05-11 09:34:18 +10:00
Nyall Dawson
22acf3b1a3 Avoid refreshing canvas for every joined feature
Instead of setting the provider's subsetString to fetch joined
features, use a feature request with FilterExpression instead.
(Setting the subsetString results in a canvas refresh.)

Performance should be similar (if expression compilation is
enabled) and this also has the advantage of avoiding provider-
specific behaviour (eg case insensitive matching).

(fix #14800)
2016-05-11 09:34:11 +10:00
Stéphane Brunner
11a5a69e34 Be able to store the bookmarks in the project (#2661) 2016-05-11 09:01:58 +10:00
Nathan
d278b95906 [Style Dock] Use readStyle for undo 2016-05-11 08:48:18 +10:00
Nathan
1b63602545 Fix early return in writeSymbology
Talk about a noob error :)
2016-05-11 08:43:49 +10:00
Nyall Dawson
21c6486a26 Merge pull request #3056 from rouault/gdal_make_autowarpedvrt_for_rpc
[GDAL provider] Use GDALAutoCreateWarpedVRT() when the dataset has only RPC
2016-05-11 05:08:55 +10:00
Nyall Dawson
0f6838df2a Merge pull request #3034 from rouault/ogr_concurrent_opening
[BUGFIX / FEATURE] [OGR] Allow concurrent edition of Shapefiles and Tabfiles in QGIS & MapInfo
2016-05-11 05:07:57 +10:00
Nyall Dawson
7ae80b106d Fix sip bindings for QgsStringStatisticalSummary 2016-05-10 20:14:51 +10:00
Marco Hugentobler
daabda8ca7 Add test to make sure the curve point is part of the segmented result 2016-05-10 11:53:06 +02:00
Nyall Dawson
0493cbfc21 New class QgsStringStatisticalSummary, for calculating statistics
on lists of strings
2016-05-10 19:06:13 +10:00
Nyall Dawson
ceba5264f7 New class QgsInterval for storing durations between datetimes
Move the QgsExpression::Interval class out to its own QgsInterval
class, extend with new methods and add tests

Add a typedef to keep API compatibility for 2.16
2016-05-10 19:00:33 +10:00
Nyall Dawson
3340d8ea70 Fix feature fields does not include virtual or joined fields when
feature is requested using a QgsFeatureRequest with FilterFid
2016-05-10 17:04:37 +10:00
Nyall Dawson
e359a8ee93 Add missing qHash implementations for QTime, QDate, QDateTime
These were added in Qt5, so for Qt4 builds we now include a variant
of the upstream Qt5 implementations
2016-05-10 17:04:32 +10:00
Nyall Dawson
c32acaa7e4 Add missing object name for styling dock 2016-05-10 14:23:04 +10:00
Nyall Dawson
dd4e32662f Avoid some detachments 2016-05-10 14:23:04 +10:00
Nyall Dawson
73733a65ed Fix major(?) memory leak with python code execution 2016-05-10 14:23:04 +10:00
Nyall Dawson
c32966d872 Fix some minor memory leaks 2016-05-10 14:23:04 +10:00
Nyall Dawson
6b80518a5b Fix memory leak in OGR provider when feature has no geometry
and FilterRect is used
2016-05-10 14:23:04 +10:00
Nyall Dawson
effb8dccda Fix warnings 2016-05-10 14:23:04 +10:00
Nathan Woodrow
0d399647be [Style Dock] Add undo/redo button at the bottom 2016-05-10 14:10:48 +10:00
Nathan Woodrow
ca914f118e [FEATURE] Add style/history tab to style dock 2016-05-10 10:32:30 +10:00
Nyall Dawson
948c1f0298 Temporarily fix generate_test_mask_image.py by rolling back to Qt4 2016-05-10 06:52:54 +10:00