home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / MiscBorderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  2.6 KB  |  75 lines

  1. #ifndef __MiscBorderView_h
  2. #define __MiscBorderView_h
  3. //=============================================================================
  4. //
  5. //    Copyright (C) 1995-1997 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // MiscBorderView.h
  19. //
  20. //    View class for the row/column borders on a MiscTableView.
  21. //    Supports resizing, dragging.
  22. //
  23. //-----------------------------------------------------------------------------
  24. //-----------------------------------------------------------------------------
  25. // $Id: MiscBorderView.h,v 1.10 97/04/15 08:53:49 sunshine Exp $
  26. // $Log:    MiscBorderView.h,v $
  27. //  Revision 1.10  97/04/15  08:53:49  sunshine
  28. //  v0.125.8: Added "MiscTableScroll/" prefix to #import to facilitate new
  29. //  framework organization.  Consequently, removed the -inlineImageNamed: hack.
  30. //  
  31. //  Revision 1.9  97/03/20  19:12:32  sunshine
  32. //  v123.1: Changed order of methods for NEXTSTEP 3.3 TableScroll consistency.
  33. //  
  34. //  Revision 1.8  97/03/10  10:11:39  sunshine
  35. //  v113.1: Added -setFrameHeight:.  Added missing (id) to -initWithFrame:.
  36. //-----------------------------------------------------------------------------
  37. extern "Objective-C" {
  38. #import <AppKit/NSView.h>
  39. }
  40. #import <MiscTableScroll/MiscTableTypes.h>
  41. class MiscSparseSet;
  42. class MiscTableBorder;
  43. @class MiscBorderCell, MiscMouseTracker, MiscTableScroll, MiscTableView;
  44.  
  45. enum MiscBorderViewType { MISC_COL_BORDER_VIEW, MISC_ROW_BORDER_VIEW };
  46.  
  47. @interface MiscBorderView : NSView
  48.     {
  49.     MiscTableScroll*    scroll;
  50.     MiscTableBorder*    info;
  51.     MiscBorderCell*    theCell;
  52.     MiscMouseTracker*    tracker;
  53.     MiscSparseSet*    oldSel;
  54.     MiscCoord_V        togglePos;
  55.     BOOL        isHorz;
  56.     }
  57.  
  58. - (id)initWithFrame:(NSRect)frameRect
  59.      scroll:(MiscTableScroll*)scroll
  60.        info:(MiscTableBorder*)info
  61.        type:(MiscBorderViewType)type;
  62. - (void)dealloc;
  63.  
  64. - (MiscPixels)frameHeight;
  65. - (void)setFrameHeight:(MiscPixels)x;
  66. - (void)adjustSize;
  67. - (void)setSelectionMode:(MiscSelectionMode)mode;
  68. - (void)selectionChanged;
  69. - (void)resetSelection;
  70. - (void)drawSlot:(MiscCoord_V)x;
  71.  
  72. @end
  73.  
  74. #endif // __MiscBorderView_h
  75.