On 30/09/2008 00:11, Pavel Sanda wrote:
Richard Heck wrote:
i tend for 3. solution but would like to hear your opinions.

I prefer 2, kind off. This can be done completely in the frontend using
simple string comparison techniques and session management. Each time a
toc reset is requested, save in the session the strings of all the nodes
that are not collapsed. When the model is reset, restore uncollapse all
nodes that present the same string. This method will not be 100% correct
but it will be just fine for most cases because only the current code
tipically changes, all others nodes keep the same strings.

I'd second that. And I'd think it wouldn't be that hard, actually.

the obvious disadvantages of 2:
- it would slows the current editation even more (note that current trunk
   needs 12 (!) reset calls after 1 character change in section (some sample
   in userguide).
There should be only one. And there was only one last time I touched at this.

  even now is editation and movement with outliner significantly
   slower.
There is no sensible delay under Windows, are you sure stdlib-debug is disabled?

- the code would be bigger than just freezng version

But a freezing checkbox is an additional control that encumber the dialog. I am definitely against that.

- there will be many ocassions we will uncollapse wrong branches, unless we do
   something Andre suggested, which would be even worse things wrt code 
complexity.

You don't know until this is implemented. Also, even if we use crc comparison instead of string, crc calculation is pretty cheap. I am actually quite confident that it will work just fine 99% of the time.

Abdel.

Reply via email to