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
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
Salvatore Larosa
bc71fae005
[pyqgis-console] fix byte conversion
2020-09-21 17:19:57 +02:00
Salvatore Larosa
b696b465ab
Fix indentation (which doing start up of python console very slow)
2020-09-20 06:47:11 +10:00
Matthias Kuhn
d5350c618c
Merge pull request #37602 from rduivenvoorde/console_base_class
...
Add/use simple BaseClass to Python Console classes
2020-09-12 08:53:15 +02:00
Richard Duivenvoorde
982e4f1262
Rename BaseClass to QgsPythonConsoleBase
2020-09-03 16:03:25 +02:00
Richard Duivenvoorde
701d323509
Remove redundant TODO
2020-09-03 15:49:06 +02:00
Richard Duivenvoorde
09fc2e6aa9
Merged console and editor settings stuff
...
So the Editor and Console etc share one set of settings:
- Merged Editor and Console settings-tabs in one Settings tab in the settings dialog
- Removed the Editor ui from the settings dialog
- Changed all names of settings in Editor so it uses the normal/console settings
2020-08-27 22:53:21 +02:00
Richard Duivenvoorde
a48e85a512
Move color info to base class and use those
2020-08-27 19:03:03 +02:00
Richard Duivenvoorde
354b9598ec
Move font, margin and caret code to baseclass
2020-08-27 18:26:54 +02:00
nirvn
38a7e7212a
[console] Fix error when console history file is missing
...
from the user profile directory (fixes #38142 )
2020-08-05 10:18:38 +07:00
Mathieu Pellerin
ebd4cd8c13
[python console] Match key up / down behavior to that of bash and
...
allow for a 'soft' history to be editable
This commit reverts the recent behavior change of a key up / down
press event which meant to prevent accidental loss of content of
a command being edited when pressing the up key on the second line
of a reflowed text.
This new approach has the python console input line behave like
bash, whereas a key up / down will always move to the next /
previous history item wherever the cursor is located. However until
the user hits enter, any edits to historical items or the new
line will be remembered.
This insures that an accidental move back in history doesn't
lead to unwanted code loss.
2020-07-13 08:32:09 +07:00
Richard Duivenvoorde
ab83e57cc8
Context menu 'Search selected in PyQGIS docs' in Console panes
2020-07-08 21:47:08 +02:00
Richard Duivenvoorde
a1fda50f95
Move setLexers to base
2020-07-08 21:17:27 +02:00
Richard Duivenvoorde
6162f48d30
Get rid of all the ColorEditor stuff
2020-07-08 20:26:43 +02:00
Richard Duivenvoorde
180a630363
Move icons to base and add some to items
2020-07-05 11:48:27 +02:00
Richard Duivenvoorde
5889f7df78
Add simple BaseClass
2020-07-04 16:36:47 +02:00
Matthias Kuhn
af670a264e
Improve security warning on console
2020-06-29 07:23:20 +10:00
Nyall Dawson
33fb57e4a0
Also restrict scope of Ctrl+A select all shortcut to avoid ambiguity
2020-06-04 10:59:27 +10:00
Nyall Dawson
873716c6fa
Limit scope of Ctrl+C shortcut for copy features to canvas and for
...
python console to console widget
Avoids ambiguous shortcut warnings/unexpected behavior when pressing
Ctrl+C
Fixes #27035
Fixes #31918
Fixes #31914
Fixes #31392
2020-06-04 10:59:27 +10:00
nirvn
af474eaf81
[python console] Deal with remaining vanishing prompt scenarios
2020-06-03 17:31:45 +07:00
nirvn
bbdc9068b0
[python console] Additional tweaks to new prompt
2020-06-03 14:15:09 +07:00
nirvn
2a25c1847d
[python console] Improve key up/down press for multiline command string
2020-06-03 14:15:09 +07:00
nirvn
2f36e18d11
[python console] Add help links to the PyQGIS API and Cookbook pages
2020-06-03 11:45:13 +07:00
nirvn
296fc6cf89
[python console] Move the >>> prompt into the margin to fix a gazillion issues
2020-06-03 11:45:13 +07:00
Nyall Dawson
601a717174
Import 3d python library by default in console
2020-05-29 03:44:55 +10:00
Juergen E. Fischer
b1edb5e70c
test_defwindowtitle.sh: also check Dialog
2020-05-16 20:55:59 +02:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
d0c24edf7d
Import more useful libraries into console by default
2019-02-01 21:44:53 +11:00
Julien Cabieces
b82ce0e522
fix crash when print from qgis processing algorithm while the python console is displayed
2019-01-29 21:34:45 +11:00
Nyall Dawson
9d4b80e2f1
Refine multiline selection behaviour in editors
2019-01-11 10:15:51 +10:00
Nyall Dawson
dab069e1ea
Improve multiline cursor behavior in Python console and expression editor
...
Now supports multi-line inserts and pastes
2018-12-20 17:23:52 +10:00
Nyall Dawson
cce5c4e802
[console] Correctly save settings when exiting app
...
The closeEvent approach which was previously used is not reliable
on application exit, so manually force a settings save in this case too.
Avoids loss of command history when closing QGIS
Also remove the manual "Save" history action, as it's redundant
2018-12-06 05:42:47 +10:00
Nyall Dawson
1f1bbbaeb6
[console] Fix saving scripts sometimes defaults to QGIS bin folder
2018-12-06 05:42:47 +10:00
Juergen E. Fischer
9ad01cf9ba
replace three dots with ellipsises in translation strings
2018-10-27 19:06:37 +02:00
Nyall Dawson
ff90c13b3a
Capitalization
2018-10-11 09:04:55 +10:00
nirvn
2aebeb0157
[ui] add security warning to the python console
2018-08-20 14:41:07 +07:00
Salvatore Larosa
059d0e21c4
[pyqgis-console] fix link to c++ api doc
2018-07-08 12:44:57 +02:00
Matthias Kuhn
ae192e8624
Make console printing safe
...
References #8343 https://issues.qgis.org/issues/8343
2018-07-02 18:35:24 -05:00
Nyall Dawson
398e2a17dd
[console] Fix invalid regex warning
2018-06-22 13:37:58 +10:00
Salvatore Larosa
3edc07b4c2
also versioning cookbook url
2018-05-29 11:59:54 +02:00
Salvatore Larosa
8f5bde40cf
use https for cookbook url
2018-05-29 11:52:43 +02:00
Salvatore Larosa
fc740d7140
Fixes #19001 : update url to _pyqgis and _api commands
2018-05-28 08:42:45 +02:00