212 Commits

Author SHA1 Message Date
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
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
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
4c3968b9aa more spelling fixes 2017-01-20 15:06:09 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Larry Shaffer
1d58e532b8 [pyqgis-console] Use python3 for editor subprocess calls 2016-12-29 11:40:26 -07:00
Nyall Dawson
100667ace0 Fix dialogs which violate HIG (use of : at end of label) 2016-11-04 10:02:46 +10:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Juergen E. Fischer
6b8130d54d remove pngs which are available as svg
(cherry picked from commit 1cbb842feb393b7bab2b31b2e970c48816c58d3c)
2016-09-11 22:33:41 +02:00
Nyall Dawson
eba6101357 Fix broken python save/open dialogs under PyQt5
Will break stuff under PyQt4... oh well, better stuff working on Qt5
then Qt4
2016-09-05 11:41:49 +10:00
Nyall Dawson
fd0d804341 Fix error when executing python code under python 3 2016-09-05 10:17:37 +10:00
Nyall Dawson
11ee2fc809 Fix running unsaved script in console 2016-05-16 18:14:58 +10:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Matthias Kuhn
166466159f QShortcut is in widgets, not gui 2016-04-15 11:25:27 +02:00
Matthias Kuhn
8047a569e3 Fix console import menu and add tests 2016-04-15 11:05:29 +02:00
Nyall Dawson
99210ecfd7 [FEATURE][console] Improvements to find functionality
- add key shortcut to open find widget, set focus to find text input
automatically (uses default shortcut for DE, eg usually Ctrl+F)
- add key shortcuts for find next/previous (using default DE
shortcut, eg Ctrl+G/Shift+Ctrl+G)
- automatically find first match when typing in find box
- set initial find string to selection when opening find
- pressing Escape closes the find bar
2016-04-15 07:51:58 +10:00
Matthias Kuhn
fe314754c6 Fix console errors 2016-04-14 12:15:12 +02:00
Salvatore Larosa
0168bd5c68 [pyqgis-console] fix multi-line code execution 2016-03-31 22:53:10 +02:00
Salvatore Larosa
20ce2343cb [pyqgis-console] fix import statement 2016-03-31 22:53:10 +02:00
Matthias Kuhn
e133b42896 Enable console with Python3 / PyQt5 2016-03-29 08:20:43 +02:00
Juergen E. Fischer
885d0ec993 python console: switch to pyqt wrappers and new style signals, flake8 fixes, show exceptions in console also with pyqt5 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Nyall Dawson
d6346c882b Use clearer cut/copy/paste icons in python console 2016-02-26 11:46:52 +11:00
Nyall Dawson
72df8901f5 Clean up python console toolbars/menus:
- Consistent capitalization
- Add missing ellipsis
- Rename "settings" to "options" for consistency with main window
- Remove some excessive use of separators
2016-02-24 14:06:40 +11:00