home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Freeware / CharMap / Sources / cmap_strings.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  9.1 KB  |  334 lines

  1. #ifndef CMAP_STRINGS_H
  2. #define CMAP_STRINGS_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_COPY 0
  36. #define MSG_PASTE 1
  37. #define MSG_STRGAD 2
  38. #define MSG_NEWFONT 3
  39. #define MSG_MENUTITLE 4
  40. #define MSG_FONTTYPE 5
  41. #define MSG_MENUFONTSCREEN 6
  42. #define MSG_MENUTEXTFONT 7
  43. #define MSG_MENUCUSTOMFONT 8
  44. #define MSG_MENUCHARSET 9
  45. #define MSG_MENUASCII8 10
  46. #define MSG_MENUISOLATIN1 11
  47. #define MSG_MENUSTDAMIGA 12
  48. #define MSG_MENUABOUT 13
  49. #define MSG_MENUICONOFY 14
  50. #define MSG_MENUHIDE 15
  51. #define MSG_MENUQUIT 16
  52. #define MSG_EDITMENU 17
  53. #define MSG_CUT 18
  54. #define MSG_MENUCLEARTXT 19
  55. #define MSG_MENUSORT 20
  56. #define MSG_SAVESETTINGS 21
  57. #define MSG_BADOS 22
  58. #define MSG_SCREENLOCK 23
  59. #define MSG_ERRLAYOUT 24
  60. #define MSG_FONTREALLYBIG 25
  61. #define MSG_ERRGADGET 26
  62. #define MSG_ERRNOMEM 27
  63. #define MSG_NOASL 28
  64. #define MSG_NEXTSCR 29
  65. #define MSG_KSNOTFOUND 30
  66. #define MSG_ABOUT 31
  67. #define MSG_ABOUTMSG 32
  68. #define MSG_CONTINUE 33
  69. #define MSG_DESCLINE1 34
  70. #define MSG_DESCLINE2 35
  71. #define MSG_ASLTITLE 36
  72. #define MSG_CHOOSEQUIT 37
  73. #define MSG_CODE 38
  74. #define MSG_DEC 39
  75. #define MSG_HEX 40
  76. #define MSG_OCT 41
  77.  
  78. #endif /* CATCOMP_NUMBERS */
  79.  
  80.  
  81. /****************************************************************************/
  82.  
  83.  
  84. #ifdef CATCOMP_STRINGS
  85.  
  86. #define MSG_COPY_STR "Copy"
  87. #define MSG_PASTE_STR "Paste"
  88. #define MSG_STRGAD_STR "String:"
  89. #define MSG_NEWFONT_STR "Font..."
  90. #define MSG_MENUTITLE_STR "Project"
  91. #define MSG_FONTTYPE_STR "Font"
  92. #define MSG_MENUFONTSCREEN_STR "Screen font"
  93. #define MSG_MENUTEXTFONT_STR "Text font"
  94. #define MSG_MENUCUSTOMFONT_STR "Choose one..."
  95. #define MSG_MENUCHARSET_STR "Charset"
  96. #define MSG_MENUASCII8_STR "8bits ASCII"
  97. #define MSG_MENUISOLATIN1_STR "ISO Latin1"
  98. #define MSG_MENUSTDAMIGA_STR "Amiga Standard"
  99. #define MSG_MENUABOUT_STR "About..."
  100. #define MSG_MENUICONOFY_STR "Minimize"
  101. #define MSG_MENUHIDE_STR "Hide"
  102. #define MSG_MENUQUIT_STR "Quit"
  103. #define MSG_EDITMENU_STR "Edit"
  104. #define MSG_CUT_STR "Cut"
  105. #define MSG_MENUCLEARTXT_STR "Clear text"
  106. #define MSG_MENUSORT_STR "Vertical sort"
  107. #define MSG_SAVESETTINGS_STR "Save settings"
  108. #define MSG_BADOS_STR "Requires WB v36 or more."
  109. #define MSG_SCREENLOCK_STR "The default public screen is locked!"
  110. #define MSG_ERRLAYOUT_STR "Error in the menu layout!"
  111. #define MSG_FONTREALLYBIG_STR "The size of your font is REALLY too big."
  112. #define MSG_ERRGADGET_STR "Unable to alloc gadgets ressoures."
  113. #define MSG_ERRNOMEM_STR "Not enough memory"
  114. #define MSG_NOASL_STR "Unable to open the ASL requester!"
  115. #define MSG_NEXTSCR_STR "Next screen"
  116. #define MSG_KSNOTFOUND_STR "Not found"
  117. #define MSG_ABOUT_STR "About"
  118. #define MSG_ABOUTMSG_STR "CharMap v%s\n© T.Pierron\nFree software under GNU license\nProvided with no warranty!"
  119. #define MSG_CONTINUE_STR "Continue"
  120. #define MSG_DESCLINE1_STR "A little tool, enable you to display"
  121. #define MSG_DESCLINE2_STR "the whole charset of a font"
  122. #define MSG_ASLTITLE_STR "Choose your font"
  123. #define MSG_CHOOSEQUIT_STR "Choose|Quit"
  124. #define MSG_CODE_STR "Code:"
  125. #define MSG_DEC_STR "Dec:"
  126. #define MSG_HEX_STR "Hex:"
  127. #define MSG_OCT_STR "Oct:"
  128.  
  129. #endif /* CATCOMP_STRINGS */
  130.  
  131.  
  132. /****************************************************************************/
  133.  
  134.  
  135. #ifdef CATCOMP_ARRAY
  136.  
  137. struct CatCompArrayType
  138. {
  139.     LONG   cca_ID;
  140.     STRPTR cca_Str;
  141. };
  142.  
  143. static const struct CatCompArrayType CatCompArray[] =
  144. {
  145.     {MSG_COPY,(STRPTR)MSG_COPY_STR},
  146.     {MSG_PASTE,(STRPTR)MSG_PASTE_STR},
  147.     {MSG_STRGAD,(STRPTR)MSG_STRGAD_STR},
  148.     {MSG_NEWFONT,(STRPTR)MSG_NEWFONT_STR},
  149.     {MSG_MENUTITLE,(STRPTR)MSG_MENUTITLE_STR},
  150.     {MSG_FONTTYPE,(STRPTR)MSG_FONTTYPE_STR},
  151.     {MSG_MENUFONTSCREEN,(STRPTR)MSG_MENUFONTSCREEN_STR},
  152.     {MSG_MENUTEXTFONT,(STRPTR)MSG_MENUTEXTFONT_STR},
  153.     {MSG_MENUCUSTOMFONT,(STRPTR)MSG_MENUCUSTOMFONT_STR},
  154.     {MSG_MENUCHARSET,(STRPTR)MSG_MENUCHARSET_STR},
  155.     {MSG_MENUASCII8,(STRPTR)MSG_MENUASCII8_STR},
  156.     {MSG_MENUISOLATIN1,(STRPTR)MSG_MENUISOLATIN1_STR},
  157.     {MSG_MENUSTDAMIGA,(STRPTR)MSG_MENUSTDAMIGA_STR},
  158.     {MSG_MENUABOUT,(STRPTR)MSG_MENUABOUT_STR},
  159.     {MSG_MENUICONOFY,(STRPTR)MSG_MENUICONOFY_STR},
  160.     {MSG_MENUHIDE,(STRPTR)MSG_MENUHIDE_STR},
  161.     {MSG_MENUQUIT,(STRPTR)MSG_MENUQUIT_STR},
  162.     {MSG_EDITMENU,(STRPTR)MSG_EDITMENU_STR},
  163.     {MSG_CUT,(STRPTR)MSG_CUT_STR},
  164.     {MSG_MENUCLEARTXT,(STRPTR)MSG_MENUCLEARTXT_STR},
  165.     {MSG_MENUSORT,(STRPTR)MSG_MENUSORT_STR},
  166.     {MSG_SAVESETTINGS,(STRPTR)MSG_SAVESETTINGS_STR},
  167.     {MSG_BADOS,(STRPTR)MSG_BADOS_STR},
  168.     {MSG_SCREENLOCK,(STRPTR)MSG_SCREENLOCK_STR},
  169.     {MSG_ERRLAYOUT,(STRPTR)MSG_ERRLAYOUT_STR},
  170.     {MSG_FONTREALLYBIG,(STRPTR)MSG_FONTREALLYBIG_STR},
  171.     {MSG_ERRGADGET,(STRPTR)MSG_ERRGADGET_STR},
  172.     {MSG_ERRNOMEM,(STRPTR)MSG_ERRNOMEM_STR},
  173.     {MSG_NOASL,(STRPTR)MSG_NOASL_STR},
  174.     {MSG_NEXTSCR,(STRPTR)MSG_NEXTSCR_STR},
  175.     {MSG_KSNOTFOUND,(STRPTR)MSG_KSNOTFOUND_STR},
  176.     {MSG_ABOUT,(STRPTR)MSG_ABOUT_STR},
  177.     {MSG_ABOUTMSG,(STRPTR)MSG_ABOUTMSG_STR},
  178.     {MSG_CONTINUE,(STRPTR)MSG_CONTINUE_STR},
  179.     {MSG_DESCLINE1,(STRPTR)MSG_DESCLINE1_STR},
  180.     {MSG_DESCLINE2,(STRPTR)MSG_DESCLINE2_STR},
  181.     {MSG_ASLTITLE,(STRPTR)MSG_ASLTITLE_STR},
  182.     {MSG_CHOOSEQUIT,(STRPTR)MSG_CHOOSEQUIT_STR},
  183.     {MSG_CODE,(STRPTR)MSG_CODE_STR},
  184.     {MSG_DEC,(STRPTR)MSG_DEC_STR},
  185.     {MSG_HEX,(STRPTR)MSG_HEX_STR},
  186.     {MSG_OCT,(STRPTR)MSG_OCT_STR},
  187. };
  188.  
  189. #endif /* CATCOMP_ARRAY */
  190.  
  191.  
  192. /****************************************************************************/
  193.  
  194.  
  195. #ifdef CATCOMP_BLOCK
  196.  
  197. static const char CatCompBlock[] =
  198. {
  199.     "\x00\x00\x00\x00\x00\x06"
  200.     MSG_COPY_STR "\x00\x00"
  201.     "\x00\x00\x00\x01\x00\x06"
  202.     MSG_PASTE_STR "\x00"
  203.     "\x00\x00\x00\x02\x00\x08"
  204.     MSG_STRGAD_STR "\x00"
  205.     "\x00\x00\x00\x03\x00\x08"
  206.     MSG_NEWFONT_STR "\x00"
  207.     "\x00\x00\x00\x04\x00\x08"
  208.     MSG_MENUTITLE_STR "\x00"
  209.     "\x00\x00\x00\x05\x00\x06"
  210.     MSG_FONTTYPE_STR "\x00\x00"
  211.     "\x00\x00\x00\x06\x00\x0C"
  212.     MSG_MENUFONTSCREEN_STR "\x00"
  213.     "\x00\x00\x00\x07\x00\x0A"
  214.     MSG_MENUTEXTFONT_STR "\x00"
  215.     "\x00\x00\x00\x08\x00\x0E"
  216.     MSG_MENUCUSTOMFONT_STR "\x00"
  217.     "\x00\x00\x00\x09\x00\x08"
  218.     MSG_MENUCHARSET_STR "\x00"
  219.     "\x00\x00\x00\x0A\x00\x0C"
  220.     MSG_MENUASCII8_STR "\x00"
  221.     "\x00\x00\x00\x0B\x00\x0C"
  222.     MSG_MENUISOLATIN1_STR "\x00\x00"
  223.     "\x00\x00\x00\x0C\x00\x10"
  224.     MSG_MENUSTDAMIGA_STR "\x00\x00"
  225.     "\x00\x00\x00\x0D\x00\x0A"
  226.     MSG_MENUABOUT_STR "\x00\x00"
  227.     "\x00\x00\x00\x0E\x00\x0A"
  228.     MSG_MENUICONOFY_STR "\x00\x00"
  229.     "\x00\x00\x00\x0F\x00\x06"
  230.     MSG_MENUHIDE_STR "\x00\x00"
  231.     "\x00\x00\x00\x10\x00\x06"
  232.     MSG_MENUQUIT_STR "\x00\x00"
  233.     "\x00\x00\x00\x11\x00\x06"
  234.     MSG_EDITMENU_STR "\x00\x00"
  235.     "\x00\x00\x00\x12\x00\x04"
  236.     MSG_CUT_STR "\x00"
  237.     "\x00\x00\x00\x13\x00\x0C"
  238.     MSG_MENUCLEARTXT_STR "\x00\x00"
  239.     "\x00\x00\x00\x14\x00\x0E"
  240.     MSG_MENUSORT_STR "\x00"
  241.     "\x00\x00\x00\x15\x00\x0E"
  242.     MSG_SAVESETTINGS_STR "\x00"
  243.     "\x00\x00\x00\x16\x00\x1A"
  244.     MSG_BADOS_STR "\x00\x00"
  245.     "\x00\x00\x00\x17\x00\x26"
  246.     MSG_SCREENLOCK_STR "\x00\x00"
  247.     "\x00\x00\x00\x18\x00\x1A"
  248.     MSG_ERRLAYOUT_STR "\x00"
  249.     "\x00\x00\x00\x19\x00\x2A"
  250.     MSG_FONTREALLYBIG_STR "\x00\x00"
  251.     "\x00\x00\x00\x1A\x00\x24"
  252.     MSG_ERRGADGET_STR "\x00\x00"
  253.     "\x00\x00\x00\x1B\x00\x12"
  254.     MSG_ERRNOMEM_STR "\x00"
  255.     "\x00\x00\x00\x1C\x00\x22"
  256.     MSG_NOASL_STR "\x00"
  257.     "\x00\x00\x00\x1D\x00\x0C"
  258.     MSG_NEXTSCR_STR "\x00"
  259.     "\x00\x00\x00\x1E\x00\x0A"
  260.     MSG_KSNOTFOUND_STR "\x00"
  261.     "\x00\x00\x00\x1F\x00\x06"
  262.     MSG_ABOUT_STR "\x00"
  263.     "\x00\x00\x00\x20\x00\x54"
  264.     MSG_ABOUTMSG_STR "\x00\x00"
  265.     "\x00\x00\x00\x21\x00\x0A"
  266.     MSG_CONTINUE_STR "\x00\x00"
  267.     "\x00\x00\x00\x22\x00\x26"
  268.     MSG_DESCLINE1_STR "\x00\x00"
  269.     "\x00\x00\x00\x23\x00\x1C"
  270.     MSG_DESCLINE2_STR "\x00"
  271.     "\x00\x00\x00\x24\x00\x12"
  272.     MSG_ASLTITLE_STR "\x00\x00"
  273.     "\x00\x00\x00\x25\x00\x0C"
  274.     MSG_CHOOSEQUIT_STR "\x00"
  275.     "\x00\x00\x00\x26\x00\x06"
  276.     MSG_CODE_STR "\x00"
  277.     "\x00\x00\x00\x27\x00\x06"
  278.     MSG_DEC_STR "\x00\x00"
  279.     "\x00\x00\x00\x28\x00\x06"
  280.     MSG_HEX_STR "\x00\x00"
  281.     "\x00\x00\x00\x29\x00\x06"
  282.     MSG_OCT_STR "\x00\x00"
  283. };
  284.  
  285. #endif /* CATCOMP_BLOCK */
  286.  
  287.  
  288. /****************************************************************************/
  289.  
  290.  
  291. struct LocaleInfo
  292. {
  293.     APTR li_LocaleBase;
  294.     APTR li_Catalog;
  295. };
  296.  
  297.  
  298. #ifdef CATCOMP_CODE
  299.  
  300. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  301. {
  302. LONG   *l;
  303. UWORD  *w;
  304. STRPTR  builtIn;
  305.  
  306.     l = (LONG *)CatCompBlock;
  307.  
  308.     while (*l != stringNum)
  309.     {
  310.         w = (UWORD *)((ULONG)l + 4);
  311.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  312.     }
  313.     builtIn = (STRPTR)((ULONG)l + 6);
  314.  
  315. #define XLocaleBase LocaleBase
  316. #define LocaleBase li->li_LocaleBase
  317.     
  318.     if (LocaleBase)
  319.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  320. #define LocaleBase XLocaleBase
  321. #undef XLocaleBase
  322.  
  323.     return(builtIn);
  324. }
  325.  
  326.  
  327. #endif /* CATCOMP_CODE */
  328.  
  329.  
  330. /****************************************************************************/
  331.  
  332.  
  333. #endif /* CMAP_STRINGS_H */
  334.