958 Commits

Author SHA1 Message Date
Nyall Dawson
4b1b752633 Fix bad regex 2018-05-27 18:54:09 +10:00
Nyall Dawson
3d6ea5972b Remove some junk lines from docstrings 2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Nyall Dawson
94cf3fc788 Use "customize" instead of "customise"
Since we default to US spelling, we should always be using "customize"
2018-05-26 15:44:04 +10:00
Nyall Dawson
fa5a7d2ae2 Typo 2018-05-26 15:44:04 +10:00
Nyall Dawson
8bb45b935a Typo 2018-05-25 15:09:00 +10:00
Denis Rouzaud
b4ec9a3190
[pyqgis] add QgsSettings.enumValue and flagValue to the bindings (#7024)
* [pyqgis] add QgsSettings.enumValue and flagValue to the bindings

these are done in pure Python since no implementation is possible in SIP

there is a dirty hack for flags since QgsMapLayerProxyModel.Filters.__qualname__
returns 'Filters' and not 'QgsMapLayerProxyModel.Filters'

* fix typo
2018-05-18 09:25:12 -08:00
Denis Rouzaud
deccf205cf
[pyqgis] add method to retrieve metaEnum from an enum value or type (#7023) 2018-05-18 06:47:18 -08:00
Denis Rouzaud
6301f9b6f3 [sipify] write helpers in core.__init__.py for Q_ENUM
whenever reading a Q_ENUM macro, sipify will create a helper in the core module:
BaseClass.EnumType.parentClass = lamda: BaseClass

this will allow to use the meta object to access the QMetaEnum of the object
2018-05-17 22:54:18 -04:00
Denis Rouzaud
1fe0fb74ec [sipify] fix remove value assignment in members 2018-05-17 21:49:07 -04:00
Denis Rouzaud
c1e16969f3 [QgsLocator] add the capability of adding group for elements within the same filter 2018-05-17 21:46:31 -04:00
Denis Rouzaud
1a879b18a1
Merge pull request #7002 from 3nids/sip_metoobject
[sipify] insert missing QMetaObject for gadget classes
2018-05-16 17:54:06 -08:00
Nyall Dawson
fe93993ab8 Fix typo 2018-05-17 08:50:39 +10:00
Denis Rouzaud
2abcfa23b8 do not add static QMetaObject to QgsDefaultValue
it has no Q_ENUM so no need for now
I do not understand while it doesn't compile though
2018-05-16 14:25:01 -04:00
Denis Rouzaud
e8cf8c2f1c [sipify] insert missing QMetaObject for gadget classes 2018-05-15 17:38:16 -04:00
Nyall Dawson
0f78277a59 Add SIP_THROW annotation
SIP uses the deprecated throw(...) annotation in order to determine
which exceptions may be thrown by c++ code. Without these, only
a generic unknown exception is throw, which is of limited value
to Python code (losing any valuable message and exception type).

So we add a new SIP_THROW macro, which can be added to method's
declaration:

    bool doSomething() SIP_THROW( QgsCsException );

This is ignored outside of sipify, so we don't actually use
the deprecated c++ throw annotations, but sipify picks it up
and adds the appropriate change to the sip definition for
the method:

   bool doSomething() throw( QgsCsException );

This means that calling the method from Python will raise
the QgsCsException instead of a generic exception.
2018-05-16 04:35:17 +10:00
Denis Rouzaud
395e864b68 fix prepare-commit after moving sip files 2018-05-14 20:56:53 -04:00
Denis Rouzaud
847f0e1829 adapt sipify scripts and test to place auto generated sip files in dedicated folder 2018-05-14 10:44:11 -04:00
Denis Rouzaud
272f9ef874
Merge pull request #6951 from 3nids/locator_prefix
allow customizing prefix of locator filters
2018-05-13 17:56:22 -08:00
Denis Rouzaud
395c13f1f1 fix typo 2018-05-11 10:55:34 -04:00
Juergen E. Fischer
6b67708166 add libyaml-tiny-perl & python-autopep8 to debian deps 2018-05-11 01:43:43 +02:00
Juergen E. Fischer
968b50f4f0 expression help: support optional parameters and defaults 2018-05-10 20:15:39 +02:00
Alessandro Pasotti
d06043f723
Merge pull request #6952 from elpaso/DelazJ-symbolselectorHelpShow
Delaz j symbolselector help show
2018-05-09 08:04:02 +02:00
Matthias Kuhn
cfad3aa560
Merge pull request #5461 from m-kuhn/less_temp_files
Cleanup temporary files in prepare-commit.sh
2018-05-08 10:35:15 +02:00
Nyall Dawson
51a15640dd Add words to spell check file 2018-05-08 09:33:07 +10:00
Harrissou Sant-anna
ee417aae67 Fix typo and spelling 2018-04-30 14:11:16 +02:00
Juergen E. Fischer
41b6ae6d58 fix astyle version check
(cherry picked from commit dee284fe974560a3c9723e35123a02c7c9d30b8a)
2018-04-24 21:56:15 +02:00
Juergen E. Fischer
8e7486bf56 update_ts.sh: handle empty exclusion 2018-04-23 00:20:25 +02:00
Juergen E. Fischer
9242d2f960 remove plugin_template exclusion from translation updates (followup 605ef7d8294b6) 2018-04-21 14:32:28 +02:00
Denis Rouzaud
d94cf12dea fix list of updated files in pull requests 2018-04-12 10:35:32 -04:00
Matthias Kuhn
c3fdef9db1
Merge pull request #6405 from lbartoletti/mkuidefaults_python3
Convert mkuidefaults script to python3 and pep8 it
2018-04-12 10:37:15 +02:00
lbartoletti
99ae08a2aa use with open as block 2018-04-08 10:08:04 +02:00
Marco Bernasocchi
20c071b515 Add support for imports from qgis.PyQt
this adds support to imports from the qgis.PyQt packages like
from qgis.PyQt.QtGui import (QCheckBox, QIcon)

this kind of imports are already used by some plugins
without having the PyQt5 structure of packages (i.e. they use
from qgis.PyQt.QtGui import (QCheckBox, QIcon) instead of
from qgis.PyQt.QtGui import (QIcon)
from qgis.PyQt.QtWidgets import (QCheckBox)
2018-03-24 15:31:36 +01:00
Marco Bernasocchi
ac09795900 add a warning when unsupported imports are detected
Works for example with imports like import PyQt4.QtGui
2018-03-24 15:31:36 +01:00
Etienne Trimaille
c0f5d22fcd fix typo altitide -> altitude 2018-03-16 10:37:04 +01:00
Nyall Dawson
f06b3691c5 More spelling fixes 2018-03-12 14:32:17 +11:00
luz.paz
b82ec177c9 Misc. source comment typos
+ added 2 strings in to spelling.dat file
2018-03-12 14:32:17 +11:00
Nyall Dawson
d04b3d9eaf Update spell check list, spelling 2018-03-12 14:32:17 +11:00
Matthias Kuhn
0d00491436 s/Modeller/Modeler/ 2018-03-07 09:00:33 +11:00
Nyall Dawson
0acdcfadfd Fix crash when using the identify tool on a categorized render
with an unchecked category corresponding to the feature at the
clicked point

Also fix count of default category symbols
2018-03-01 16:49:29 +11:00
Denis Rouzaud
d171ca7ae4 offer enterCategory in Python bindings by adding a context manager 2018-02-28 13:43:11 -04:00
Denis Rouzaud
d5bb4a72e9 fix bad regex in parse_dash_results 2018-02-27 05:47:51 -09:00
Borys Jurgiel
388cfb89bb
Merge pull request #6427 from Cracert/trans
[TRANSUP] pl: new translator
2018-02-23 09:40:24 +01:00
Juergen E. Fischer
67a578f3dc fix df76bfc1 2018-02-23 07:40:14 +01:00
Robert Szczepanek
7203574439 [TRANSUP] pl: new translator 2018-02-23 00:53:22 +01:00
Loïc Bartoletti
002c020859 Convert script to python3 and pep8 it 2018-02-22 19:45:37 +01:00
Werner Macho
23951f3f10
Update tsstat.pl
correct arry
2018-02-22 16:53:04 +01:00
Alexandre Neto
99e437ce0a
Adds Portuguese translator 2018-02-22 15:40:22 +00:00
Juergen E. Fischer
f14b729e3b fix some references to PROJ.4 2018-02-19 22:12:09 +01:00
Denis Rouzaud
d468e5bb6a [sipify] fix Q_FLAG declaration 2018-02-19 05:55:09 -09:00