home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / TreeView / TreeView.h < prev    next >
Encoding:
Text File  |  1995-12-11  |  1.5 KB  |  57 lines

  1. //        Written by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  2. //                Version 1.0.  All rights reserved.
  3. //
  4. //        Modified by Aleksey Sudakov <zander@cnext.crec.mipt.ru>
  5. //        * Dec. 12, 1995 *    Improved scalling for better quality 
  6. //                *.eps, *.tiff generation
  7. //
  8. //        This notice may not be removed from this source code.
  9. //
  10. //    This program is included in the MiscKit by permission from the author
  11. //    and its use is governed by the MiscKit license, found in the file
  12. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  13. //    for a list of all applicable permissions and restrictions.
  14. //    
  15.  
  16. #import <appkit/appkit.h>
  17. #import "TreeButton.h"
  18.  
  19. @interface TreeView:View
  20. {
  21.     id currentButton;
  22.     id lineList;
  23.     id priorButton;
  24.     id selectedField;
  25.     id treeRoot;
  26.  
  27.     NXCoord currScale;
  28.     NXCoord origWidth;
  29.     NXCoord origHeight;
  30. }
  31.  
  32. - attachTree:aTree;
  33. - buildTreeFromNode:aNode bottom:(double)ybot
  34.         top:(double)ytop atX:(double)xpos parent:(NXPoint *)pos;
  35. - displayBut:but;
  36. - displayButByName:sender;
  37. - drawSelf:(NXRect *)rects :(int)rectCount;      // standard rendering method
  38. - getButByName:(const char*)name;
  39. - initFrame:(const NXRect *)frameRect;
  40. - scale:sender;
  41. - setCurrentButton:but;
  42. - setCurrButtonByName:sender;
  43.  
  44. @end
  45.  
  46. /* Color Dragging */
  47.  
  48. @interface TreeView(Drag)
  49.  
  50. - registerForDragging;
  51. - (NXDragOperation)draggingEntered:(id <NXDraggingInfo>)sender;
  52. - (BOOL)prepareForDragOperation:(id <NXDraggingInfo>)sender;
  53. - (BOOL)performDragOperation:(id <NXDraggingInfo>)sender;
  54. - concludeDragOperation:(id <NXDraggingInfo>)sender;
  55.  
  56. @end
  57.