16641 Commits

Author SHA1 Message Date
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
d9cc2aedeb Add clone method to QgsProcessingModelComponent 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
lbartoletti
dfa5cb68aa
New snapping modes: Centroid and middle of a segment (midpoint) (#33622)
Snap on centroid and midpoint segment [FEATURE][needs-docs]
2020-03-02 09:02:35 +01:00
Nyall Dawson
38a3a2d478 [layouts] Fix layers are incorrectly shown when groups are unchecked
for a map theme

Followup https://github.com/qgis/QGIS/pull/33099

Fixes #34257
2020-03-01 20:36:53 +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
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
Alessandro Pasotti
4b80e034e4 Fix dox comment 2020-02-28 13:20:03 +01:00
Alessandro Pasotti
9c337e9ec2 [feature] Relation wdgt: add checkbox to hide save child edits button
This is very useful for embedded forms.

Funded by: ARPA Piemonte
2020-02-28 13:20:03 +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
Corentin.F
d87843c2c3
Correct bug from postgres comment using quote or caps 2020-02-28 08:36:58 +10:00
Alessandro Pasotti
c90fbd5978
Merge pull request #34654 from elpaso/vectorlayertools-suppress-form-popup
[feature] Relation widget force suppress popup
2020-02-27 08:11:44 +01:00
Denis Rouzaud
6e55bd5ea5
use Q_ENUM macro in QgsFileWidget (#34665)
this will allow configuring properly the custom widget
2020-02-25 22:48:27 +01:00
Alessandro Pasotti
bc12cb12e7 [feature] Relation widget force suppress popup
Adds an option to the relation widget configuration
to suppress form popup open when new features are
added in an embedded form context.

This option overrides the form-level option (that might
still be the desired behavior when the form is used
as a standalone form).
2020-02-25 13:55:51 +01:00
Nyall Dawson
0391e17551 [processing] Fix cannot edit/delete/export project based models
Fixes #34627
2020-02-25 18:15:18 +10:00
Nyall Dawson
f5470496ae Accept "proj:..." prefix in QgsCoordinateReferenceSystem::createFromString
instead of just "proj4:..."
2020-02-25 18:15:00 +10:00
Vincent Cloarec
27a70eab7c
[FEATURE] mesh simplification (#34532)
[FEATURE] fix #31575 mesh layer speed rendering improvements (LOD)

As mesh layer could have millions of triangles, rendering could be very slow, especially when all the triangles are displayed in the view whereas triangles are too small to be viewed.

For those situations QGIS has an option to simplify the mesh. Simplification leads to one or more simplified mesh that represents levels of detail (LOD). When rendering the mesh, the appropriate level of detail is chosen to have an adequate rendering depending on the view.
2020-02-25 08:05:49 +01:00
Nyall Dawson
3921af8d51 Add missing cast for QgsProcessingParameterDateTime 2020-02-25 12:43:05 +10:00
Nyall Dawson
9a6cb4689f Add API to QgsFieldModel/QgsFieldComboBox to manually set the fields
to show in the widget (i.e. when no layer is available)
2020-02-24 21:05:22 +10:00
Nyall Dawson
183706ef0a Purge totally completely horribly outdated QgsRasterLayer docs 2020-02-24 20:35:25 +10:00
Nyall Dawson
313b000147 Minor temporal properties cleanups and dox improvements 2020-02-24 20:35:25 +10:00
Nyall Dawson
36f0952452 Mark some internal methods as private 2020-02-24 17:23:41 +10:00
Nyall Dawson
983a3d8655 Fix duplicate signals emitted by QgsDateTimeEdit when changed 2020-02-24 17:23:41 +10:00
Nyall Dawson
1facaf5149 Allow null string to be customised for QgsDateTimeEdit
E.g. for processing use this needs to be "Not specified"
2020-02-24 17:23:41 +10:00
Nyall Dawson
6c94bf493d Add QgsDateTimeEdit subclasses for specific date and time widgets
Adds QgsDateEdit and QgsTimeEdit subclasses. (All the heavy lifting
with these is done by Qt itself, hence no extra unit tests!)
2020-02-24 17:23:41 +10:00
Nyall Dawson
0efc6f531c [FEATURE][processing] New parameter type for datetime (or date, or time) values
Adds a new parameter type QgsProcessingParameterDateTime for handling
date/datetime/time values
2020-02-24 17:23:41 +10:00
Nyall Dawson
e7380c7325
Merge pull request #34040 from Samweli/temporal_api
Temporal API
2020-02-24 13:48:39 +10:00
Alex
13337b20cd
[feature] data defined control over layout map CRS 2020-02-23 06:50:55 +10:00
Samweli
e493545af5 removed unwanted temporal range object method 2020-02-22 15:39:10 +03:00
Harrissou Sant-anna
7afb513c31 Aerate the QgsSettings dox for readability 2020-02-22 14:52:44 +10:00
Nyall Dawson
99991c3029 Handle more uri components in encode/decodeUri for AFS provider 2020-02-22 06:47:45 +10:00
Nyall Dawson
5f533e561c [FEATURE][processing] Add algorithms for raising warnings and exceptions from models
These algorithms raise either a custom warning in the processing log, OR raise
an exception which causes the model execution to terminate.

An optional condition expression can be specified to control whether or not
the warning/exception is raised, allowing logic like "if the output layer from
another algorithm contains more then 10 features, then abort the model execution"

Sponsored by Fisel + König
2020-02-22 06:47:17 +10:00
Alessandro Pasotti
8cbb23cf09 Fix QgsPoint ctor with invalid arguments
Fixes #34557
2020-02-20 11:14:18 +01: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
Alessandro Pasotti
f71e04e579 SIP 2020-02-20 08:33:07 +10:00
Nyall Dawson
a5b6290361 Fix doxygen warning 2020-02-18 08:37:25 +10:00
Nyall Dawson
1e17e6979a Disable "Fallback" option when coordinate transforms are used in processing 2020-02-18 08:37:25 +10:00
Nyall Dawson
c1c1dc38b9 [needs-docs] Add setting to control whether the coordinate operation
for transformation between a source and destination CRS pair should
permit falling back to a ballpark transform when required

This defaults to true (i.e. similar-ish behavior to proj 4), but allows
users who require a specific coordinate operation the ability to prevent
any fallback ballpark transformations occurring
2020-02-18 08:37:25 +10:00
Nyall Dawson
d4d6f79b4f Fix interaction of QgsCoordinateTransform::setBallparkTransformsAreAppropriate
and setAllowFallbackTransforms and improve dox

setBallparkTransformsAreAppropriate overrules the setAllowFallbackTransforms
setting
2020-02-18 08:37:25 +10:00
Nyall Dawson
e3b1649fd3 Add API to QgsCoordinateTransform to control fallback availability
on a transform-by-transform basis, populate correctly from context
2020-02-18 08:37:25 +10:00