Jump to declaration UI

Vladimir Prus ghost at cs.msu.su
Thu May 8 04:58:54 UTC 2008


On Thursday 08 May 2008 02:08:50 David Nolden wrote:
> On Wednesday 07 May 2008 19:53:51 Vladimir Prus wrote:
> > On Wednesday 07 May 2008 21:00:18 Andreas Pakulat wrote:
> > > On 07.05.08 19:06:07, Vladimir Prus wrote:
> > > > Eclipse has a slick UI for jump to declaration -- if you press Ctrl,
> > > > and hover a mouse over a symbol, it turns into a hyperlink, and
> > > > clicking it gets you to the symbol. This seems hugely convenientl, and
> > > > I'd like to implement same. Objections?
> > >
> > > +1 from me, even though I probably won't use it much, its probably very
> > > useful for non-keyboard-centric people.
> >
> > Now with everybody in favour, I guess I get to figure how to make Kate do
> > what I want :-)
> >
> > - Volodya
> 
> Perfectly fine with me. All the needed code is available in 
> quickopenplugin.cpp, except for the kate part. While you're at it, you could 
> also implement a tooltip ;). I've looked at your activetooltip thing, but did 
> not intuitively know how to re-use it. 

Hmm, you'd connect to needTextHint signal, and in response to it, create an instance
of class derived from ActiveToolTip. Are there any specific complexities?

> Also I think it would be cool if the  
> debugger tooltip and language tooltip would be within the same tooltip window 
> when the debugger is active.

I'm not sure that will not overload the tooltip beyond reasonable bounds :-)

> Btw. I think the needed stuff is ther within kate, I think it's possible to 
> assign a cursor to smart-ranges, so you need to assign the "hand" cursor to 
> all use-ranges when CTRL is pressed, and unassign it when the key is 
> released.

But I don't see how to handle clicks, unfortunately.

- Volodya




More information about the KDevelop-devel mailing list