home *** CD-ROM | disk | FTP | other *** search
- #ifndef BUILDIN_H
- #define BUILDIN_H
-
-
- /****************************************************************************/
-
-
- /* This file was created automatically by CatComp.
- * Do NOT edit by hand!
- */
-
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifdef CATCOMP_ARRAY
- #undef CATCOMP_NUMBERS
- #undef CATCOMP_STRINGS
- #define CATCOMP_NUMBERS
- #define CATCOMP_STRINGS
- #endif
-
- #ifdef CATCOMP_BLOCK
- #undef CATCOMP_STRINGS
- #define CATCOMP_STRINGS
- #endif
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_NUMBERS
-
- #define MSG_TITLE 0
- #define MSG_CLOCK_DESC 1
- #define MSG_CLOCKABOUT 2
- #define MSG_CLOCKOK 3
- #define MSG_POP_CHANGEBACK 4
- #define MSG_POP_CHANGEFONT 5
- #define MSG_POP_SOUND 6
- #define MSG_POP_BORDER 7
- #define MSG_POP_AUTOSTART 8
- #define MSG_POP_ALARM 9
- #define MSG_POP_FIX 10
- #define MSG_POP_QUIT 11
- #define MSG_POP_ABOUT 12
- #define MSG_POPSUB_PLAIN 20
- #define MSG_POPSUB_INVISIBLE 21
- #define MSG_POPSUB_PICTURE 22
- #define MSG_CHOOSEFONT 23
- #define MSG_CHOOSEPIC 24
- #define MSG_ALARM 25
- #define MSG_OK 26
- #define MSG_CANCEL 27
- #define MSG_POPSUB_ALARMSET 60
- #define MSG_POPSUB_ALARMONOFF 61
- #define MSG_HOURS 62
- #define MSG_MINS 63
-
- #endif /* CATCOMP_NUMBERS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_STRINGS
-
- #define MSG_TITLE_STR "Time Module"
- #define MSG_CLOCK_DESC_STR "A nice clock"
- #define MSG_CLOCKABOUT_STR " CoolClock 1.03\n© Helmut Hummel 1998"
- #define MSG_CLOCKOK_STR "Well done..."
- #define MSG_POP_CHANGEBACK_STR "Background"
- #define MSG_POP_CHANGEFONT_STR "Font"
- #define MSG_POP_SOUND_STR "Sound"
- #define MSG_POP_BORDER_STR "Border"
- #define MSG_POP_AUTOSTART_STR "Autostart"
- #define MSG_POP_ALARM_STR "Alarm"
- #define MSG_POP_FIX_STR "Fix all"
- #define MSG_POP_QUIT_STR "Quit"
- #define MSG_POP_ABOUT_STR "About..."
- #define MSG_POPSUB_PLAIN_STR "plain "
- #define MSG_POPSUB_INVISIBLE_STR "transparent"
- #define MSG_POPSUB_PICTURE_STR "picture"
- #define MSG_CHOOSEFONT_STR "Choose font for the clock"
- #define MSG_CHOOSEPIC_STR "Choose a picture"
- #define MSG_ALARM_STR "Enter a time"
- #define MSG_OK_STR "_Okay"
- #define MSG_CANCEL_STR "_Cancel"
- #define MSG_POPSUB_ALARMSET_STR "Set alarm"
- #define MSG_POPSUB_ALARMONOFF_STR "Alarm enabled"
- #define MSG_HOURS_STR "Hours"
- #define MSG_MINS_STR "Minutes"
-
- #endif /* CATCOMP_STRINGS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_ARRAY
-
- struct CatCompArrayType
- {
- LONG cca_ID;
- STRPTR cca_Str;
- };
-
- static const struct CatCompArrayType CatCompArray[] =
- {
- {MSG_TITLE,(STRPTR)MSG_TITLE_STR},
- {MSG_CLOCK_DESC,(STRPTR)MSG_CLOCK_DESC_STR},
- {MSG_CLOCKABOUT,(STRPTR)MSG_CLOCKABOUT_STR},
- {MSG_CLOCKOK,(STRPTR)MSG_CLOCKOK_STR},
- {MSG_POP_CHANGEBACK,(STRPTR)MSG_POP_CHANGEBACK_STR},
- {MSG_POP_CHANGEFONT,(STRPTR)MSG_POP_CHANGEFONT_STR},
- {MSG_POP_SOUND,(STRPTR)MSG_POP_SOUND_STR},
- {MSG_POP_BORDER,(STRPTR)MSG_POP_BORDER_STR},
- {MSG_POP_AUTOSTART,(STRPTR)MSG_POP_AUTOSTART_STR},
- {MSG_POP_ALARM,(STRPTR)MSG_POP_ALARM_STR},
- {MSG_POP_FIX,(STRPTR)MSG_POP_FIX_STR},
- {MSG_POP_QUIT,(STRPTR)MSG_POP_QUIT_STR},
- {MSG_POP_ABOUT,(STRPTR)MSG_POP_ABOUT_STR},
- {MSG_POPSUB_PLAIN,(STRPTR)MSG_POPSUB_PLAIN_STR},
- {MSG_POPSUB_INVISIBLE,(STRPTR)MSG_POPSUB_INVISIBLE_STR},
- {MSG_POPSUB_PICTURE,(STRPTR)MSG_POPSUB_PICTURE_STR},
- {MSG_CHOOSEFONT,(STRPTR)MSG_CHOOSEFONT_STR},
- {MSG_CHOOSEPIC,(STRPTR)MSG_CHOOSEPIC_STR},
- {MSG_ALARM,(STRPTR)MSG_ALARM_STR},
- {MSG_OK,(STRPTR)MSG_OK_STR},
- {MSG_CANCEL,(STRPTR)MSG_CANCEL_STR},
- {MSG_POPSUB_ALARMSET,(STRPTR)MSG_POPSUB_ALARMSET_STR},
- {MSG_POPSUB_ALARMONOFF,(STRPTR)MSG_POPSUB_ALARMONOFF_STR},
- {MSG_HOURS,(STRPTR)MSG_HOURS_STR},
- {MSG_MINS,(STRPTR)MSG_MINS_STR},
- };
-
- #endif /* CATCOMP_ARRAY */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_BLOCK
-
- static const char CatCompBlock[] =
- {
- "\x00\x00\x00\x00\x00\x0C"
- MSG_TITLE_STR "\x00"
- "\x00\x00\x00\x01\x00\x0E"
- MSG_CLOCK_DESC_STR "\x00\x00"
- "\x00\x00\x00\x02\x00\x2A"
- MSG_CLOCKABOUT_STR "\x00\x00"
- "\x00\x00\x00\x03\x00\x0E"
- MSG_CLOCKOK_STR "\x00\x00"
- "\x00\x00\x00\x04\x00\x0C"
- MSG_POP_CHANGEBACK_STR "\x00\x00"
- "\x00\x00\x00\x05\x00\x06"
- MSG_POP_CHANGEFONT_STR "\x00\x00"
- "\x00\x00\x00\x06\x00\x06"
- MSG_POP_SOUND_STR "\x00"
- "\x00\x00\x00\x07\x00\x08"
- MSG_POP_BORDER_STR "\x00\x00"
- "\x00\x00\x00\x08\x00\x0A"
- MSG_POP_AUTOSTART_STR "\x00"
- "\x00\x00\x00\x09\x00\x06"
- MSG_POP_ALARM_STR "\x00"
- "\x00\x00\x00\x0A\x00\x08"
- MSG_POP_FIX_STR "\x00"
- "\x00\x00\x00\x0B\x00\x06"
- MSG_POP_QUIT_STR "\x00\x00"
- "\x00\x00\x00\x0C\x00\x0A"
- MSG_POP_ABOUT_STR "\x00\x00"
- "\x00\x00\x00\x14\x00\x08"
- MSG_POPSUB_PLAIN_STR "\x00\x00"
- "\x00\x00\x00\x15\x00\x0C"
- MSG_POPSUB_INVISIBLE_STR "\x00"
- "\x00\x00\x00\x16\x00\x08"
- MSG_POPSUB_PICTURE_STR "\x00"
- "\x00\x00\x00\x17\x00\x1A"
- MSG_CHOOSEFONT_STR "\x00"
- "\x00\x00\x00\x18\x00\x12"
- MSG_CHOOSEPIC_STR "\x00\x00"
- "\x00\x00\x00\x19\x00\x0E"
- MSG_ALARM_STR "\x00\x00"
- "\x00\x00\x00\x1A\x00\x06"
- MSG_OK_STR "\x00"
- "\x00\x00\x00\x1B\x00\x08"
- MSG_CANCEL_STR "\x00"
- "\x00\x00\x00\x3C\x00\x0A"
- MSG_POPSUB_ALARMSET_STR "\x00"
- "\x00\x00\x00\x3D\x00\x0E"
- MSG_POPSUB_ALARMONOFF_STR "\x00"
- "\x00\x00\x00\x3E\x00\x06"
- MSG_HOURS_STR "\x00"
- "\x00\x00\x00\x3F\x00\x08"
- MSG_MINS_STR "\x00"
- };
-
- #endif /* CATCOMP_BLOCK */
-
-
- /****************************************************************************/
-
-
- struct LocaleInfo
- {
- APTR li_LocaleBase;
- APTR li_Catalog;
- };
-
-
- #ifdef CATCOMP_CODE
-
- STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
- {
- LONG *l;
- UWORD *w;
- STRPTR builtIn;
-
- l = (LONG *)CatCompBlock;
-
- while (*l != stringNum)
- {
- w = (UWORD *)((ULONG)l + 4);
- l = (LONG *)((ULONG)l + (ULONG)*w + 6);
- }
- builtIn = (STRPTR)((ULONG)l + 6);
-
- #undef LocaleBase
- #define LocaleBase li->li_LocaleBase
-
- if (LocaleBase)
- return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
- #undef LocaleBase
-
- return(builtIn);
- }
-
-
- #endif /* CATCOMP_CODE */
-
-
- /****************************************************************************/
-
-
- #endif /* BUILDIN_H */
-