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
Nyall Dawson
d12dcf3c49
Cleanup layout resizing for Python Console settings tab
2020-10-05 19:26:23 +10:00
Nyall Dawson
bb8cb8b6b0
Fix duplicate margins show in python console
2020-10-05 18:37:46 +10:00
Nyall Dawson
bc55102eb8
Move icon references back out of QgsPythonConsoleBase
2020-10-05 18:37:46 +10:00
Nyall Dawson
e66a0a025b
Move more code out of QgsPythonConsoleBase
2020-10-05 18:37:46 +10:00
Nyall Dawson
f5cd52f81b
Show a code editor preview widget in the code editor settings panel
...
Allows instant preview of changes
2020-10-05 13:24:46 +10:00
Nyall Dawson
d9782a12f5
Move more code to QgsCodeEditorPython base class
2020-10-05 13:24:46 +10:00
Nyall Dawson
96db7ad4f3
Ensure that all open code editors respond immediately to color/font changes
2020-10-05 13:24:46 +10:00
Nyall Dawson
527e8850ef
Add universal last-resort signal QgsGui::optionsChanged()
...
This signal is emitted whenever the application options have been changed.
This signal is a "blanket" signal, and will be emitted whenever the options dialog
has been accepted regardless of whether or not individual settings are changed.
It is designed as a "last resort" fallback only, allowing widgets to respond
to possible settings changes.
2020-10-05 13:24:46 +10:00
Nyall Dawson
47236421af
[needs-docs] Move Python Console settings for font colors and family
...
to new "Code Editor" tab in options dialog
These settings apply to more than just the Python console editors -
rather they apply to all code editors across QGIS (including expression
editors)
2020-10-05 13:24:46 +10:00
Nyall Dawson
e2ff63da48
Copy font setting logic from QgsPythonConsoleBase to QgsCodeEditor
2020-10-05 13:24:46 +10:00
Salvatore Larosa
2cf6d11997
[pyqgis-console] revert changes for handy commands
2020-10-04 13:19:26 +10:00
Salvatore Larosa
f724793cf0
[pyqgis-console] a better attribute name
2020-10-04 13:19:26 +10:00
Salvatore Larosa
74631215e6
[pyqgis-console] fix missing import
2020-10-04 13:19:26 +10:00
Salvatore Larosa
8533d9a89b
[pyqgis-console] restore the correct prompt
2020-10-04 13:19:26 +10:00
Nyall Dawson
5ed37da0b8
Don't hardcode font family for python editor line numbers
2020-10-04 05:02:57 +10:00