annotate lisp/oobr/tree-nx/TreeButton.h @ 49:b46643e427ac

Added tag r19-16b90 for changeset 56c54cf7c5b6
author cvs
date Mon, 13 Aug 2007 08:56:06 +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 // TreeButton.h -- a class to attach to 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 // I doubt this will be useful for much beyond what it does in the demo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 // program supplied in this directory.
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 <appkit/appkit.h> // superclass is in there
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 #import <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #import "String.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 @interface TreeButton:Button
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 id myTreeNode; // this is the tree node we represent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 + initialize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 + setCellClass:classId;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 - initFrame:(const NXRect *)frameRect;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 - wasSelected:sender;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 - treeNode;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 - setTreeNode:node;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 @end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41