Re: [Qgis-developer] Access to Run Feature Action tool from API

2013-11-14 Thread Thomas Colley
Hi Denis That's excellent, just what I needed! Thanks again for your help Tom From: Denis Rouzaud [mailto:denis.rouz...@gmail.com] Sent: 13 November 2013 07:11 To: Thomas Colley; qgis-dev Subject: Re: [Qgis-developer] Access to Run Feature Action tool from API Hi Thomas

Re: [Qgis-developer] Access to Run Feature Action tool from API

2013-11-12 Thread Denis Rouzaud
ember 2013 13:59 *To:* Thomas Colley; qgis-developer@lists.osgeo.org *Subject:* Re: [Qgis-developer] Access to Run Feature Action tool from API Ah, ok, sorry. Not sure you can actually set a predefined map tool using the API since mFeatureAction is defined in a private class Tools [0]. I woul

Re: [Qgis-developer] Access to Run Feature Action tool from API

2013-11-11 Thread Denis Rouzaud
s makes sense Thanks again Tom *From:*Denis Rouzaud [mailto:denis.rouz...@gmail.com] *Sent:* 11 November 2013 12:37 *To:* Thomas Colley; qgis-developer@lists.osgeo.org *Subject:* Re: [Qgis-developer] Access to Run Feature Action tool from API Hi Thomas, This should do the job: layer.actions().

Re: [Qgis-developer] Access to Run Feature Action tool from API

2013-11-11 Thread Thomas Colley
-developer] Access to Run Feature Action tool from API Hi Thomas, This should do the job: layer.actions().doAction( idx, feature ) QgsAttributeAction is a registry, and you can run/add/remove action from it. http://qgis.org/api/classQgsAttributeAction.html Cheers, Denis On 11/11/2013 11:12

Re: [Qgis-developer] Access to Run Feature Action tool from API

2013-11-11 Thread Denis Rouzaud
Hi Thomas, This should do the job: layer.actions().doAction( idx, feature ) QgsAttributeAction is a registry, and you can run/add/remove action from it. http://qgis.org/api/classQgsAttributeAction.html Cheers, Denis On 11/11/2013 11:12 AM, Thomas Colley wrote: Hi Everyone Is there a way t

[Qgis-developer] Access to Run Feature Action tool from API

2013-11-11 Thread Thomas Colley
Hi Everyone Is there a way to access the Run Feature Action tool from the API? Most other tools can be switched with qgis.utils.iface.action...().trigger() but I can't see any reference to the action tool in there. In the API I can see actionFeatureAction under QgisApp and QgisAppInterface bu