Mercurial > hg > xemacs-beta
diff pkg-src/tree-nx/TreeView.h @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkg-src/tree-nx/TreeView.h Mon Aug 13 09:43:35 2007 +0200 @@ -0,0 +1,42 @@ + +#import <appkit/appkit.h> +#import "TreeButton.h" + +@interface TreeView:View +{ + id currentButton; + id lineList; + id priorButton; + id selectedField; + id treeRoot; + + NXCoord currScale; + NXCoord origWidth; + NXCoord origHeight; +} + +- attachTree:aTree; +- buildTreeFromNode:aNode bottom:(double)ybot + top:(double)ytop atX:(double)xpos parent:(NXPoint *)pos; +- displayBut:but; +- displayButByName:sender; +- drawSelf:(NXRect *)rects :(int)rectCount; // standard rendering method +- getButByName:(const char*)name; +- initFrame:(const NXRect *)frameRect; +- scale:sender; +- setCurrentButton:but; +- setCurrButtonByName:sender; + +@end + +/* Color Dragging */ + +@interface TreeView(Drag) + +- registerForDragging; +- (NXDragOperation)draggingEntered:(id <NXDraggingInfo>)sender; +- (BOOL)prepareForDragOperation:(id <NXDraggingInfo>)sender; +- (BOOL)performDragOperation:(id <NXDraggingInfo>)sender; +- concludeDragOperation:(id <NXDraggingInfo>)sender; + +@end