252 Commits

Author SHA1 Message Date
Mathieu Pellerin
56d5a375a1 [FEATURE] Zoom in/out and fit items to view actions for the modeler (#3939) 2017-01-03 12:15:03 +07:00
nirvn
f54476cdda [FEATURE] Export processing models as PDF/SVG 2017-01-02 11:47:54 +07:00
nirvn
4603eb0f3d [processing] update color scheme and position of modeler elements 2017-01-02 09:30:17 +07:00
nirvn
d01e3feafc [processing] convert modeler icons to pictures to kill pixels when zoomed 2017-01-02 08:47:11 +07:00
nirvn
8849e94208 [processing] vectorize basic modeler images 2016-12-31 11:59:53 +07:00
nirvn
00ee2ad989 [processing] vectorize and improve menu icons (fixes #14474) 2016-12-31 11:59:46 +07:00
Alexander Bruy
2fea23f1e5 Merge pull request #3779 from volaya/rastercalculator
[processing] add native raster calculator
2016-12-05 20:03:23 +02:00
Alexander Bruy
77bbeaa99f fix loading of models containing user-defined scripts 2016-12-05 10:31:38 +02:00
Alexander Bruy
50a785bdd6 [processing] indentation update 2016-12-01 12:53:57 +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
08505b388a [processing] Allow restricting fields to date/time types 2016-11-30 15:04:21 +10:00
Alexander Bruy
95072e9bfd Merge pull request #3802 from alexbruy/processing-scripts
[processing] script editor UI improvements
2016-11-24 14:36:57 +02:00
Alexander Bruy
c3ed39061d [processing] improve script editor dialog
Use QMainWindow instead of QDialog, add normal toolbar instead of
QToolButtons. Also fix some issues caused by Qt5 switch.
2016-11-24 12:34:59 +02:00
nirvn
a6ebe830b0 [processing] upgrade modeler to make use of qgsdockwidgets 2016-11-24 11:59:19 +07:00
nirvn
6e2288dccb [processing] switch a couple of modeler pop up dialogs to message bars 2016-11-23 17:28:34 +07:00
nirvn
2652aa50c9 [processing] improve the modeler dialog UI and icons
- use a proper toolbar to match other parts of QGIS
- show keyboard shortcuts in toolbar action tooltips
- create vector icons to replace PNG ones
2016-11-23 13:45:17 +07:00
Nyall Dawson
3ef7b3b7eb [processing] Use standard QGIS projection selection widget for CRS params 2016-11-13 20:34:35 +10:00
Nyall Dawson
08231b8b14 Merge pull request #3742 from nirvn/processing_fix_hasdependencies
[processing] check for parent alg dependencies in hasDependencies()
2016-11-12 15:09:26 +10:00
nirvn
f3d7e39abb [processing] harmonize modeler UI behavior with QGIS
- use [close without saving][cancel][save] option when closing
a modeler with unsaved changes
- invert mouse wheel zoom in/out to match that of QGIS' main
canvas window
- holding the mouse middle click and dragging will pan the
modeler view
2016-11-11 15:47:42 +07:00
nirvn
be2223fed3 [processing] check for parent alg dependencies in hasDependencies() 2016-11-11 13:08:01 +07:00
Nyall Dawson
5625d6e9b6 Expression parameters don't have to have parent layers 2016-11-11 13:26:31 +10:00
Nyall Dawson
132e76a596 [FEATURE][processing] New input type for expressions
This adds a new input type for expression inputs. Expression
inputs can be linked to a parent layer so that the builder
shows the correct fields and layer variables.

It's designed for two use cases:

1. to be used when an algorithm specifically requires an expression,
eg Select by Expression and Extract by Expression.

2. to be potentially used as a replacement input instead of string
or number literals in algorithms. Eg - if the simplify algorithm
tolerance parameter was replaced with an expression paremeter, then
this expression would be evaluated for every feature before
simplifying that feature. It would allow parameters to be calculated
per feature, as opposed to the current approach of calculating
a parameter once before running the algorithm. It would also
mean algorithms like "variable distance buffer" would no longer
be needed, as a single "buffer" algorithm could then be used
for either a fixed distance, field based, or expression based
distance.
2016-11-11 13:26:31 +10:00
Nyall Dawson
72118f91f9 [processing] When an algorithm has string parameters, also
accept numeric, file and table field inputs in modeler

This allows a non-string parameter to be reused as a string
parameter in contexts where it makes sense.
2016-11-11 13:26:31 +10:00
nirvn
45711d372e [processing] use algorithm description in modeler dependencies dialog 2016-11-10 10:21:12 +07:00
Nyall Dawson
3550cc99a6 [processing] Allow algorithms to specify tags
Tags are used while searching in the toolbox. This should help with
finding algorithms when the exact name is not known, eg
you could search for "envelope" or "bounds" and find the
'Polygon from Layer Extent' algorithm.

At the moment it's quite hard to discover algorithms which exist
when you don't know what their called and have to instead search
for every possible naming variant which could exist...
2016-11-08 10:15:31 +10:00
Nyall Dawson
fd15090521 Update identation 2016-11-08 08:51:22 +10:00
Nyall Dawson
6a99017bf0 [processing] Use with ... when opening files 2016-11-07 11:36:38 +10:00
Alexander Bruy
1c44d7471f Merge pull request #3695 from nirvn/processing_modeler_dblclick
[processing] resurrect editing of modeler item on double-click
2016-11-02 14:16:27 +02:00
Nyall Dawson
dd4b34ed16 [processing] Modeller should not be modal 2016-10-31 14:37:45 +10:00
nirvn
b48d20220e [processing] resurrect editing of modeler item on double-click 2016-10-31 11:18:22 +07:00
nirvn
bec379249e [processing] sort model input parameters to avoid random ordering 2016-10-31 10:53:13 +07:00
Nyall Dawson
3caccd531d [processing] Fix handling of multiple field input in modeller 2016-10-31 11:41:40 +10:00
Nyall Dawson
29ce141dc4 Merge pull request #3657 from nirvn/processing_modeler_mandatory
[processing] fix modeler parameter mandatory checkbox logic
2016-10-31 09:13:37 +10:00
Nyall Dawson
d5698be69f Fix some processing breakage 2016-10-31 09:12:39 +10:00
nirvn
8ee25cdfa8 [processing] fix modeleter mouse wheel zoom under qt5 2016-10-22 12:28:17 +07:00
nirvn
ddc44dfd89 [processing] fix modeler parameter mandatory checkbox logic 2016-10-22 12:01:30 +07:00
nirvn
bd7149ce16 [processing] fix broken modeler under pyqt5/python3 (fixes #15734) 2016-10-21 10:11:22 +07:00
volaya
22a6c473d9 [processing] alternative way of copying algorithms in a model.
should fix #15060 and #15480
2016-10-18 16:55:19 +03:00
volaya
eb5fc90f44 [processing] dont use hidden outputs when exporting to python or displaying alg help
fixes #14998

Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
2016-10-18 16:55:19 +03:00
arnaud.morvan@camptocamp.com
4184934b9a [processing] Apply 2to3 on changes 2016-10-05 12:39:01 +02:00
Alexander Bruy
3407ced90e fix indentation
Conflicts:
	python/plugins/processing/gui/BatchInputSelectionPanel.py
	python/plugins/processing/gui/wrappers.py
2016-10-05 12:38:50 +02:00
arnaud.morvan@camptocamp.com
8d16161742 Call postInitialise in modeler Dialog 2016-10-05 12:38:41 +02:00
volaya
e6f9499716 [processing] improvements for modeler UI
Do not show help tab if there is no help

add "optional" tag for optional parameters
2016-10-05 12:38:37 +02:00
volaya
c8f35fb4ce [processing] fixed typo in modeler/ModelerParameterDefinitionDialog.py 2016-10-05 12:38:33 +02:00
volaya
ccdf372250 [processing] UI improvement for defining model parameters 2016-10-05 12:38:27 +02:00
volaya
cdcc01e97c [processing] removed debug lines 2016-10-05 12:38:22 +02:00
volaya
96406e52cd [processing] removed message dialog when saving model. Using message bar instead 2016-10-05 12:38:15 +02:00
volaya
4751b70675 [processing] fixed advanced parameters in modeler 2016-10-05 12:38:13 +02:00
volaya
e08fdaa444 [processing] support for expressions in numerical values in modeler
includes cleanup of modeler, to adapt to latest changes in parameters architecture
2016-10-05 12:38:11 +02:00