Nyall Dawson
5149f0b6c7
Rebase fixes
2020-03-12 13:14:33 +10:00
Nyall Dawson
e3f1c576a9
Snapping api work
2020-03-12 13:14:33 +10:00
Nyall Dawson
4dd598fbb5
Also warn for unsaved changes when opening a model through the model designer
2020-03-11 08:39:54 +10:00
Nyall Dawson
e9c594d388
Make Model Designer window title follow app conventions
...
Show unsaved changes via * prefix, show model name in title
Also less Python, more c++
2020-03-11 08:39:54 +10:00
Nyall Dawson
e7b5c26696
[FEATURE][processing] Add undo/redo support to model designer
...
Makes QGIS more forgiving for users!
Sponsored by NRCan
2020-03-11 08:39:54 +10:00
Nyall Dawson
1ea60faebd
Fix test
2020-03-10 19:10:52 +10:00
Nyall Dawson
f587430d23
Remove ad-hoc python provider connection parameters and replace
...
with proper provider connection parameters
2020-03-10 19:10:52 +10:00
gacarrillor
8d2f75da0f
Test for Remove Duplicate Vertices alg. (Polygons with duplicates in several holes)
2020-03-09 22:22:37 -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
4e1e68461d
Snap Geometries algorithm is capable of running in-place mode
2020-03-06 18:24:01 +10:00
Nyall Dawson
56610002e3
Identation
2020-03-06 18:22:49 +10:00
Nyall Dawson
0b3f7a58c1
Hookup toggle to hide comments from model designer
2020-03-06 18:22:49 +10:00
Nyall Dawson
08b47a496b
Fix missing icon, less Python
2020-03-06 18:22:49 +10:00
Nyall Dawson
b84bf68dab
Bit less Python
2020-03-06 18:22:49 +10:00
Nyall Dawson
8845b535c5
More c++ ports
2020-03-06 18:22:49 +10:00
Nyall Dawson
df7dd5ba90
More model dialog Python -> c++ ports
2020-03-06 18:22:49 +10:00
Nyall Dawson
a0e6a374eb
Port some more model designer Python code to c++
2020-03-06 18:22:49 +10:00
Nyall Dawson
eefd04cbc1
Start creation of a c++ base class for modeler dialog
2020-03-06 18:22:49 +10:00
Nyall Dawson
93355082a2
Add a menu bar to model designer
2020-03-06 18:22:49 +10:00
Nyall Dawson
2a1bf56493
[FEATURE][processing] Remember parameter values between model designer runs
...
When designing a model, users typically will need to run the model
many times as they tweak its structure.
This change causes the parameters used when running the model from
the designer to be remembered and saved into the model, so that
each time you run the model from the designer you don't have to
re-set all the input parameter values to the desired test ones.
Makes iterative model design SO much easier!
Sponsored by Alta Ehf
2020-03-06 18:22:49 +10:00
Matthias Kuhn
6548d6c17c
Merge pull request #34750 from gacarrillor/remove_duplicate_nodes_in_collections
...
Remove duplicate nodes from each part in a collection
2020-03-05 20:45:11 +01:00
Nyall Dawson
23aa83c23e
Add unit tests, minor fixes
2020-03-06 03:49:16 +10:00
Nyall Dawson
64868ce8f2
Bit more Python to c++ porting
2020-03-06 03:49:16 +10:00
Nyall Dawson
0af98f9f5b
Nicer comment text appearance
2020-03-06 03:49:16 +10:00
Nyall Dawson
961557dacd
UX improvements for comment editing
2020-03-06 03:49:16 +10:00
Nyall Dawson
03fc03355d
Don't lose properties of existing outputs when editing algorithm
2020-03-06 03:49:16 +10:00
Nyall Dawson
13fc85d740
[FEATURE][processsing] Add support for comments attached to components
...
This allows users to create comments attached to model components (inputs,
algorithms or outputs). Comments are shown linked to the associated component,
and can be freely moved around the model.
2020-03-06 03:49:16 +10:00
Nyall Dawson
d79fed41ce
Indentation
2020-03-05 18:55:20 +10:00
Nyall Dawson
70731d82d5
Port most of the remaining ModelerScene code to c++
...
ModelerScene is now a shell class, implementing the bare minimum
required for older Python API compatibility
2020-03-05 18:55:20 +10:00
Nyall Dawson
ef8f26e3a7
Much simpler code for determining linked parameters in modeler
2020-03-05 18:55:20 +10:00
Nyall Dawson
0fff9338bb
Remove exception which is never raised
2020-03-05 18:55:20 +10:00
Nyall Dawson
d8eb0efc06
Add missing changed signal emissions
2020-03-05 18:55:20 +10:00
Nyall Dawson
5c44441cd3
Move some modeler scene code to c++, avoid hard link between scene
...
and dialog
2020-03-05 18:55:20 +10:00
Harrissou Sant-anna
1eae00e07a
Update some use of QgsCoordinateReferenceSystem
2020-03-05 16:17:20 +10:00
Nyall Dawson
7d0b476fa7
Move almost all the remaining Python code for model graphic items to c++
...
Only minimal shells of objects are left in Python now, the bare minimum
required because they call objects which depend on Python compatibility
for deprecated API calls...
2020-03-04 07:19:00 +10:00
Nyall Dawson
d80bdd3371
Move last part of ModelerGraphicItem to c++, generalize handling of
...
folding buttons
2020-03-04 07:19:00 +10:00
Nyall Dawson
b9edcbd162
Move responsibility for painting model components to c++
2020-03-04 07:19:00 +10:00
Nyall Dawson
d34c01350f
Port model arrow item to c++
2020-03-03 16:08:23 +10:00
Nyall Dawson
b624d3d5d6
Move logic for calculation of linkage points for model items to C++
2020-03-03 16:08:23 +10:00
Nyall Dawson
a38f0cbbd4
Move another method to c++
2020-03-02 18:53:31 +10:00
Nyall Dawson
1bf51a4fbb
Move item state handling to c++
2020-03-02 18:53:31 +10:00
Nyall Dawson
2f8dbacc87
Move more functionality to c++ base class
2020-03-02 18:53:31 +10:00
Nyall Dawson
0dbb082dfd
Move designer edit buttons to c++
2020-03-02 18:53:31 +10:00
Nyall Dawson
8f6a6111d2
Use actual component sizes when drawing model instead of hardcoded values
...
(still not user-setable!)
2020-03-02 18:53:31 +10:00
Nyall Dawson
6c98448a7f
Use signals to avoid storing arrows in graphic item
2020-03-02 18:53:31 +10:00
Nyall Dawson
0df4e35a02
Use subclasses instead of instance checking for component type
...
specific logic
2020-03-02 18:53:31 +10:00
Nyall Dawson
fe4352c236
Use signals to avoid hard dependancy between component graphic items and scene
2020-03-02 18:53:31 +10:00
Nyall Dawson
1d25155d15
Rework hiding of model controls to use a flag on the scene
2020-03-02 18:53:31 +10:00
Nyall Dawson
b567ddeccd
Move model storage for graphic items to c++ base class
2020-03-02 18:53:31 +10:00
Nyall Dawson
167a8d3846
Less Python, more c++
2020-03-02 18:53:31 +10:00