Denis Rouzaud
8f35ee464f
sipify improvements
...
* one liner enum (without assignements)
* remove function bodies of skipped methods
2017-04-24 14:52:10 +02:00
Denis Rouzaud
419185bc21
[sipify] remove EXPORT macro from struct definition
2017-04-24 13:06:03 +02:00
Denis Rouzaud
6e7b753ceb
sipify improvements
...
* reset comment while changing section
* fix comment at the end of a comment block
* use SIP_FORCE to show private members
2017-04-24 09:32:39 +02:00
Denis Rouzaud
347934f4de
follow up 1bfa539
2017-04-24 07:43:52 +02:00
Denis Rouzaud
f022858643
[sipify] handle SIP_SKIP on several lines
2017-04-20 14:37:22 +02:00
Denis Rouzaud
1ab5a628df
[sipify] handle override method signature on several lines
2017-04-20 14:21:36 +02:00
Denis Rouzaud
b272bf816f
[sipify] read file at once into an array
...
this will allow accessing other lines while reading
2017-04-20 14:21:36 +02:00
Denis Rouzaud
e5ab2f6b5b
[sipify] fix struct member assignment
2017-04-19 18:06:39 +02:00
Denis Rouzaud
652d6b4200
[sipify] remove Q_INVOKABLE
2017-04-19 15:19:14 +02:00
Denis Rouzaud
a260146e94
[sipify] fix remove protected members
2017-04-19 15:18:54 +02:00
Denis Rouzaud
51aa44de5f
[sipify] fix enum combination
2017-04-19 15:03:31 +02:00
Nyall Dawson
33b6c41dd2
Merge pull request #4357 from nyalldawson/composer_layer_ref
...
Use weak layer references and loose matching for composer legend customisation
2017-04-18 12:06:38 +10:00
Nyall Dawson
87a670848b
[sipify] Always add virtual keyword for overridden methods
...
sip often requires the virtual keyword to be present, or
it chokes on covariant return types in overridden methods
2017-04-18 11:14:01 +10:00
Nyall Dawson
147bb7f1ed
Move ellipsoid parameter retrieval to new QgsEllipsoidUtils class
2017-04-18 09:53:00 +10:00
Martin Dobias
316d9c3359
R.I.P. QgsSnapper and QgsMapCanvasSnapper
...
These classes have been replaced by more efficient and flexible classes
(see QgsPointLocator, QgsSnappingUtils, QgsMapCanvasSnappingUtils)
2017-04-17 17:08:48 +08:00
Nyall Dawson
eff5a823c9
[sipify] Convert "\a arg" to "`arg
`" when processing Docstrings
...
Allows argument names to be highlighted in Python docs
2017-04-17 13:49:59 +10:00
Nyall Dawson
6a72c945af
[sipify] Don't autocreate Docstrings for overridden members
...
Skip the autocreated Docstrings with rtype annotations if the
member is overridden - better to use the base class
Docstring in this case.
2017-04-17 11:03:02 +10:00
Nyall Dawson
798c318288
[sipify] Fix loss of class docstring if newline present between
...
class doxygen and class definition
2017-04-17 10:49:29 +10:00
Nyall Dawson
669fa87eb4
[sipify] Fix stripping function body with virtual const reference returns
2017-04-11 16:24:01 +10:00
Nyall Dawson
18c1e6233b
[sipify] Also skip mutable protected members
2017-04-10 17:00:12 +10:00
Matthias Kuhn
14e949b96c
[sipify] skip non-public template based member declarations
2017-04-08 23:42:55 +02:00
Matthias Kuhn
d8207021d3
Fix sipify test header file
2017-04-08 23:42:55 +02:00
Matthias Kuhn
d902575f58
Sipify
2017-04-08 23:42:55 +02:00
Nyall Dawson
bfd37e1122
[sipify] Add return types for functions in docstrings
...
and change \return -> :return: in docystrings
2017-04-08 09:48:48 +10:00
Matthias Kuhn
ebc1afe82c
[sipify] Fix exposing members and default struct accessors
2017-04-07 12:26:30 +02:00
Matthias Kuhn
cfeab26bd8
[sipify] Add support for abstract classes
2017-04-07 12:26:30 +02:00
Matthias Kuhn
97e2661eeb
[sipify] do not copy struct docstrings
2017-04-07 12:26:30 +02:00
Matthias Kuhn
f82997c4aa
[sipify] Force newlines after sip commands
2017-04-07 12:26:30 +02:00
Nyall Dawson
ca8e1d343d
[sipify] Replace nullptr with None in docstrings
...
Since nullptr has no meaning to Python devs
2017-04-07 09:21:26 +10:00
Nyall Dawson
5ccc6cccef
Update api break docs, sipify QgsRasterFileWriter
2017-04-07 09:21:26 +10:00
Denis Rouzaud
c2c9335911
[sipify] fix private inheritance with namespace
2017-04-05 09:58:44 +02:00
Denis Rouzaud
d7014846f1
[sipify] skip protected members
2017-04-05 09:58:37 +02:00
Nyall Dawson
4eeacb8fdf
[sipify] Replace :: with . during doxygen->docstring conversion
...
e.g.
You can use QgsXmlUtils::writeVariant to save it to an XML document
->
You can use QgsXmlUtils.writeVariant to load it from an XML document
2017-04-05 10:32:27 +10:00
Denis Rouzaud
cca83b7599
[sipify] properly get out of private section
2017-04-03 08:40:29 +02:00
Nyall Dawson
3e9c527dc7
[sipify] Handle enum values using bitshift operators
2017-04-03 14:09:40 +10:00
Nyall Dawson
7db1913c07
Handle Q_DECLARE_FLAGS and Q_DECLARE_OPERATORS_FOR_FLAGS in sipify
2017-04-03 13:54:12 +10:00
Nyall Dawson
e1e1f0d514
Strip \a from doxygen comments in sipify
2017-04-03 13:18:36 +10:00
Matthias Kuhn
fb91ed7395
Use "\since" instead of "@note added in"
2017-04-03 01:06:33 +02:00
Matthias Kuhn
16594da94c
Fix sipify override and inline definition combination
2017-04-02 23:37:17 +02:00
Matthias Kuhn
a609883cc0
Add %Feature support to sipify
2017-04-02 23:37:17 +02:00
Matthias Kuhn
68d8108ab3
Fix sipify constructor detection
2017-04-02 23:37:17 +02:00
Nyall Dawson
f044eeb597
Remove \brief from doxygen in sipify
2017-04-02 21:28:20 +10:00
Nyall Dawson
f1162f7884
Fix sipify annotations and inline definition combination
2017-04-02 21:19:52 +10:00
Nyall Dawson
d3daf60020
Convert doxygen notes and version added to sphinx style in sipify
2017-04-02 20:52:50 +10:00
Nyall Dawson
28a57c8f95
Remove ingroup and class from doxygen when creating sip docstrings
2017-04-02 20:30:22 +10:00
Nyall Dawson
bed74fc24a
Handle c++11 '= default' in sipify
2017-04-02 16:21:23 +10:00
Matthias Kuhn
5148b7accb
[sipify] Add name of source file to generated headers
2017-04-01 19:10:59 +02:00
Denis Rouzaud
9846b34ec3
add type and default values identifiers
2017-03-30 15:13:01 +02:00
Denis Rouzaud
15e4903890
sipify improvements
...
* add demo file and start a short doc
* fix some annotations
* do not display hidden line (SIP_SKIP, delete)
* use a defined var for SIP_SKIP
* remove constructor definition in header
* fix comment after method definition in header
* add a test for sipify itself
2017-03-30 15:13:01 +02:00
Denis Rouzaud
21be025d25
use sip includes rather than listing header to generate all sip files
2017-03-30 15:13:01 +02:00