3158 Commits

Author SHA1 Message Date
Nyall Dawson
118b3d32c1 Create QgsFieldDomainDialog dialog for configuring a field domain 2022-02-20 06:48:03 +10:00
Nyall Dawson
9c4bcf0092 Add widgets for creation of field domains 2022-02-20 06:48:03 +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
91cf8954f4 [processing] Default to "Model Input" sources for map layer parameters
when configuring a new algorithm

While the previous behaviour of defaulting to a static value makes
sense for things like numeric parameters, this is a very rare use
case for map layer parameters. For better new user experience we can
default instead to showing model inputs for these parameter types.
2022-02-04 18:14:22 +10:00
Nyall Dawson
8486afbdd1 [processing] Fix model designer sometimes opens behind other windows 2022-02-04 16:34:53 +10:00
Nyall Dawson
3ae623137d Fix color widgets incorrectly change colors when mouse is hovered
over widget
2022-01-31 12:57:52 +10:00
nirvn
f223ef2112 Address review and tests failure 2022-01-30 16:36:06 +07:00
nirvn
a9d5ae2180 [processing] Add missing {string,integer,double} array types support in the aggregate algorithm 2022-01-30 14:27:51 +07:00
nirvn
36f513d7eb [processing] Rework the field mapping model class to allow for subtypes 2022-01-30 13:48:04 +07:00
Denis Rouzaud
973b97af24 fix spell, layout and sip 2022-01-22 06:37:43 +10:00
Denis Rouzaud
0bccb17f9f fix re-implemented buttons being null 2022-01-22 06:37:43 +10:00
Harrissou Sant-anna
b8de4d389e
Add version mention 2022-01-20 21:37:13 +01:00
Harrissou Sant-anna
0ef51feccf
Dedicated method allowing to add plugins to the Mesh menu 2022-01-20 15:07:15 +01:00
nicogodet
0017f1ae94
fix see also of setClearValue (#46911) 2022-01-20 14:07:14 +01:00
Nyall Dawson
f4b7a93175 Fix scroll area child widgets wheel event lock lasts too long after
scrolling stops in some circumstances

Basically, if the user moves the mouse after scrolling the area
with the wheel, we should release the time based lock we use
to avoid unwanted widget changes mid-scroll immediately. Otherwise
it's impossible to scroll wheel->move mouse onto widget->wheel to change
widget value quickly.
2022-01-18 13:51:37 +10:00
Matthias Kuhn
c5a56d6f83
Merge pull request #46802 from domi4484/relationEditorGetMultipleFeatures 2022-01-14 15:18:42 +01:00
Nyall Dawson
f288ab1223 Add api to allow validation of QgsOptionsPageWidget before applying
options dialog changes
2022-01-14 16:06:23 +10:00
Nyall Dawson
7a7fb285cd Don't always reset custom crs format to wkt when it was originally
defined using a proj string
2022-01-13 13:58:00 +10:00
Damiano Lombardi
c8dd03bc96 Relation editor widget get list of editing features 2022-01-12 09:46:43 +01:00
Nyall Dawson
adc7b6a143 CRS selection dialog can now be opened inlined 2022-01-11 19:50:46 +10:00
Nyall Dawson
6e7e8d3d7d Promote CRS format enum to enum class, move to Qgis 2022-01-11 19:50:46 +10:00
Nyall Dawson
e692969896 Use combo box instead of tab in projection selection dialog
to select CRS type, and split widget out from dialog class
2022-01-11 19:50:46 +10:00
Nyall Dawson
d8de543872 Add "Custom CRS" tab to projection selection dialog
This allows users to just directly enter a custom CRS definition
(from proj or wkt), instead of requiring them to add a custom
CRS to their database.

It's much friendlier for users who just want to defined a custom
projection for e.g. an overview map.
2022-01-11 19:50:46 +10:00
Nyall Dawson
0ad1324780 Split off part of custom projection dialog into reusable
QgsCrsDefinitionWidget widget
2022-01-11 19:50:46 +10:00
Damiano Lombardi
2973735a6b Apply suggestions from code review 2022-01-10 08:36:44 +01:00
Damiano Lombardi
9f7353b91c switch to XY coordinate types when using label move tool 2022-01-10 08:09:28 +01:00
jakimowb
d7bf988817
Expose QgsFieldCalculator to public API (#46748)
* shows QgsFieldCalculator in public API

* removed unnecessary comment

* QgsFieldCalculator:
made public slots private and added code documentation

* fixed doc string

* Apply suggestions from code review

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>

* updated sip file

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2022-01-08 16:28:27 +01:00
Denis Rouzaud
6bf4aeb83d const method 2022-01-07 20:30:21 +01:00
Denis Rouzaud
124bfd3f84
fix includes before guard (#46744) 2022-01-07 14:42:01 +00:00
Benjamin Jakimow
01b61dc1eb fixed style 2022-01-07 11:30:49 +10:00
Benjamin Jakimow
dc1866f0af sipified files 2022-01-07 11:30:49 +10:00
Benjamin Jakimow
9b3e437ae3 addresses #46673 (QgsProcessingMapLayerComboBox shows layers out of
QgsProcessingParameterWidgetContext)

added a `setProject(QgsProject *project)` to QgsMapLayerModel,
QgsMapLayerProxyModel and QgsMapLayerComboBox

QgsProcessingMapLayerComboBox::setWidgetContext(...) now uses the
context project
2022-01-07 11:30:49 +10:00
Denis Rouzaud
795bb6a245 move QgsMapToolCaptureRubberband class to its own file 2022-01-03 10:55:40 +01:00
Nyall Dawson
89524fc565 Add missing file 2021-12-22 08:29:27 +10:00
Nyall Dawson
af03701ab8 Add method to allow an existing history entry to be updated
Intended for use in storing the results of a long running operation.
E.g. a processing task would store the initial operation history
when the operation starts, and when it finishes it should update
that entry with the full log and output results.
2021-12-21 15:32:57 +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
Nyall Dawson
dd5cbb746e Add bulk addEntries method for efficiently adding many entries at once to history 2021-12-21 15:32:57 +10:00
Nyall Dawson
09389ca763 Add method to clear the history log 2021-12-21 15:32:57 +10:00
Nyall Dawson
6783347896 Implement framework for history providers
As per https://github.com/qgis/QGIS-Enhancement-Proposals/issues/130
2021-12-21 15:32:57 +10:00
Nyall Dawson
86e94aed42 [feature] Add action to processing algorithm advanced menu to copy the
current settings as JSON and paste json settings from clipboard

The utility of this is two fold:

1. It provides a way for users to copy the settings defined in the
dialog in a text format, so they can store these easily and then
restore later by pasting the value

2. It provides an easy way for users to copy the settings into
the json format consumed by qgis_process (following
https://github.com/qgis/QGIS/pull/46497), so that it is easy
for users to see the expected format even for complex parameters
(like tin interpolation parameters)
2021-12-17 08:29:31 +10:00
Julien Cabieces
93399e33a3
Merge pull request #46037 from Koyaani/doc_generation
[Doc] Add folders for documentation generation
2021-12-16 15:09:01 +01:00
Antoine
bb15678134 update the doc in the sipfile 2021-12-16 09:34:50 +01:00
Nyall Dawson
132294b3c9 Spelling 2021-12-16 11:15:34 +10:00
Nyall Dawson
eea2ba3d93 QgsProcessingAlgorithmDialogBase subclasses should also implement
the QgsProcessingContextGenerator interface
2021-12-16 11:15:34 +10:00
Nyall Dawson
03d0c573c4 Add mode enum for processing algorithm dialogs so that code can
determine if the single execution or batch execution dialog is shown
2021-12-16 11:15:34 +10:00
Nyall Dawson
86794dabdc Fix interface for QgsProcessingParametersGenerator was modified for
the python subclasses only and no longer correctly overrides the
base class method
2021-12-16 11:15:34 +10:00
Alessandro Pasotti
9a0c54c5c4 Expose layers field names to expression widget
Fixes #37544
2021-12-15 12:22:19 +01:00
Loïc Bartoletti
8150822fe2
Merge pull request #46189 from Koyaani/angle-snap-line-displaying
[Fix] Minor display issues on the advanced digitizing
2021-12-13 15:21:29 +01:00