3175 Commits

Author SHA1 Message Date
Denis Rouzaud
b249d481e9 script to reverse engineering from SIP to header
go grab annotations in SIP files to write them in the header
or what could be called the headerizer
2017-05-02 10:11:50 +02:00
Mathieu Pellerin
81ccfb0de4 Merge pull request #4460 from nirvn/wallpapers 2017-05-02 13:24:56 +07:00
Denis Rouzaud
7d459149c7 [sip] align missing bits and replace nullptr by 0 2017-05-02 08:09:53 +02:00
nirvn
295c21227c Add a QgsMapSettingsUtils::worldFileContent() function 2017-05-02 12:15:46 +07:00
nirvn
a188d4f32a Add missing wordfile creation to revamped save as image 2017-05-02 11:41:11 +07:00
Nyall Dawson
df1ead5ed4 [processing] Remove vector.spatialindex()
Use QgsProcessingUtils.createSpatialIndex() instead.
2017-05-02 13:39:36 +10:00
Nyall Dawson
600518de72 Add unit tests for QgsProcessingUtils::mapLayerFromString 2017-05-02 12:33:22 +10:00
Nyall Dawson
11fb72eef7 Only expose a single mapLayerFromString method in QgsProcessingUtils 2017-05-02 12:33:22 +10:00
Nyall Dawson
f84d703234 Add method QgsProcessingUtils::mapLayerFromString
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.

This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Matthias Kuhn
f511401995 Fix bindings 2017-05-02 01:56:23 +02:00
Matthias Kuhn
6593754f9d Explicitly tag static variables 2017-05-02 01:56:23 +02:00
Matthias Kuhn
b9ec373f4c Fully qualify nested classes for vintage sip 2017-05-02 01:54:58 +02:00
Matthias Kuhn
7a4527d47f Also report ScopedFunctions as static when approporiate 2017-05-02 01:54:58 +02:00
Matthias Kuhn
d70bb9c348 Specify for expression functions if they are static
... and prepare them whenever possible
2017-05-02 01:54:57 +02:00
Matthias Kuhn
8031ac43e0 Expression variables are more often than not static 2017-05-02 01:54:57 +02:00
Denis Rouzaud
7b60d89d6c align pointer and reference in sip files batch 2 2017-05-01 20:00:51 +02:00
Denis Rouzaud
00700292ef Merge branch 'master' into sip-annotated 2017-05-01 19:21:59 +02:00
Denis Rouzaud
93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00
doublebyte1
bb1bded249 - changes to sipify script
- updated gsdataitem header:
  - added qgis.h include
  - skip sDataItemPtr
  - remove , between SIP annotations
- run sipify for qgsvector and qgsdataitem
2017-05-01 17:43:07 +02:00
Alexander Bruy
e581d46166 regenerate SIP files 2017-05-01 17:42:06 +02:00
Alexander Bruy
782c3e5afb sipify QgsStatisticalSummary and QgsStringStatisticalSummary 2017-05-01 17:42:06 +02:00
arnaud.morvan@camptocamp.com
b399ee5d2e Sipify QgsFieldFormatterRegistry 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
1fb7855e17 Sipifi QgsFieldFormatter 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
84abf896bb Sipify QgsFieldConstraints 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
113ab01cfe Sipify QgsField
I've removed the commented __getitem__ method from the sip file.
2017-05-01 11:06:43 +02:00
Matthias Kuhn
c929d2abd8 Fix warnings 2017-05-01 10:22:34 +02:00
Nyall Dawson
ac84326464 [processing] Fix executing models 2017-05-01 17:29:40 +10:00
arnaud.morvan@camptocamp.com
8376a30f7a Sipify QgsField 2017-05-01 01:05:33 +02:00
Matthias Kuhn
7f3941e073 Doxymentation 2017-05-01 00:04:29 +02:00
Matthias Kuhn
a8fc2c13d0 Fix remaining errors 2017-05-01 00:03:55 +02:00
Denis Rouzaud
fb1aec61ba sipify QgsExpression 2017-05-01 00:03:55 +02:00
Denis Rouzaud
c5dcfc1ebf move SIP_CODE to public section 2017-04-30 23:30:34 +02:00
raymondnijssen
b82c9b8917 sipify QgsPoint 2017-04-30 23:30:33 +02:00
doublebyte1
1287a64eb2 - updated const variables on the qgsvector header.
- Removed dataItem_t pointer from qgsdataitem bindings.
- Put back qobject_cast.
2017-04-30 22:33:58 +02:00
doublebyte1
2d7b2ecff4 - Supporting automated sip generation for qgsdataitem and qgsvector classes
- Removed qgsdataitem.sip and qgsvector.sip from auto_sip.blacklist
 - Annotated qgsdataitem.h for sip
 - regenerated automatically qgsdataitem.sip and qgsvector.sip
2017-04-30 22:33:58 +02:00
Matthias Kuhn
28a21209b9 [sipify] seealso 2017-04-30 16:52:05 +02:00
Denis Rouzaud
897e2f0410 [sipify] do not take // comments into docstrings 2017-04-30 16:34:08 +02:00
Denis Rouzaud
f20b9b96e7 [sipify] better remove body, remove duplicate code 2017-04-30 16:34:08 +02:00
Denis Rouzaud
39d87248ab [sipify] fix handling of nested classes
going to proper section when ending a nesting classes (public/private)
also improve debugging output
2017-04-30 16:34:07 +02:00
Denis Rouzaud
a86f5ea52d remove PyNames for QgsGeometry::compare methods
single python method with some MethodCode to dispatch to proper cpp methods.
2017-04-30 11:29:45 +02:00
Denis Rouzaud
b0d4a4c201 sipify geometry classes 2017-04-30 11:29:45 +02:00
Nyall Dawson
455f9738dd Sipify QgsTextRenderer 2017-04-28 19:25:45 +10:00
Nyall Dawson
debe1098cb [FEATURE] Allow setting paint effects on label background shapes
Can also be useful for improving text readability through
outer glows and blurs
2017-04-28 19:25:45 +10:00
Nyall Dawson
b9f102c98d [FEATURE] Paint effect support for label buffers
Allows applying a paint effect (such as blurs) to label buffers.
Blurring label buffers is a great way to get the text readability
of a label buffer without the distracting halo effect.
2017-04-28 19:25:45 +10:00
Matthias Kuhn
c219116358 Add QgsDataProvider::uri property 2017-04-28 00:27:46 +02:00
Nyall Dawson
0b0ccc9e9d Rename QgsVectorLayer::selectedFeaturesIterator to getSelectedFeatures
It's more in line with QgsVectorLayer::getFeatures, hence a more
discoverable API
2017-04-27 11:16:10 +10:00
lbartoletti
84471f2e6d New classes for circle and ellipse. 2017-04-27 10:25:29 +10:00
Nyall Dawson
ccb4ac98b4 Merge pull request #4417 from nyalldawson/processing_writer
Refactor processing writer to use QgsFeatureSink
2017-04-27 10:14:33 +10:00
Denis Rouzaud
4cc4a27068 [sipify] operators, remove argument
* skip some operators
 * allow to remove an argument with SIP_PYARGREMOVE
2017-04-26 15:06:16 +02:00
Denis Rouzaud
45266cd03e [sipify] improvements
* add In annotation
 * remove struct forward declarations
 * fix members initialization list in header
 * merge removal code for function bodies and constructor definition
2017-04-26 10:25:50 +02:00