home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #2 / Amiga Plus CD - 2004 - No. 02.iso / AmigaPlus / Tools / Anwendungen / glmatrix / source / gui_cd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-01-31  |  5.4 KB  |  238 lines

  1. #ifndef GUI_CD_H
  2. #define GUI_CD_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 LBL_Timeout 256
  36. #define LBL_Density 257
  37. #define LBL_Speed 258
  38. #define CHS_Matrix 259
  39. #define CHS_Binary 260
  40. #define CHS_Hexadecimal 261
  41. #define CHS_DNA 262
  42. #define LBL_Encoding 263
  43. #define CHK_Fog 264
  44. #define CHK_Wave 265
  45. #define CHK_Rotate 266
  46. #define BTN_Save 267
  47. #define BTN_Cancel 269
  48. #define Window_Title 270
  49. #define Icon_Title 271
  50. #define CHS_Decimal 272
  51. #define BTN_Use 273
  52. #define CHS_Size_1 274
  53. #define CHS_Size_2 275
  54. #define CHS_Size_3 276
  55. #define CHS_Size_4 277
  56. #define LBL_ScreenSize 278
  57. #define CHK_Invert 279
  58.  
  59. #endif /* CATCOMP_NUMBERS */
  60.  
  61.  
  62. /****************************************************************************/
  63.  
  64.  
  65. #ifdef CATCOMP_STRINGS
  66.  
  67. #define LBL_Timeout_STR "Timeout: "
  68. #define LBL_Density_STR "Density: "
  69. #define LBL_Speed_STR "Speed: "
  70. #define CHS_Matrix_STR "Matrix"
  71. #define CHS_Binary_STR "Binary"
  72. #define CHS_Hexadecimal_STR "Hexadecimal"
  73. #define CHS_DNA_STR "DNA"
  74. #define LBL_Encoding_STR "Encoding: "
  75. #define CHK_Fog_STR "_Fog"
  76. #define CHK_Wave_STR "_Wave"
  77. #define CHK_Rotate_STR "_Rotate"
  78. #define BTN_Save_STR "_Save"
  79. #define BTN_Cancel_STR "_Cancel"
  80. #define Window_Title_STR "GLMatrix"
  81. #define Icon_Title_STR "GLMatrix"
  82. #define CHS_Decimal_STR "Decimal"
  83. #define BTN_Use_STR "_Use"
  84. #define CHS_Size_1_STR "640x480"
  85. #define CHS_Size_2_STR "800x600"
  86. #define CHS_Size_3_STR "1024x768"
  87. #define CHS_Size_4_STR "1280x1024"
  88. #define LBL_ScreenSize_STR "Screen size: "
  89. #define CHK_Invert_STR "Invert alpha"
  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.     {LBL_Timeout,(STRPTR)LBL_Timeout_STR},
  108.     {LBL_Density,(STRPTR)LBL_Density_STR},
  109.     {LBL_Speed,(STRPTR)LBL_Speed_STR},
  110.     {CHS_Matrix,(STRPTR)CHS_Matrix_STR},
  111.     {CHS_Binary,(STRPTR)CHS_Binary_STR},
  112.     {CHS_Hexadecimal,(STRPTR)CHS_Hexadecimal_STR},
  113.     {CHS_DNA,(STRPTR)CHS_DNA_STR},
  114.     {LBL_Encoding,(STRPTR)LBL_Encoding_STR},
  115.     {CHK_Fog,(STRPTR)CHK_Fog_STR},
  116.     {CHK_Wave,(STRPTR)CHK_Wave_STR},
  117.     {CHK_Rotate,(STRPTR)CHK_Rotate_STR},
  118.     {BTN_Save,(STRPTR)BTN_Save_STR},
  119.     {BTN_Cancel,(STRPTR)BTN_Cancel_STR},
  120.     {Window_Title,(STRPTR)Window_Title_STR},
  121.     {Icon_Title,(STRPTR)Icon_Title_STR},
  122.     {CHS_Decimal,(STRPTR)CHS_Decimal_STR},
  123.     {BTN_Use,(STRPTR)BTN_Use_STR},
  124.     {CHS_Size_1,(STRPTR)CHS_Size_1_STR},
  125.     {CHS_Size_2,(STRPTR)CHS_Size_2_STR},
  126.     {CHS_Size_3,(STRPTR)CHS_Size_3_STR},
  127.     {CHS_Size_4,(STRPTR)CHS_Size_4_STR},
  128.     {LBL_ScreenSize,(STRPTR)LBL_ScreenSize_STR},
  129.     {CHK_Invert,(STRPTR)CHK_Invert_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\x01\x00\x00\x0A"
  143.     LBL_Timeout_STR "\x00"
  144.     "\x00\x00\x01\x01\x00\x0A"
  145.     LBL_Density_STR "\x00"
  146.     "\x00\x00\x01\x02\x00\x08"
  147.     LBL_Speed_STR "\x00"
  148.     "\x00\x00\x01\x03\x00\x08"
  149.     CHS_Matrix_STR "\x00\x00"
  150.     "\x00\x00\x01\x04\x00\x08"
  151.     CHS_Binary_STR "\x00\x00"
  152.     "\x00\x00\x01\x05\x00\x0C"
  153.     CHS_Hexadecimal_STR "\x00"
  154.     "\x00\x00\x01\x06\x00\x04"
  155.     CHS_DNA_STR "\x00"
  156.     "\x00\x00\x01\x07\x00\x0C"
  157.     LBL_Encoding_STR "\x00\x00"
  158.     "\x00\x00\x01\x08\x00\x06"
  159.     CHK_Fog_STR "\x00\x00"
  160.     "\x00\x00\x01\x09\x00\x06"
  161.     CHK_Wave_STR "\x00"
  162.     "\x00\x00\x01\x0A\x00\x08"
  163.     CHK_Rotate_STR "\x00"
  164.     "\x00\x00\x01\x0B\x00\x06"
  165.     BTN_Save_STR "\x00"
  166.     "\x00\x00\x01\x0D\x00\x08"
  167.     BTN_Cancel_STR "\x00"
  168.     "\x00\x00\x01\x0E\x00\x0A"
  169.     Window_Title_STR "\x00\x00"
  170.     "\x00\x00\x01\x0F\x00\x0A"
  171.     Icon_Title_STR "\x00\x00"
  172.     "\x00\x00\x01\x10\x00\x08"
  173.     CHS_Decimal_STR "\x00"
  174.     "\x00\x00\x01\x11\x00\x06"
  175.     BTN_Use_STR "\x00\x00"
  176.     "\x00\x00\x01\x12\x00\x08"
  177.     CHS_Size_1_STR "\x00"
  178.     "\x00\x00\x01\x13\x00\x08"
  179.     CHS_Size_2_STR "\x00"
  180.     "\x00\x00\x01\x14\x00\x0A"
  181.     CHS_Size_3_STR "\x00\x00"
  182.     "\x00\x00\x01\x15\x00\x0A"
  183.     CHS_Size_4_STR "\x00"
  184.     "\x00\x00\x01\x16\x00\x0E"
  185.     LBL_ScreenSize_STR "\x00"
  186.     "\x00\x00\x01\x17\x00\x0E"
  187.     CHK_Invert_STR "\x00\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 /* GUI_CD_H */
  238.