home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / URowSelection.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  980 b   |  38 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // URowSelection.h
  3.  
  4. #define __UROWSELECTION__
  5.  
  6.  
  7. #ifndef __UGRIDVIEW__
  8. #include <UGridView.h>
  9. #endif
  10.  
  11. class TImprovedRowSelectCommand : public TRowSelectCommand 
  12. {
  13.     public:
  14.         virtual pascal void ComputeNewSelection(GridCell &clickedCell);
  15.  
  16.         TImprovedRowSelectCommand();
  17.         pascal void IImprovedRowSelectCommand(TGridView* itsView,
  18.                           const VPoint& itsMouse, Boolean theShiftKey, Boolean theCommandKey);
  19. };
  20.  
  21. //-------------------------------------------------------------------
  22.  
  23. class TStickySelectCommand : public TImprovedRowSelectCommand 
  24. {
  25.     public:
  26.         pascal void ComputeNewSelection(GridCell &clickedCell);
  27.         pascal void ComputeAnchorCell(GridCell &clickedCell);
  28.         
  29.         TStickySelectCommand();
  30.         void IStickySelectCommand(TGridView *gridView, 
  31.                                            const VPoint &itsMouse,
  32.                                            Boolean theShiftKey,
  33.                                            Boolean theCommandKey);
  34.     protected:
  35.         Boolean fSpecialMethodActivated;
  36. };
  37.  
  38.