source: Sophya/trunk/SophyaExt/XephemAstroLib/preferences.h@ 3148

Last change on this file since 3148 was 3111, checked in by cmv, 19 years ago

mise en conformite xephem 3.7.2 cmv 22/11/2006

File size: 1.2 KB
Line 
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
8typedef 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
14typedef enum {PREF_GEO, PREF_TOPO} PrefEquatorial;
15typedef enum {PREF_ENGLISH, PREF_METRIC} PrefUnits;
16typedef enum {PREF_MDY, PREF_YMD, PREF_DMY} PrefDateFormat;
17typedef enum {PREF_LOCALTZ, PREF_UTCTZ} PrefStampZone;
18typedef enum {PREF_LOPREC, PREF_HIPREC} PrefDpyPrec;
19typedef enum {PREF_NOMSGBELL, PREF_MSGBELL} PrefMsgBell;
20typedef enum {PREF_PREFILL, PREF_NOPREFILL} PrefPreFill;
21typedef enum {PREF_TIPSON, PREF_NOTIPS} PrefTips;
22typedef enum {PREF_CONFIRMON, PREF_NOCONFIRM} PrefConfirm;
23typedef enum {PREF_SAT, PREF_SUN, PREF_MON} PrefWeekStart;
24
25extern int pref_get (Preferences p);
26extern 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: 2006-11-22 13:53:30 $ $Revision: 1.6 $ $Name: not supported by cvs2svn $
32 */
Note: See TracBrowser for help on using the repository browser.