50 Commits

Author SHA1 Message Date
Julien Cabieces
ed64834106 api(deprecated): add message to deprecated SIP annotation 2024-12-17 09:06:42 +01:00
Nyall Dawson
534ca73c59 Fix missing see also trailing notes in PyQGIS documentation 2024-09-04 06:32:03 +10:00
Nyall Dawson
ef0289f3ec Fix formatting of Python ..deprecated annotations in docstrings
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/174
2024-09-02 11:42:12 +10:00
Nyall Dawson
765cbb32db Standardise some deprecated annotations 2024-09-02 11:42:12 +10:00
Nyall Dawson
bc52832b47 Lazily hack around markdown title underline not being long enough
Causes a bunch of warnings when building the PyQGIS docs
2024-08-28 11:58:21 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
be8dce7d0d Valid improvements from new sipify 2024-08-13 20:28:55 +10:00
Nyall Dawson
6f652d251b Drop no-value copy constructor dox 2024-07-25 04:02:55 +10:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
Even Rouault
d72e2cc0ac
Add \deprecated 2024-02-18 20:57:23 +01:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Even Rouault
02caeb9db7
Header files: remove all mentions of '\since QGIS 2.' 2024-02-18 20:46:01 +01:00
Nyall Dawson
f1e3ba9e2d Use correct sip method
And use INDENT-OFF annotations to avoid astyle messing up
formatting of enum with inline macros
2024-01-31 13:48:49 +10:00
Nyall Dawson
2d4c569b9c Fix build 2024-01-31 13:48:49 +10:00
Nyall Dawson
f4554e36fa [feature] Add control over horizontal / vertical stretch for attribute
form widgets

This exposes two new "size" options for edit form widgets, allowing
control over the horizontal and vertical stretch factors for the
widget. By setting a horizontal or vertical stretch, users can
control how edit widgets will relatively resize when resizing
an attribute form.

Eg a user can set a higher horizontal stretch value for widgets which should
"grab" more of the available horizontal space, eg for those widgets
which are expected to have longer values and accordingly will
benefit from the extra space.

Similarly, the vertical stretch setting controls how widgets
will relatively grow vertically when resizing forms vertically. (Note
that only some widgets can vertically grow -- eg. spin boxes
can't be stretched vertically!)

Together these options give more control to users over the exact
layout and sizing of their attribute forms.

By default, the stretch values are set to "Default" which is the
same as previous behavior.
2023-05-16 17:38:13 +10:00
Nyall Dawson
a434d0e7c0 Use enums for attribute form container types instead of bools
Gives flexibility for adding additional container types in future
2023-04-27 12:54:20 +10:00
Nyall Dawson
9e552967f2 Promote attribute editor enums to enum class, move to Qgis 2023-04-27 03:58:30 +10:00
Alessandro Pasotti
44303cbadf [Feature] Data defined form widget editable state. 2023-01-20 15:42:48 +01:00
Alessandro Pasotti
e3c4db9e20 Spacer widget line option 2023-01-17 15:08:53 +01:00
Alessandro Pasotti
6cd867eb19 Spacer widget for Drag&Drop attribute forms 2023-01-16 15:59:04 +01:00
Alessandro Pasotti
e9b5c3a358 Sipify 2022-12-29 10:34:14 +01:00
Alessandro Pasotti
908c95f40e New text widget 2022-12-28 18:17:36 +01:00
Alessandro Pasotti
0d871029be
Merge pull request #48353 from elpaso/form-font-label2
Allow drag and drop forms label font and color customization
2022-05-06 09:44:27 +02:00
Alessandro Pasotti
247d86a712 Fix mingw build 2022-04-29 19:32:57 +02:00
Alessandro Pasotti
d2fee63ca9 sip skip == 2022-04-29 15:17:46 +02:00
Alessandro Pasotti
1cb3c613d4 Add test for attribute editor element
LabelStyle
2022-04-29 14:56:19 +02:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Alessandro Pasotti
78fc3cae7e Individual options for font and color 2022-04-28 10:51:37 +02:00
Alessandro Pasotti
a32f8b4ecb Address PR comments 2022-04-27 10:25:15 +02:00
Alessandro Pasotti
a91fb1003c DD form label format override 2022-04-26 14:03:21 +02:00
Alessandro Pasotti
9ec6355d91 Address PR reviews 2022-03-14 10:21:07 +01:00
Alessandro Pasotti
d2c84b2ed9 Add QgsRelation c++ test and workaround
The python test test_qgsrelation.py was failing for misterious reasons
(the very same test was passing if run from QGIS application), I tracked
the issue down to the addition of QgsOptionalExpression mCollapsedExpression;
in QgsAttributeEditorContainer.

The new c++ test replicates the python test and make sure there are no
problems with the change style operation.
2022-03-08 11:23:00 +01:00
Alessandro Pasotti
735f1c703e D&D forms show as group box collapsible
Funded by: ARPA Piemonte
2022-03-07 18:06:30 +01:00
Antoine
0a28c5a763 fix doc warnings 2021-12-13 10:19:56 +01:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Alessandro Pasotti
915349dee0 Simplify code and support copy/paste 2021-08-17 19:32:11 +02:00
Alessandro Pasotti
9772e95397 Doxy 2021-08-16 17:13:35 +02:00
Alessandro Pasotti
cd6cd2f6f3 Tests for form action widget 2021-08-16 15:14:31 +02:00
Alessandro Pasotti
889359c3a1 Form DD action widgets initial implementation 2021-08-14 19:06:52 +02:00
Nyall Dawson
c8156b0106 Add c++20 todo for replacing equality operators with default implementations 2021-07-02 12:19:58 +10:00
Denis Rouzaud
727a9a865c add dox to duplicated enum in QgsAttributeEditorRelation and QgsRelationEditorWidget
also remove leftover
2021-06-01 07:19:17 +02:00
Denis Rouzaud
35c557a234 run sipify 2021-05-26 14:30:54 +02:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
dfe734f650 [feature] Add per-field control over whether last entered field
values should be reused when creating new features

While there has long been a global option that causes ALL field
values for ALL layers to be remembered and reused during a QGIS
session when creating new features, this new setting offers
per-layer, per-field control over whether values should be
reused.

It allows for finer control over form behavior, where eg some
values may be desirable to reuse but others should be cleared
or set from default value expressions.
2021-03-04 15:21:07 +10:00
Alessandro Pasotti
7b2fc4c1f8 More doxy nonsense, pt 2 2021-02-19 08:15:29 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Denis Rouzaud
aac558dd59 follow up + some forward declarations 2021-01-12 12:52:23 +01:00
Denis Rouzaud
a6404da815 separate QgsAttributeEditorElement into several files 2021-01-12 12:52:20 +01:00