Cancel redefinition of DOSBase for the 'cdrom' test utility. Now the
[AROS.git] / workbench / classes / zune / loginwindow / strings.h
blob870e3b879a10886a563b656254658ff18596a086
1 /****************************************************************
2 This file was created automatically by `FlexCat 2.4'
3 from "preferenceswindow.cd".
5 Do NOT edit by hand!
6 ****************************************************************/
8 #ifndef preferenceswindow_H
9 #define preferenceswindow_H
12 #ifndef EXEC_TYPES_H
13 #include <exec/types.h>
14 #endif
17 #ifdef CATCOMP_ARRAY
18 #undef CATCOMP_NUMBERS
19 #undef CATCOMP_STRINGS
20 #define CATCOMP_NUMBERS
21 #define CATCOMP_STRINGS
22 #endif
24 #ifdef CATCOMP_BLOCK
25 #undef CATCOMP_STRINGS
26 #define CATCOMP_STRINGS
27 #endif
29 /***************************************************************/
32 #ifdef CATCOMP_NUMBERS
34 #define MSG_OK 0
35 #define MSG_RESUME 1
36 #define MSG_WARNING_GUI 2
37 #define MSG_LOGINREQ_GUI 3
38 #define MSG_LOGINPROMPT_GUI 4
40 #endif /* CATCOMP_NUMBERS */
43 /***************************************************************/
45 #ifdef CATCOMP_STRINGS
47 #define MSG_OK_STR "_OK"
48 #define MSG_RESUME_STR "_Resume"
49 #define MSG_WARNING_GUI_STR "Security Warning"
50 #define MSG_LOGINREQ_GUI_STR "Security Login Request"
51 #define MSG_LOGINPROMPT_GUI_STR "\33cWelcome to the AROS Research OS\nAROS Version: %s\n\nPlease fill in your user details\nto log onto %s."
53 #endif /* CATCOMP_STRINGS */
56 /***************************************************************/
59 #ifdef CATCOMP_ARRAY
61 struct CatCompArrayType
63 LONG cca_ID;
64 STRPTR cca_Str;
67 static const struct CatCompArrayType CatCompArray[] =
69 {MSG_OK,(STRPTR)MSG_OK_STR},
70 {MSG_RESUME,(STRPTR)MSG_RESUME_STR},
71 {MSG_WARNING_GUI,(STRPTR)MSG_WARNING_GUI_STR},
72 {MSG_LOGINREQ_GUI,(STRPTR)MSG_LOGINREQ_GUI_STR},
73 {MSG_LOGINPROMPT_GUI,(STRPTR)MSG_LOGINPROMPT_GUI_STR},
74 {0,NULL}
77 #endif /* CATCOMP_ARRAY */
79 /***************************************************************/
82 #ifdef CATCOMP_BLOCK
84 //static const chat CatCompBlock[] =
85 //{
86 //
87 //};
89 #endif /* CATCOMP_BLOCK */
91 /***************************************************************/
93 struct LocaleInfo
95 APTR li_LocaleBase;
96 APTR li_Catalog;
100 #ifdef CATCOMP_CODE
102 STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
104 LONG *l;
105 UWORD *w;
106 STRPTR builtIn;
108 l = (LONG *)CatCompBlock;
110 while (*l != stringNum)
112 w = (UWORD *)((ULONG)l + 4);
113 l = (LONG *)((ULONG)l + (LONG)*w + 6);
115 builtIn = (STRPTR)((ULONG)l + 6);
117 #define XLocaleBase LocaleBase
118 #define LocaleBase li->li_LocaleBase
120 if (LocaleBase)
121 return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
122 #define LocaleBase XLocaleBase
123 #undef XLocaleBase
125 return (builtIn);
128 #endif /* CATCOMP_CODE */
130 /***************************************************************/
133 #endif