1 /****************************************************************
2 This file was created automatically by `FlexCat 2.4'
3 from "preferenceswindow.cd".
6 ****************************************************************/
8 #ifndef preferenceswindow_H
9 #define preferenceswindow_H
13 #include <exec/types.h>
18 #undef CATCOMP_NUMBERS
19 #undef CATCOMP_STRINGS
20 #define CATCOMP_NUMBERS
21 #define CATCOMP_STRINGS
25 #undef CATCOMP_STRINGS
26 #define CATCOMP_STRINGS
29 /***************************************************************/
32 #ifdef CATCOMP_NUMBERS
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 /***************************************************************/
61 struct CatCompArrayType
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
},
77 #endif /* CATCOMP_ARRAY */
79 /***************************************************************/
84 //static const chat CatCompBlock[] =
89 #endif /* CATCOMP_BLOCK */
91 /***************************************************************/
102 STRPTR
GetString(struct LocaleInfo
*li
, LONG stringNum
)
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
121 return(GetCatalogStr(li
->li_Catalog
,stringNum
,builtIn
));
122 #define LocaleBase XLocaleBase
128 #endif /* CATCOMP_CODE */
130 /***************************************************************/