[Qgis-developer] IMPORTANT NOTICE to all python plugin authors

John C. Tull jctull at gmail.com
Thu Apr 8 11:33:24 EDT 2010


+1

Otherwise, new developers will continue to create from the template using the deprecated signal.

Regards,
John

On Apr 8, 2010, at 1:11 AM, Andreas Neumann wrote:

> Hi Boris,
> 
> Thanks for the notice.
> 
> Maybe this is worth a short blog entry on the qgis page? It would also be
> important to fix wiki resources or sample plugins that people use to get
> started with. I believe there is a plugin generators somewhere - from
> Gary? This should be checked as well.
> 
> Thanks again and best greetings,
> Andreas
> 
> 
> On Wed, April 7, 2010 8:34 pm, Borys Jurgiel wrote:
>> Dear Authors,
>> 
>> Due to removed qt3 support all plugin actions MUST send
>> a triggered() signal instead of the depreciated activated() one.
>> 
>> Please update your plugins by renaming the catched signal.
>> There is the list of affected plugins I can find below.
>> For more details, see http://trac.osgeo.org/qgis/ticket/1743
>> 
>> ---------------------------
>> 
>> 
>> 
>> 
>> autosave/main.py:
>> QObject.connect(self.action,SIGNAL("activated()"),self.showSettings)
>> 
>> cadtools/tools/arcintersectiontool.py:
>> QObject.connect(self.act_intersect_arc,  SIGNAL("activated()"),
>> self.showDialog)
>> cadtools/tools/arcintersectiontool.py:
>> QObject.connect(self.act_s2v,  SIGNAL("activated()"),  self.s2v)
>> cadtools/tools/lineintersectiontool.py:
>> QObject.connect(self.act_s2s,  SIGNAL("activated()"),  self.s2s)
>> cadtools/tools/lineintersectiontool.py:
>> QObject.connect(self.act_intersect_point,  SIGNAL("activated()"),
>> self.intersect_point)
>> cadtools/tools/lineintersectiontool.py:
>> QObject.connect(self.act_intersect_line,  SIGNAL("activated()"),
>> self.intersect_line)
>> cadtools/tools/orthogonaldigitizertool.py:
>> QObject.connect(self.act_ortho,  SIGNAL("activated()"),
>> self.orthodigitize)
>> cadtools/tools/rectangularpointstool.py:
>> QObject.connect(self.act_rectpoints,  SIGNAL("activated()"),
>> self.showDialog)
>> cadtools/tools/rectangularpointstool.py:
>> QObject.connect(self.act_selectlinesegment,  SIGNAL("activated()"),
>> self.selectlinesegment)
>> cadtools/tools/orthogonaltraversetool.py:
>> QObject.connect(self.act_showDialog,  SIGNAL("activated()"),
>> self.showDialog)
>> cadtools/tools/orthogonaltraversetool.py:
>> QObject.connect(self.act_select2vertex,  SIGNAL("activated()"),
>> self.select2vertex)
>> cadtools/tools/orthoelementsonsegmenttool.py:
>> QObject.connect(self.act_ortholineandpoint,  SIGNAL("activated()"),
>> self.ortholineandpoint)
>> cadtools/tools/orthoelementsonsegmenttool.py:
>> QObject.connect(self.act_selectvertexandline,  SIGNAL("activated()"),
>> self.selectvertexandline)
>> 
>> cartogram/Cartogram.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> cartogram/Cartogram.py:    QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> cataloginpecreate/cataloginpe_qg.py:
>> QtCore.QObject.connect(self.action, QtCore.SIGNAL("activated()"),
>> self.run)
>> 
>> clickfu/clickFuUtils.py:
>> QObject.connect(self,SIGNAL("activated()"),self.doit)
>> 
>> composer_plugin/composerplugin.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> contour/contour.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> dpsimplify/dpsimplify.py:    QObject.connect( self.actionRun, SIGNAL(
>> "activated()" ), self.run )
>> dpsimplify/dpsimplify.py:    QObject.connect( self.actionAbout, SIGNAL(
>> "activated()" ), self.about )
>> 
>> dumpfield/dumpfield.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.dumpfield)
>> dumpfield/dumpfield.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.loadtofield)
>> 
>> elevation/Elevation.py:		QObject.connect(self.obtainAction,
>> SIGNAL("activated()"), self.obtain)
>> elevation/Elevation.py:		QObject.connect(self.aboutAction,
>> SIGNAL("activated()"), self.about)
>> 
>> findbyattr/Findbyattr.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> GdalTools/tools/doClipper.py:      self.connect(self.clipper,
>> SIGNAL("deactivated()"), self.pauseClipping)
>> GdalTools/tools/doClipper.py:      self.emit(SIGNAL("deactivated()"))
>> 
>> GeoCoding/GeoCoding.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.geocode)
>> GeoCoding/GeoCoding.py:        QObject.connect(self.configAction,
>> SIGNAL("activated()"), self.config)
>> GeoCoding/GeoCoding.py:        QObject.connect(self.reverseAction,
>> SIGNAL("activated()"), self.reverse)
>> GeoCoding/GeoCoding.py:        QObject.connect(self.aboutAction,
>> SIGNAL("activated()"), self.about)
>> 
>> geofeeds/FeedPlugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> geoprocessing/geoprocessing.py:
>> QObject.connect(self.actionGeoprocessing, SIGNAL("activated()"),
>> self.run_geoprocessing_ctrl)
>> 
>> ghydraulic/ghydraulicplugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> HomeRange_plugin/HRplugin_main.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), lambda method="all": self.showInterface(method))
>> HomeRange_plugin/HRplugin_main.py:      QObject.connect(getattr(self,
>> "action" + k), SIGNAL("activated()"),  lambda method=k:
>> self.showInterface(method))
>> 
>> image_clipper/imageclipper.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.dlgImageClipper)
>> 
>> image_cutter/image_cutter.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.dlgImageCutter)
>> image_cutter/image_cutter.py:        QObject.connect(self.helpAction,
>> SIGNAL("activated()"), self.helpWindow)
>> 
>> imagemap_plugin/imagemapplugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> imgboundary/imgboundary_qg.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> infotool/info.py:    QObject.connect(self.action, SIGNAL("activated()"),
>> self.inforun)
>> infotool/info.py:    QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> infotool/info.py:    QObject.connect(self.confaction,
>> SIGNAL("activated()"), self.confrun)
>> 
>> joinlines/joinlines.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> manageR/pluginManager.py:                    SIGNAL("activated()"),
>> self.callerlist[-1])
>> manageR/plugin.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> MapSheetAutoGeoRef/mapsheetgeoref.py:		QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> mergeshapes/mergeshapes.py:    QObject.connect( self.actionRun, SIGNAL(
>> "activated()" ), self.run )
>> mergeshapes/mergeshapes.py:    QObject.connect( self.actionAbout, SIGNAL(
>> "activated()" ), self.about )
>> 
>> metaedit/metaeditTool.py:
>> QObject.connect(self.comboBoxFileLayer,SIGNAL("activated(int)"),self.layer_selected)
>> metaedit/metaedit.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> mirrormap/mirrormap.py:        QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> mirrormap/mirrormap.py:        QObject.connect(self.mirrormapaction,
>> SIGNAL("activated()"), self.mirrormaprun)
>> mirrormap/mirrormap.py:        QObject.connect(self.addrasteraction,
>> SIGNAL("activated()"), self.addRasterLayer)
>> mirrormap/mirrormap.py:        QObject.connect(self.addograction,
>> SIGNAL("activated()"), self.addVectorLayer)
>> mirrormap/mirrormap.py:        QObject.connect(self.adddbaction,
>> SIGNAL("activated()"), self.helprun)
>> mirrormap/mirrormap.py:        QObject.connect(self.addwmsaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> multiqml/plugin.py:		QObject.connect( self.actionRun, SIGNAL(
>> "activated()" ), self.run )
>> multiqml/plugin.py:		QObject.connect( self.actionAbout, SIGNAL(
>> "activated()" ), self.about )
>> 
>> numericalVertexEdit/numericalvertexedit.py:
>> QObject.connect(self.action, SIGNAL("activated()"), self.run)
>> 
>> OGR2Layers/ogr2Layers.py:		QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> openaddresses_converter/openaddressesconverter.py:
>> QObject.connect(self.action, SIGNAL("activated()"), self.run)
>> 
>> osmpoly_export/polygenerator.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> photo2shape/photo2shape.py:    QObject.connect( self.actionRun, SIGNAL(
>> "activated()" ), self.run )
>> photo2shape/photo2shape.py:    QObject.connect( self.actionAbout, SIGNAL(
>> "activated()" ), self.about )
>> 
>> PostGisTools/PostGisTools.py:        QObject.connect(self.toolfileAction,
>> SIGNAL("activated()"),self.setToolsFile )
>> PostGisTools/PostGisTools.py:        QObject.connect(self.aboutAction,
>> SIGNAL("activated()"),self.about )
>> PostGisTools/PostGisTools.py:
>> QObject.connect(self.actionlist[-1], SIGNAL("activated()"),
>> self.callerlist[-1])
>> 
>> postgps/postgps.py:    QObject.connect(self.action1,
>> SIGNAL("activated()"), self.run)
>> 
>> qgisrest/qgisrest.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> qgisrest/qgisrest.py:        QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> qgsAffine/qgsAffine.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> qgsAzimuth/qgsAzimuth.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> quantumnik/quantumnik.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.toggle)
>> quantumnik/quantumnik.py:        QObject.connect(self.action4,
>> SIGNAL("activated()"), self.view_xml)
>> quantumnik/quantumnik.py:        QObject.connect(self.action3,
>> SIGNAL("activated()"), self.save_xml)
>> quantumnik/quantumnik.py:        QObject.connect(self.action5,
>> SIGNAL("activated()"), self.load_xml)
>> quantumnik/quantumnik.py:        QObject.connect(self.action6,
>> SIGNAL("activated()"), self.load_mml)
>> quantumnik/quantumnik.py:        QObject.connect(self.action7,
>> SIGNAL("activated()"),
>> quantumnik/quantumnik.py:        QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> quicksaveqml/quicksaveqml.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> rastercalc/rasterlang.py:    QObject.connect( self.action, SIGNAL(
>> "activated()" ), self.run )
>> rastercalc/rastercalcdialog.py:    QObject.connect( self.cmbPresets,
>> SIGNAL( "activated( QString )" ), self.insertPreset )
>> rastercalc/rastercalc.py:    QObject.connect( self.actionRun, SIGNAL(
>> "activated()" ), self.run )
>> rastercalc/rastercalc.py:    QObject.connect( self.actionAbout, SIGNAL(
>> "activated()" ), self.about )
>> 
>> rasterCatalog/rastercatalogplugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> rasterinfo/rasterfileinfo.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> rasterinfo/rasterfileinfo.py:    QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> rasterlang/main.py:
>> QObject.connect(self.action,SIGNAL("activated()"),self.run)
>> rasterlang2/main.py:
>> QObject.connect(self.action,SIGNAL("activated()"),self.run)
>> 
>> refmap/refmap.py:        QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> refmap/refmap.py:        QObject.connect(self.refmapaction,
>> SIGNAL("activated()"), self.refmaprun)
>> 
>> rgb/Rgb.py:        QObject.connect(self.action, SIGNAL("activated()"),
>> self.run)
>> 
>> selectplus/selectionTools.py:        QObject.connect(self,
>> SIGNAL("activated()"), self.doit)
>> 
>> shapefile_splitter/shapefile_splitter.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> testplugin/plugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> testplugingl/plugin.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> 
>> threading_demo/threading_demo.py:        QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> threading_demo/threading_demo.py:        QObject.connect(self.helpaction,
>> SIGNAL("activated()"), self.helprun)
>> 
>> VectorFieldRenderer/VectorFieldRendererController.py:
>> QObject.connect(action1,SIGNAL("activated()"), self.autoRescale )
>> VectorFieldRenderer/VectorFieldRendererController.py:
>> QObject.connect(action2,SIGNAL("activated()"), self.enlarge )
>> VectorFieldRenderer/VectorFieldRendererController.py:
>> QObject.connect(action3,SIGNAL("activated()"), self.shrink )
>> VectorFieldRenderer/VectorFieldRendererController.py:
>> QObject.connect(action4,SIGNAL("activated()"), self.setScaleBoxOptions )
>> VectorFieldRenderer/VectorFieldRendererController.py:
>> QObject.connect(action5,SIGNAL("activated()"), self.showHelp )
>> 
>> wps/qgswps.py:    QObject.connect(self.action, SIGNAL("activated()"),
>> self.run)
>> 
>> ziplayers/ziplayers_qg.py:    QtCore.QObject.connect(self.action,
>> QtCore.SIGNAL("activated()"), self.run)
>> 
>> zoom_to_point/zoomtopoint.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> zoom_to_point_BB/zoomtopoint.py:    QObject.connect(self.action,
>> SIGNAL("activated()"), self.run)
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> 
> 
> 
> -- 
> Andreas Neumann
> http://www.carto.net/neumann/
> http://www.svgopen.org/
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list