Alexander Bruy
b8cb196322
Merge pull request #4293 from alexbruy/processing-api
...
[processing][needs-docs] Processing API improvements
2017-03-27 10:25:43 +03:00
Nyall Dawson
2354696f26
Fix error when enabling additional providers in processing
...
Add an interface method to show the options dialog at a specific
page. This is required since plugins can now embed their options
in the main options dialog, so they may also need a way to
force this dialog to open.
Implement this in processing so that enabling additional providers
works again.
2017-03-24 11:16:49 +10:00
Alexander Bruy
1a46ddbf28
[processing][API] rename runalg() and runandload() to improve
...
readability
2017-03-22 19:17:12 +02:00
Alexander Bruy
c1e6ba0f40
[processing] rename AlgorithmExecutor's runalg() and runalgIterating()
...
to avoid overlapping with general functions and improve readability
2017-03-22 19:11:36 +02:00
Nyall Dawson
ce7180ca64
[processing] Default to current layer in layer selection combos
...
Makes things easier for large projects and avoids scrolling through
a large list of layers
2017-03-21 10:26:58 +10:00
Matteo Ghetta
3bcf287a7e
Processing tests ( #4259 )
...
* [processing] qgis regular points test
* [processing] qgis shape buffer variable tests
* [processing] qgis create grid lines test
* [processing] qgis convert geometry test
* [processing] qgis extract by location test
* [processing] qgis add field test
* [processing] trying to fix travis failing
* [processing] trying to fix travis failing/2
* trying to fix travis failing/3
* [processing] Add new default option "ProjectCrs" to ParameterCrs
* [processing] RegularPoints tests shouldn't rely on iface
* [processing] Fix regular points test
* [processing] RandmPointsExtent new CRS parameter
* [processing] qgis random point in extent test
* [processing] qgis random point in extent test/2
* [processing] remove qgis random point in extent test
* no output random points in extent test
* remove useless output
2017-03-16 16:42:53 +01:00
Juergen E. Fischer
8bea742216
fix flake8 warnings
2017-03-13 20:13:51 +01:00
Nyall Dawson
9f23dd2414
[NEEDS-DOCS][processing] Move configuration to qgis options dialog
2017-03-07 18:12:44 +10:00
Juergen E. Fischer
5a962e8d4e
translation string fixes
2017-03-05 11:37:57 +01:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
ecc5bb508e
pep8/pyflakes3 cleanups
2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
volaya
e5ebcd170f
Merge pull request #4206 from volaya/fix_processing_provider_update
...
[processing] fixed update of toolbox after editing script providers
2017-03-03 08:50:09 +01:00
Nyall Dawson
febff07fde
Indentation
2017-03-03 08:07:48 +10:00
volaya
51da47d61c
[processing] fixed update of toolbox after editing script providers
2017-03-02 13:44:31 +01:00
volaya
1618f539ec
[provided] avoid removing toolbox entries when there are no recent algs
2017-03-02 13:43:10 +01:00
Nyall Dawson
5312965e61
Rename projection selection widgets and cleanup API
...
The current names for QgsProjectionSelector and
QgsGenericProjectionSelector are confusing
2017-02-28 09:45:31 +10:00
Bernhard Ströbl
115ede60ce
[processing] replace alg Eliminate with new alg EliminateSelection
...
* [processing] replace alg Eliminate with new alg EliminateSelection
* Deprecate Eliminate algorithm
* Expose new EliminateSelection algorithm in GUI
* Rename ouput layer
* Reflect algorithm changes in help
* Remove superfluous init method
* Simplify code, thanks Nyall
* Improve transfer of selection to processLayer
* Remove deprecated Eliminate algorithm
* Remove test for Eliminate
* Fix indentation
2017-02-23 09:33:28 +01:00
Alexander Bruy
f66b0baf16
Merge pull request #4144 from alexbruy/processing-results-viewer
...
[processing] convert results viewer to dock
2017-02-17 09:10:55 +02:00
Alexander Bruy
441f6e6e6e
Merge pull request #4120 from arnaud-morvan/processing_fix_boolean_wrapper
...
[processing] fix boolean widget wrapper in batch dialog
2017-02-16 14:45:25 +02:00
Alexander Bruy
e77ccba1ae
remove old code
2017-02-16 13:16:20 +02:00
Alexander Bruy
5fa0713747
[processing] convert results viewer to dock
2017-02-16 13:16:12 +02:00
volaya
cdb35d6288
Merge pull request #4119 from arnaud-morvan/processing_postgis_wrappers
...
[processing] Add PostGIS widget wrappers
2017-02-16 11:12:30 +01:00
Nyall Dawson
3ecafb3472
[processing] Allow extent parameters to avoid matching layer CRS check
2017-02-14 05:49:23 +10:00
Alexander Bruy
cc1adc528e
[processing] handle case when default CRS is None and parameter is not optional
2017-02-10 17:39:45 +02:00
arnaud.morvan@camptocamp.com
f07154b613
[processing] Remove obsolete GeometryPredicateWidgetWrapper
2017-02-10 11:16:38 +01:00
arnaud.morvan@camptocamp.com
337d1889b8
[processing] Use ExpressionWidgetWrapperMixin in StringWidgetWrapper
2017-02-10 11:14:34 +01:00
arnaud.morvan@camptocamp.com
c768edf9d1
[processing] Add postgis widget wrappers
2017-02-10 11:01:41 +01:00
arnaud.morvan@camptocamp.com
dda667023a
[processing] Add class ExpressionEnabledWidgetWrapper
2017-02-09 17:04:58 +01:00
arnaud.morvan@camptocamp.com
482aadc495
[processing] Add possibility to pass additionnal parameters to widget wrapper
2017-02-09 16:12:16 +01:00
Alexander Bruy
71f1d28b6e
Merge pull request #4121 from arnaud-morvan/processing_fix_modeler_open_file
...
[processing] fix modeler and batch file dialog
2017-02-09 12:25:35 +02:00
arnaud.morvan@camptocamp.com
3a12f2a0b6
Fix Boolean widget wrapper in batch dialog
2017-02-09 11:14:05 +01:00
arnaud.morvan@camptocamp.com
c43b04ffff
Fix modeler and batch file dialog
2017-02-09 11:05:09 +01:00
Juergen E. Fischer
d55ab85633
processing: fix escaping
2017-02-09 09:40:13 +01:00
Alexander Bruy
bb4c8c065f
[processing] fix R syntax highlighting ( fix #16082 )
2017-02-07 16:47:24 +02:00
Juergen E. Fischer
a61b9222de
Qt 5.2 has QComboBox::currentData
2017-01-25 03:28:53 +01:00
Juergen E. Fischer
d8ed8f4355
fix processing MessageBarProgress initialization
2017-01-25 01:32:39 +01:00
Denis Rouzaud
0a63d1f2c2
[spellcheck] properly look into various cases and add more fixes"
2017-01-16 16:39:20 +01:00
Alexander Bruy
75a7637838
[processing] fix typo in method name
2017-01-12 12:54:13 +02:00
Nyall Dawson
86e1138a04
[processing] Correctly handle when no feedback object is passed
2017-01-11 11:11:11 +10:00
Nyall Dawson
ede452be85
[processing] Port feedback object to c++
...
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
Nyall Dawson
04eb293362
[processing] Move some SVG icons out of plugin to themes
...
...and swap to using QgsApplication methods for retrieving cached icons,
implement svgIconPath for providers with SVG icons
2017-01-11 10:55:16 +10:00
Nyall Dawson
dca697b427
[processing] New c++ QgsProcessingRegistry class
...
Intended as a registry for the various processing components,
including providers, algorithms and various parameters and outputs.
Currently handles only registration of providers, as a step toward
removing processing's algList (this requires first porting
the algorithm class to c++)
A QgsProcessingRegistry instance is attached to QgsApplication,
and is retrieved by QgsApplication::processingRegistry()
2017-01-11 10:55:15 +10:00
Nyall Dawson
bb24dfe245
[processing] c++ base class for providers
...
Nothing particularly exciting here yet, but this commit
moves the definition of the provider base class to a c++
QgsProcessingProvider abstract base class.
As part of this some existing python methods were renamed
to make their use clearer and to fit with the QGIS c++
api conventions:
- getName was renamed to id
- getDescription was renamed to name
- getIcon was renamed to icon
These API breaks are documented
2017-01-11 10:55:15 +10:00
Denis Rouzaud
37ebcdd1cd
[spellcheck] allow inwords checks and line skipping
...
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat
one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Alexander Bruy
3a03c98a08
[processing] configurable URL for scripts and models repository
2017-01-10 14:17:25 +02:00
Juergen E. Fischer
378212cf42
indentation update
2017-01-10 09:05:42 +01:00
Nyall Dawson
0f42ea781a
[processing] Don't use separate label for checkbox parameters
...
Instead embed description as checkbox label.
2017-01-09 16:52:46 +10:00
Alexander Bruy
12ab928e4b
Merge pull request #3918 from alexbruy/processing-providers
...
Processing providers updates
2017-01-05 11:02:19 +02:00