comparison pkg-src/tree-nx/TreeButton.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents
children
comparison
equal deleted inserted replaced
162:4de2936b4e77 163:0132846995bd
1 //
2 // TreeButton.h -- a class to attach to tree data structures
3 // This class requires the String class, also by Don Yacktman.
4 // Written by Don Yacktman (c) 1993 by Don Yacktman.
5 // All rights reserved.
6 //
7 // I doubt this will be useful for much beyond what it does in the demo
8 // program supplied in this directory.
9 //
10 // You may use and copy this class freely as long as you
11 // comply with the following terms:
12 // (1) If you use this class in an application which you
13 // intend to sell commercially, as shareware, or otherwise,
14 // you may only do so with express written permission
15 // of the author. Use in applications which will
16 // be distributed free of charge is encouraged.
17 // (2) You must include the source code to this object and
18 // all accompanying documentation with your application,
19 // or provide it to users if requested, free of charge.
20 // (3) Do not remove the author's name or any of the
21 // copyright notices
22 //
23
24 #import <appkit/appkit.h> // superclass is in there
25 #import <stdio.h>
26 #import "String.h"
27
28 @interface TreeButton:Button
29 {
30 id myTreeNode; // this is the tree node we represent
31 }
32
33 + initialize;
34 + setCellClass:classId;
35 - initFrame:(const NXRect *)frameRect;
36 - wasSelected:sender;
37 - treeNode;
38 - setTreeNode:node;
39
40 @end
41