annotate lisp/oobr/tree-nx/NamedTree.h @ 9:6f2bbbbbe05a

Added tag r19-15b5 for changeset 4b173ad71786
author cvs
date Mon, 13 Aug 2007 08:47:36 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 //
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 // NamedTree.h -- a generic class to build tree data structures
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 // This class requires the String class, also by Don Yacktman.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 // Written by Don Yacktman (c) 1993 by Don Yacktman.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 // All rights reserved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 //
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 // This Tree subclass allows an entire tree to be given a name, other than
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 // the root node's name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 //
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 // You may use and copy this class freely as long as you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 // comply with the following terms:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 // (1) If you use this class in an application which you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 // intend to sell commercially, as shareware, or otherwise,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 // you may only do so with express written permission
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 // of the author. Use in applications which will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 // be distributed free of charge is encouraged.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 // (2) You must include the source code to this object and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 // all accompanying documentation with your application,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 // or provide it to users if requested, free of charge.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 // (3) Do not remove the author's name or any of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 // copyright notices
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 //
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #import "Tree.h" // superclass is in there
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 @interface NamedTree:Tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 id treeName; // a String object that all nodes should point to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 // set and retrieve the tree's name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 - setTreeName:string;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 - (const char *)treeName;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 - act:sender; // action performed when node is activated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 - activateNode:sender; // message sent to "activate" the node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @end