236 Commits

Author SHA1 Message Date
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
nirvn
45aca2f942 fix unclosed strings not style in python console & script editor 2018-05-23 10:08:02 +07:00
nirvn
9cf6bbf424 Improve default color scheme for python console & script editor 2018-05-22 17:56:25 +07:00
nirvn
45b045d212 Fix missing color settings for python console / script editor 2018-05-22 13:31:29 +07:00
Nyall Dawson
6d87a4cf3f [console] Fix unclosed strings don't respect the preset font size 2018-05-22 15:43:14 +10:00
Mathieu Pellerin
a7397b1726
[python console] improve settings UI (#7041)
- improve UI spacing
- harmonize reset icon
2018-05-21 16:48:43 +07:00
nirvn
6b3ebfc019 harmonize open script icons 2018-05-20 15:50:31 +07:00
nirvn
b0e93a175c [python console] update toolbar icon and action position
(harmonize position with the processing script editor)
2018-05-20 15:50:31 +07:00
Felis Pimeja
85660db91f Vectorized remaining propertyicons
List of icons^
gdal.png
network_and_proxy.png
locale.png
join.png
transparency.png
pyramids.png
overlay.png
map_tools.png
histogram.png
digitizing.png
attributes.png
2018-05-09 11:21:51 +07:00
Salvatore Larosa
3a5fb9d7bd Fixes #18526: Pasting data from clipboard inside Python console causes the text cursor to be moved to the end of the row 2018-03-23 22:41:00 +01:00
Shiva Reddy
536cc9cfbe Update writeOut to include isatty (#6602)
Added these lines so that QGIS 3 python console works in window
2018-03-16 08:20:14 +11:00
Felis Pimeja
198bf77208 Vectorize console icons (#6515) 2018-03-09 09:53:53 +07:00
Alexander Bruy
7823025b8d [python console] remove 'u' prefixes from strings (fix #18171) 2018-02-23 10:39:08 +02:00
Juergen E. Fischer
6dfedc38e9 translation string fixes and cleanups 2018-02-15 22:31:15 +01:00
Denis Rouzaud
3dc3d9d1b2 unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Juergen E. Fischer
325af48680 fix #18050 (followup f6269c41d) 2018-02-05 14:04:07 +01:00
Jürgen Fischer
ad21d371b8
Merge pull request #6213 from nyalldawson/interrupt_console
[console] Allow breaking execution of scripts via Ctrl-C
2018-02-02 17:02:53 +01:00
Nyall Dawson
77e54d3502 [console] Make console action checkable, and bring behaviour into
line with style dock/processing toolbox

Where the action is checked only if the dock is open and user visible,
and checking the action brings hidden tabs to the foreground instead
of closing them.
2018-01-30 14:33:06 +11:00
Nyall Dawson
f6269c41da [console] Allow breaking execution of scripts via Ctrl-C
This allows (in some circumstances) scripts running in the console
to be halted via the Ctrl (or Meta) + C shortcut.

(It's only possible to catch and abort when the script is printing
outputs to the console - because this triggers
QCoreApplication.processEvents() calls. Without these calls the
whole QGIS application is unresponsive during script execution
and there's no ability to even catch a shortcut in order to
halt the execution.

Still, even with this limitation it's handy to be able to
break out of lengthy:

for f in iface.activeLayer().getFeatures():
    print(f.attributes())

loops!)
2018-01-30 09:58:31 +10:00
Nyall Dawson
0f79bfba1c Use svg version of python console icon, courtesy of @pkinglinz (#6016) 2018-01-09 10:33:08 +07:00
Salvatore Larosa
d7485a4349 [pyqgis-console] fix strings in options tooltips 2017-11-29 17:45:46 +01:00
Salvatore Larosa
77f5959a7a [pyqgis-console][ui] move find text tools to toolbar widget 2017-11-28 23:40:29 +01:00
Salvatore Larosa
52efa5c36e [pyqgis-console] fix missing import for pap file compiler 2017-11-28 21:05:11 +01:00
Gary Sherman
036646fcfe Fix Object Inspector in Python console editor 2017-09-27 10:05:19 -08:00
Gary Sherman
43a9bc1481 Make case consistent for description of Run Script tool in Python console 2017-09-27 07:52:52 -08:00
Alexander Bruy
4115d06fba remove context help popup on console opening 2017-09-12 15:47:25 +03:00
Alexander Bruy
999d93ad6e [console] return home directory as string instead of QDir instance (fix #17106) 2017-09-12 15:47:25 +03:00
Nyall Dawson
a77950cbf6 SIP, indentation and documentation updates 2017-09-05 09:53:48 +10:00
Harrissou Sant-anna
6e3aba342c Fix Python console web link 2017-08-22 07:51:23 +02:00
Matthias Kuhn
55cdc89a11 Merge pull request #5004 from jgrocha/helpviewer
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Jorge Gustavo Rocha
c9de9b22f9 Fix links to current documentation 2017-08-09 22:18:00 +02:00
Jorge Gustavo Rocha
3a103b7c62 Refactoring of all help calls, deprecating QgsContextHelp and the former helviewer 2017-08-09 09:27:29 +02:00
Mario Baranzini
78af413dcc Remove python future compatibility layer 2017-08-07 10:27:15 +02:00
Nyall Dawson
2d88a4d73a Fix failing tests 2017-08-07 05:40:13 +10:00
Nyall Dawson
cad54f2cea Fix incorrect icon sizes in Python console
Console was not respecting application icon size setting
2017-08-07 05:24:12 +10:00
Nyall Dawson
05a039b173 [needs-docs] Remove python console "import class" action
Since these classes are always imported by default, there's no
need for a toolbar action to manually import them
2017-08-06 23:52:52 +10:00
Nyall Dawson
069fadfc53 Import all qgis.gui, analysis, processing, and Qt classes by default
in Python console

Because it's a PITA to remember to manually import these all the time
2017-08-06 23:48:53 +10:00
Tim Sutton
0d092f9212 Python console (#4550)
* Use tabbed view for python console settings. Allow fonts larger that 15pt in console and python editor.

* Make the python console settings list look more like the C++ implemented settings dialogs.

* Use scroll areas in python console settings to prevent widget squashing

* Fix python console settings icons

* updating python console settings to be part of main QGIS settings

* Revert "updating python console settings to be part of main QGIS settings"

This reverts commit a811d7d7b184fece419f6610321a98f1acc9238f.
2017-08-05 23:45:11 +02:00
Juergen E. Fischer
6ed389c8e8 fix translation string again and improve translation scripts (followup 79a095cb) 2017-08-05 23:01:42 +02:00
Matthias Kuhn
4b6b8434f4
Avoid endless wait cursors in console 2017-07-30 21:53:41 +02:00
Harrissou Sant-anna
15be88918f Replace "double click" and "doubleclick" by double-click 2017-07-07 01:26:38 +02:00
Matthias Kuhn
0e09fdacde Use monospace fonts for console on all platforms 2017-04-12 22:21:59 +02:00
Nyall Dawson
8e6d792710 Swap all QScrollAreas to QgsScrollAreas 2017-03-21 08:46:41 +10:00
Juergen E. Fischer
ecc5bb508e pep8/pyflakes3 cleanups 2017-03-04 02:38:15 +01:00