[Qgis-developer] General questions & multiple map canvases

humarco marco.hugentobler at karto.baug.ethz.ch
Mon May 15 10:24:56 EDT 2006


> > > > > Each canvas should have its own legend instance. We should swap out
> > > > > th elegend control with which ever canvase is currently in focus.
> >
> > One legend per canvas is reasonable. Serialising and swapping legend
> > settings would be to much overhead.
> > For third party apps, a legend interface would be good (as suggested by
> > larsl on IRC).
>
> The question is if such legend interface will be used then how should
> it look like - what functionality will be mandatory, which optional...

Yes, difficult design questions.

> Essential question is how to interact between map canvas and legend -
> i.e. whether every map canvas must have its legend (even if legend
> isn't a widget, just a class derived from the legend iface) or map
> canvas will work without interfacing the legend.

Ideally it would test if legend object is a 0 pointer and work without it. But 
i think currently the legend controls the canvas so i don't know how easy the 
separation is in practice.


> Martin
>
> > Marco
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list