1233 Commits

Author SHA1 Message Date
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
Nyall Dawson
b5dfe8f155 Refactor enum handling
- Add enums to qgis.h instead of qgscoreenums, so that they belong to
a Qgis namespace
- Split up the various symbol headers into multiple files so that we
can fine-tune their inclusion and forward declare more readily, speeding
up recompilation
- Move QgsSymbol enums to qgis
2021-05-18 16:59:22 +10:00
Nyall Dawson
239092e0f1 Move QgsVectorDataProvider::FeatureCountState enum to qgscoreenums.h 2021-05-18 16:59:22 +10:00
Sebastian
d175318870 add deleted exception 2021-05-17 09:54:03 +10:00
Sebastian
37a34b5820 fix 43080 and improve Exception 2021-05-17 09:54:03 +10:00
sshuair
6b9ed31761
Add a new Chinese translator
Add a new Chinese translator
2021-05-16 17:21:36 +08:00
sshuair
b3d6440e7c
add a new chinese translator
add a new chinese translator `Xubaocai`.
2021-05-16 17:13:23 +08:00
Denis Rouzaud
642deb194d
support QgsSettingsEntryEnumFlag in sipify (#42888) 2021-04-22 13:47:21 +02:00
Nyall Dawson
ffa99b7b64 Fix doxygen blocks which don't use the * prefix on all lines, which
prevents the auto format and sipify scripts from doing their full
formatting magic
2021-04-19 12:54:13 +10:00
Juergen E. Fischer
17084b8cf5 scripts/scandeps.pl: drop qt5-default, add pandoc, run 2021-04-12 13:02:09 +02:00
Denis Rouzaud
6ff14b563d
[sipify] fix static const inline (#42607)
* [sipify] fix static const inline

* remove extra match
2021-04-01 08:41:18 +02:00
Nyall Dawson
7715a12916 Fix spelling 2021-03-31 10:59:47 +10:00
Matthias Kuhn
6ca82a2717 Fix sipify 2021-03-28 06:29:24 +10:00
Juergen E. Fischer
2d1aa68f0d spelling fixes 2021-03-23 20:41:25 +01:00
Juergen E. Fischer
e45b819897 fix update_news.pl and update NEWS.md 2021-03-23 15:11:42 +01:00
Denis Rouzaud
8d7ec8b69b [pyqgis] move constructor docstring after the class docstring 2021-03-22 21:11:28 +01:00
Alessandro Pasotti
863c50f691 Try 2021-02-10 09:16:30 +01:00
Alessandro Pasotti
ee5612f53f Follow the source, Luke! 2021-02-10 09:10:05 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Maxim Rylov
365b9da5dd Skip external/odbccpp in astyle.sh 2021-01-13 11:20:07 +01:00
Denis Rouzaud
cb6b306b36
option to run sipify_all.sh on a single module (#40874) 2021-01-06 16:22:44 +01:00
Juergen E. Fischer
c8a2535ed5 scandeps.pl run 2020-12-27 18:54:01 +01:00
Peter Petrik
221bd2f68f
untwine pdalprovider integration (#40404)
[pointclouds] untwine pdalprovider integration
2020-12-15 14:25:09 +01:00
Nyall Dawson
53bdcb903f Spelling 2020-12-08 19:52:22 +10:00
Juergen E. Fischer
3922a28dbc folloup CMakeLists.txt updates (followup eddf6feb) 2020-11-11 23:08:26 +01:00
Denis Rouzaud
fec9c525dd fix sip include test 2020-11-12 07:14:46 +10:00
Denis Rouzaud
c7ed320f8c add script to modernize cmake commands 2020-11-12 07:14:46 +10:00
Juergen E. Fischer
60bca011d0 fix indentation 2020-11-10 20:31:39 +01:00