Nyall Dawson
95dbb3a7e3
Add deleteAllTasks to manager
2016-12-05 14:08:11 +10:00
Nyall Dawson
b64025df5c
Add python test for task manager
2016-12-05 14:08:11 +10:00
Nyall Dawson
d270b4f9c2
Improvements to task manager ui
2016-12-05 14:08:11 +10:00
Nyall Dawson
5da25136a6
New QgsFloatingWidget widget for easy creation of widgets which "float"
...
above a layout.
Supports setting another widget as a anchor point for the widget, eg
the floating widget could be set so that it's always placed to the
top-right of the anchor widget.
2016-12-05 14:08:11 +10:00
Nyall Dawson
55e9d32671
Add handling of dependent layers to task manager
...
If a task has dependent layers which are about to be removed,
the task will automatically be cancelled
2016-12-05 14:08:11 +10:00
Nyall Dawson
eb34079c01
Don't crash when python exceptions occur in non-main thread
2016-12-05 14:08:11 +10:00
Nyall Dawson
4c0f4ee6f0
Resolve circular dependencies
2016-12-05 14:08:11 +10:00
Nyall Dawson
b065edeed7
Improvements to QgsTaskWrapper
2016-12-05 14:08:11 +10:00
Nyall Dawson
4291904c8d
Support for dependent tasks
...
Cancelling a task on which others depend leads to all these other
tasks getting cancelled as well.
2016-12-05 14:08:11 +10:00
Nyall Dawson
dcecf4476f
Add support for placing queued tasks on hold
2016-12-05 14:08:10 +10:00
Nyall Dawson
cf5eeb758b
API cleanups
2016-12-05 14:08:10 +10:00
Nyall Dawson
5d4689294d
Add simple python method QgsTask.fromFunction for creation of tasks
...
from a function without having to create a QgsTask subclass
2016-12-05 14:08:10 +10:00
Nyall Dawson
e29dd79432
Api + test cleanups
2016-12-05 14:08:10 +10:00
Nyall Dawson
6021d7806e
Make QgsTaskManager handle threading of tasks
2016-12-05 14:08:10 +10:00
Nyall Dawson
ebae15f23a
Framework for task manager
...
Adds new classes:
- QgsTask. An interface for long-running background tasks
- QgsTaskManager. Handles groups of tasks - also available as a global
instance for tracking application wide tasks
- QgsTaskManagerWidget. A list view for showing active tasks and their
progress, and for cancelling them
A new dock widget has been added with a task manager widget showing
global tasks
2016-12-05 14:08:10 +10:00
nirvn
ab4a37f760
[color ramp] save/restore invert state for cpt-city ramps
2016-12-05 10:20:28 +07:00
nirvn
0b9fbeb983
QgsColorRampComboBox is dead, long live QgsColorRampButton
2016-12-03 13:40:27 +07:00
nirvn
56c5534455
[symblogy] migrate heatmap renderer color ramp widget
2016-12-03 13:40:27 +07:00
volaya
d849e43278
[processing] fixed gdal proximity
...
Fixes #15895
2016-12-02 10:38:43 +01:00
Bernhard Ströbl
b02c6a3206
[processing][FEATURE] Return multi geometries from split alg
...
accept multi geometries as input
2016-12-02 16:47:30 +10:00
Nyall Dawson
3a789e5f14
Merge pull request #3825 from nyalldawson/legend_count
...
QgsVectorLayer::featureCount( QgsSymbol* symbol ) to featureCount( const QString& legendKey )
2016-12-02 16:35:20 +10:00
Mathieu Pellerin
eb85e3fcfa
[raster] migrate singleband pseudo-color renderer color ramp widget ( #3817 )
2016-12-02 12:48:45 +07:00
Nyall Dawson
7de1cc2f13
Removed unused QgsLayerTreeModelLegendNode::SymbolLegacyRuleKeyRole
2016-12-02 13:55:41 +10:00
Nyall Dawson
6d0203d612
Change QgsVectorLayer::featureCount( QgsSymbol* symbol ) to instead
...
use a legend key string
Avoids crashes due to symbol pointer lifetime issues
2016-12-02 13:55:41 +10:00
Nyall Dawson
968c82a30b
Small cleanups for QgsColorRampButton
2016-12-02 09:47:55 +10:00
volaya
420b7ec902
[processing] removed incompatible basestring check
2016-12-01 14:37:36 +01:00
Alexander Bruy
b85b5e75e7
[processing] values() is a dict view object, not list
2016-12-01 12:53:57 +01:00
Alexander Bruy
781ebd9a69
[processing] xrange() removed, should use range() instead
2016-12-01 12:53:57 +01:00
Alexander Bruy
3e7b26233e
[processing] replace deprecated % operator with format()
2016-12-01 12:53:57 +01:00
Alexander Bruy
50a785bdd6
[processing] indentation update
2016-12-01 12:53:57 +01:00
Alexander Bruy
f002321be1
[processing] iteritems() removed, should use items() instead
2016-12-01 12:53:57 +01:00
volaya
40053f81f2
renamed ParameterExpression in raster calculator to avoid name clash
2016-12-01 12:53:57 +01:00
volaya
44f963f60d
[processing] removed debug line
2016-12-01 12:53:57 +01:00
volaya
8bd0dd5aea
[processing] added tests for raster calculator
...
Conflicts:
python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
2016-12-01 12:53:56 +01:00
volaya
a7f9018e11
[processing] added native raster calculator algorithm
...
Conflicts:
python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py
2016-12-01 12:52:45 +01:00
volaya
fcc343724e
[processing] some fixes and changes in parameters and parameters panel
2016-12-01 12:50:27 +01:00
Nyall Dawson
a17facf6cb
Merge pull request #3816 from nyalldawson/processing_datetime
...
[processing][FEATURE] New unified basic stats algorithm
2016-12-01 20:37:15 +10:00
volaya
2c4eb3cb8c
[processing] allow selecting multiple file in ‘add script from file’
2016-12-01 11:29:49 +01:00
Nyall Dawson
b30a1ff65d
[FEATURE][processing] New universal 'basic stats for field' algorithm
...
Replaces the existing 'Basic Stats for Numeric Fields' and
'Basic Stats for String Fields' algorithms and adds support
for date/time/datetime fields.
Having a single unified algorithm allows more flexible models
where a field type may not be known in advance.
Deprecate existing basic stats algorithms
2016-12-01 16:27:20 +10:00
Nyall Dawson
1ff165a32f
[processing] Fix updating results panel to match selected item
2016-12-01 16:27:07 +10:00
Mathieu Pellerin
ae75e45d80
[symbology] migrate graduated renderer color ramp widget ( #3815 )
2016-11-30 16:47:23 +07:00
Nyall Dawson
08505b388a
[processing] Allow restricting fields to date/time types
2016-11-30 15:04:21 +10:00
Nyall Dawson
b0662f908a
[processing] Basic stats algs should allow non-spatial tables
2016-11-30 15:03:20 +10:00
nirvn
a755f08ba6
add test coverage for qgscolorramp's invert() function
2016-11-30 11:02:05 +07:00
nirvn
deb18c40db
color ramp button widget for gradiant fill and categorized renderer
2016-11-30 11:02:05 +07:00
nirvn
fa16e3e403
[FEATURE] color ramp button widget
2016-11-30 11:02:05 +07:00
nirvn
7181cf25e8
[color ramp] implement invert() function
2016-11-30 09:57:24 +07:00
Nyall Dawson
ab29f2de28
[processing] Use QgsStringStatisticalSummary in basic stats for strings
...
And also further optimise the algorithm
2016-11-30 12:47:39 +10:00
Nyall Dawson
e272bb3e9c
[processing] Optimise basic stats numbers algorithm
2016-11-30 12:35:20 +10:00
Nyall Dawson
a927d9743f
Allow QgsStringStatisticalSummary to calculate mean string length
2016-11-30 12:03:32 +10:00