[imp] remember expanded folders

Jan Schneider jan@horde.org
Tue, 16 Oct 2001 16:31:35 +0200


Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jan Schneider <jan@horde.org>:
> 
> > 1) Size
> > We only store the names of the folders that are expanded. Most of the
> folders
> > are leafes of the folder tree, only some are branches, t.i. expandable.
> And
> > probably not all branches are expanded if you really have a large tree.
> > We already have the nav_poll preference that stores folder names, so why
> > should an expanded folders preference not work accordingly.
> 
> Maybe. Read through the IMP_Tree class some; we get a lot of information from
> 
> the level of hierarchy _below_ what is being displayed (i.e., currently 
> expanded).
> 
> > 2) Other clients
> > We just check if the folder is in the stored preference while building the
> 
> > tree. That should prevent us from problems if a folder is removed in the 
> > meantime. This is something we also do with nav_poll.
> 
> And folders that are added?

Just the same. They are not found in the expanded hash and won't be expanded in 
the folder view.

Jan.

:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::