Hi Larry On Mon, Apr 9, 2012 at 5:20 AM, Larry Shaffer <[email protected]> wrote: > On Sun, Apr 8, 2012 at 7:48 PM, Larry Shaffer <[email protected]> > 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. >
Two quick comments: 1) Could you submit your patch via github? If it is a cmake conditional compilation I see no reason to exclude it from master - others may have a different opinion. 2) What I would really *love* is to have QGIS api completion (and other standard python modules if it is easy to achieve) in the built in python console that is activeated from the QGIS plugins menu. I often like to demo stuff to people using the python console and always flap around trying to remember syntax. Obviously this would add a qsctintilla dependency to QGIS core - how do others feel about this? Given the other work you are busy with that dependency is probably coming anyway.... Regards Tim > > Regards, > > Larry Shaffer > Dakota Cartography > Black Hills, South Dakota > > [0] http://dl.dropbox.com/u/4058089/qgis/CMakeLists.txt > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) ============================================== Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net ============================================== _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
