7892 Commits

Author SHA1 Message Date
Damiano
65163814ff Added QgsSettingsRegistry base class 2021-04-15 16:08:48 +02:00
Damiano
432224ab94 Moved most core settings to SettingsEntry 2021-04-15 14:06:30 +02:00
Denis Rouzaud
fbb7eaaf32
Merge pull request #42597 from domi4484/settingsRegistryStaticInline
Settings registry (QEP 124)
2021-04-15 13:28:44 +02:00
Vincent Cloarec
63ec727003
fix API header references (#42795)
* fix API header reference

* fix SIP
2021-04-15 13:21:45 +02:00
Damiano
97f1a645f0 Changed SettingsType to scoped enum 2021-04-15 09:58:39 +02:00
Damiano
abb8e80c1f Added functionality to override default value for settings entries 2021-04-14 19:49:57 +02:00
Damiano
9082cfa268 Fixed trailing space 2021-04-14 18:13:51 +02:00
Damiano
4891bd6ebb Added support for settings with keys with multiple dynamic parts 2021-04-14 18:05:41 +02:00
Damiano
9762206731 Removed Settings struct / unified Enum/Flag logic in one base class 2021-04-14 15:41:49 +02:00
Nyall Dawson
7126faf27c [feature][labelling] Add an option to control how line features are
clipped before their anchor points are calculated

The previous behavior was to always use only the visible part
of the line when calculating the anchor point for labels. Now,
users have the option to choose "Use Entire Line" when setting
the label anchor point for lines, so that the entire line
feature is considered when calculating the point to place
the label instead of just the visible part of the line.

Sponsored by Stadt Zürich
2021-04-09 13:29:08 +10:00
Loïc Bartoletti
2fd51b2a13 3.18 -> 3.20 2021-04-09 11:46:40 +10:00
Loïc Bartoletti
1d29a42cd9 Fix tests in test_qgsgeometry.py with geos 3.9 2021-04-09 11:46:40 +10:00
Nyall Dawson
d3870937b2 [processing] When exporting a model to a python script, include
helpful comments next to all static enum parameter values used
in child algorithms with the corresponding text.

I.e. instead of

  alg_params = {
    'END_CAP_STYLE': 2,
  }

we now export

  alg_params = {
    'END_CAP_STYLE': 2,  # Flat
  }

Much more readable!
2021-04-09 11:45:53 +10:00
NEDJIMAbelgacem
aca1146390 change the point budge to qint64 and double spin box 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
1a60a4562d fix tests 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
4a0230fc5c Add QgsFeedback to handle canceling rendering 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
b01deeb156 revert qgsfiledownloader changes 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
e9f8cab806 Address reviews 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
f9b71846c9 address reviews 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
c9890935bf remove the use of dataSourceType 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
ede1c6394e UI initial implementation for remote ept files 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
e870065342 initial implementation of remote ept 2021-04-08 14:26:31 -07:00
Nyall Dawson
832d5e95ee Cleanup and refactor calculationg of label text metrics for curved
labels, and move methods for calculating curved text placement
out of PAL so that they can be reused elsewhere
2021-04-08 14:26:05 +10:00
Damiano
3c5f9b1e91 Python implementation for QgsSettingsEntryEnum/Flag and fixed docstrings 2021-04-07 14:02:08 +02:00
Damiano
767923937f Added python tests for settings entries classes 2021-04-05 00:14:14 +02:00
Nyall Dawson
d9d0f9a9dd [feature] Add support for rounded corners for balloon callout styles
Allows for visually please rounded corners by exposing a "corner radius"
setting for balloon callouts.
2021-04-04 16:25:00 +10:00
Damiano Lombardi
fe0dcee284 Added new QgsSettingsEntryFlag and tests for enum and flag 2021-04-01 21:09:36 +02:00
Damiano
d16702dfbc no more hand modified sip files 2021-04-01 10:13:08 +02:00
Damiano
628f9dab29 Added QgsSettingsEntryBase and value() is now typed according to setting 2021-04-01 09:38:56 +02:00
Damiano
cee0e310f8 Sip part running 2021-04-01 09:38:56 +02:00
Damiano
21c19aba9c static inline settings 2021-04-01 09:38:56 +02:00
Nyall Dawson
ce5558ee05 QgsSymbol::start/stopFeatureRender needs to be public so python subclasses can call it 2021-03-31 18:28:25 +10:00
Nyall Dawson
8f510cf2d4 [FEATURE] Add new variable @geometry_ring_num for data defined
styling when rendering polygon rings

The variable is available whenever a polygon outline is being
rendered (e.g. as a simple line, marker line, etc). It will
be set to 0 for the exterior ring, and 1, 2, 3... for interior
rings.
2021-03-31 17:04:53 +10:00
Nyall Dawson
7715a12916 Fix spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
b85614e67e Spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
c4c8aab7b4 Improve documentation for raster pyramid creation methods/classes
The PyQGIS documentation for this workflow was very poorly documented
2021-03-31 10:59:47 +10:00
David Marteau
9eb172aa8e Add multipart option for processing geometry parameter 2021-03-31 08:59:20 +10:00
Nyall Dawson
f0aafd2081 [api] Allow the text and icon for the 'empty layer' option in QgsMapLayerComboBox to
be customised
2021-03-30 11:51:32 +10:00
Nyall Dawson
d3692361ad Avoid use of QStyleOptionGraphicsItem::matrix, which is removed
in Qt 6
2021-03-30 09:19:38 +10:00
Nyall Dawson
705259e2d9 Fix a bunch of clazy warnings in QgsVectorFileWriter 2021-03-29 14:16:31 +10:00
Nyall Dawson
62ad6e3106 Add QgsVectorFileWriter::writeAsVectorFormatV3
Unfortunately QgsVectorFileWriter::writeAsVectorFormatV2 is missing
SIP_OUT arguments necessary to get the desired output arguments,
and it's not possible to add these now without breaking existing PyQGIS
code.

Solution = v3!
2021-03-29 14:16:31 +10:00
Matthias Kuhn
6ca82a2717 Fix sipify 2021-03-28 06:29:24 +10:00
Matthias Kuhn
10e9de15e8 [qt6] compatibility with [[deprecated]] attribute 2021-03-28 06:29:24 +10:00
Matthias Kuhn
1a59efb177 [qt6] Qt6 uses utf-8 by default
for QTextStream and QSettings
2021-03-28 06:28:35 +10:00
Matthias Kuhn
a75f6ab903 [qt6] QVector and QList are unified 2021-03-28 06:26:33 +10:00
Matthias Kuhn
7f2c7c8330
Merge pull request #42448 from m-kuhn/qt6_recursive_mutex
[qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
2021-03-27 13:00:51 +01:00
Matthias Kuhn
e94d9bc024 [qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
QMutex::Recursive will be gone.
The replacement only entered the stage with Qt 5.14
2021-03-27 10:17:45 +01:00
Nyall Dawson
40ed79393e Instead of double-iterating over features caused by calling
QgsVectorLayer::minimumValue and then QgsVectorLayer::maximumValue
when we need BOTH the min and max value for a field, add an
optimised QgsVectorLayer::minimumAndMaximumValue() method
which can calculate both min and max at the same time in
a single iteration.

Potentially halves the cost of calculating these values whenever
we are forced to do a full iteration to calculate them.
2021-03-27 12:09:09 +10:00
Matthias Kuhn
31513ba412
Merge pull request #42469 from m-kuhn/qvariant_operators
[qt6] Add comparison operators for QVariant
2021-03-25 17:44:30 +01:00
Matthias Kuhn
20596227f7 Fix compiling with legacy Qt (aka Qt5) 2021-03-25 12:22:35 +01:00