Re: [Qgis-developer] Building plugin for Print Composer

2015-08-14 Thread Vincent Mora
Le 08/08/2015 11:19, Nyall Dawson a écrit : On 7 Aug 2015 6:58 pm, Vincent Mora vincent.m...@oslandia.com mailto:vincent.m...@oslandia.com wrote: Hi all, I need to add graphs generated by a plugin to compositions. I'm considering to develop a PluginComposerItem in the same spirit as

Re: [Qgis-developer] Building plugin for Print Composer

2015-08-14 Thread Nyall Dawson
On 14 Aug 2015 23:41, Vincent Mora vincent.m...@oslandia.com wrote: Le 08/08/2015 11:19, Nyall Dawson a écrit : On 7 Aug 2015 6:58 pm, Vincent Mora vincent.m...@oslandia.com wrote: Hi all, I need to add graphs generated by a plugin to compositions. I'm considering to develop a

Re: [Qgis-developer] Building plugin for Print Composer

2015-08-12 Thread G. Allegri
We have talked a lot with Nyall about this. It was a requirement for a work I was developing some months ago (it's what I was describing some emails ago in this thead). I suppose the work Nyall is talking about is the deep refactoring of the Composer which will converge in the Report engine (QGIS

Re: [Qgis-developer] Building plugin for Print Composer

2015-08-08 Thread Nyall Dawson
On 7 Aug 2015 6:58 pm, Vincent Mora vincent.m...@oslandia.com wrote: Hi all, I need to add graphs generated by a plugin to compositions. I'm considering to develop a PluginComposerItem in the same spirit as PluginLayers, adding/removing a button in the toolbar when the plugin is

Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread G. Allegri
The suggestion from John is exactly what we did too. And we also built a chart composer... It would be great to have the means to know what other teams are working to. It would save a lor of time and money and, probably, get better software from a shared effort ;) giovanni Il 22/giu/2015 19:31,

Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread G. Allegri
You can act on it but you can't custom gui widgets to the Composer interface. I cannot check the code right know. I listen to a specific (existing) composition opening but if I remember correctly you can watch the Composer opening too. Il 22/giu/2015 17:19, Jakob Lanstorp jlanst...@gmail.com ha

[Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread Jakob Lanstorp
Is it possibly to build a Python plugin minded for the print composer alone? -Need to build a plugin with a new button inside print composer that lists all labels in the composer in a new dialog for editing. This would be a tool for easy handling of complex header and footers in the layout for

Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread G. Allegri
Hi Jacob. For the moment it isn't possible to extend the Composer with custom plugins. It's sonething that will be discussed for the next Report Engine (QGIS 3.0) I've built a Python plugin that uses the composer widgets (composition, items, etc.) within a custom interface but you can only use

Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread Jakob Lanstorp
Hi Giovanni, thanks for the update. Another solution would be to catch the event when a user starts an existing print composer. Cannot in doc for the pyqgis API find anything for this. Anyone who know is one can listens for a print composer to startup by the user and act on it. - Jakob

Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread John Gitau
Hi Jakob, A workaround would be to have a plugin that creates a new composer view object: *custom_composer = self.iface.createNewComposer(My Composer)* Then get a reference to the main window in the composer view: *main_window = custom_composer.composerWindow()* Then you can either add a new