home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / RndPic_module / includes / buildin.strings < prev    next >
Encoding:
Text File  |  1998-04-24  |  5.5 KB  |  238 lines

  1. #ifndef BUILDIN_H
  2. #define BUILDIN_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_TITLE 1000
  36. #define MSG_RNDPIC_DESC 1001
  37. #define MSG_CHANGE_DESC 1002
  38. #define MSG_DESKTOP 1003
  39. #define MSG_LISTER 1004
  40. #define MSG_REQUESTER 1005
  41. #define MSG_SAVE 1006
  42. #define MSG_TEST 1007
  43. #define MSG_CANCEL 1008
  44. #define MSG_POPUP 1009
  45. #define MSG_TILE 1010
  46. #define MSG_POP2 1011
  47. #define MSG_POP1 1012
  48. #define MSG_POP3 1013
  49. #define MSG_POP4 1014
  50. #define MSG_POP5 1015
  51. #define MSG_POP6 1016
  52. #define MSG_DELAY_C 1017
  53. #define MSG_UNTIL 1018
  54. #define MSG_MIDDLE 1019
  55. #define MSG_COPIED 1020
  56. #define MSG_DELAY 1021
  57. #define MSG_COPYPATH 1022
  58.  
  59. #endif /* CATCOMP_NUMBERS */
  60.  
  61.  
  62. /****************************************************************************/
  63.  
  64.  
  65. #ifdef CATCOMP_STRINGS
  66.  
  67. #define MSG_TITLE_STR "RndPic Module"
  68. #define MSG_RNDPIC_DESC_STR "RndPic preferences"
  69. #define MSG_CHANGE_DESC_STR "Change pattern randomly"
  70. #define MSG_DESKTOP_STR "Desktop"
  71. #define MSG_LISTER_STR "Lister"
  72. #define MSG_REQUESTER_STR "Requester"
  73. #define MSG_SAVE_STR "Save"
  74. #define MSG_TEST_STR "Test it"
  75. #define MSG_CANCEL_STR "Cancel"
  76. #define MSG_POPUP_STR "Center picture"
  77. #define MSG_TILE_STR "Tile picture"
  78. #define MSG_POP2_STR "."
  79. #define MSG_POP1_STR "Do not remap"
  80. #define MSG_POP3_STR "Bad quality"
  81. #define MSG_POP4_STR "Mediocre quality"
  82. #define MSG_POP5_STR "Better quality"
  83. #define MSG_POP6_STR "Best quality"
  84. #define MSG_DELAY_C_STR "Delay time"
  85. #define MSG_UNTIL_STR "until start"
  86. #define MSG_MIDDLE_STR "between cmd"
  87. #define MSG_COPIED_STR "Use copy method"
  88. #define MSG_DELAY_STR "Use command method"
  89. #define MSG_COPYPATH_STR "Create links in"
  90.  
  91. #endif /* CATCOMP_STRINGS */
  92.  
  93.  
  94. /****************************************************************************/
  95.  
  96.  
  97. #ifdef CATCOMP_ARRAY
  98.  
  99. struct CatCompArrayType
  100. {
  101.     LONG   cca_ID;
  102.     STRPTR cca_Str;
  103. };
  104.  
  105. static const struct CatCompArrayType CatCompArray[] =
  106. {
  107.     {MSG_TITLE,(STRPTR)MSG_TITLE_STR},
  108.     {MSG_RNDPIC_DESC,(STRPTR)MSG_RNDPIC_DESC_STR},
  109.     {MSG_CHANGE_DESC,(STRPTR)MSG_CHANGE_DESC_STR},
  110.     {MSG_DESKTOP,(STRPTR)MSG_DESKTOP_STR},
  111.     {MSG_LISTER,(STRPTR)MSG_LISTER_STR},
  112.     {MSG_REQUESTER,(STRPTR)MSG_REQUESTER_STR},
  113.     {MSG_SAVE,(STRPTR)MSG_SAVE_STR},
  114.     {MSG_TEST,(STRPTR)MSG_TEST_STR},
  115.     {MSG_CANCEL,(STRPTR)MSG_CANCEL_STR},
  116.     {MSG_POPUP,(STRPTR)MSG_POPUP_STR},
  117.     {MSG_TILE,(STRPTR)MSG_TILE_STR},
  118.     {MSG_POP2,(STRPTR)MSG_POP2_STR},
  119.     {MSG_POP1,(STRPTR)MSG_POP1_STR},
  120.     {MSG_POP3,(STRPTR)MSG_POP3_STR},
  121.     {MSG_POP4,(STRPTR)MSG_POP4_STR},
  122.     {MSG_POP5,(STRPTR)MSG_POP5_STR},
  123.     {MSG_POP6,(STRPTR)MSG_POP6_STR},
  124.     {MSG_DELAY_C,(STRPTR)MSG_DELAY_C_STR},
  125.     {MSG_UNTIL,(STRPTR)MSG_UNTIL_STR},
  126.     {MSG_MIDDLE,(STRPTR)MSG_MIDDLE_STR},
  127.     {MSG_COPIED,(STRPTR)MSG_COPIED_STR},
  128.     {MSG_DELAY,(STRPTR)MSG_DELAY_STR},
  129.     {MSG_COPYPATH,(STRPTR)MSG_COPYPATH_STR},
  130. };
  131.  
  132. #endif /* CATCOMP_ARRAY */
  133.  
  134.  
  135. /****************************************************************************/
  136.  
  137.  
  138. #ifdef CATCOMP_BLOCK
  139.  
  140. static const char CatCompBlock[] =
  141. {
  142.     "\x00\x00\x03\xE8\x00\x0E"
  143.     MSG_TITLE_STR "\x00"
  144.     "\x00\x00\x03\xE9\x00\x14"
  145.     MSG_RNDPIC_DESC_STR "\x00\x00"
  146.     "\x00\x00\x03\xEA\x00\x18"
  147.     MSG_CHANGE_DESC_STR "\x00"
  148.     "\x00\x00\x03\xEB\x00\x08"
  149.     MSG_DESKTOP_STR "\x00"
  150.     "\x00\x00\x03\xEC\x00\x08"
  151.     MSG_LISTER_STR "\x00\x00"
  152.     "\x00\x00\x03\xED\x00\x0A"
  153.     MSG_REQUESTER_STR "\x00"
  154.     "\x00\x00\x03\xEE\x00\x06"
  155.     MSG_SAVE_STR "\x00\x00"
  156.     "\x00\x00\x03\xEF\x00\x08"
  157.     MSG_TEST_STR "\x00"
  158.     "\x00\x00\x03\xF0\x00\x08"
  159.     MSG_CANCEL_STR "\x00\x00"
  160.     "\x00\x00\x03\xF1\x00\x10"
  161.     MSG_POPUP_STR "\x00\x00"
  162.     "\x00\x00\x03\xF2\x00\x0E"
  163.     MSG_TILE_STR "\x00\x00"
  164.     "\x00\x00\x03\xF3\x00\x02"
  165.     MSG_POP2_STR "\x00"
  166.     "\x00\x00\x03\xF4\x00\x0E"
  167.     MSG_POP1_STR "\x00\x00"
  168.     "\x00\x00\x03\xF5\x00\x0C"
  169.     MSG_POP3_STR "\x00"
  170.     "\x00\x00\x03\xF6\x00\x12"
  171.     MSG_POP4_STR "\x00\x00"
  172.     "\x00\x00\x03\xF7\x00\x10"
  173.     MSG_POP5_STR "\x00\x00"
  174.     "\x00\x00\x03\xF8\x00\x0E"
  175.     MSG_POP6_STR "\x00\x00"
  176.     "\x00\x00\x03\xF9\x00\x0C"
  177.     MSG_DELAY_C_STR "\x00\x00"
  178.     "\x00\x00\x03\xFA\x00\x0C"
  179.     MSG_UNTIL_STR "\x00"
  180.     "\x00\x00\x03\xFB\x00\x0C"
  181.     MSG_MIDDLE_STR "\x00"
  182.     "\x00\x00\x03\xFC\x00\x10"
  183.     MSG_COPIED_STR "\x00"
  184.     "\x00\x00\x03\xFD\x00\x14"
  185.     MSG_DELAY_STR "\x00\x00"
  186.     "\x00\x00\x03\xFE\x00\x10"
  187.     MSG_COPYPATH_STR "\x00"
  188. };
  189.  
  190. #endif /* CATCOMP_BLOCK */
  191.  
  192.  
  193. /****************************************************************************/
  194.  
  195.  
  196. struct LocaleInfo
  197. {
  198.     APTR li_LocaleBase;
  199.     APTR li_Catalog;
  200. };
  201.  
  202.  
  203. #ifdef CATCOMP_CODE
  204.  
  205. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  206. {
  207. LONG   *l;
  208. UWORD  *w;
  209. STRPTR  builtIn;
  210.  
  211.     l = (LONG *)CatCompBlock;
  212.  
  213.     while (*l != stringNum)
  214.     {
  215.         w = (UWORD *)((ULONG)l + 4);
  216.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  217.     }
  218.     builtIn = (STRPTR)((ULONG)l + 6);
  219.  
  220. #undef LocaleBase
  221. #define LocaleBase li->li_LocaleBase
  222.     
  223.     if (LocaleBase)
  224.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  225. #undef LocaleBase
  226.  
  227.     return(builtIn);
  228. }
  229.  
  230.  
  231. #endif /* CATCOMP_CODE */
  232.  
  233.  
  234. /****************************************************************************/
  235.  
  236.  
  237. #endif /* BUILDIN_H */
  238.