How to get a pointer for mainwindow?

Andreas Pakulat apaku at gmx.de
Mon Mar 12 12:42:40 UTC 2007


On 12.03.07 05:22:04, dukju ahn wrote:
> 2007/3/12, Alexander Dymo <dymo at ukrpost.ua>:
> > On Monday 12 March 2007 09:55, dukju ahn wrote:
> > > Plugins can have access to ICore, and through ICore, IUiController
> > > can be accessed. But activeMainWindow() or defaultMainWindow()
> > > only exist in UiController, which the plugins does not have access.z
> > >
> > Yes, those methods are not exposed in IUiController. Could you please
> > tell me why do you need mainwindows so we can decide whether to
> > expose that stuff or not.
> >
> 
> The reason is that
> contextMenu( KMenu *menu, const Context *context )
> signal is emitted at KDevelop::MainWindow

As Alexander said in the rest of his post: We don't know yet wether this
will happen or wether we will do something else for context menu
integration. So for now you can just skip context menu stuff in your
plugin.

Andreas

-- 
You look tired.




More information about the KDevelop-devel mailing list