[1457] | 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 {
|
---|
[1719] | 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,
|
---|
[1457] | 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;
|
---|
[1719] | 23 | typedef enum {PREF_SAT, PREF_SUN, PREF_MON} PrefWeekStart;
|
---|
[1457] | 24 |
|
---|
[2551] | 25 | extern int pref_get (Preferences p);
|
---|
| 26 | extern int pref_set (Preferences p, int newp);
|
---|
[1457] | 27 |
|
---|
| 28 | #endif /* _PREFERENCES_H */
|
---|
| 29 |
|
---|
| 30 | /* For RCS Only -- Do Not Edit
|
---|
[2643] | 31 | * @(#) $RCSfile: preferences.h,v $ $Date: 2005-01-17 10:13:06 $ $Revision: 1.4 $ $Name: not supported by cvs2svn $
|
---|
[1457] | 32 | */
|
---|