github-actions[bot]
beb3e987f0
auto-fix pre-commit issues
2025-09-29 21:52:09 +00:00
Trex
a5f3530fae
Follow-up to Fix #40120 : Python console editor buttons now have shortcuts in tooltips.
2025-09-30 07:51:07 +10:00
Trexerx
65cfee669c
Uppercase letter E in button tooltip
...
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
2025-09-30 07:51:07 +10:00
Trex
5743ee9c95
Follow-up to Fix #40120 : Setting shortcut moved from console_editor.py to console.py
2025-09-30 07:51:07 +10:00
Trex
3d316b1bb1
Follow-up to Fix #40120 : Setting shortcut moved from console_editor.py to console.py
2025-09-30 07:51:07 +10:00
Trex
652159f079
Fix #40120 : Added Run Selected button to python console editor toolbar.
2025-09-30 07:51:07 +10:00
Trex
81e9b9ad47
Fix #40120 : Added Run Selected button to python console editor toolbar.
2025-09-30 07:51:07 +10:00
Yoann Quenach de Quivillic
b137461998
Use standardKey instead of hardcoded F1
2025-07-14 12:15:02 +12:00
Mathieu Pellerin
efdb16ef36
Qt6 compatibility
2025-01-30 08:47:29 +10:00
Mathieu Pellerin
8f9024bcb6
Address review
2025-01-30 08:47:29 +10:00
Even Rouault
5665665712
Fix CMake 3.31 warnings
2024-12-04 06:50:16 +10:00
Denis Rouzaud
0f032e5f2d
run pre-commit on all files
2024-11-29 15:38:02 +01:00
Yoann Quenach de Quivillic
ea75091351
Switch to QWebEngineView if available
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
b2f3876e38
Apply suggestions from review
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
ff2f1f0e3f
Remove python parameter and add context menu actions
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
08ae213fc0
Add settings
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
c851835729
add showApiDocumentation method
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
25480e872c
Interactive Help on F1
2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
39782d67fd
Add comment on style index
2024-09-30 10:12:35 +10:00
Yoann Quenach de Quivillic
8981b49634
Fix syntax highlighting after exception
2024-09-30 10:12:35 +10:00
Mathieu Pellerin
26308050c4
[processing] Fix script editor dialog wrongly jumping back to line 1 and setting changed to true after saving file
2024-08-16 14:53:53 +07:00
Matthias Kuhn
52f98f8c83
Merge pull request #57834 from m-kuhn/no_pyuic
...
[plugins] Remove dependency on pyuic
2024-06-30 08:44:08 +02:00
Matthias Kuhn
305cd60593
Copy ui files to output folder
...
to fix run from build dir
2024-06-30 07:43:35 +02:00
Nyall Dawson
de64e3b8d3
Cleanup Python Console settings layout
2024-06-24 18:40:00 +10:00
Nyall Dawson
5c3d9d21f3
Move Github token setting to new "IDE" options page
...
This setting doesn't apply to only the Python Console, so it
belongs in a different settings page
2024-06-24 18:40:00 +10:00
Nyall Dawson
c357e651a9
Share on GIST should not require a selection
...
If no selection, the entire document is shared
2024-06-24 18:40:00 +10:00
Nyall Dawson
8dcb158394
Move "share on gist" logic to QgsCodeEditorWidget
...
Allows this functionality to be used by other code editors, not
just console script editor
2024-06-24 18:40:00 +10:00
Matthias Kuhn
fd663cc021
[plugins] Remove dependency on pyuic
...
Eases plugin development and deployment
2024-06-22 14:34:06 +02:00
Nyall Dawson
970196c84a
Expose setting for external Python editor
...
Adds user visible option to set the external Python code editor,
from the Settings - Options - IDE - Python tab.
2024-06-22 06:41:05 +10:00
Nyall Dawson
73ff4adc7e
Rename "Python Console" settings page to "Python"
...
These settings apply outside of the console, eg in the processing
script editor, so using "Python Console" is misleading.
2024-06-22 06:41:05 +10:00
Nyall Dawson
557453bd8f
Fix vertical spacing in python console settings
2024-06-22 06:41:05 +10:00
Nyall Dawson
b1947bfa8a
Fix console script editor tries to save as ".py.py"
2024-06-18 05:23:57 +10:00
Nyall Dawson
9946a1d739
Move console script editor external file watching logic to QgsCodeEditorWidget
...
Ensures a consistent behavior between console script editor and
eg processing script editor
2024-06-18 05:23:57 +10:00
Nyall Dawson
d345c68c5a
Move responsibility for loading scripts to QgsCodeEditorWidget
2024-06-18 05:23:57 +10:00
Nyall Dawson
9eef4411f6
Small cleanup
2024-06-07 20:46:45 +10:00
Nyall Dawson
6a018f65f5
Move responsibility for opening files in external editor to QgsCodeEditorWidget
...
This allows the editor to be opened in a proper detached process,
avoiding the editor being closed when QGIS is exited.
Move to a blocklist for terminal text editors instead of the fragile
polling approach (which eg doesn't work if the editor is set to
pycharm)
2024-06-07 20:46:45 +10:00
Nyall Dawson
e42dc886aa
Move file path handling for console editor to QgsCodeEditorWidget
2024-06-07 20:46:45 +10:00
Nyall Dawson
4a4c624e3e
Fix python script editor "open in external editor" action
...
When a system has a EDITOR environment variable set to either
an invalid editor, or an editor which requires a terminal (eg
nano/vim), then fallback to the QDesktopServices approach
to opening the script
Avoids this button doing nothing.
2024-06-07 20:46:45 +10:00
lpofredc
0547b71180
fix #57590
2024-05-29 12:02:42 +10:00
Nyall Dawson
7f377d0189
Fix exception when closing script editor
2024-05-16 08:44:14 +10:00
Nyall Dawson
1ea04ae712
Add warning methods to QgsCodeEditorWidget
...
These call the underlying QgsCodeEditor methods to show inline
warnings, but also add corresponding highlights on the scroll bar
2024-05-15 17:12:20 +10:00
Nyall Dawson
5959be560e
Fix future imports
2024-05-10 13:56:49 +10:00
Nyall Dawson
eece497f3e
Remove redundant coding lines
2024-05-10 13:56:49 +10:00
Nyall Dawson
cd3b7f17bf
Fix lint error in type checking
2024-05-10 13:56:49 +10:00
Nyall Dawson
58dafb48f8
Move message bar logic to QgsCodeEditorWidget
2024-05-10 13:56:49 +10:00
Nyall Dawson
64e0fff67f
[console] Rely on QgsCodeEditorWidget search functionality
...
Remove duplicate code searching functionality from console script
editor and just use the standard QgsCodeEditorWidget implementation
2024-05-10 13:56:49 +10:00
Nyall Dawson
4854779200
Use QgsCodeEditorWidget in python console script editor
2024-05-10 13:56:49 +10:00
Nyall Dawson
249cc6d591
[console] Clean up objects a little
...
- Don't use ambiguous .parent members, use explicit names
- Add some typehints
2024-05-10 13:56:49 +10:00
Nyall Dawson
5b912fab9d
Escape filenames correctly
2024-04-18 11:32:28 +10:00
Nyall Dawson
c033ac8ccd
Show filename in exceptions raised from Python console scripts
...
Instead of "", ensure the actual filename (or tab title, for unsaved
scripts) is shown in exceptions
2024-04-18 11:32:28 +10:00