[apaku at gmx.de: Re: KDE/kdevplatform]

David Nolden david.nolden.kdevelop at art-master.de
Wed May 20 18:52:58 UTC 2009


Am Mittwoch 20 Mai 2009 18:09:22 schrieb Andreas Pakulat:
> On 20.05.09 17:26:33, David Nolden wrote:
> > Am Mittwoch 20 Mai 2009 17:13:53 schrieb Andreas Pakulat:
> > > The API however should be on Sublime::Area as far as I understood, so
> > > plugins would need to do
> > >
> > > uiController()->activeMainWindow()->area()->findToolView()
> > >
> > > Oh and why are we supplying raise-support? After all thats already
> > > available by calling View::requestRaise(); So in fact I think we should
> > > have findToolView( bool create = false ) on Sublime::Area and plugins
> > > can then do
> > >
> > > ...findToolView( true )->requestRaise();
> > >
> > > Or just get the toolview if they want just that.
> > >
> > > Andreas
> >
> > But I read comments in the headers that said "Linking to sublime is
> > forbidden", or was that comment deprecated?
>
> Where? we need to remove them, but I can't see anything in sublime sources.
> Linking to shell is forbidden, but sublime is just fine - IMHO.
>
> Andreas
The last comment at the bottom in iuicontroller.h.

Hmm well, then maybe it would be better to change activeMainWindow to return a 
Sublime::MainWindow, and then putting the API in there.

Although it is still convenient the way it's now, as it's exactly what 99% of 
all plugins need.

Greetings, David






More information about the KDevelop-devel mailing list