home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTableScroll / MiscBorderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-11  |  2.1 KB  |  70 lines

  1. #ifndef __MiscBorderView_h
  2. #define __MiscBorderView_h
  3. //=============================================================================
  4. //
  5. //        Copyright (C) 1995 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.1 95/09/27 12:21:21 zarnuk Exp $
  26. // $Log:        MiscBorderView.h,v $
  27. //    Revision 1.1  95/09/27    12:21:21  zarnuk
  28. //    Initial revision
  29. //    
  30. //-----------------------------------------------------------------------------
  31. extern "Objective-C" {
  32. #import <appkit/View.h>
  33. }
  34. #import <misckit/MiscTableTypes.h>
  35.  
  36. enum MiscBorderViewType { MISC_COL_BORDER_VIEW, MISC_ROW_BORDER_VIEW };
  37.  
  38. class MiscSparseSet;
  39. class MiscTableBorder;
  40.  
  41. @class MiscBorderCell, MiscMouseTracker, MiscTableScroll, MiscTableView;
  42. @class NXCursor;
  43.  
  44. @interface MiscBorderView : View
  45.     {
  46.     MiscTableScroll*    scroll;
  47.     MiscTableBorder*    info;
  48.     MiscBorderCell*        theCell;
  49.     MiscMouseTracker*    tracker;
  50.     MiscSparseSet*        oldSel;
  51.     BOOL isHorz;
  52.     }
  53.  
  54. - initFrame: (NXRect const*) frameRect
  55.      scroll: (MiscTableScroll*) scroll
  56.        info: (MiscTableBorder*) info
  57.        type: (MiscBorderViewType) type;
  58. - free;
  59.  
  60. - (NXCoord) frameHeight;
  61. - (void) refresh;
  62. - (void) adjustSize;
  63. - (void) setSelectionMode: (MiscSelectionMode) mode;
  64. - (void) reflectSelection;
  65. - (void) drawSlot:(MiscCoord_V)x;
  66.  
  67. @end
  68.  
  69. #endif // __MiscBorderView_h
  70.