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
Nyall Dawson
72d7305456
Start using c++ base clases in model designer
2020-03-02 18:53:31 +10:00
Nyall Dawson
16841efa7e
Start moving base classes to c++
2020-03-02 18:53:31 +10:00
Nyall Dawson
cd6d51181b
[processing] Port some model designer graphic item internals to c++
...
for stability and re-usability from c++ code
2020-03-01 19:12:25 +10:00
Nyall Dawson
58cabe6bfc
Revert "Use a font size in points, not pixels, for hi-dpi compatibility"
...
This reverts commit ac412e38adb6abc9d113657f8466b3a833a6e546.
2020-03-01 19:12:25 +10:00
gacarrillor
e41930d1b7
Avoid a boolean variable in GeometryCollection.removeDuplicateNodes(); fix tests
2020-02-28 21:38:42 -05:00
Nyall Dawson
ac412e38ad
Use a font size in points, not pixels, for hi-dpi compatibility
2020-02-29 07:52:08 +10:00
Nyall Dawson
1924d82517
Don't use constants for model graphic item sizes
...
Allows flexibility for items to have different sizes (not currently user-settable!)
2020-02-29 07:52:08 +10:00
Nyall Dawson
435599a42b
[processing] Avoid redefining model element size multiple times, don't
...
hardcode font name (instead use correct theme font)
2020-02-29 07:52:08 +10:00
Juergen E. Fischer
edee4a3d10
spelling fixes ( closes #32408 )
2020-02-28 21:04:02 +01:00
Håvard Tveite
833202f32c
Update the short help description of the Random points along line algorithm
...
Fixes #33160
2020-02-28 10:23:53 +10:00
gacarrillor
403fe33bfa
Test for Remove Duplicate Vertices alg. (geometry collection)
2020-02-26 23:55:13 -05:00
Nyall Dawson
0391e17551
[processing] Fix cannot edit/delete/export project based models
...
Fixes #34627
2020-02-25 18:15:18 +10:00
gacarrillor
d016d46c49
Improve readability in refactor fields UI
2020-02-24 06:20:25 -05:00
gacarrillor
2007370f61
Ensure backwards compatibility with calls not passing 'constraints' key
...
e.g., processing.execAlgorithmDialog(..., 'FIELDS_MAPPING':[{'expression': 't_id', 'length': -1, 'name': 't_id', 'precision': 0, 'type': 4}], ...)
2020-02-22 23:31:55 -05:00
gacarrillor
016a813afe
Refactor fields UI: Add 'template' to label to link that layer to new column
2020-02-22 18:05:23 -05:00
gacarrillor
b05437c833
'Template properties' column for Refactor Fields algorithm
...
as a hint on template/target layer constraints.
A row of a template layer field with constraints is coloured and a tooltip shows the constraints in the corresponding 'Template properties' cell.
2020-02-22 17:21:13 -05:00
gacarrillor
09fc2c3406
Highlight NOT NULL target fields in the Refactor fields algorithm's UI:
...
+ By adding a new 'NOT NULL' column in the mapping widget, and
+ By adding an orange color (same as used in attribute form warnings) to the whole row.
New paragraph added to help panel to let users know why some rows are coloured.
2020-02-21 16:51:42 -05:00
Radoslaw Guzinski
8d1df2adb1
[Processing] Fix setting band parameter from string
...
Optional bool variables are in positions 5 and 6.
2020-02-20 09:32:07 +10:00
Harrissou Sant-anna
eb55d7555e
Fix geometry type for "Convert geometry type" algorithm
2020-02-20 08:46:32 +10:00
Radoslaw Guzinski
550c8bf341
[Processing] Fix isEnabled check for modeler context menu actions
...
This aligns the check with Processing scripts context menu actions and allows subclasses of QgsProcessingModelAlgorithm to register their own actions.
2020-02-13 08:39:44 +10:00
lbartoletti
927d10c7dc
Fix oriented minimum bounding box algorithm
...
Fixes #33532
2020-02-07 09:02:06 +10:00
Nyall Dawson
692a14090b
[needs-docs] Rename "Define layer projection" to "Define Shapefile projection"
...
This algorithm ONLY works on shapefile inputs, so make that clear in the algorithm's
display name and helper strings
2020-02-05 04:56:29 +10:00
Nyall Dawson
dae36b343e
Remove qpj files when defining shp projection from processing and Proj >= build
...
is present
These files aren't/shouldn't be used under proj 6 builds
2020-02-05 04:56:29 +10:00
Nyall Dawson
f41dd11e92
[processing] Define Layer Projection tool should write .prj files
...
using WKT1 ESRI format, not GDAL
Fixes #34007
2020-02-05 04:56:29 +10:00
Andrea Giudiceandrea
02a6fd40cd
Fix "Random points along line" alg
...
Fixes "Random points along line" (qgis:randompointsalongline) algorithm.
See https://github.com/qgis/QGIS/issues/33156#issuecomment-581395400
2020-02-04 08:13:03 +10:00
Andrea Giudiceandrea
e82ba52584
Fix "Random points along line" alg
...
Fixes "Random points along line" (qgis:randompointsalongline) algorithm
Fixes #33156
2020-02-04 08:13:03 +10:00
Shiva Reddy
7583d52ef6
Modify Graphical Modeler title
...
The menu item and title of the dialogue is now same i.e Graphical Modeler
2020-02-03 05:51:16 +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
Nyall Dawson
5ae9807303
[processing] Fix modeler draws lines to wrong output when connecting
...
the green output boxes back to their linked algorithms
2020-02-01 05:59:22 +10:00
Nyall Dawson
3fb18a2260
[processing] Fix Points Along Geometry handling of multipart geometries
...
Fixes #34022
2020-01-31 14:46:33 +10:00
Nyall Dawson
d1d7dfe497
[processing] When listing available layer sources for an input in the
...
model designer, prefer to show the user's defined name for that output
instead of the generic one
Makes it easier to associate inputs with the correct outputs when
creating models
2020-01-31 07:33:44 +10:00