Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / prefs / locale / global.h
blobe83e05c60646269f685c8020d9402272734939ea
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #ifndef GLOBAL_H
10 #define GLOBAL_H
12 #include <prefs/locale.h>
14 #ifndef DOS_DOS_H
15 #include <dos/dos.h>
16 #endif
18 #ifndef EXEC_MEMORY_H
19 #include <exec/memory.h>
20 #endif
22 #ifndef INTUITION_INTUITION_H
23 #include <intuition/intuition.h>
24 #endif
26 #ifndef INTUITION_SCREENS_H
27 #include <intuition/screens.h>
28 #endif
30 #ifndef INTUITION_IMAGECLASS_H
31 #include <intuition/imageclass.h>
32 #endif
34 #ifndef INTUITION_GADGETCLASS_H
35 #include <intuition/gadgetclass.h>
36 #endif
38 #ifndef INTUITION_CLASSUSR_H
39 #include <intuition/classusr.h>
40 #endif
42 #ifndef INTUITION_CLASSES_H
43 #include <intuition/classes.h>
44 #endif
46 #ifndef INTUITION_ICCLASS_H
47 #include <intuition/icclass.h>
48 #endif
50 #ifndef GRAPHICS_GFX_H
51 #include <graphics/gfx.h>
52 #endif
54 #ifndef GRAPHICS_GFXBASE_H
55 #include <graphics/gfxbase.h>
56 #endif
58 #ifndef GRAPHICS_CLIP_H
59 #include <graphics/clip.h>
60 #endif
62 #ifndef GRAPHICS_LAYERS_H
63 #include <graphics/layers.h>
64 #endif
66 #ifndef LIBRARIES_GADTOOLS_H
67 #include <libraries/gadtools.h>
68 #endif
70 #ifndef LIBRARIES_ASL_H
71 #include <libraries/asl.h>
72 #endif
74 #ifndef LIBRARIES_IFFPARSE_H
75 #include <libraries/iffparse.h>
76 #endif
78 #ifndef UTILITY_UTILITY_H
79 #include <utility/utility.h>
80 #endif
82 #ifndef UTILITY_TAGITEM_H
83 #include <utility/tagitem.h>
84 #endif
86 #ifndef LIBRARIES_LOCALE_H
87 #include <libraries/locale.h>
88 #endif
90 #ifndef CYBERGRAPHX_CYBERGRAPHICS_H
91 #include <cybergraphx/cybergraphics.h>
92 #endif
94 #ifndef DATATYPES_DATATYPES_H
95 #include <datatypes/datatypes.h>
96 #endif
98 #ifndef DATATYPES_DATATYPESCLASS_H
99 #include <datatypes/datatypesclass.h>
100 #endif
102 #define DT_V44_SUPPORT
104 #ifndef DATATYPES_PICTURECLASS_H
105 #include <datatypes/pictureclass.h>
106 #endif
108 #ifndef PREFS_LOCALE_H
109 #include <prefs/locale.h>
110 #endif
112 #ifndef PREFS_PREFHDR_H
113 #include <prefs/prefhdr.h>
114 #endif
116 #ifndef PROTO_EXEC_H
117 #include <proto/exec.h>
118 #endif
120 #ifndef PROTO_DOS_H
121 #include <proto/dos.h>
122 #endif
124 #ifndef PROTO_INTUITION_H
125 #include <proto/intuition.h>
126 #endif
128 #ifndef PROTO_GRAPHICS_H
129 #include <proto/graphics.h>
130 #endif
132 #ifndef PROTO_UTILITY_H
133 #include <proto/utility.h>
134 #endif
136 #ifndef PROTO_LOCALE_H
137 #include <proto/locale.h>
138 #endif
140 #ifndef PROTO_ALIB_H
141 #include <proto/alib.h>
142 #endif
144 #ifndef PROTO_GADTOOLS_H
145 #include <proto/gadtools.h>
146 #endif
148 #ifndef PROTO_ASL_H
149 #include <proto/asl.h>
150 #endif
152 #ifndef PROTO_IFFPARSE_H
153 #include <proto/iffparse.h>
154 #endif
156 #ifndef PROTO_CYBERGRAPHICS_H
157 #include <proto/cybergraphics.h>
158 #endif
160 #ifndef PROTO_DATATYPES_H
161 #include <proto/datatypes.h>
162 #endif
164 /*********************************************************************************************/
166 #define CONFIGNAME_ENV "ENV:Sys/locale.prefs"
167 #define CONFIGNAME_ENVARC "ENVARC:Sys/locale.prefs"
169 #define MA_PrefsObject MUIA_UserData
171 #define LP_TAGBASE 0xfece0000 /* ok ?? */
173 enum
175 MA_CountryName = LP_TAGBASE,
176 MA_Preferred,
177 MA_TimeOffset,
180 /*********************************************************************************************/
182 /* main.c */
184 VOID ShowMsg (char *msg);
186 /* locale.c */
188 VOID InitLocale (VOID);
189 VOID CleanupLocale(VOID);
190 CONST_STRPTR MSG (ULONG id);
192 /* prefs.c */
194 ULONG InitPrefs (STRPTR filename, BOOL use, BOOL save);
195 VOID CleanupPrefs(void);
196 BOOL LoadPrefs (STRPTR filename);
197 BOOL LoadPrefsFH (BPTR fh);
198 BOOL SavePrefs (STRPTR filename);
199 BOOL SavePrefsFH (BPTR fh);
200 BOOL SaveEnv ();
201 BOOL DefaultPrefs(void);
202 VOID RestorePrefs(void);
203 VOID BackupPrefs (void);
204 VOID CopyPrefs (struct LocalePrefs *s, struct LocalePrefs *d);
206 /*********************************************************************************************/
209 struct ListviewEntry
211 struct Node node;
212 char name[30];
213 char realname[30];
216 struct CountryEntry
218 struct ListviewEntry lve;
219 struct BitMap *flagbm;
220 WORD flagw;
221 WORD flagh;
222 Object *pic;
223 Object *list_pic;
227 struct LanguageEntry
229 struct ListviewEntry lve;
230 BOOL preferred;
233 struct List country_list, language_list, pref_language_list;
234 struct LocalePrefs localeprefs;
235 APTR mempool;
237 #endif /* GLOBAL_H */