Extending IToolViewFactory to be able to save state information

Vladimir Prus ghost at cs.msu.su
Sat Jun 28 08:59:59 UTC 2008


On Friday 27 June 2008 01:10:51 Andreas Pakulat wrote:
> Hi,
> 
> currently when a toolview wants to save some state thats pretty much
> impossible because there can be n toolviews and the last one overwrites
> the stuff from the first one as the toolviews don't know about each
> other.
> 
> My idea to help with this is providing something like
> 
> void saveState( KConfigGroup& );
> void restoreState( KConfigGroup& );

This signature can't quite work -- one factory can create ten views, and you don't
pass the view anywhere. Can we derive the view from some interface class?

- Volodya




More information about the KDevelop-devel mailing list