| 1 | /* global info for the preferences facility. | 
|---|
| 2 | * N.B. many of these enums are used as indexes -- don't change without | 
|---|
| 3 | *   checking where they are used! | 
|---|
| 4 | */ | 
|---|
| 5 | #ifndef _PREFERENCES_H | 
|---|
| 6 | #define _PREFERENCES_H | 
|---|
| 7 |  | 
|---|
| 8 | typedef enum { | 
|---|
| 9 | PREF_EQUATORIAL, PREF_UNITS, PREF_DATE_FORMAT, PREF_ZONE, PREF_DPYPREC, | 
|---|
| 10 | PREF_MSG_BELL, PREF_PRE_FILL, PREF_TIPS, PREF_CONFIRM, PREF_WEEKSTART, | 
|---|
| 11 | NPREFS | 
|---|
| 12 | } Preferences; | 
|---|
| 13 |  | 
|---|
| 14 | typedef enum {PREF_GEO, PREF_TOPO} PrefEquatorial; | 
|---|
| 15 | typedef enum {PREF_ENGLISH, PREF_METRIC} PrefUnits; | 
|---|
| 16 | typedef enum {PREF_MDY, PREF_YMD, PREF_DMY} PrefDateFormat; | 
|---|
| 17 | typedef enum {PREF_LOCALTZ, PREF_UTCTZ} PrefStampZone; | 
|---|
| 18 | typedef enum {PREF_LOPREC, PREF_HIPREC} PrefDpyPrec; | 
|---|
| 19 | typedef enum {PREF_NOMSGBELL, PREF_MSGBELL} PrefMsgBell; | 
|---|
| 20 | typedef enum {PREF_PREFILL, PREF_NOPREFILL} PrefPreFill; | 
|---|
| 21 | typedef enum {PREF_TIPSON, PREF_NOTIPS} PrefTips; | 
|---|
| 22 | typedef enum {PREF_CONFIRMON, PREF_NOCONFIRM} PrefConfirm; | 
|---|
| 23 | typedef enum {PREF_SAT, PREF_SUN, PREF_MON} PrefWeekStart; | 
|---|
| 24 |  | 
|---|
| 25 | extern int pref_get (Preferences p); | 
|---|
| 26 | extern int pref_set (Preferences p, int newp); | 
|---|
| 27 |  | 
|---|
| 28 | #endif /* _PREFERENCES_H */ | 
|---|
| 29 |  | 
|---|
| 30 | /* For RCS Only -- Do Not Edit | 
|---|
| 31 | * @(#) $RCSfile: preferences.h,v $ $Date: 2005-08-21 10:02:39 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $ | 
|---|
| 32 | */ | 
|---|