177 Commits

Author SHA1 Message Date
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
volaya
5773d0d51b [processing] fixes and better warning messages in modeler 2016-05-31 12:36:29 +02:00
rldhont
8592a7e3ac [Processing] Add shortHelp for Scripts, Models and R
And enhance getParameterDescriptions
2016-05-28 09:32:49 +02:00
Alexander Bruy
cc7eb27a27 [processing] drop WebView dependency (follow up 38f6ace4c0) 2016-05-27 20:38:51 +03:00
Juergen E. Fischer
38f6ace4c0 make webkit optional 2016-05-27 08:41:58 +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
af201211dd fix indentation 2016-05-26 14:43:18 +03:00
Alexander Bruy
d16f04bf3a [processing] support multiple scripts/models folders (fix #10476) 2016-05-26 13:56:21 +03:00
volaya
f915cbe63e [processing] fixed modeler dialog 2016-05-25 14:59:08 +02:00
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
Alexander Bruy
d2b21891d4 [processing] correctly set default value in modeler algorithms (fix #12767) 2016-05-23 17:42:54 +03:00
volaya
bfa90a9125 [processing] fixed toolbox updates 2016-05-18 12:08:34 +02:00
Matthias Kuhn
abfd7740bd Fix qgis.PyQt compatibility imports 2016-04-29 14:10:41 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
rldhont
4a11a1a319 [Processing][Modeler] Use default value instead of None
In Modeler algorithm, when a algorithm's parameter was not defined it's value was set to None.
Before the possibility to defined optional parameters, None value is equal to set value to default one.
Now, it's important to use default value instead of None.
2016-04-27 10:13:56 +02:00
rldhont
e765bb6dd1 [Processing] Fix when iface is None 2016-04-20 14:52:46 +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
297f4669fd [processing] added preconfigured algorithms 2016-04-07 12:03:39 +02:00
Septen
bf83f4ebd0 [processing]Fixed UI bug with invalid button width. 2016-03-27 23:02:45 +04:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +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
volaya
b3b41015a1 Merge pull request #2804 from Gustry/processing-error
[Bugfix] [Processing] Catch some python errors in batch mode
2016-03-03 13:15:30 +01:00
Alexander Bruy
317639f1e0 [processing] allow to use ParameterPoint in Graphical Modeler 2016-02-29 12:41:27 +02:00
Alexander Bruy
30a738f981 [processing] improve handling of the obsolete models (fix #14306) 2016-02-18 15:55:01 +02:00
Etienne Trimaille
3039f13ea9 improve error message in the modeler 2016-02-17 19:44:05 +01:00
Alexander Bruy
1ffccf05c9 [processing] fix Modeler Calculator (ref #14305) 2016-02-16 20:59:50 +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
Alexander Bruy
1858cc719c Revert "[processing] also make Modeler non-blocking when opened from context menus (follow up 51ec2bfba6)"
This reverts commit 602437aa0676a7ad4ce21bc32b62c2b107474bff.

Having modeler as non-blocking window it risky as changes in the
algorithms will not be reflected in it.
2016-01-27 14:01:37 +02:00
Alexander Bruy
602437aa06 [processing] also make Modeler non-blocking when opened from context menus (follow up 51ec2bfba6) 2016-01-27 09:52:32 +02:00
Salvatore Larosa
8346601174 [processing] remove unused code: followup e7e8451 2016-01-23 15:03:34 +01:00
volaya
f762380835 [processing] more checks before running model 2016-01-19 12:34:59 +01:00
volaya
a549ded47b [processing] prevent circular dependencies in models
fixes #99090
2016-01-19 09:39:57 +01:00
volaya
2b3cf83991 [processing] correctly handle default params in modeler 2016-01-18 15:02:11 +01:00
volaya
931ca4d6d6 [processing] indentation fixes 2016-01-08 12:52:19 +01:00
Alexander Bruy
4137437f2c PEP8 fixes 2016-01-08 10:32:43 +02:00
volaya
62302377db [processing] UI/UX improvements
Related to QEP #19

Some algorithm description provided by Frank Sokolic
2016-01-08 08:27:22 +01:00
Matthias Kuhn
80de178d9e Indentation fix 2015-12-20 10:12:18 +01:00
Matthias Kuhn
4f2da483ac Indentation update 2015-12-15 16:24:12 +01:00
volaya
95b92c7960 [processing] correctly export multiline strings as python parameters from modeler
fixes #13830
2015-12-15 14:57:29 +01:00
radosuav
9096a64a6c [Processing] Use default value of boolean parameter in the modeler and fix typo in outputs.py 2015-12-15 10:57:02 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
volaya
227af8ac8e [processing] brought back 'export model as python' functionality 2015-11-06 14:02:11 +01:00
volaya
8187ad50c9 [processing] some fixes for supporting optional parameters 2015-11-04 09:51:44 +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
volaya
c87646a9a7 [processing] fixed modeler calcualtor when opening dialog for the first time
fixes #13587
2015-10-13 19:59:17 +02:00