7801 Commits

Author SHA1 Message Date
Alexander Bruy
6f84358a9f [processing] port multiple layers parameter defintion widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
ebd0a72025 [processing] port field parameter definition widget to C++, expose
defaultToAll option to modeler parameter definition dialog
2020-04-05 05:23:29 +10:00
Alexander Bruy
a2ed502cf5 [processing] port band parameter definition widget to C++, expose
option to define multiple bands parameter in modeler parameter defintion
dialog
2020-04-05 05:23:29 +10:00
Nyall Dawson
d69519a91e Move parameter retrieval logic from dialog to ParametersPanel
This is cleaner, because the panel owns all the wrappers required
to evaluate the parameter values
2020-04-04 17:58:55 +10:00
Nyall Dawson
a80bdc47e5 [processing] Add API and interfaces so that widget wrappers can retrieve the
current set of parameters for other parameters when required
2020-04-04 17:58:55 +10:00
Alessandro Pasotti
a21800cf3e Adress PR review + model test + QgsExpression -> QString 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
4a33c75bc9 Mapping panel: fix initial loading of source fields 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
e1044d87f1 Use QgsFieldMappingWigdet in processing UI 2020-04-03 21:21:14 +10:00
Martin Dobias
53075848ce
Merge pull request #35341 from wonder-sk/vector-tile-layer
[FEATURE] Vector tile layer - part 1
2020-04-02 16:06:30 +02:00
Nyall Dawson
a7610c5682 Give up on enum class
Python says no.
2020-04-02 19:20:40 +10:00
Nyall Dawson
579ef1c5c1 Fix use of enum flags in older python/sip versions 2020-04-02 19:20:40 +10:00
Nyall Dawson
d20a3bddc0 [FEATURE][processing] Port output parameter wrappers to new c++ API for modeler
This allows a range of new possibilities, including:
- models with static outputs for child algorithms, e.g. always saving
a child algorithm's output to a geopackage or postgres layer
- models with expression based output values for child algorithms, e.g.
generating an automatic file name based on today's date and saving
outputs to that file
2020-04-02 02:29:54 +10:00
Nyall Dawson
3976e14ae8 Refine arrow API to allow control over whether arrows join to incoming or outgoing sides 2020-04-02 02:29:54 +10:00
Nyall Dawson
c98cd8d1a8 Partial port of destination wrappers to c++ API 2020-04-02 02:29:54 +10:00
Nyall Dawson
90a0a2d6a6 Fix exception when hiding comments 2020-04-01 18:20:09 +10:00
Nyall Dawson
e788be93fa [processing][FEATURE] Add api for setting model component colors, and expose
the option to set manual colors for individual model comments
2020-04-01 18:20:09 +10:00
Nyall Dawson
87f50c3633 Fix some ugly appearance of data defined buttons 2020-04-01 08:42:14 +10:00
Nyall Dawson
fb7f85efb6 Fix dialog name 2020-04-01 05:27:55 +10:00
Nyall Dawson
7a69bf39d2 Another fix for OTB widget 2020-04-01 05:27:55 +10:00
Nyall Dawson
bc659fe1fa Adapt OTB widget use of non-stable API
(this is a prime example of why the sooner we can drop all this python, the better...)
2020-04-01 05:27:55 +10:00
Nyall Dawson
ed51791068 Fix spell check error 2020-04-01 05:27:55 +10:00
Nyall Dawson
fbe36f8849 Messy messy refactoring to open model parameter options using inline panels
The "stable" old python api is really biting us here, and causes a heap of mess
Bring on QGIS 4.0!
2020-04-01 05:27:55 +10:00
Juergen E. Fischer
fd036d6d5e transifex issue: exclude keywords from db manager query builder translation 2020-03-31 14:49:44 +02:00
Nyall Dawson
3dfc931fad Hide internal results from log 2020-03-31 19:35:51 +10:00
Nyall Dawson
f268b09d1b Also show child input values 2020-03-31 19:35:51 +10:00
Nyall Dawson
cb990c69c2 Setup framework for receiving model child results after running through model designer 2020-03-31 19:35:51 +10:00
Nyall Dawson
dac7bd7272 Update test results due to different random algorithm used 2020-03-31 18:22:12 +10:00
Håvard Tveite
c774ade88f
[FEATURE][processing] Add "random points on lines" algorithm
The Random points on lines algorithm supplements the existing "Random points along line" algorithm, and will prove to be more useful to the majority of users than the "original".

Features:

The points are distributed randomly over the lines based on "along the line" distance, meaning that the distribution of the points will be flat over the length of the line (each place on the feature has the same probability of being "hit"). 

The Random points along line, on the other hand, uses a line segment based approach, meaning that the density will depend on the segment length (short segments will have a higher point density than longer ones).
2020-03-31 08:55:47 +10:00
Nyall Dawson
e386573c0c [FEATURE][processing] Port multi-layer input parameter widget to new API
Allows
- expression based inputs
- rearrangement of inputs for multi-layer parameters in models, to set
specific layer orders
2020-03-31 01:06:48 +10:00
Nyall Dawson
a682405ccb [processing] Partial port of Multi Input parameter widget (standard and batch) 2020-03-31 01:06:48 +10:00
Marco Hugentobler
4cd464059c Revert test gpkg files 2020-03-30 08:26:16 +02:00
mhugent
7523ec2067
Merge pull request #35408 from mhugent/server_project_settings_expanded
Server project settings, add 'expanded' attribute
2020-03-30 07:35:07 +02:00
Nyall Dawson
865aa931e2 Fix exception in deprecated classes 2020-03-29 05:56:23 +10:00
Nyall Dawson
d327ddd668 Trick autopep 2020-03-29 05:56:23 +10:00
Nyall Dawson
ef4344b674 Default to current layer when appropriate 2020-03-29 05:56:23 +10:00
Nyall Dawson
d40990e155 [feature][processing] Port Feature Source, Raster, Vector and Mesh Layer parameters to new API 2020-03-29 05:56:23 +10:00
Ivan Ivanov
0a1d22574a Fix unwanted automatic fill of all algorithms when there is no input in the locator 2020-03-28 19:42:42 +10:00
Nyall Dawson
2856e7d2a9 Somedays Travis is just calling out to be punched in the face... 2020-03-28 12:04:43 +10:00
Nyall Dawson
c92b6fba86 Indentation 2020-03-28 12:04:43 +10:00
Nyall Dawson
3d30471731 [processing] When running in a batch mode, move the layer adding
actions to the "Autofill" menu

This adds more UI consistency, as currently there's a disconnect
from the autofill options available via the Autofill buttons
vs some options which need to be done from the first rows "..."
button
2020-03-28 12:04:43 +10:00
Marco Hugentobler
934e30f30e Adapt expected test output 2020-03-27 14:38:32 +01:00
Martin Dobias
5ec1890643 Moved to proper QgsMapLayer subclass + icon + optional tile borders 2020-03-27 12:08:40 +01:00
Alexander Bruy
72404a9038 [processing] use native matrix parameter definition widget 2020-03-27 07:08:42 +10:00
Alexander Bruy
87eefa325e [processing] use native enum parameter definition widget 2020-03-27 07:08:42 +10:00
Alexander Bruy
c5841c34fd
Merge pull request #33910 from alexbruy/dbmanager-import-clear
[dbmanager] clear create table dialog on succes (fix #25535)
2020-03-26 15:26:35 +02:00
Nyall Dawson
44ae5a5e1d Fix exception in test 2020-03-26 11:55:45 +10:00
Nyall Dawson
6ac9fca497 [FEATURE][processing] Allow loading non-disk based layers direct from browser for
feature sources, instead of requiring them to be loaded into a project first

This change allows users to directly browse to non disk-based layer sources
for any processing feature source inputs. It allows these inputs to be
taken direct from postgres, sql server, oracle, wfs, afs, etc layers directly
without having to first load them into a project!
2020-03-26 11:55:45 +10:00
Nyall Dawson
9d0efd3354 Set widget context for QgsProcessingMapLayerComboBox 2020-03-26 11:55:45 +10:00
Nyall Dawson
1915a16bf3 Port extent parameter to new c++ API widget wrapper 2020-03-25 19:25:40 +10:00
Nyall Dawson
945eb460fe Allow dragging and dropping project layers to QgsExtentWidget to copy extent from layer 2020-03-25 19:25:40 +10:00