Re: [Qgis-developer] Symbol properties dialog from plugin
> Date: Thu, 22 Dec 2011 07:50:11 +0100 > From: Denis Rouzaud > Subject: Re: [Qgis-developer] Symbol properties dialog from plugin > To: qgis-developer@lists.osgeo.org > Message-ID: <4ef2d323.4030...@gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > ... > > BTW, I just applied to this list, and I don't really know how to answer > emails as I checked the daily digest option. Does anyone has a tip? Yes, it is quite painful. This is what I do: - Make sure my mail client is set up to put this in front of each line of the email I'm replying to: "> " - Click reply. - Delete all the messages I'm not replying to. - Particularly if I'm replying to a long thread, trim some of it away if it seems like a good idea. - Replace the Subject line with the one from the message I am replying to. - Add the person I am replying to as a Cc (and maybe other people in the thread). Alister ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Symbol properties dialog from plugin
Hi Denis, The QgsRubberband was never meant as a full-featured rendering of features. It was made to highlight features (e.g. selected features) or to quickly draw an overlay. If you want full-featured rendering you can create a separate layer, or a temporary MemoryLayer. Andreas On Thu, 22 Dec 2011 07:50:11 +0100, Denis Rouzaud wrote: Thanks Marco, that worked! I first create a symbol using self.symbol = QgsLineSymbolV2() And then I can edit it using QgsSymbolV2PropertiesDialog(self.symbol,self.layer).exec_() There is only one concern, the rubber band does not accept a full symbol, only a width and a color. Is there a reason for that? BTW, I just applied to this list, and I don't really know how to answer emails as I checked the daily digest option. Does anyone has a tip? Thanks again, Greetings, Denis Hi Denis You can use the class QgsSymbolV2PropertiesDialog and pass existing symbol and vector layer in constructor. Afaik the symbol will be changed directly, however it is possible to make a backup with clone(). Regards, Marco -- -- Andreas Neumann Böschacherstrasse 10A 8624 Grüt (Gossau ZH) Switzerland ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Symbol properties dialog from plugin
Thanks Marco, that worked! I first create a symbol using self.symbol = QgsLineSymbolV2() And then I can edit it using QgsSymbolV2PropertiesDialog(self.symbol,self.layer).exec_() There is only one concern, the rubber band does not accept a full symbol, only a width and a color. Is there a reason for that? BTW, I just applied to this list, and I don't really know how to answer emails as I checked the daily digest option. Does anyone has a tip? Thanks again, Greetings, Denis Hi Denis You can use the class QgsSymbolV2PropertiesDialog and pass existing symbol and vector layer in constructor. Afaik the symbol will be changed directly, however it is possible to make a backup with clone(). Regards, Marco ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Symbol properties dialog from plugin
Hi Denis You can use the class QgsSymbolV2PropertiesDialog and pass existing symbol and vector layer in constructor. Afaik the symbol will be changed directly, however it is possible to make a backup with clone(). Regards, Marco On 21.12.2011 13:40, Denis Rouzaud wrote: Hi all, I wonder if there is a way of launching the symbol properties dialog (the one in the right of this image http://wiki.gfoss.it/images/Symbol_properties_random.jpg ) from a python script. My idea is to allow the user to edit a symbol for a mRubberBand. I would launch a method symbolDialog with my current symbol as argument and get the new edited one. Is there a way of doing this? Or, is it stupid to do so and what would be the other way around? Thanks a lot. Greetings, Denis ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux& Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Symbol properties dialog from plugin
Hi all, I wonder if there is a way of launching the symbol properties dialog (the one in the right of this image http://wiki.gfoss.it/images/Symbol_properties_random.jpg ) from a python script. My idea is to allow the user to edit a symbol for a mRubberBand. I would launch a method symbolDialog with my current symbol as argument and get the new edited one. Is there a way of doing this? Or, is it stupid to do so and what would be the other way around? Thanks a lot. Greetings, Denis ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer