1260 Commits

Author SHA1 Message Date
Julien Cabieces
b9037feabb add functionConst to the list of cppcheck errors 2022-04-29 08:21:47 +10:00
Denis Rouzaud
f5bd1f2165 [sipify] support argument renaming + fix dosctring reset when cpp code is commented 2022-04-29 07:57:25 +10:00
Nyall Dawson
d83fd31815 [sipify] Correctly handle :: in enum comments 2022-04-28 13:54:47 +10:00
Harrissou Sant-anna
a3a0ebf07e Do not split expression functions tags list into single words for translation
Fixes #47486
2022-04-19 08:57:27 +10:00
Nyall Dawson
bf31d14e67 Fix spell check 2022-04-16 14:16:08 +10:00
Denis Rouzaud
9671c90b41
[sipify] fix more complex member assignment removal (#48198) 2022-04-13 10:22:32 +02:00
Nyall Dawson
28bb05b0d5 Add method to retrieve axis order for a QgsCoordinateReferenceSystem 2022-04-06 11:45:32 +10:00
Loïc Bartoletti
a72ffafb8f Have to use g prefix for gnu tools also on *BSD 2022-03-17 08:18:45 +10:00
Martin Dobias
2e9b1cd501
Merge branch 'master' into lazperf-3 2022-03-11 14:06:20 -08:00
Martin Dobias
02d5809d66 Update lazperf to post 3.0.0 to avoid already fixed warnings 2022-03-11 23:02:26 +01:00
Denis Rouzaud
a923b339d2 qHash implementation for scoped enum type 2022-03-11 07:47:46 +01:00
Denis Rouzaud
1879f51781 [sipify] fix do not export template classes 2022-03-10 19:32:09 +01:00
Juergen E. Fischer
b25d09b838 release.pl: add update note for version-ltr.txt rewrite rule on qgis.org 2022-03-05 19:42:48 +01:00
Denis Rouzaud
b7c5d259c6 [sipify] add SIP_MAKE_PRIVATE macro
also handle std::numeric_limits<qlonglong>::min/max
2022-03-02 14:58:56 +01:00
Denis Rouzaud
08ada3aadf sipify + move sipify config file to ./python 2022-03-01 12:09:47 +01:00
Nyall Dawson
d9ea5d5d3d Drop unused context_help files 2022-02-23 15:15:07 +10:00
Juergen E. Fischer
c9e9350f65 release.pl: NSIS images no long needed 2022-02-18 12:30:00 +01:00
Denis Rouzaud
fb9f6a4511
fix keywords 2021-12-16 13:17:25 +01:00
Denis Rouzaud
84396895c7
do not drop condition of elseif (#46518) 2021-12-16 13:16:40 +01:00
Denis Rouzaud
10f3fc3bf8
[spell check] do not check in word for deactive 2021-11-09 08:42:42 +01:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ce873d30e8 protected -> public 2021-10-12 16:34:05 +10:00
Denis Rouzaud
5c9fe70623 do not check spelling in .sip.in files
since they are auto-generated
2021-10-12 16:34:05 +10:00
Denis Rouzaud
e3a77b9484 fix enum in protected section 2021-10-12 16:34:05 +10:00
Denis Rouzaud
070a3e97da [sipify] make all protected methods slots 2021-10-12 16:34:05 +10:00
Nyall Dawson
77be95feac Update default toolbar locations
- Hide annotation and mesh digitizing toolbars by default
- Move selection toolbar to top row to avoid three rows of toolbars
2021-09-28 20:14:49 +10:00
Nyall Dawson
2fc60fcd7f Fix compatibility of moved QFLAGS 2021-09-26 11:24:51 +10:00
Nyall Dawson
52b9c02ccf Sync some libdxfrw files with the upstream versions
Syncs some files with their counterparts from https://github.com/LibreCAD/libdxfrw
Basically this undoes the QGIS specific styling applied to these
files and excludes them from the astyle script. Apart from the
whitespace changes there's only very minor code modernization
changes.

But the goal here is to reduce the diffs between us and upstream
so that we can more easily push fixes upstream and pull them
downstream.
2021-08-06 06:52:50 +10:00
Nyall Dawson
5df3be570d Remove odd string from format description 2021-08-02 13:36:46 +10:00
Nyall Dawson
ebd7d0c50d Add file extensions for babel import formats 2021-08-02 13:36:46 +10:00
Nyall Dawson
3ee1f2b2b5 Rework QgsBabelSimpleImportFormat to avoid storing using keys
based on the format description, and instead use the (constant)
format name instead
2021-08-02 13:36:46 +10:00
Nyall Dawson
4b17ef20f1 Add script to automatically dump babel formats from gpsbabel
and update internal list to add a ton of new formats and remove
formats deprecated and removed by gpsbabel
2021-08-02 13:36:46 +10:00
Stefano Campus
552e0a832d Update tsstat.pl
Add a reporter in Italian translators team.
2021-07-22 08:58:15 +02:00
Nyall Dawson
4bb7f82f2e [sipify] Add check that doxygen //!< command is only used for enum
documentation

sipify can't handle it in other contexts
2021-07-19 16:05:53 +10:00
Juergen E. Fischer
8dde0b1fdc tstat.pl: switch to Locales 2021-06-26 18:59:37 +02:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00
Nyall Dawson
2328f4fad8 Fix sipify handling of long long return types 2021-06-22 08:43:39 +10:00
Nyall Dawson
7b19333442 Fix list formatting 2021-06-10 11:03:43 +10:00
Nyall Dawson
49e48f9383 Better approach to avoid duplicate docs 2021-06-10 11:03:43 +10:00
Nyall Dawson
4ff3f447dc Don't try to insert links in raises blocks in PyQGIS docs
These aren't formatted correctly if we do
2021-06-10 11:03:43 +10:00
Matthias Kuhn
c6fdec8fca
Merge pull request #43238 from sshuair/master
add a new Chinese simplified translator
2021-06-02 07:07:06 +02:00
Denis Rouzaud
e7ccf1fcc6 also do non scoped enums 2021-05-31 09:36:21 +02:00
Denis Rouzaud
759e3db119 [sipify] add attribute to know if an enum is monkey patched
this way it can be easily removed from the PyQGIS API docs
2021-05-31 09:36:21 +02:00
Nyall Dawson
b4fea529f1 Promote Qgis::DataType to enum class 2021-05-27 13:44:15 +10:00
Denis Rouzaud
2e81f3b172 [sipify] support unparsed/raw code 2021-05-26 14:30:54 +02:00
Denis Rouzaud
bd88d6ac38 [sipify] force line return before code block 2021-05-26 14:30:54 +02:00
Nyall Dawson
60f48bc6a2
Add typehint for QgsPoint constructor (#43385) 2021-05-25 15:20:59 +02:00
Nyall Dawson
2b6c3c1db2 Fix PyQGIS QgsLineString constructor only accepts lists of QgsPoint,
not QgsPointXY as indicated by the documentation

Also add support for constructing QgsLineString using arrays of
arrays of floats, given that we're having to hand-roll sip conversion
code anyway!

Now the following is supported:

  line = QgsLineString([[1,2], [3,4], [5,6]])

which is much nicer and more "pythonic" then the explicit
QgsPoint/QgsPointXY sequences!

Fixes #43200
2021-05-25 21:07:50 +10:00
Nyall Dawson
fc796b4c74 Fix sipify 2021-05-20 21:09:56 +10:00
Nyall Dawson
de406693c7 Move QgsVectorLayerExporter.ExportError to Qgis and promote to enum
class

This avoids an ugly include of qgsvectorlayerexporter.h in
qgsproviderregistry.h/qgsprovidermetadata.h, which in turn
triggers an inclusion of qgsvectorlayer.h and a bunch of
other heavy dependencies.
2021-05-20 21:09:56 +10:00