home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Examples / TreeView / TreeView.h < prev    next >
Encoding:
Text File  |  1993-04-25  |  935 b   |  43 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import "TreeButton.h"
  4.  
  5. @interface TreeView:View
  6. {
  7.     id currentButton;
  8.     id lineList;
  9.     id priorButton;
  10.     id selectedField;
  11.     id treeRoot;
  12.  
  13.     NXCoord currScale;
  14.     NXCoord origWidth;
  15.     NXCoord origHeight;
  16. }
  17.  
  18. - attachTree:aTree;
  19. - buildTreeFromNode:aNode bottom:(double)ybot
  20.         top:(double)ytop atX:(double)xpos parent:(NXPoint *)pos;
  21. - displayBut:but;
  22. - displayButByName:sender;
  23. - drawSelf:(NXRect *)rects :(int)rectCount;      // standard rendering method
  24. - getButByName:(const char*)name;
  25. - initFrame:(const NXRect *)frameRect;
  26. - scale:sender;
  27. - setCurrentButton:but;
  28. - setCurrButtonByName:sender;
  29.  
  30. @end
  31.  
  32. /* Color Dragging */
  33.  
  34. @interface TreeView(Drag)
  35.  
  36. - registerForDragging;
  37. - (NXDragOperation)draggingEntered:(id <NXDraggingInfo>)sender;
  38. - (BOOL)prepareForDragOperation:(id <NXDraggingInfo>)sender;
  39. - (BOOL)performDragOperation:(id <NXDraggingInfo>)sender;
  40. - concludeDragOperation:(id <NXDraggingInfo>)sender;
  41.  
  42. @end
  43.