#ifndef RECYCLEBIN_H
#define RECYCLEBIN_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_RECYCLEBIN_TITLE 1000
#define MSG_CONFIG_DESC 1001
#define MSG_EMPTY_DESC 1002
#define MSG_EMPTY_TRASH 1003
#define MSG_RECYCLEBIN_STORAGE 1004
#define MSG_RECYCLEBIN_ADD 1005
#define MSG_RECYCLEBIN_DELETE 1006
#define MSG_RECYCLEBIN_STATS 1007
#define MSG_RECYCLEBIN_EMPTY 1008

#endif /* CATCOMP_NUMBERS */


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


#ifdef CATCOMP_STRINGS

#define MSG_RECYCLEBIN_TITLE_STR "Recycle Bin"
#define MSG_CONFIG_DESC_STR "Configure the Recycle Bin"
#define MSG_EMPTY_DESC_STR "Empty the Recycle Bin"
#define MSG_EMPTY_TRASH_STR "Empty"
#define MSG_RECYCLEBIN_STORAGE_STR "Recycle Bin _Storage..."
#define MSG_RECYCLEBIN_ADD_STR "_Add"
#define MSG_RECYCLEBIN_DELETE_STR "_Delete"
#define MSG_RECYCLEBIN_STATS_STR "Statistics..."
#define MSG_RECYCLEBIN_EMPTY_STR "_Empty Bin"

#endif /* CATCOMP_STRINGS */


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


#ifdef CATCOMP_ARRAY

struct CatCompArrayType
{
    LONG   cca_ID;
    STRPTR cca_Str;
};

static const struct CatCompArrayType CatCompArray[] =
{
    {MSG_RECYCLEBIN_TITLE,(STRPTR)MSG_RECYCLEBIN_TITLE_STR},
    {MSG_CONFIG_DESC,(STRPTR)MSG_CONFIG_DESC_STR},
    {MSG_EMPTY_DESC,(STRPTR)MSG_EMPTY_DESC_STR},
    {MSG_EMPTY_TRASH,(STRPTR)MSG_EMPTY_TRASH_STR},
    {MSG_RECYCLEBIN_STORAGE,(STRPTR)MSG_RECYCLEBIN_STORAGE_STR},
    {MSG_RECYCLEBIN_ADD,(STRPTR)MSG_RECYCLEBIN_ADD_STR},
    {MSG_RECYCLEBIN_DELETE,(STRPTR)MSG_RECYCLEBIN_DELETE_STR},
    {MSG_RECYCLEBIN_STATS,(STRPTR)MSG_RECYCLEBIN_STATS_STR},
    {MSG_RECYCLEBIN_EMPTY,(STRPTR)MSG_RECYCLEBIN_EMPTY_STR},
};

#endif /* CATCOMP_ARRAY */


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


#ifdef CATCOMP_BLOCK

static const char CatCompBlock[] =
{
    "\x00\x00\x03\xE8\x00\x0C"
    MSG_RECYCLEBIN_TITLE_STR "\x00"
    "\x00\x00\x03\xE9\x00\x1A"
    MSG_CONFIG_DESC_STR "\x00"
    "\x00\x00\x03\xEA\x00\x16"
    MSG_EMPTY_DESC_STR "\x00"
    "\x00\x00\x03\xEB\x00\x06"
    MSG_EMPTY_TRASH_STR "\x00"
    "\x00\x00\x03\xEC\x00\x18"
    MSG_RECYCLEBIN_STORAGE_STR "\x00"
    "\x00\x00\x03\xED\x00\x06"
    MSG_RECYCLEBIN_ADD_STR "\x00\x00"
    "\x00\x00\x03\xEE\x00\x08"
    MSG_RECYCLEBIN_DELETE_STR "\x00"
    "\x00\x00\x03\xEF\x00\x0E"
    MSG_RECYCLEBIN_STATS_STR "\x00"
    "\x00\x00\x03\xF0\x00\x0C"
    MSG_RECYCLEBIN_EMPTY_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 /* RECYCLEBIN_H */
