[VCS] annotation widget

Andreas Pakulat apaku at gmx.de
Sat Nov 17 21:00:53 UTC 2007


On 18.11.07 07:29:23, Hamish Rodda wrote:
> On Sun, 18 Nov 2007 05:42:30 am Andreas Pakulat wrote:
> > Only nearly. The problemreporter has a relatively easy job here, because
> > all it needs is a pixmap thats always the same. However for annotation
> > we need to set a couple of things for every line:
> >
> > - background color
> > - text
> > - tooltip
> >
> > Thats the least, with background color being more or less optional
> > (though that really helps when reading the annotated file).
> >
> > I guess we have to work with the Kate devs towards a new interface. I'll
> > start this once KDE 4.0 is tagged.
> 
> For now, you can have custom background colors using the abstract highlighting 
> interface, and show the author names in a separate dock widget with the 
> corresponding color.

I wasn't really speaking of coloring the whole line, just the special
revision label.

> I've wanted to design a custom widget display api for KTE but not yet figured 
> out the best way to do it, maybe for 4.1.

You mean custom widget for the border? Isn't that a bit problematic if
the widget is large? For my personal use-case a plain text+color+tooltip
that kate renders itself would be enough. Also a widget-based approach
would be much more complicated wrt. memory usage, i.e. make sure only
widgets that are actually shown are created...

Andreas

-- 
You too can wear a nose mitten.




More information about the KDevelop-devel mailing list