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
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
Nyall Dawson
df6c8d74cd
Allow plugins and scripts to register custom logic to prevent
...
the QGIS application from exiting
This interface allows plugins to implement custom logic to determine whether it is safe
for the application to exit, e.g. by checking whether the plugin or script has any
unsaved changes which should be saved or discarded before allowing QGIS to exit.
2020-10-06 17:04:49 +10:00
Nyall Dawson
64bf347d7e
Fix dropping processing script algorithm .py file on QGIS no longer
...
triggers the algorithm to execute
2020-10-06 17:03:35 +10:00
Alessandro Pasotti
09fe306f80
Raster paletted/unique float support
...
Fixes #39058 an adds some small improvements in the
progress feedback.
2020-10-06 08:39:26 +10:00
Nyall Dawson
e7a34f33cb
Console options widget is not a dialog
2020-10-06 03:57:50 +10:00
Nyall Dawson
33f50496d7
Fix bad merge
2020-10-06 03:57:50 +10:00
Nyall Dawson
011f773d49
Use standard QgsCodeEditorPython widget in Processing script editor
2020-10-06 03:57:50 +10:00
Nyall Dawson
ec2b21001e
Ensure autocomplete correctly works for all QgsCodeEditorPython instances
2020-10-06 03:57:50 +10:00
Nyall Dawson
8ec7f0e69c
Remove QgsPythonConsoleBase so that we have a single definitive Python editor class (QgsCodeEditorPython)
2020-10-06 03:57:50 +10:00
Alessandro Pasotti
ac6ee22602
Merge pull request #39183 from elpaso/bugfix-gh37666-no-geometry-in-fields
...
Fields items: various fixes and enhancements
2020-10-05 14:38:12 +02:00
nirvn
f67515c674
[console] Additional tweaks to looks of console input/output area
2020-10-05 17:18:43 +07:00
Alessandro Pasotti
399bebaf44
Fields items: various fixes and enhancements
...
1. expose geometry fields for PG Fixes #37666
2. add a warning message when deleting a pk
3. add a warning message when deleting a geom col
2020-10-05 12:06:54 +02:00
Nyall Dawson
3db9e52e31
Cleanup inconsistent margins in options dialog
2020-10-05 19:26:23 +10:00