[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 58970] don't collapse structure tree on save or document
From: Jeroen Wijnhout <Jeroen.Wijnhout () kdemail ! net>
Date: 2004-01-30 12:30:19
Message-ID: 20040130123019.3818.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=58970
------- Additional Comments From Jeroen.Wijnhout@kdemail.net 2004-01-30 13:30 -------
Subject: Re: don't collapse structure tree on save or document change
On Wednesday 28 January 2004 12:07, you wrote:
> this does not work yet (at least as how I understand the bug).
>
> When you save a changed file, I would like the expansion status to be
> _preserved_ for nodes that didn't change. I.e. for example, expand chapter
> 1 and some sections within it, but don't expand chapter 2.
Yes, I did not meant to say that the wish was fully implemented. You can only
set the default expansion level (Settings->Configure Kile).
> Of course, added and removed nodes cannot be respected that way, but that
> is kind of obvious. I guess you recreate the whole tree when one saves the
> document, and that this makes preserving the status difficult. What about
> saving the nodes in an array like
<snip>
> ... and then use this after you recreated the tree, to restore the
> expansion status of each node - if it still exists. If it doesn't, just
> ignore it (and perhaps use the default expansion level).
>
>
> Would that be possible?
It would be possible I guess, but not so easy considering how the structure
view is built internally. Since this part of the code is subject to change
anyway, I will give it an extra thought.
best,
Jeroen
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic