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
Nyall Dawson
ad946d45c8
Ensure colors in Python console match colors for Python editors
...
used elsewhere in the application
2020-10-04 05:02:57 +10:00
Nyall Dawson
89ace9aeca
QgsPythonConsoleBase should use the standard QgsCodeEditorPython
...
class as a base class
Actually it should be completely folded into QgsCodeEditorPython
so that we have a single definitive Python code editor widget, but
this is a first step toward that...
2020-10-04 05:02:57 +10:00
Nyall Dawson
6078fe4842
Cleanup color handling in QgsCodeEditor classes
...
Remove a bunch of duplicate default color definitions, and ensure
that all subclasses correctly respect any user defined color overrides,
yet that we still default to following the application theme's matching
color schemes.
2020-10-03 19:58:50 +10:00
Alessandro Pasotti
b0189b4149
Return a proper QgsProviderConnectionException from python table()
...
Fixes #39151
2020-10-03 19:06:05 +10:00
Salvatore Larosa
7c476d176a
[pyqgis-console] fix instance attibute name
2020-10-03 08:46:35 +02:00
Salvatore Larosa
f32725658f
[pyqgis-console] fix missing import, amd minor fixws to UI
2020-10-03 09:11:32 +10:00
Salvatore Larosa
4fea3ed822
[pyqgis-console] move console options to main app options
2020-10-03 09:11:32 +10:00
vcloarec
299709994d
change return type of QgsRasterDataProvider::clone()
2020-10-03 05:57:18 +10:00
Nyall Dawson
ab6bbfda1d
Fix all remaining Qt QFlags deprecated constructor warnings
2020-10-02 13:04:49 +10:00
nirvn
9d105d9d59
[layer tree] Avoid needless layer tree model computations for scale-based layer visibility
2020-09-29 06:25:02 +07:00
Salvatore Larosa
e17913c6ea
[pyqgis-console] add search icon to filterlineedit
2020-09-27 11:14:38 +02:00
Salvatore Larosa
a2fb7f3eeb
[pyqgis-console] change message bar to Warning
2020-09-27 04:55:13 +10:00
Salvatore Larosa
1760e26a3a
[pyqgis-console] warn user to generate personal access token
2020-09-27 04:55:13 +10:00
Salvatore Larosa
4347e81202
[pyqgis-console] adress some comment: add button to link at generate token page
2020-09-27 04:55:13 +10:00
Salvatore Larosa
eee29257bd
[pyqgis-console] use QgsBlockingNetworkRequest to create Gist
2020-09-27 04:55:13 +10:00
Salvatore Larosa
c92e873815
[pyqgis-console] using gist to share snippets instead of codepad
2020-09-27 04:55:13 +10:00
uclaros
9953570e30
Added method to clear all individual layer settings in QgsSnappingConfig
2020-09-26 10:30:13 +10:00
Alessandro Pasotti
eb3c78d12d
DB manager fix add comment while creating table
...
Fixes #38394
2020-09-25 10:56:13 +02:00
Alexandre Neto
279c499bb1
Fix QgsProcessingParameterNumber docstring example
...
(cherry picked from commit 66011b22ce181c93aebeda1f0c320f254a67ca30)
2020-09-25 10:58:12 +10:00
Alessandro Pasotti
3b6178ad3b
Merge pull request #38981 from elpaso/bugfix-gh38975-and-other-db-manager-issues
...
Bugfix gh38975 and other db manager issues
2020-09-24 18:42:56 +02:00
Alessandro Pasotti
871f534ef9
Fix PG db-manager rename schema
...
Fixes #38998
2020-09-24 14:23:26 +02:00
Andrea Giudiceandrea
e7e08fd504
Fix grassname of raster layer bands in r_rgb.py
2020-09-24 18:45:59 +10:00