annotate pkg-src/tree-nx/NamedTree.h @ 204:a15e4b3d59c6

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