[Marble-devel] QGraphicsView Overlay for marble

Bastian Holst bastianholst at gmx.de
Tue Mar 24 21:52:29 CET 2009

Hi Andrew

> Just for reference ( and in case you don't like looking at diffs ) the
> chain of constructors i was talking about is: MarbleWidget -> MarbleMap
> -> MarbleModel -> LayerManager -> PluginManager.
> ... this, as you all know, seems a bit unnecessary. Any alternative
> solution would need to alter the Architecture of marble in some way, the
> simplest way to do this i think might be to Change the PluginManager
> into a Singleton Class. This might even be able to maintain binary
> compatibility, which the diff attached clearly does not.
Making the PluginManager a singleton probably isn't a good idea. An 
application theoretically can have more than one MarbleWidget in it. Remember, 
Marble isn't only an application, but also library for other applications. 
Perhaps you want to show multiple places of the earth at the same time. Making 
the PluginManager a singleton will possibly break that feature. I'm sorry that 
I havn't got another idea how to solve this problem.

Best Regards
10° 13' 41"O,  54° 24' 38"N

More information about the Marble-devel mailing list