[Qgis-developer] question about location of providerregistry and
pluginregistry
Tim Sutton
tim at linfiniti.com
Tue Feb 20 05:45:38 EST 2007
Hi Marco
Its no doubt because plugin registry depends on gui classes since I
recall it passes a copy of qgisapp pointer to the plugin.
Regards
Tim
2007/2/19, Marco Hugentobler <marco.hugentobler at karto.baug.ethz.ch>:
> Hi,
>
> In svn head, qgsproviderregistry.h is in core/ directory and
> qgspluginregistry.h in app/ directory. I wanted to ask what the reason for
> this is.
> Backgournd of my question is that I'm trying to restore the diagram overlay
> from project file. For this, QgsVectorLayer needs to have a pointer to the
> diagram plugin (in case it is loaded). From a pure technical point of view
> this is similar to QgsVectorLayer using QgsProviderRegistry to restore a data
> provider from project file. But because plugin registry is in app, vector
> layer is not allowed to use it, as code in core should not depend on code in
> app.
> Is it possible that QgsPluginRegistry could be in core? Or is there a more
> intelligent way of getting the plugin pointer?
>
> Thanks,
> Marco
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
--
--
Tim Sutton
Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net
More information about the Qgis-developer
mailing list