2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
12 #include <prefs/locale.h>
19 #include <exec/memory.h>
22 #ifndef INTUITION_INTUITION_H
23 #include <intuition/intuition.h>
26 #ifndef INTUITION_SCREENS_H
27 #include <intuition/screens.h>
30 #ifndef INTUITION_IMAGECLASS_H
31 #include <intuition/imageclass.h>
34 #ifndef INTUITION_GADGETCLASS_H
35 #include <intuition/gadgetclass.h>
38 #ifndef INTUITION_CLASSUSR_H
39 #include <intuition/classusr.h>
42 #ifndef INTUITION_CLASSES_H
43 #include <intuition/classes.h>
46 #ifndef INTUITION_ICCLASS_H
47 #include <intuition/icclass.h>
50 #ifndef GRAPHICS_GFX_H
51 #include <graphics/gfx.h>
54 #ifndef GRAPHICS_GFXBASE_H
55 #include <graphics/gfxbase.h>
58 #ifndef GRAPHICS_CLIP_H
59 #include <graphics/clip.h>
62 #ifndef GRAPHICS_LAYERS_H
63 #include <graphics/layers.h>
66 #ifndef LIBRARIES_GADTOOLS_H
67 #include <libraries/gadtools.h>
70 #ifndef LIBRARIES_ASL_H
71 #include <libraries/asl.h>
74 #ifndef LIBRARIES_IFFPARSE_H
75 #include <libraries/iffparse.h>
78 #ifndef UTILITY_UTILITY_H
79 #include <utility/utility.h>
82 #ifndef UTILITY_TAGITEM_H
83 #include <utility/tagitem.h>
86 #ifndef LIBRARIES_LOCALE_H
87 #include <libraries/locale.h>
90 #ifndef CYBERGRAPHX_CYBERGRAPHICS_H
91 #include <cybergraphx/cybergraphics.h>
94 #ifndef DATATYPES_DATATYPES_H
95 #include <datatypes/datatypes.h>
98 #ifndef DATATYPES_DATATYPESCLASS_H
99 #include <datatypes/datatypesclass.h>
102 #define DT_V44_SUPPORT
104 #ifndef DATATYPES_PICTURECLASS_H
105 #include <datatypes/pictureclass.h>
108 #ifndef PREFS_LOCALE_H
109 #include <prefs/locale.h>
112 #ifndef PREFS_PREFHDR_H
113 #include <prefs/prefhdr.h>
117 #include <proto/exec.h>
121 #include <proto/dos.h>
124 #ifndef PROTO_INTUITION_H
125 #include <proto/intuition.h>
128 #ifndef PROTO_GRAPHICS_H
129 #include <proto/graphics.h>
132 #ifndef PROTO_UTILITY_H
133 #include <proto/utility.h>
136 #ifndef PROTO_LOCALE_H
137 #include <proto/locale.h>
141 #include <proto/alib.h>
144 #ifndef PROTO_GADTOOLS_H
145 #include <proto/gadtools.h>
149 #include <proto/asl.h>
152 #ifndef PROTO_IFFPARSE_H
153 #include <proto/iffparse.h>
156 #ifndef PROTO_CYBERGRAPHICS_H
157 #include <proto/cybergraphics.h>
160 #ifndef PROTO_DATATYPES_H
161 #include <proto/datatypes.h>
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 ?? */
175 MA_CountryName
= LP_TAGBASE
,
180 /*********************************************************************************************/
184 VOID
ShowMsg (char *msg
);
188 VOID
InitLocale (VOID
);
189 VOID
CleanupLocale(VOID
);
190 CONST_STRPTR
MSG (ULONG id
);
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
);
201 BOOL
DefaultPrefs(void);
202 VOID
RestorePrefs(void);
203 VOID
BackupPrefs (void);
204 VOID
CopyPrefs (struct LocalePrefs
*s
, struct LocalePrefs
*d
);
206 /*********************************************************************************************/
218 struct ListviewEntry lve
;
219 struct BitMap
*flagbm
;
229 struct ListviewEntry lve
;
233 struct List country_list
, language_list
, pref_language_list
;
234 struct LocalePrefs localeprefs
;
237 #endif /* GLOBAL_H */