home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Graphics / GifScan 1.6 / Sources / Prefs.h < prev   
Encoding:
Text File  |  1995-10-08  |  767 b   |  37 lines  |  [TEXT/MMCC]

  1. // Stuff for Preferences 
  2. pascal void     SetPreferences(void);
  3. pascal Boolean     WritePrefData(Handle);
  4. pascal Handle     ReadPrefData(void);
  5. pascal short     GetPrefsFile(void);
  6.  
  7. #define        prefsFileNameRsrc        128
  8. #define        kPrefResType            'PrEf'
  9. #define        prefsCreator            'gifS'
  10. #define        prefsFileType            'pref'
  11. #define        prefsResNum                128
  12.  
  13. enum resErrors { eCouldNotWriteResources = 3,
  14.                  eMemError = 4,
  15.                  eCorruptPrefs = 5,
  16.                  eNewPrefsVersion = 6,
  17.                  eCouldntGetToPrefs = 8 };
  18.  
  19. #define    PREFSVERSION    3
  20.  
  21. typedef struct thePreferences {
  22. short    version;
  23. short    showColors;
  24. short    hexadecimal;
  25. short    decimal;
  26. short    percentages;
  27. short    promptSave;
  28. short    forget;
  29. short    fontSize;
  30. short    fullPath;
  31. short    fontNum;
  32. short    copy;
  33. Rect    winRect;
  34. } thePrefs, *thePrefsPtr, **thePrefsHandle;
  35.  
  36.  
  37.