Code-Completion

Dominik Haumann dhdev at gmx.de
Tue May 2 10:47:03 UTC 2006


On Monday 01 May 2006 23:52, Jens Dagerbo wrote:
> On Monday 01 May 2006 19:17, David Nolden wrote:
> > Hi! I've worked a lot on it and now when I look at it, i've completely
> > rewritten the vital parts of the cpp-code-completion. I've got it now
> > working very well with templates, even STL. It isn't completely ready
> > yet and still needs some polish..
>
> Sounds very cool. Did you manage to acquire SVN access?
>
> > but there are two other thing's I'd like to
> > ask about.
> > I've reactivated the type-display as prefix in the
> > auto-completion-box(for some reason it was disabled), and I use to show
> > the types completely template-processed. The problem is that it can
> > really get a lot of text(so one can lose the overview), and that the
> > there's a lot more to compute then until now(which takes especially
> > long when the persistent repository is used).
> >
> > So first I'd like to know if it is somehow possible to specialize the
> > popup-widget so I can vary the fonts to make the whole thing look
> > nicer, similar to the way I did it with the class-view and navigator by
> > just overriding the item-widget.. I couldn't find anything about that.
>
> I haven't really used the CodeCompletionInterface myself, but since the
> completionbox is implemented in the editor plugin I doubt you will find a
> way to changes to it.

Not possible.
Only idea: Get the pixel coordinates of the current cursor with 
ViewCursorInterface::cursorCoordinates(), and write your own code 
completion box.

--
Dominik




More information about the KDevelop-devel mailing list