35 Commits

Author SHA1 Message Date
Nyall Dawson
3312bf1ad2 Move syntax checking capability to QgsCodeEditorPython 2023-03-20 16:06:24 +10:00
Nyall Dawson
ac5f8da74e Support reformatting in base QgsCodeEditorPython class 2023-03-20 16:06:24 +10:00
Yoann Quenach de Quivillic
40654135fd Dynamic ruler position 2023-03-17 10:52:08 +10:00
Juergen E. Fischer
19d7edcfed produce and install pyqgis.pap (superceeds #51429) 2023-01-25 23:06:35 +01:00
Nyall Dawson
2159a74767 Modernise code 2023-01-11 11:02:20 +10:00
Nyall Dawson
ef26beb283 Fix leak of python apis when api file not found 2023-01-11 11:02:20 +10:00
Yoann Quenach de Quivillic
e6f2fc1288 Add autoSurround setting 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
59332e0984 Fix sip 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
f1843ef2ab Apply suggestions from code review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
451317b783 Set autoCloseBracket default value to True 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
e992797f8b Restore autoCloseBracket settings and factorize autoInsertImport 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
5b87323d01 Fix string detection when cursor at end 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
0353154f21 Fix clazy warning 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
99fec3518c Fix typo 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
04290ea98b Fix backspace does not work on empty line 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
6562062b30 Handle backticks and stars 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
88a683fec3 Fix style 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
5f3a406252 Handle calltips 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
9fc7c0052f Implement smart brackets 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
da260a7a46 add helper functions to get cursor context info 2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
1c79b4927d
[feature][console] Add toggle comment action in the python console (#50341)
Adds a toggle comment action in the Python Console and script editors
2023-01-07 09:27:08 +10:00
Nyall Dawson
3786cd178d Move python console history handling to base QgsCodeEditor class
So that other non-python-console code editors can utilise this too
2022-10-24 16:46:11 +10:00
Nyall Dawson
04dbee6eb7 Add a script language enum 2022-10-24 16:46:11 +10:00
Nyall Dawson
fcb83a7a30 Fix code folding not shown for non-python code editor classes 2022-10-10 14:01:24 +10:00
Nyall Dawson
19565032e3 const ALL the things
Use clang-tidy const correctness fixit to add const to all
variables which it can
2021-08-13 15:25:15 +10:00
Nyall Dawson
c6370c7f52
Speed up QGIS compilation by removing all Qt Module-wide includes
Refs https://www.kdab.com/beware-of-qt-module-wide-includes/
2021-03-05 11:23:15 +10:00
Matthias Kuhn
2adadce274 Add some private doxygen comments 2020-10-22 20:43:03 +02: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
Even Rouault
a76670e521 QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all 2020-10-11 12:30:58 +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
1af2e51f87 Fix rendering of matched brace colors in QgsCodeEditor 2020-10-07 13:13:17 +10:00
Nyall Dawson
5f661045c0 Ensure True/False are treated as Python keywords in Python code editor 2020-10-07 05:57:55 +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