Setting default set of views for area

Vladimir Prus ghost at cs.msu.su
Mon Apr 28 17:44:54 UTC 2008


On Monday 28 April 2008 21:19:52 Andreas Pakulat wrote:
> On 28.04.08 14:36:04, Vladimir Prus wrote:
> > 
> > Right now, in SVN head, KDevelop starts up with two areas, "Code" and "Debug",
> > and you can switch between them. Both areas have zero toolviews, and you
> > have to use "View->Add tool view" to add whatever you like, but once you
> > do that, the selection is persisted. This works for single main window
> > at the moment.
> > 
> > Now, I want the "Code" and "Debug" area to have some default views. Now,
> > the areas are created in kdevplatform/shell/uicontroller.cpp, which is
> > nasty. Adding a list of default views there is beyond my nastiness tolerance.
> > How about creating the areas and setting default set of view in code, inside
> > kdevelop/src/main.cpp? I don't think we need any generic area registration
> > mechanism for the two default areas that the KDevelop-the-application will
> > always create. Thoughts?
> 
> Why not using the same mechanism that will later be used to allow
> plugins to supply new area's? Its easier to adapt them later on and
> probably also easier to find them in case we ship more than those two at
> some point - because all are in one place.

Do you recall -- was it me who said "let's just use KTrader, it's easy". I take it back :-)
Seriously, I'll look into that.

- Volodya





More information about the KDevelop-devel mailing list