home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / IncPOS.lzx / pPrefs / PrefsLibData.h next >
Encoding:
C/C++ Source or Header  |  1997-03-18  |  1.8 KB  |  57 lines

  1. #ifndef __INC_POS_PPREFS_PREFSLIBDATA_H
  2. #define __INC_POS_PPREFS_PREFSLIBDATA_H
  3. /*******************************************************************
  4.  Includes Release 24
  5.  (C) Copyright 1995-1997 proDAD
  6.      All Rights Reserved
  7.  
  8.  $AUT Holger Papajewski
  9.  $DAT >>PrefsLibData.h<<   27 Jan 1997    11:23:29 - (C) ProDAD
  10. *******************************************************************/
  11.  
  12. #ifndef __INC_POS_PEXEC_TYPES_H
  13. #include <pExec/Types.h>
  14. #endif
  15.  
  16.  
  17.  
  18. /*----------------------------------
  19. -----------------------------------*/
  20. struct pOS_PrefsLibData
  21. {
  22.   const CHAR        *pld_Name;  /* Name fuer Listeneintrag und File */
  23.   const CHAR        *pld_File;
  24.   const CHAR        *pld_SubDir;/* Name fuer Unterverzeichnis */
  25.   ULONG              pld_Flags; /* (enum pOS_PrefsFlags)
  26.                                    über diese Maske werden die
  27.                                    entsprechenden Menu-Punkte
  28.                                    aktiviert bzw. deaktiviert */
  29.   const struct pOS_TagItem *pld_Tags;
  30. };
  31.  
  32.  
  33.  
  34. enum pOS_PrefsFlags {
  35.   PRFF_Info      = (1L << 0), /* PrefsLibrary kann
  36.                                  Informations-Gadget erzeugen */
  37.  
  38.   PRFF_Default   = (1L << 1), /* kann Default-Werte setzen */
  39.   PRFF_LastSaved = (1L << 2), /* kann zuletzt gespeicherte Werte setzen */
  40.   PRFF_Restore   = (1L << 3), /* kann vorherigen Zustand wiederherstellen */
  41.  
  42.   PRFF_NoFile    = (1L << 7), /* es wird kein PrefsFile geschrieben
  43.                                  z.B. Uhrzeit / Datum */
  44. };
  45.  
  46.  
  47. enum pOS_PrefsSaveFlags {
  48.   PRFSAVF_Save  = (1L << 0),  /* gesetzt wenn SAVE-Button gedrückt
  49.                                  wurde - sonst wurde USE gewählt
  50.                                  ist eigentlich nur für Prefs-
  51.                                  Einsteller interessant, die keine
  52.                                  Datei schreiben (z.B. Uhr/Datum) */
  53. };
  54.  
  55.  
  56. #endif
  57.