18260 Commits

Author SHA1 Message Date
Salvatore Larosa
3c0fb94880 [pyqgis-console] use asterisk to track changes in script 2020-10-20 06:59:24 +10:00
Nyall Dawson
3c67e1acde [mesh] Use standard presentation for metadata/information tab on properties dialog 2020-10-19 19:15:08 +10:00
vcloarec
abc112befc typo and spelling 2020-10-19 14:53:08 +10:00
vcloarec
b5c787bd06 fix feedback of TIN mesh creation 2020-10-19 14:53:08 +10:00
Nyall Dawson
b637b14d07 Remove a lot of duplicate hardcoded strings for color ramp types and use static method instead 2020-10-19 11:47:35 +10:00
Nyall Dawson
34fb646f7a Fix trying to create new color ramp from first page in style
manager dialog does nothing
2020-10-19 11:47:35 +10:00
Even Rouault
a04fcce548 Add QgsFeature::approximateMemoryUsage() 2020-10-19 09:25:10 +10:00
Even Rouault
7ac4b51885 Add QgsGeometry::wkbSize() 2020-10-19 09:25:10 +10:00
Alessandro Pasotti
a0711d710d
Merge pull request #39368 from elpaso/wfs-t-1.1
Fix WFS-T 1.1.0 support
2020-10-17 21:45:58 +02:00
nirvn
c606cf8b61 Only apply device pixel ratio in scaleIconSize for tested use 2020-10-16 13:05:38 +07:00
Nyall Dawson
746ee315bd Fix boolean literal presentation in dox/PyQGIS docs 2020-10-16 16:03:26 +10:00
Denis Rouzaud
3ffbed314e
add field icon in DnD tree (#39400) 2020-10-16 07:47:59 +02:00
Nyall Dawson
41a30ac2e4 Better duplicate node detection/removal handling 2020-10-16 12:18:33 +10:00
Nyall Dawson
73b0e68eb2 Extract logic from QgsLineString::removeDuplicateNodes to a highly optimised check for duplicate nodes QgsLineString::hasDuplicateNodes 2020-10-16 12:18:33 +10:00
Nyall Dawson
6a570f33eb Move QgsVector methods to header to allow better compiler optimisation,
also hold Python GIL when calling them
2020-10-16 12:18:33 +10:00
Ivan Ivanov
b7ff23aa33
Scroll to newly added feature in the attribute table view
Refs #37847
2020-10-16 10:44:35 +10:00
Alessandro Pasotti
9c0a620fa8 Add option for ServerPrefersCoordinatesForTransactions_1_1 2020-10-15 21:26:35 +02:00
Nyall Dawson
db7b977059 [processing] Correctly discard fid field values when running
algorithms with the RegeneratePrimaryKey flag in in-place mode

Fixes #37761, fixes #33816
2020-10-16 05:04:08 +10:00
Nyall Dawson
4b3703d87c Add option to regenerate primary key to QgsVectorLayerUtils.makeFeaturesCompatible
Allows us to optionally reset the fid field value when required
2020-10-16 05:04:08 +10:00
nirvn
0607504202 Move and unify scaleIconSize into QgsApplication::scaleIconSize 2020-10-15 11:48:09 +07:00
nirvn
e951aead53 Fix QgsMapSettings {mapToLayer,layerToMap}Coordinates failing with points having a nan z value 2020-10-15 10:49:58 +07:00
Nyall Dawson
ab6e615c3e Update test 2020-10-15 12:40:30 +10:00
Nyall Dawson
f8222f0f16 [processing] Skip redundant and potentially expensive duplicate intersection
test in Split With Lines algorithm
2020-10-15 12:40:30 +10:00
Nyall Dawson
fff2098ed6 Try to fix Travis build 2020-10-15 10:15:27 +10:00
Nyall Dawson
8c79b94fcc Don't show cascaded feature deletion warnings and feedback if
joined deleted features came from an auxilary layer

As auxiliary features are intended to be intrinsicly linked to
a normal layer's features, we don't need to warn or advise when
these are deleted alongside their parent feature.
2020-10-15 10:15:27 +10:00
Salvatore Larosa
7b7a909318
Merge pull request #39350 from uclaros/fix-del-console-history
Fix deleting python console history entries
2020-10-13 20:45:05 +02:00
uclaros
1f26bb03f4 Fix deleting python console history entries 2020-10-13 20:11:31 +03:00
Nyall Dawson
8d3e028d15 Cleanup raw margin manipulation used to hide holding controls, use proper methods 2020-10-13 14:14:53 +10:00
Nyall Dawson
1ac59415ec Cleanup handling of margins in QgsCodeEditor and subclasses 2020-10-13 14:14:53 +10:00
Nyall Dawson
56b349479b Spelling 2020-10-13 10:47:21 +10:00
Nyall Dawson
0a3f40a191 Allow error indicator colors to be controlled for code editor color scheme 2020-10-13 10:47:21 +10:00
Nyall Dawson
b02d7b33bd Add option to apply parameterized colors to SVGs returned by
QgsApplication::getThemePixmap
2020-10-13 10:47:21 +10:00
Etienne Trimaille
dbe2a3beb6 Add note about Python bindings in QgsAction 2020-10-13 08:25:38 +10:00
Nyall Dawson
5c8013df61 [console] Fix exception when running scripts (followup cce7aa7)
and move responsibility for showing warning messages to QgsCodeEditor
base class, so that the same code can be used by other dialog script editors
2020-10-12 13:06:34 +10:00
Nyall Dawson
aaa813a15a Split indentation guide color from edge color in code editor settings
Reusing the same color resulted in too subtle indentation guides
2020-10-12 11:53:34 +10:00
Salvatore Larosa
cce7aa7315 [pyqgis-console] restore marker icon for syntax check 2020-10-12 09:49:45 +10:00
Even Rouault
a76670e521 QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all 2020-10-11 12:30:58 +10:00
Nyall Dawson
d3f038c929 Sipify 2020-10-09 11:20:09 +10:00
Nyall Dawson
cddcbe076a Improve docs 2020-10-09 11:20:09 +10:00
Nyall Dawson
4ee9feb56b Sipify 2020-10-09 11:20:09 +10:00
Nyall Dawson
2207c30a24 When calling processing.run() and an QgsProcessingExpection occurs,
don't raise a generic "something went wrong" exception but instead
ensure that the original exception with the proper error message
is raised for catching in Python instead
2020-10-09 05:17:49 +10:00
Nyall Dawson
ee7bea2305 [processing] Fix execution of "Eliminate selection" through Python
Fixes #38808
2020-10-09 05:17:21 +10:00
olivierdalang
ce249b5933 rotated ticks folloup : prepare_commit 2020-10-08 09:37:35 +10:00
Nyall Dawson
c9fb3620db Fix fold icon colors in code editors -- allow these to be set so that
they can match the editor theme
2020-10-07 15:06:02 +10:00
Nyall Dawson
3f40dbfb10 Fix rendering of CSS comments in QgsCodeEditorCSS
Refs https://www.riverbankcomputing.com/pipermail/qscintilla/2019-July/001414.html
2020-10-07 13:13:17 +10:00
Nyall Dawson
5243a8594c [processing] Fix error reporting from batch dialog
Fixes #39197
2020-10-07 05:59:11 +10:00
Nyall Dawson
3098fa5906 Move code editor color scheme tracking to dedicated registry,
QgsCodeEditorColorSchemeRegistry

This cleans up the code, and makes it possible for creation of plugins
which add new code editor color schemes!
2020-10-06 17:11:34 +10:00
Nyall Dawson
1bafa2f66f Code shuffle: move QgsCodeEditor classes to their own folder 2020-10-06 17:11:34 +10:00
Nyall Dawson
31dba5453b Fix test 2020-10-06 17:04:49 +10:00
Nyall Dawson
9093bdfd1e Don't silently close QGIS with unsaved changes in the console script
editors

Instead prompt the user what to do with these changes

Fixes #38529
2020-10-06 17:04:49 +10:00