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

Last change on this file since 4023 was 4017, checked in by cmv, 14 years ago

fichiers de Xephem 3.7.5 update, cmv 21/09/2011

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: 2011-09-21 16:17:50 $ $Revision: 1.9 $ $Name: not supported by cvs2svn $
32 */
Note: See TracBrowser for help on using the repository browser.