113 Commits

Author SHA1 Message Date
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
e4e63ce5f9 [processing] When running qgis_process commands, defer the model
provider loading until after ALL plugins have been loaded

This avoids the model provider from refreshing all the model
algorithms multiple times, once for each non-default plugin installed
which implements a processing provider.
2023-12-07 16:20:25 +10:00
Alexandre Neto
1c30d618aa Try to clean all traces of the Graphical modeler and replace by Model Designer 2023-08-05 10:48:51 +10:00
Nyall Dawson
30acad6819 Cleanup iface signal connections when unloading processing
plugin

Fixes #53455
2023-06-14 17:33:47 +10:00
Alexander Bruy
a84011ecd7 do not raise error in processing algoirthm if map tool previously used
by the canvas was destroyed (fix #53294)
2023-06-08 08:37:17 +10:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
Nyall Dawson
a4d6fd3ed5 Use QgsProcessingHistoryDialog for Processing history dialog
And remove old class
2023-04-24 13:09:46 +10:00
Nyall Dawson
f794b17fa4 [processing] Port functionality from history dialog to history
provider framework
2023-04-23 18:12:14 +10:00
Nyall Dawson
092279e90d [feature] Run batch processing steps in tasks
Instead of forcing all steps in the batch processing dialog to execute
in the main thread, we now run each step as a separate task whenever
possible. This keeps the UI nice and responsive, and permits
responsive cancelation and progress reporting.

Individual steps are still run sequentially, not in parallel (yet!)
2022-03-15 11:44:08 +10:00
Nyall Dawson
a622004e21 [processing] Fix python exception raised after running in-place
algorithm which requires no parameters
2022-02-02 05:41:45 +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
Alessandro Pasotti
e5d53ad292 Rename execute function 2021-11-30 21:06:57 +10:00
Alessandro Pasotti
fe61a987ac Add missing imports 2021-11-30 21:06:57 +10:00
Alessandro Pasotti
bc3e4ca7fe Set parents and factor out GUI alg executor 2021-11-30 21:06:57 +10:00
Alessandro Pasotti
908ead8427 Missing imports 2021-11-30 21:06:57 +10:00
Alessandro Pasotti
4c66471610 Reimplement project algs execution 2021-11-30 21:06:57 +10:00
Alessandro Pasotti
2869ec285f Add "Models" submenu to project's menu
This will contain the project's processing models
with actions to run them (in batch too if available).

Funded by: Kanton Solothurn
2021-11-30 21:06:57 +10:00
Nyall Dawson
cbe2678e34 [processing] Fix broken execution of models via browser/drag and drop
Fixes #43698
Fixes #42181
2021-06-14 15:02:54 +10:00
Alexander Bruy
1a76a0963e add Select By Location to the Selection toolbar (fix #20350) 2020-08-16 12:15:22 +03:00
Nyall Dawson
a0e6a374eb Port some more model designer Python code to c++ 2020-03-06 18:22:49 +10:00
Nyall Dawson
06082a15c0 [processing] Improve temporary directory handling
- Make the new Temp Folder setting optional, default to an empty
string, and note that empty = use default
- Move responsibility for cleanup of temporary folders to c++ (if
Processing Python part crashes, or doesn't exist, then we still
want these cleaned up correctly)
2020-02-03 05:48:02 +10:00
Harrissou Sant-anna
2f95dd7701 Remove duplicate 'Ctrl+Shift+M' shortcuts 2019-09-06 07:38:33 +10:00
Harrissou Sant-anna
2f5d544e3e Set objectName of items to allow their children status restoring 2019-08-17 10:12:26 +02: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
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Nyall Dawson
885f47d2af [processing] Avoid creation of gui components at startup 2019-02-28 19:38:53 +10:00
nirvn
73d19e3c19 [processing] Add edit feature in-place menu shortcut
(useful for people who rely on the locator)
2018-11-28 16:53:31 +07:00
Nyall Dawson
0e928e8191 [processing] Correctly set parent widgets for algorithm dialogs
to avoid dialogs immediately going out of scope and being garbage
collected
2018-11-23 20:32:16 +11:00
Alessandro Pasotti
7ecd303acc [in-place] Fix locator filter for in-place when active layer changes
Invalidate the locator results when active layer changes

Fix #20099 - Locator bar does not update the filter of algorithms according to active layer when using "ef"
2018-10-23 16:12:49 +02:00
Alessandro Pasotti
ca1c65d07a [processing] In place editing triggers editing and select all
If the active layer is not editable, the executor will
try to switch editing on.

If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
nirvn
5ec3d5d990 [processing] improve in-place feature editing icon & toolbar position 2018-09-20 11:55:46 +07:00
Alessandro Pasotti
db98a38c02 Remember button checked status 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
d1ec4ac0aa Sync in-place button state 2018-09-14 18:23:03 +10:00
Nyall Dawson
681d44f11f Messy mockup of feature 2018-09-14 18:23:03 +10:00
Nyall Dawson
69ab3c9e0c Start on history item 2018-07-16 11:38:13 +10:00
Nyall Dawson
a5992d0178 [processing] Fail model drop if model file could not be successfully read 2018-07-12 10:14:03 +10:00
Nyall Dawson
61cc8b5774 [processing] Fix exception when dropping model file on qgis window 2018-07-12 10:14:03 +10:00
arnaud.morvan@camptocamp.com
5af792c1f8 [processing] Call toolbox.deleteLater to avoid slot calls after unload 2018-02-21 21:45:27 +00:00
Juergen E. Fischer
6dfedc38e9 translation string fixes and cleanups 2018-02-15 22:31:15 +01:00
Salvatore Larosa
abeef2573c macOS: fix shortcut even for processing tool button 2018-02-13 16:51:04 +01:00
nirvn
1994c44644 [processing] harmonize results viewer action behavior 2018-02-13 10:40:17 +07:00
nirvn
4ada4989e5 [processing] automatically open results viewer panel when items added 2018-02-12 18:09:38 +07:00
Alexander Bruy
55759a4cee [processing] remove unused icons and use SVG icon for Heatmap algorithm 2018-02-01 07:22:12 +02:00
nirvn
6d5dce22f6 [processing] properly size toolbar button for provider actions 2018-01-26 13:11:24 +07:00
Mathieu Pellerin
c5d9830db2
[needs-docs][processing] move providers actions into the processing
panel toolbar (#6150)
2018-01-24 13:24:44 +07:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11:00
Nyall Dawson
63db1be890 [processing] Improve main window Toolbox action
Brings the behaviour into line with the styling dock, where
the action is checkable and checked only when the toolbox
is open AND user visible (i.e. not hidden behind another tab). If
the toolbox is open but hidden, then hitting the Toolbox action
brings it to the front tab.

Otherwise it's often necessary to hit to Toolbox shortcut twice -
once to close a hidden toolbox tab, and a second time to open
and raise it.
2018-01-24 11:38:07 +11:00