Variables view: trimmable item

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Jun 7 17:59:06 UTC 2005


On Tuesday 07 June 2005 16:02, Vladimir Prus wrote:
> Hello,
> I have a question about internals of the 'TrimmableItem' class,
> used a lot in variables view codes.
>
> What is the purpose of the class? It looks that the idea is that when
> stepping though the code, some local variables can go out of scope. In that
> case, they will be "trimmed".
Yes, that's right. I changed the name to 'prune' because I thought it was 
clearer.

> However, when stepping though the code the "info locals" command is issued
> at each step. So, why don't we simply clean all items, and repopulate the
> view, instead of "trimming"?
You need to be able to highlight in red any value the was changed since when 
it was last fetched.

-- Richard




More information about the KDevelop-devel mailing list