149 Commits

Author SHA1 Message Date
qgis-bot
5f6debbb6d auto sipify 🍺 2024-07-26 10:41:04 +00:00
Nyall Dawson
75cca8a20c [FEATURE] Add picture annotation item type
Can render SVG or raster images as items in an annotation layer.
Options are present for:

- Locking the picture's aspect ratio
- Drawing with a background symbol
- Drawing with a border symbol
- Linked or embedded pictures
2024-07-26 20:38:47 +10:00
qgis-bot
3aed037ce2 auto sipify 🍺 2024-07-25 08:00:08 +00:00
Nyall Dawson
c2c75f3b19
More no-value dox removal 2024-07-25 09:04:22 +10:00
qgis-bot
15fe04a289 auto sipify 🍺 2024-07-24 18:05:14 +00:00
Nyall Dawson
6f652d251b Drop no-value copy constructor dox 2024-07-25 04:02:55 +10:00
qgis-bot
49a7e85a74 auto sipify 🍺 2024-07-23 06:43:14 +00:00
qgis-bot
612afa779a auto sipify 🍺 2024-07-22 16:10:48 +00:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
qgis-bot
f4005f7e5f auto sipify 🍺 2024-07-21 21:17:02 +00:00
Nyall Dawson
3f767337c3 Create QgsCalloutPanelWidget
This is a standalone, reusable widget for configuring callouts.
Designed for use outside of the standard labeling callout contexts.
2024-07-22 07:14:23 +10:00
Nyall Dawson
5ba353ed54 Const correctness 2024-07-22 07:14:23 +10:00
Nyall Dawson
f2591c1b78 Move callout widget initialization to common place 2024-07-22 07:14:23 +10:00
Nyall Dawson
51b747efce Make API more flexible, allow any layer type for callout widget functions 2024-07-22 07:14:23 +10:00
qgis-bot
12f90b34bc auto sipify 🍺 2024-07-18 04:55:33 +00:00
Nyall Dawson
fe8ee66ef5 Add easy way for QgsMapToolAdvancedDigitizing to show snapping indicator
Instead of requiring all subclasses to manually implement this logic,
add QgsMapToolAdvancedDigitizing::setUseSnappingIndicator so that
the base class takes care of this for us
2024-07-18 14:53:14 +10:00
Julien Cabieces
57595b409a
Merge pull request #58141 from nyalldawson/see
Use \see not \sa
2024-07-17 08:55:29 +02:00
Nyall Dawson
1f27af64a9
Use \see not \sa
So that sipify docstring processing works
2024-07-17 09:02:51 +10:00
Denis Rouzaud
6e9933145a
Adds a file to hold a map from class/method to headerfile (#58054)
* create map file for class / header files for PyQGIS API docs

* create map files

* install file

* add line numbers

* also add methods

* wait to sort

* more methods

* fix CMakeLists install

* fix sorting

* fix spell check

* remove map files for Qt6

* Revert "remove map files for Qt6"

This reverts commit 972f483410f556d1735a2070943b8ad9e2522c5e.

* do not test class_map files + auto sipify_all on branches

* fix warning
2024-07-16 11:40:25 +02:00
Nyall Dawson
6d8ba6e2cf Support saving/loading cloud storage connections from XML 2024-07-10 04:07:12 +10:00
Nyall Dawson
995d0e6c49 Standardise naming 2024-07-10 04:07:12 +10:00
Alexander Bruy
f0db0f247b address review 2024-07-04 07:30:51 +10:00
Alexander Bruy
d5605a3321 update QGIS version in the doxygen comments 2024-07-04 07:30:51 +10:00
Alexander Bruy
709253a27a integrate favorite log into toolbox model and view 2024-07-04 07:30:51 +10:00
Alexander Bruy
5566473a1d add log for tracking Processing favorite algorithms 2024-07-04 07:30:51 +10:00
Nyall Dawson
87d9a3e7b2 Don't go to massive negative numbers when incrementing a NULL spin box
When a spin box is showing a NULL value, we DON'T do the default step
behavior, as that would add one step to the NULL value, which is usually
a very large negative value... so the user will get a very large negative number!

Instead, treat the initial value as 0 instead, and then perform the step.
2024-06-29 06:15:01 +10:00
Nyall Dawson
b0929e4ced Also permit drag and drop onto multi layer line edit
We supported drag and drop onto the full expanded panel, now
also support dropping onto the summary line edit widget too
2024-06-27 17:05:59 +10:00
Mathieu Pellerin
2fb1de2ce1
Merge pull request #57584 from nirvn/cad_construction_guides
[advanced digitizing] Implement visual construction guides
2024-06-25 15:35:01 +07:00
Nyall Dawson
d4f9914288 Create QgsGdalCredentialOptionsWidget
A resuable widget for configuration GDAL credential options
for vsi file systems
2024-06-25 06:07:58 +10:00
Nyall Dawson
8dcb158394 Move "share on gist" logic to QgsCodeEditorWidget
Allows this functionality to be used by other code editors, not
just console script editor
2024-06-24 18:40:00 +10:00
Nyall Dawson
21935668ba Move logic for connection item deletion to new class
Adds a new "QgsDataItemGuiProviderUtils" class, with a generic
function for handling deletion of browser connection items.

Replace all the duplicate connection deletion logic from the
different browser connection providers with calls to the
generic function.

In addition to removing a lot of duplicate code, the new
generic function correctly handles deletion of multiple
selected connections (previously, only the first connection
would actually be removed).

Fixes #26276
2024-06-19 16:59:00 +10:00
Nyall Dawson
9946a1d739 Move console script editor external file watching logic to QgsCodeEditorWidget
Ensures a consistent behavior between console script editor and
eg processing script editor
2024-06-18 05:23:57 +10:00
Nyall Dawson
d345c68c5a Move responsibility for loading scripts to QgsCodeEditorWidget 2024-06-18 05:23:57 +10:00
Nyall Dawson
0931624dea Add (non-exposed) setting for the external Python editor
This isn't exposed in the GUI, but allows users to
set a specific editor command to use when opening
Python files in the external editor.

Use the token <file> to insert the filename, <line>
to insert line number, and <col> to insert the column number.

Eg:

  QgsSettings().setValue(
    'gui/code-editor/python/external-editor',
    'kate -l <line> -c <col> "<file>"')
2024-06-15 09:01:33 +10:00
Nyall Dawson
6a018f65f5 Move responsibility for opening files in external editor to QgsCodeEditorWidget
This allows the editor to be opened in a proper detached process,
avoiding the editor being closed when QGIS is exited.

Move to a blocklist for terminal text editors instead of the fragile
polling approach (which eg doesn't work if the editor is set to
pycharm)
2024-06-07 20:46:45 +10:00
Nyall Dawson
e42dc886aa Move file path handling for console editor to QgsCodeEditorWidget 2024-06-07 20:46:45 +10:00
Nyall Dawson
a845d4956c Fix add feature dialog does not restore position when shown modally
The logic to restore the position was incorrectly placed in ::show(),
which is not called when the dialog is being displayed modally via
::exec()
2024-06-07 08:11:01 +10:00
Mathieu Pellerin
35784b2263 [advanced digitizing] Implement visual construction guides 2024-06-04 09:30:40 +07:00
Julien Cabieces
848fb16785 Add \deprecated tag 2024-05-31 08:46:33 +10:00
Julien Cabieces
97f1c8df97 make python API backward compatible 2024-05-31 08:46:33 +10:00
Julien Cabieces
0ccaf2d299 sipify 2024-05-31 08:46:33 +10:00
Julien Cabieces
eaa0261c5d
Merge pull request #57361 from troopa81/cmyk_colorwidget
[ColorWidget] Add CMYK support
2024-05-23 18:03:52 +02:00
Mathieu Pellerin
8413982ad6 Let the signal carry whether a feature has been found, that might come in handy 2024-05-23 11:00:34 +10:00
Mathieu Pellerin
8c389cf613 [attribute form] Fix initial multi editing state of relation reference editor widgets 2024-05-23 11:00:34 +10:00
Julien Cabieces
a6dd92abd8 Update and test cmyk radio buttons 2024-05-22 19:40:29 +02:00
Julien Cabieces
3bcfa9568b replace isCmyk with colorSpec 2024-05-22 19:40:29 +02:00
Julien Cabieces
4bd56fa0f8 feat(ColorWidget) : Add CMYK support
A new setting activeCmykComponent has been introduced, while the old
one activeComponent refers now only to the Rgb/Hsv part
2024-05-22 19:39:55 +02:00
Nyall Dawson
cbd25c1fdd Promote QgsColorRampShader enums to enum class, move to Qgis 2024-05-22 12:37:44 +10:00
Nyall Dawson
027cd208f2 Add API to show additional elevation labels in elevation filter widget 2024-05-20 11:52:10 +02:00
Nyall Dawson
1c23950304 Replace bar is not always visible when find is
Instead do the vscode/pycharm thing and only show it when a replace
toggle is clicked, or Ctrl + R is pressed
2024-05-16 08:44:14 +10:00