[Qgis-developer] Re: PyQGIS Auto-completion and Call Tips in Eric Python Editor

Larry Shaffer larrys at dakotacarto.com
Sun Apr 8 23:20:38 EDT 2012


On Sun, Apr 8, 2012 at 7:48 PM, Larry Shaffer <larrys at dakotacarto.com>wrote:

> Hi,
>
> I've successfully generated QScintilla2 API files for the QGIS Python
> bindings and utility modules [0]. If you use the Eric4/5 Python editor (or
> another based on QScintilla2), you may be interested in installing and
> compiling these APIs.
>

Seems a better approach, instead of changing SIPMacros.cmake, would be in
python/CMakeLists.txt [0]:

--- python/CMakeLists_orig.txt    2012-02-19 13:41:41.000000000 -0700
+++ python/CMakeLists.txt    2012-04-08 21:00:16.000000000 -0600
@@ -54,0 +55 @@
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a
${CMAKE_BINARY_DIR}/python/qgis.core.api)
@@ -68,0 +70 @@
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a
${CMAKE_BINARY_DIR}/python/qgis.gui.api)
@@ -79,0 +82 @@
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a
${CMAKE_BINARY_DIR}/python/qgis.analysis.api)

This worked fine on compile, creating the same output as the
SIPMacros.cmake edit. Each SIP_EXTRA_OPTIONS could be wrapped with a
conditional based on a compile option for generating the APIs.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

[0] http://dl.dropbox.com/u/4058089/qgis/CMakeLists.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120408/cc594f3c/attachment.html


More information about the Qgis-developer mailing list