home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CPrefsFile & Friends 1.0 / CGlobalPrefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  726 b   |  52 lines  |  [TEXT/KAHL]

  1. /*
  2.  * CGlobalPrefs.h
  3.  *
  4.  */
  5.  
  6.  
  7.  
  8. /********************************/
  9.  
  10. #pragma once
  11.  
  12. /********************************/
  13.  
  14. #include "CPrefsFile.h"
  15.  
  16. /********************************/
  17.  
  18. typedef struct {
  19.     short defaultOverwriteExistingFiles;
  20.     short sleepTime;
  21.     short updateTicks;
  22.     short fontSize;
  23.     Str63 fontName;
  24. } globalPrefsStruct, *globalPrefsPtr, **globalPrefsHndl;
  25.  
  26. /********************************/
  27.  
  28.  
  29.  
  30. class CGlobalPrefs : public CPrefsFile {
  31.     
  32. public:
  33.     
  34.     const static OSType        itsFileType;
  35.     
  36.     void            IGlobalPrefs(void);
  37.     
  38. protected:
  39.     
  40.     void            assignToPrefsHndl(Handle theHandle);
  41.     Handle        valueOfPrefsHndl(void);
  42.     short            sizeOfPrefs(void);
  43.     
  44. private:
  45.     
  46. } ;
  47.  
  48.  
  49.  
  50. /********************************/
  51.  
  52. extern globalPrefsHndl gPrefs;