home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / FinderWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.4 KB  |  62 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        FinderWindow.h
  3.  
  4.     Contains:    Finder window simulation using the Appearance Manager.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #ifndef _FINDERWINDOW_H
  28. #define _FINDERWINDOW_H
  29.  
  30. #include <Controls.h>
  31. #include "BaseWindow.h"
  32. #include "Appearance.h"
  33.  
  34. class FinderWindow : public BaseWindow
  35. {
  36.     public:
  37.             FinderWindow();
  38.         virtual ~FinderWindow();
  39.         
  40.         virtual void        Activate( EventRecord& event );
  41.         virtual void        Deactivate( EventRecord& event );
  42.         virtual void        Draw();
  43.         virtual void        Resize( SInt16 width, SInt16 height );
  44.         virtual void        HandleClick( EventRecord& event );
  45.         
  46.     private:
  47.         virtual void        DrawPlacard( ThemeDrawState state, Boolean validate );
  48.         virtual void        GetContentRect( Rect& rect );
  49.         virtual void        InvalidateScrollBars();
  50.         virtual void        InvalidatePlacard();
  51.         virtual void        CalcHorizScrollBarRect( Rect& rect );
  52.         virtual void        CalcVertScrollBarRect( Rect& rect );
  53.     
  54.         static pascal void    ScrollBarAction( ControlHandle control, SInt16 partHit );
  55.         static pascal void    DrawListView( SInt16 depth, SInt16 flags, GDHandle device, long userData );
  56.  
  57.         ControlHandle        fHorizScrollBar;
  58.         ControlHandle        fVertScrollBar;
  59. };
  60.  
  61. #endif // _FINDERWINDOW_H
  62.