#ifndef FIXICONS_H
#define FIXICONS_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_FIXICONS_DESC 1000
#define MSG_FIXING_ICONS 1001
#define MSG_FIXED 1002
#define MSG_COULDNT_FIX 1003
#define MSG_ANB 1004
#define MSG_ANL 1005
#define MSG_NFO 1006
#define MSG_SWO 1007
#define MSG_SOW 1008
#define MSG_RESULTS 1009
#define MSG_NO 1010
#define MSG_CHANGES_MADE 1011

#endif /* CATCOMP_NUMBERS */


/****************************************************************************/


#ifdef CATCOMP_STRINGS

#define MSG_FIXICONS_DESC_STR "Fix problem icons"
#define MSG_FIXING_ICONS_STR "Fixing icons..."
#define MSG_FIXED_STR "Fixed"
#define MSG_COULDNT_FIX_STR "Couldn't fix"
#define MSG_ANB_STR "Border"
#define MSG_ANL_STR "Label"
#define MSG_NFO_STR "Position"
#define MSG_SWO_STR "Sync to Opus"
#define MSG_SOW_STR "Sync to WB"
#define MSG_RESULTS_STR "Results of FixIcons"
#define MSG_NO_STR "No"
#define MSG_CHANGES_MADE_STR "changes made"

#endif /* CATCOMP_STRINGS */


/****************************************************************************/


#ifdef CATCOMP_ARRAY

struct CatCompArrayType
{
    LONG   cca_ID;
    STRPTR cca_Str;
};

static const struct CatCompArrayType CatCompArray[] =
{
    {MSG_FIXICONS_DESC,(STRPTR)MSG_FIXICONS_DESC_STR},
    {MSG_FIXING_ICONS,(STRPTR)MSG_FIXING_ICONS_STR},
    {MSG_FIXED,(STRPTR)MSG_FIXED_STR},
    {MSG_COULDNT_FIX,(STRPTR)MSG_COULDNT_FIX_STR},
    {MSG_ANB,(STRPTR)MSG_ANB_STR},
    {MSG_ANL,(STRPTR)MSG_ANL_STR},
    {MSG_NFO,(STRPTR)MSG_NFO_STR},
    {MSG_SWO,(STRPTR)MSG_SWO_STR},
    {MSG_SOW,(STRPTR)MSG_SOW_STR},
    {MSG_RESULTS,(STRPTR)MSG_RESULTS_STR},
    {MSG_NO,(STRPTR)MSG_NO_STR},
    {MSG_CHANGES_MADE,(STRPTR)MSG_CHANGES_MADE_STR},
};

#endif /* CATCOMP_ARRAY */


/****************************************************************************/


#ifdef CATCOMP_BLOCK

static const char CatCompBlock[] =
{
    "\x00\x00\x03\xE8\x00\x12"
    MSG_FIXICONS_DESC_STR "\x00"
    "\x00\x00\x03\xE9\x00\x10"
    MSG_FIXING_ICONS_STR "\x00"
    "\x00\x00\x03\xEA\x00\x06"
    MSG_FIXED_STR "\x00"
    "\x00\x00\x03\xEB\x00\x0E"
    MSG_COULDNT_FIX_STR "\x00\x00"
    "\x00\x00\x03\xEC\x00\x08"
    MSG_ANB_STR "\x00\x00"
    "\x00\x00\x03\xED\x00\x06"
    MSG_ANL_STR "\x00"
    "\x00\x00\x03\xEE\x00\x0A"
    MSG_NFO_STR "\x00\x00"
    "\x00\x00\x03\xEF\x00\x0E"
    MSG_SWO_STR "\x00\x00"
    "\x00\x00\x03\xF0\x00\x0C"
    MSG_SOW_STR "\x00\x00"
    "\x00\x00\x03\xF1\x00\x14"
    MSG_RESULTS_STR "\x00"
    "\x00\x00\x03\xF2\x00\x04"
    MSG_NO_STR "\x00\x00"
    "\x00\x00\x03\xF3\x00\x0E"
    MSG_CHANGES_MADE_STR "\x00\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);

#define XLocaleBase LocaleBase
#define LocaleBase li->li_LocaleBase
    
    if (LocaleBase)
        return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
#define LocaleBase XLocaleBase
#undef XLocaleBase

    return(builtIn);
}


#endif /* CATCOMP_CODE */


/****************************************************************************/


#endif /* FIXICONS_H */
