home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTableScroll / MiscMouseTracker.M < prev    next >
Encoding:
Text File  |  1996-02-11  |  2.8 KB  |  84 lines

  1. //=============================================================================
  2. //
  3. //        Copyright (C) 1995 by Paul S. McCarthy and Eric Sunshine.
  4. //                Written by Paul S. McCarthy and Eric Sunshine.
  5. //                            All Rights Reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //        This object is included in the MiscKit by permission from the authors
  10. //        and its use is governed by the MiscKit license, found in the file
  11. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  12. //        for a list of all applicable permissions and restrictions.
  13. //        
  14. //=============================================================================
  15. //-----------------------------------------------------------------------------
  16. // MiscMouseTracker.M
  17. //
  18. //        Abstract class defining selection behavior based upon mouse tracking.
  19. //
  20. //-----------------------------------------------------------------------------
  21. //-----------------------------------------------------------------------------
  22. // $Id: MiscMouseTracker.M,v 1.1 95/09/27 12:21:21 zarnuk Exp $
  23. // $Log:        MiscMouseTracker.M,v $
  24. //    Revision 1.1  95/09/27    12:21:21  zarnuk
  25. //    Initial revision
  26. //    
  27. //-----------------------------------------------------------------------------
  28. #import "MiscMouseTracker.h"
  29. #import "MiscSparseSet.h"
  30. #import "MiscTableBorder.h"
  31.  
  32.  
  33. @implementation MiscMouseTracker
  34.  
  35. //-----------------------------------------------------------------------------
  36. // initBorder:
  37. //-----------------------------------------------------------------------------
  38. - initBorder: (MiscTableBorder*) b
  39.     {
  40.     [super init];
  41.     border = b;
  42.     set = &border->selectionSet();
  43.     set->empty();
  44.     return self;
  45.     }
  46.  
  47.  
  48. //-----------------------------------------------------------------------------
  49. // mouseDown:atPos:
  50. //-----------------------------------------------------------------------------
  51. - (void) mouseDown: (NXEvent const*) event atPos: (MiscCoord_V) pos
  52.     {
  53.     [self subclassResponsibility: _cmd];
  54.     }
  55.  
  56.  
  57. //-----------------------------------------------------------------------------
  58. // mouseDragged:atPos:
  59. //-----------------------------------------------------------------------------
  60. - (void) mouseDragged: (NXEvent const*) event atPos: (MiscCoord_V) pos
  61.     {
  62.     [self subclassResponsibility: _cmd];
  63.     }
  64.  
  65.  
  66. //-----------------------------------------------------------------------------
  67. // mouseUp:atPos:
  68. //-----------------------------------------------------------------------------
  69. - (void) mouseUp: (NXEvent const*) event atPos: (MiscCoord_V) pos
  70.     {
  71.     [self subclassResponsibility: _cmd];
  72.     }
  73.  
  74.  
  75. //-----------------------------------------------------------------------------
  76. // keyDown:atPos:
  77. //-----------------------------------------------------------------------------
  78. - (void) keyDown: (NXEvent const*) event atPos: (MiscCoord_V) pos
  79.     {
  80.     [self subclassResponsibility: _cmd];
  81.     }
  82.  
  83. @end
  84.