home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Interim Executive Decision / Outline Table Demo / sources / CFileItem.h < prev    next >
Encoding:
Text File  |  1998-06-21  |  1.4 KB  |  63 lines  |  [TEXT/CWIE]

  1. //============================================================================
  2. // CFileItem.h        ©1997 Metrowerks Inc. All rights reserved
  3. // Original author: John C. Daub
  4. //============================================================================
  5. // A concrete LOutlineItem for items of type "file"
  6.  
  7. #pragma once
  8.  
  9. #include <LOutlineItem.h>
  10. #include <LString.h>
  11.  
  12. class CFileItem : public LOutlineItem
  13. {
  14.  
  15. public:
  16.  
  17.         int                        fNameId;
  18.         OSType                    fSelector;
  19.         int                        fBit;
  20.         bool                    fState;
  21.  
  22.                                 CFileItem(
  23.                                     int        nameId,
  24.                                     OSType    selector,
  25.                                     int        bit
  26.                                 );
  27.  
  28.         virtual                    ~CFileItem();
  29.         
  30.  
  31. protected:
  32.         
  33.         void SetState(bool state);
  34.  
  35.         virtual void            GetDrawContentsSelf(
  36.                                     const STableCell&        inCell,
  37.                                     SOutlineDrawContents&    ioDrawContents);
  38.  
  39.         virtual void            DrawRowAdornments(
  40.                                     const Rect&                inLocalRowRect);
  41.         
  42.  
  43.         virtual void            DoubleClick(
  44.                                     const STableCell&            inCell,
  45.                                     const SMouseDownEvent&        inMouseDown,
  46.                                     const SOutlineDrawContents&    inDrawContents,
  47.                                     Boolean                        inHitText);
  48.  
  49.     virtual void            TrackContentClick(
  50.                                     const STableCell&            inCell,
  51.                                     const SMouseDownEvent&        inMouseDown,
  52.                                     const SOutlineDrawContents&    inDrawContents,
  53.                                     Boolean                        inHitText);
  54.  
  55. private:
  56.  
  57.             // defensive programming
  58.             
  59.                                 CFileItem();
  60.                                 CFileItem( const CFileItem &inOriginal );
  61.                     CFileItem&    operator=( const CFileItem &inOriginal );
  62.  
  63. };