34 Commits

Author SHA1 Message Date
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
ac328a6993 Fix QgsDataItem docs 2016-02-03 16:30:58 +11:00
Nyall Dawson
44bf78fa5c Fix Sip coverage test on Debian nightlies 2016-01-08 16:51:18 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Nathan Woodrow
6dfffc5f12 Add missing docs 2015-12-11 15:12:11 +10:00
Nathan Woodrow
bc67c082ad Add missing SIP and docs 2015-12-11 14:11:02 +10:00
Nathan Woodrow
ffd7c9436f [FEATURE] Add project loading support from browser 2015-12-11 14:08:03 +10:00
Nyall Dawson
9cc9d424ce Add extra check for deprecations to documentation test
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.

It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.

Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Nyall Dawson
719ff408a5 Add some missing SIP bindings, comment some classes as not available
in Python
2015-11-10 17:08:27 +11:00
Juergen E. Fischer
b5794b2f2d sip coverage fixes:
* make sip coverage test aware that there are less classes where QSci sip
  headers are not available
* exclude properties from members
* fix QgsFeatureIds typedef (fixes missing signal
  QgsVectorLayer.featuresDeleted and others)
* add missing notes for PyNames
* include some missing new methods in bindings
2015-11-08 19:30:39 +00:00
Nyall Dawson
fe3417b5ef Partial revert of 70bff3f
Commit was causing crashes in browser. Refs #13738
2015-11-05 21:23:04 +11:00
Nyall Dawson
70bff3f6aa Finish flipping a lot of methods to take const references for
non-trivial types
2015-10-26 22:46:14 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Hugo Mercier
95ff0922e4 Handle QgsDataItem class hierarchy in SIP bindings 2015-07-30 15:04:56 +02:00
Radim Blazek
0c4ea1f6e5 new class QgsAnimatedIcon 2015-05-26 10:59:55 +02:00
Martin Dobias
69d0b30d58 Allow data items from plugins 2015-03-18 14:24:36 +07:00
Martin Dobias
59e710c2cd Fix QgsDataItem python bindings - transfer of ownership 2015-03-05 00:13:05 +07:00
Nyall Dawson
3c71498c3e Add some missing /TransferThis/ to sip bindings for QObject parents 2015-02-18 17:35:47 +11:00
Nyall Dawson
b05e789c57 Fix build 2015-02-03 20:47:29 +11:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Sandro Mani
2efda5def5 Add python bindings for added methods 2014-12-23 10:34:51 +01:00
Radim Blazek
d84af0d760 populating browser icons in threads moved to QgsDataItem 2014-12-12 12:28:07 +01:00
Juergen E. Fischer
a57066a48d * fix cppcheck warnings
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
Radim Blazek
eef435e979 [GRASS] data item fix 2014-11-18 13:39:46 +01:00
Radim Blazek
40bb180d9a expand browser items in threads 2014-11-12 22:18:19 +01:00
Radim Blazek
1018c91f29 use connection name in wms,wfs,wcs data item path instead of uri, group ows servers by connection name instead of uri 2014-11-10 19:39:55 +01:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Juergen E. Fischer
a45a9419c5 sip also doesn't like public (followup 0ec5dc4 and fa0a9b7) 2013-05-13 13:47:53 +02:00
Marco Hugentobler
0ec5dc4852 sip does not like CORE_EXPORT and Q_OBJECT 2013-05-13 09:02:21 +02:00
Juergen E. Fischer
fa0a9b75fe don't reload the whole browser model when the project home changes (fixes #7520) 2013-05-12 23:23:24 +02:00
Juergen E. Fischer
e0907b0f0a more spelling fixes 2013-05-03 21:39:28 +02:00
Juergen E. Fischer
eef8627663 more sip fixes 2012-09-24 22:40:24 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00