Nyall Dawson
834167018e
Add algorithmAboutToRun signal to QgsProcessingAlgorithmDialogBase
...
This signal can be used to tweak the algorithm's context prior to
the algorithm execution.
2024-05-04 06:30:43 +10:00
Nyall Dawson
58695f7c83
Apply suggestions from code review
2024-02-01 17:22:29 +10:00
Alister Hood
05ac633ca9
Don't report that html output has been generated if it hasn't
2024-02-01 17:22:29 +10:00
Nyall Dawson
e42abf7dc5
Update python files
2024-01-22 05:46:15 +10:00
Nyall Dawson
c16a1e2b3d
Update enums
2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d
[PyQt6] Add scope for enums and get rid of PyQt5.XXX import
...
this has been done automatically with the following comand line
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Nyall Dawson
3c179214fc
Use nicely formatted results in processing logs
2024-01-09 17:02:21 +10:00
Nyall Dawson
26ce45d6d5
Remove unused argument
2023-05-03 18:29:28 +10:00
Nyall Dawson
953e3de749
Store full processing execution log in history entries
2023-04-26 16:52:36 +10:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin
2023-04-24 10:03:57 +02:00
Nyall Dawson
7cd6b616b1
Allow processing dialog to override default processing context settings
2023-03-17 05:59:15 +10:00
Nyall Dawson
603ccb2904
[processing] Gracefully handle algorithms with no provider set
...
Fixes #51971
2023-02-23 19:38:45 +10:00
Zayne Tomlins
3f20c88a62
Fixed lint issue with unit tests
2022-08-01 12:35:58 +10:00
Nyall Dawson
497e46bc32
Don't try to store child inputs for model executions in history register
2022-03-31 06:32:33 +10:00
Nyall Dawson
cf0e266a15
Store results for processing algorithm executions
2021-12-21 15:32:57 +10:00
Nyall Dawson
5e5540c890
[processing] Port algorithm log to new history provider API
...
No user visible changes, but we gain the flexibility for better
history storage, including the ability to store the outputs
calculated by the algorithm execution...!
2021-12-21 15:32:57 +10:00
Nyall Dawson
eea2ba3d93
QgsProcessingAlgorithmDialogBase subclasses should also implement
...
the QgsProcessingContextGenerator interface
2021-12-16 11:15:34 +10:00
Nyall Dawson
5333f17791
Ensure that createProcessingParameters implementation in AlgorithmDialog won't leak exceptions to c++ callers
2021-12-16 11:15:34 +10:00
Nyall Dawson
86794dabdc
Fix interface for QgsProcessingParametersGenerator was modified for
...
the python subclasses only and no longer correctly overrides the
base class method
2021-12-16 11:15:34 +10:00
Joonalai
b61fe2734e
Remove redundant progress text
2021-09-20 16:47:15 +10:00
Joonalai
60b74efdc1
[processing] log the start time ( fix #44292 )
2021-09-20 16:47:15 +10:00
Nyall Dawson
35a781d441
[processing] Fix misleading "cancel" label shown for "close" button
...
This button isn't a cancel button - it just closes the dialog, and
doesn't abort any changes which have already been made as a result
of running the algorithm through the dialog.
2021-03-16 10:20:53 +10:00
Jean-François Bourdon
64d921fe53
Reformat elapsed time in processing to express time in hours, minutes and seconds ( #41573 )
...
When appropriate, express the elapsed time in hours, minutes and seconds in addition to cumulative seconds.
2021-02-20 06:35:16 +10:00
Nyall Dawson
c8d61499ff
[processing] Instead of a hidden parameter for verbose model logging,
...
add an explicit log level getter/setter to QgsProcessingContext which
algorithms can use to determine an appropriate level of feedback
to push to users.
Initially the verbose log only triggers the full verbose output
of model executions (which is also used when running models through
the model designer), but the intention is that more algorithms
will fine tune their output based on the logging level.
qgis_process also gains a new --verbose switch to enable verbose
log output.
2021-02-20 05:04:00 +10:00
Nyall Dawson
f5d3164e2c
[processing] Input parameter name for in place algorithms is not
...
always fixed, so ensure we correctly obtain and use the correct
input parameter name
2021-02-03 12:38:35 +10:00
Nyall Dawson
c703d81c9c
[processing] Fix exception after running algorithm in modeler
...
Fixes #40907
2021-01-12 13:38:01 +10:00
Nyall Dawson
1219f55378
[processing] Fix and improve how in place algorithm parameter widget
...
handles the input layer by creating a new QgsProcessingHiddenWidgetWrapper
wrapper subclass
Fixes #37424
2020-07-10 04:44:30 +10:00
Nyall Dawson
60f40f066a
[processing] Fix crashes when running algs in "in place" mode
...
Fixes #35844
2020-04-20 12:01:46 +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
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
c98cd8d1a8
Partial port of destination wrappers to c++ API
2020-04-02 02:29:54 +10:00
Nyall Dawson
3dfc931fad
Hide internal results from log
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
6e2c21eb55
[processing] Cleanup handling of "iterate over source" buttons, move
...
creation completely to widget wrapper
2020-03-25 09:42:17 +10:00
Matthias Kuhn
01c7cb1814
Merge pull request #34928 from gacarrillor/adjust_run_button_status_in_alg_dialog
...
[processing][needs-docs] Adjust status of controls executing an algorithm dialog
2020-03-18 14:42:52 +01:00
Nyall Dawson
517aa9667b
[processing] Port DestinationSelectionPanel to c++
...
This is basically a 1:1 port (+some fixes relating to incorrect signal
emissions and many more tests)
2020-03-17 07:24:40 +10:00
gacarrillor
0153dc805e
[processing] Disable runAsBatch/runAsSingle buttons during algorithm execution
2020-03-07 17:16:03 -05:00
gacarrillor
237f1f7e2d
[processing][needs-docs] Adjust status of controls in algorithm dialog
...
+ Run button is not shown anymore in the Log tab, therefore, you can only run algorithms from the Parameters tab.
+ While running an algorithm, the Parameters tab is now blocked.
+ When an algorithm execution finishes (either successfully or not), a new button Change Parameters is shown in the Log tab.
+ The Batch Algorithm Dialog is now consistent with the described behavior (before, it blocked the Parameters panel, but not the tab; and it was the only dialog blocking parameters widgets).
These changes were applied to the Algorithm Dialog and Batch Algorithm Dialog, and work on Edit in place dialogs as well.
2020-03-07 14:23:51 -05:00
Nyall Dawson
bc3077e52e
[processing] When running an algorithm in place mode, don't auto close
...
the dialog after changing features
Otherwise it can be a real pain to iteratively change/undo/tweak parameter
value
2020-03-06 18:24:01 +10:00
Nyall Dawson
61454c67cd
[processing] Add api to allow providers to report warnings which should
...
be shown to users when using that provider
This can be used to return a translated warning message which should be
shown to users of this provider. It's intended for use in cases such as
a provider which relies on a 3rd-party backend, where the version of the
backend software is not officially supported, or for alerting users to
providers in a "beta" or "untrustworthy" state.
2019-12-06 17:35:41 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
933559b655
[processing] Report provider version string alongside QGIS version in log
...
Helpful for debugging and reproducability of results
2019-04-08 16:59:15 +10:00
Nyall Dawson
7674e1657b
[processing] Include version information at start of log
...
Start the log text with QGIS/Qt/GEOS/GDAL version information strings.
This is helpful for debugging and accountability.
2019-04-02 06:16:45 +10:00
Rashad Kanavath
46da10a1e8
Revert "fixes #21374 : ignore optional output parameters"
...
This reverts commit af2421541c78742a233b3c5a00cbbd6c11ceaaab.
2019-03-21 04:44:59 +10:00
Rashad Kanavath
f6ad4745bd
fixes #21374 : ignore optional output parameters
2019-03-21 04:44:59 +10:00
Víctor Olaya
13bff9620c
[processing] do not allow using unsupported file formats
...
Show warning message if user selects incompatible output file format
fixes #21089
2019-02-23 05:24:56 +10:00
Nyall Dawson
7acfefadad
Fix infinite progress when an algorithm could not be created
2019-02-20 13:05:13 +10:00
Nyall Dawson
29fa7b6e7b
Fix build, indentation
2019-02-13 07:59:30 +10:00