Re: Tree widget upgrade ideas

Alex Russell <[email protected]> Fri, 30 Jan 2004 14:11:42 -0800
Newsgroups gmane.comp.windows.devel.netwindows
Organization netWindows.org
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 30 January 2004 1:16 am, Christian Boulanger wrote:
> Alex,
>
> 1) For the tree I would need (what I implemented manually but
> badly): two properties of the tree:
>
> a) pointer to DOM-node of the currently (or last) clicked-on node

You've got it. There will be a "lastClicked" property that corresponds 
to this.

> c) pointer to the respective node in the internal tree
> representation (data) of the tree

Do you mean for when an item is clicked? And do you want a reference 
to the widget object that represents the node or some other modeling 
object (hint, there is no other modeling object in the new 
implementation)? I'm adding a "selectedNode" element to the tree 
widget that corresponds to the NW_WIDGET_tree_node that was most 
recently selected.

> 2) If you could implement a default mouse-over and mouse-down
> change-background-colour behaviour as in the menu bar widget.

Good suggestion. I had actually given it some thought yesterday. I'll 
make sure it gets done.

> 2) Usually, tree widgets in other GUI sets are embedded in tables,
> so that they do not only have one row (the tree), but also
> additional rows (compare the select file widget: folder structure,
> file name, file size, file type etc).

Given that only 2 other people have seen the new tree widget aside 
from me, I do find it entertaining that you're the third person to 
think of this. I will have to do some thinking in the near future 
about what a table element is, how we model that, how column resizing 
needs to work, and how I'm going to handle REALLY big data sets that 
might be multidimensional. In one way of thinking, trees are just one 
way of thinking about a two-dimensional data set in a single 
(vertical) axis, and therefore map pretty well onto some of the 
problems I'm going to have to solve in short order. But I don't have 
those problems solved just yet, and so I don't know if the 
tree-as-part-of-grid thing is going to happen in the short term. 
Sorry. 

Thanks for the feedback.

Regards

- -- 
Alex Russell
[email protected]   BD10 7AFC 87F6 63F9 1691 83FA 9884 3A15 AFC9 61B7
[email protected] F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQFAGtaeoV0dQ6uSmkYRAsumAKDFO/6ywiNmH7daw2UAsazep1KshgCeLnkm
gTmQGFCLGjEb9dK1E+8sI3U=
=bjVi
-----END PGP SIGNATURE-----


_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org