home *** CD-ROM | disk | FTP | other *** search
-
- > X-Delivered: at request of weiner on infocomm
- > Date: Thu, 18 Mar 93 16:34:14 -0700
- > From: yackd@maine.et.byu.edu (Don Yacktman)
- >
- > > I guess if would be easy to write if I knew how to draw lines between buttons
- > > (nodes) to connect them but this will be my first NeXTSTEP program and I
- > > don't know how to do anything with DPS yet.
- >
- > > Also, if it is so easy to do, it is surprising that no one else has an object
- > > to do this.
- >
- > Good point...I think it would be easy though, so if you tell me what you
- > want, I bet I could whip something up quick and then put it on the net
- > as a GNU copylefted thing...
-
- Great. Here's what I would want. The tree class could read in a tree from
- a file in textual form. The first line is the name of the tree.
- In textual form, each node in the tree is given by its label, which can be
- any text, including spaces on a single line. The node's position in the tree
- is given by its preceding indentation, normally using 3 spaces of indentation
- per level (the amount can be figured out by examining the first indented
- label and counting its spaces. An example:
-
- Tree Name
- Root
- Node 1
- Node 1.1
- Node 1.1.1
- Node 2 has this longer label.
-
-
- After the tree is read in, it is displayed within a new view. Each node is
- created as a selectable button with the appropriate label and lines
- connecting it to its parent and children. (Let's assume only one button can
- be selected at a time.)
-
- When a button is selected, a string consisting of the tree name and the node
- selected is sent to an output stream. (stdout is fine as a default.), e.g.
-
- Tree Name^^Node 1.1
-
- could be output with ^^ indicating separation of the two arguments.
-
- That's it. Then my other program takes this standard output and displays
- text associated with the selected node.
-
-
-