111 Commits

Author SHA1 Message Date
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
12d6e15fda [processing] support for output geometry types in scripts and modeler 2016-09-02 09:28:32 +03:00
volaya
7884e50c31 [processing] fixed dialog for selecting scripts 2016-08-29 14:13:49 +02:00
Alexander Bruy
48cca3bc12 [processing] always use user-defined default folder for scripts/models 2016-07-25 16:22:21 +03:00
Akbar Gumbira
20a2a20025 [processing] Fix add script from file. 2016-07-18 13:11:54 +02:00
Marco Bernasocchi
f9ab7223fc [processing] ParameterTableMultipleField type added
This adds a widget with multiple column attributes selector
2016-06-03 09:27:51 +02:00
Nyall Dawson
062aa9aee4 Indentation 2016-06-01 10:09:03 +10:00
rldhont
bb41cceb34 [Processing] Fix getParameterDescriptions
Add import json for script and r
return descs and not None
2016-05-31 17:25:05 +02:00
Alexander Bruy
df6410ec35 fix typo in import 2016-05-30 17:36:42 +03:00
Alexander Bruy
2f7ff46a4b fix imports (follow up b52828fac7) 2016-05-30 16:53:19 +03:00
Alexander Bruy
6396d8fe60 fix indentation (follow up b52828fac7) 2016-05-30 15:30:00 +03:00
Alexander Bruy
25983ee331 [processing] fix .ui file loading (follow up b52828fac7) 2016-05-30 14:39:28 +03:00
volaya
b52828fac7 [processing] allow creating new plugin from toolbox with scripts 2016-05-30 10:41:45 +02:00
rldhont
27c5f78f4d Merge branch 'processing_shortHelp' 2016-05-28 09:58:52 +02:00
Alexander Bruy
3d95712009 [processing] add output extent to scripts (refs #11781) 2016-05-28 10:39:43 +03:00
rldhont
8592a7e3ac [Processing] Add shortHelp for Scripts, Models and R
And enhance getParameterDescriptions
2016-05-28 09:32:49 +02:00
volaya
d4802e5e9e Merge pull request #3109 from rldhont/bugfix_processing_getParameterDescriptions
[BUGFIX][Processing] Add getParameterDescriptions to R, Model and Scr…
2016-05-26 17:11:46 +02:00
rldhont
53089188d5 [BUGFIX][Processing] Add getParameterDescriptions to R, Model and Script algo 2016-05-26 16:53:10 +02:00
Alexander Bruy
d16f04bf3a [processing] support multiple scripts/models folders (fix #10476) 2016-05-26 13:56:21 +03:00
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
b4e2354163 [processsing] removed unused code 2016-05-18 15:14:29 +02:00
volaya
d390ebdceb [processing] show script in toolbox even if it contains errors 2016-05-18 14:24:46 +02:00
Alexander Bruy
555fe3d911 [processing] simplify variables handling in scripts 2016-05-13 09:34:25 +03:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
volaya
8a9cb05dbb [processing] better handling of variables in scripts 2016-04-26 12:47:55 +02:00
Alexander Bruy
abda90fe0d [processing] filter items in toolbox using translated and original names (fix #13764) 2016-04-11 15:57:22 +03:00
volaya
45cb80a0ff [processing] fixed wild import 2016-04-07 12:32:46 +02:00
volaya
794ef72520 [processing] added support for QGIS variables in python scripts 2016-04-07 12:03:41 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Alexander Bruy
dd68c33eb4 [processing] add support for ParameterPoint to major algorothm providers 2016-02-29 12:41:27 +02:00
Matthias Kuhn
b956886e81 [processing] Initialize icons before first usage 2016-02-04 13:35:16 +01:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
rldhont
322e511797 [Processing] Fix default value support in script
For some parameters like Number if no default is set script is invalid.
2016-01-15 17:25:48 +01:00
volaya
8884c37b6f [processing] add nocrswarning option to scripts
fixes #12784
2016-01-14 11:53:50 +01:00
volaya
09c8239a77 [processing] fixed missing colon in function definition 2015-11-27 09:13:04 +01:00
volaya
0a21d91be5 [processing] allow manually add scripts to scripts provider 2015-11-27 08:51:53 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
volaya
9f3bd1d46d [processing] minor fix in parameter parsing in scripts 2015-11-06 14:02:38 +01:00
rldhont
55e75addce [Processing] Optional parameters for script and model
In processing core every parameters can be optional but in scripts there is no way to define a parameter as optional and in modeler only layers can be optional.

For script, I propose a notation like output, if a parameter token starts with optional the parameter is optional.

For model, I propose to add the required combobox to all parameters.

This proposition does not change the value setter.

This proposition can fix the issue http://hub.qgis.org/issues/5488.
2015-11-04 09:51:33 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Juergen E. Fischer
66a3d02240 integrate processing into update_ts.sh (also includes all translations
in the repository and none outside of it).
2015-07-26 04:28:37 +02:00
volaya
b80a1bcac5 [processing] fixed handling of folders and files in settings
fixes #12511
2015-06-26 12:00:02 +02:00
volaya
4d62566db7 [processing] fixed ‘add script from file’ tool 2015-05-21 09:25:11 +02:00
volaya
a58085bf4e [processing] allow selection parameters with option populated from data source 2015-05-21 09:05:26 +02:00
Alexander Bruy
30dbd8fd5b [processing] drop resources.qrc and load images dynamically. Also remove
unused images
2015-05-19 15:30:25 +03:00
volaya
8ac22c5f30 [processing] fixed wrong creation of error message in script algorithm 2015-04-28 08:44:41 +02:00
Alexander Bruy
b9f391f9a4 [processing] save last used models/scripts directory (fix #12536) 2015-04-10 16:25:38 +03:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
radosuav
8fc6dd8d42 [Processing] Let a script know where what is its description file.
Usefull if it needs to access other files located relative to the script
location.
2015-01-22 14:33:17 +01:00