91 Commits

Author SHA1 Message Date
Valentin Buira
052d48e558 Simplify restaure the previous viewed rect 2025-08-07 13:54:54 +10:00
Valentin Buira
23dca6322b Remove the good superfluous method this time 2025-08-07 13:54:54 +10:00
Valentin Buira
10897ff3a9 Adress comments 2025-08-07 13:54:54 +10:00
Valentin Buira
1f2e30947c Tidy up PR 2025-08-07 13:54:54 +10:00
Valentin Buira
b1b7bef4a5 Fix scrollback to (0,0) on each repaintModel / rebuild of the model 2025-08-07 13:54:54 +10:00
Valentin Buira
3fe0bf5586 Unlimited modeler canvas size 2025-08-07 13:54:54 +10:00
Nyall Dawson
c3a5d163d6 Fix list format in doc 2025-06-07 07:58:04 +10:00
Valentin Buira
f56f85dc7c
Add basic drag and drop support in the model designer (#60664) 2025-04-30 09:47:48 +10:00
Nyall Dawson
3f6b490218 Sipify 2025-04-02 11:11:10 +10:00
Nyall Dawson
afd2e4f42d Fix doxygen class briefs which aren't full sentences 2025-04-01 09:44:00 +10:00
Denis Rouzaud
2562958772 sipify 2024-12-07 05:16:00 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
2f5ad6b51f Add Run Selected option to right click menu for selected algorithms 2024-05-04 06:30:43 +10:00
Nyall Dawson
e6fb69c41e Also add "Run from Here" action to right click menu on algorithms
Allows running the part of the model which starts at the right
clicked algorithm only
2024-05-04 06:30:43 +10:00
Nyall Dawson
a979931960 Function naming improvements 2024-04-21 06:46:35 +10:00
Nyall Dawson
de0f5cf87c Make API more future proof 2024-04-21 06:46:35 +10:00
Nyall Dawson
e2d6b54f35 Add "View Log" action for child algorithms
This action shows the log of that child step, regardless of whether
or not it failed. This is handy for debugging model errors after
testing, when you've already closed the algorithm window...!
2024-04-21 06:46:35 +10:00
Nyall Dawson
8302259463 Make child results handling API more flexible 2024-04-21 06:46:35 +10:00
Nyall Dawson
6c22cd0355 [feature] Add "View Output Layers" option for model child algorithms
When editing a model through the designer (and after having run
that model), you can now right click any child step in the model
and select "View Output Layers". This will add the output layers
from that step as new layers in the current QGIS project.

This action is available for ALL child algorithms in the model,
even if the model is not configured to use the outputs from those
children as model outputs.

This is designed as a helpful debugging action. If a user's model
fails (or gives unexpected results), they can then trace through
the model and view the outputs for suspected problematic steps.
It avoids the need to add temporary outputs to a model and re-run
to test.

Additionally, this action is always available after running the model,
EVEN if the model itself failed (eg because of a misconfigured
step later in the model).

Sponsored by City of Canning
2024-04-21 06:46:35 +10:00
Nyall Dawson
133bad76ee Move some model designer code to c++ 2024-04-21 06:46:35 +10:00
Nyall Dawson
3c64bcc6a6 Fix false positive cppcheck pureVirtualCall warnings when pure
virtual functions are called as slots
2023-04-17 16:29:44 +10:00
Nyall Dawson
d62d0b82e3 Port model help editor dialog to c++ 2022-02-28 17:33:49 +10:00
Nyall Dawson
8f34557037 [processing] When closing a model with unsaved changes, if the user
accepts the prompt to save the changes BUT then cancels the file dialog
asking for the destination file name, don't treat this as though the
user has opted to discard the model
2022-02-07 12:01:07 +10:00
Nyall Dawson
b5d2ebd696 Fix build 2022-02-05 11:05:51 +10:00
Nyall Dawson
a169055277 [processing] Improve UX when saving models
- When saving a model to a file, don't require that the model already
has a name entered. Instead, if no model name has been entered then
set the model name automatically to match the selected save filename.
E.g. if the user saves the model as "Process incoming features.model3",
then the model name will be set to "Process incoming features".
- When first saving a model, IF the user HAS already entered a model
name then make the default file name suggested by the dialog match
this model name
2022-02-05 11:05:51 +10:00
Nyall Dawson
8486afbdd1 [processing] Fix model designer sometimes opens behind other windows 2022-02-04 16:34:53 +10:00
Nyall Dawson
dcf0cfe5a3 Fix API issues causing malformed python stub files
Fixes #46240
2021-11-29 11:54:06 +10:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
02266ef8e6 Rename Qgis::MessageLevel::None to NoLevel. None is a reserved
keyword in Python, so this value was previously inaccessible to PyQGIS
scripts

Also change all references to Qgis::MessageLevel values to their
fully qualified names, to ease a future transition to an enum
class (when sip bugs are fixed)

Fixes #42996
2021-05-30 10:36:01 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Luigi Pirelli
2f7d6defee Added sanity check of links between graphicitems showing error in dialog. Fixes #40724 #39260 2021-02-11 11:47:28 +10:00
Denis Rouzaud
044a05d828 run sipify 2020-06-19 08:47:23 +10:00
olivierdalang
915b67ddb2
[processing modeler] Show arrowheads for parent/child relations 2020-04-17 08:49:46 +10:00
Nyall Dawson
05bc716827 Move model child algorithm dependencies selection widget to c++, make inline panel 2020-04-16 16:02:53 +10:00
Nyall Dawson
0558d64198 Add mechanism to show warning messages in modeler designer 2020-04-14 20:27:21 +10:00
Nyall Dawson
d24ae53e0f Tweak model component clipboard logic -- only copy comments and outputs
connected to algorithms when they have been explicitly selected by the user
2020-04-14 14:36:02 +10:00
Nyall Dawson
47f96e2466 [FEATURE][processing] Allow copying/cut/paste of model components
This commit allows users to copy and paste model components, both
within the same model and between different models
2020-04-14 14:36:02 +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
50b723ce7b [FEATURE][processing] Add menu to the Model Designer "View" menu
allowing users to zoom direct to any group box present in the model

Allows for simplified navigation of complex models
2020-04-01 18:20:09 +10:00
Nyall Dawson
4fa9083cf6 [FEATURE][processing] Allow creation of group boxes in models
These are a visual guide, allowing designers to create logical groups
of algorithms relating to a single task ("eg 'Prepare data')

The title and color of the group boxes can be customized
2020-04-01 18:20:09 +10:00
Nyall Dawson
f268b09d1b Also show child input values 2020-03-31 19:35:51 +10:00
Nyall Dawson
5963b90f2c [processing][FEATURE] After running a model through the model designer,
show the obtained values for all child algorithm outputs within the designer
canvas

This gives users better tools for debugging models - they can see exactly
what values were output by the child algorithms and flowed into other
parts of their model
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
7bba9de2b9 Add a 'select all' action to model designer 2020-03-23 19:25:32 +10:00
Nyall Dawson
681d12e549 Tweak snapping logic, and add explicit action to "Snap Selected Components to Grid"
This is useful when a user doesn't want to enable the auto snapping, but wants to line
up stuff nicely by hand
2020-03-23 19:25:32 +10:00
Nyall Dawson
7614de451e [processing] Constrain model item resizing to prevent items being resized
to a too small size
2020-03-18 15:00:30 +10:00
Nyall Dawson
06e663eccd Pixel perfect model rendering 2020-03-17 19:40:01 +10:00
Nyall Dawson
fd65c2d05a Fix mouse handles go out of sync after moving items with cursor keys 2020-03-12 13:14:33 +10:00