home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / demos / programme / AmigaWriter-Demo / StormScreenManager / source / ScreenManagerAll.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-06  |  12.2 KB  |  384 lines

  1. #ifndef SCREENMANAGERALL_H
  2. #define SCREENMANAGERALL_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_REQ_54_NAME 1
  36. #define MSG_REQ_54_FORMAT 2
  37. #define MSG_REQ_54_GADGETS 3
  38. #define MSG_REQ_55_NAME 4
  39. #define MSG_REQ_55_FORMAT 5
  40. #define MSG_REQ_55_GADGETS 6
  41. #define MSG_REQ_56_NAME 7
  42. #define MSG_REQ_56_FORMAT 8
  43. #define MSG_REQ_56_GADGETS 9
  44. #define MSG_WIN_1_NAME 10
  45. #define MSG_BUTTON_12_NAME 11
  46. #define MSG_BUTTON_13_NAME 12
  47. #define MSG_BUTTON_14_NAME 13
  48. #define MSG_BUTTON_15_NAME 14
  49. #define MSG_TOGGLE_31_NAME 15
  50. #define MSG_LABEL_30_NAME 16
  51. #define MSG_BUTTON_46_NAME 17
  52. #define MSG_LABEL_24_NAME 18
  53. #define MSG_LABEL_27_NAME 19
  54. #define MSG_MENU_47_NAME 20
  55. #define MSG_ITEM_48_NAME 21
  56. #define MSG_ITEM_50_NAME 22
  57. #define MSG_ITEM_52_NAME 23
  58. #define MSG_ITEM_53_NAME 24
  59. #define MSG_WIN_34_NAME 25
  60. #define MSG_LABEL_58_NAME 26
  61. #define MSG_LABEL_61_NAME 27
  62. #define MSG_LABEL_64_NAME 28
  63. #define MSG_LABEL_76_NAME 29
  64. #define MSG_CYCLE_77_NAME 30
  65. #define MSG_LABEL_73_NAME 31
  66. #define MSG_LABEL_80_NAME 32
  67. #define MSG_LABEL_68_NAME 33
  68. #define MSG_LABEL_83_NAME 34
  69. #define MSG_LABEL_71_NAME 35
  70. #define MSG_LABEL_86_NAME 36
  71. #define MSG_NAME_ID 37
  72. #define MSG_DISPLAYMODE_ID 38
  73. #define MSG_FONT_ID 39
  74. #define MSG_UNKNOWN_ID 40
  75. #define MSG_FONTTEXT_ID 41
  76. #define MSG_OUT_OF_MEMORY_ID 42
  77. #define MSG_UNABLE_TO_READ_ICON_ID 43
  78. #define MSG_UNABLE_TO_WRITE_ICON_ID 44
  79. #define MSG_UNABLE_TO_OPEN_WIZARD_FILE_ID 45
  80. #define MSG_REXXPORT_IN_USE_ID 46
  81. #define MSG_SELECT_SCREEN_MODE_ID 47
  82. #define MSG_SELECT_FONT_ID 48
  83. #define MSG_BROKER_TITLE_ID 49
  84. #define MSG_BROKER_DESCRIP_ID 50
  85. #define MSG_UNABLE_TO_INSTALL_COMMODITY_ID 51
  86. #define MSG_FATAL_ID 52
  87.  
  88. #endif /* CATCOMP_NUMBERS */
  89.  
  90.  
  91. /****************************************************************************/
  92.  
  93.  
  94. #ifdef CATCOMP_STRINGS
  95.  
  96. #define MSG_REQ_54_NAME_STR "About..."
  97. #define MSG_REQ_54_FORMAT_STR "StormScreenManager V2.0\n© 1996-1998 HAAGE & PARTNER GmbH"
  98. #define MSG_REQ_54_GADGETS_STR "OK"
  99. #define MSG_REQ_55_NAME_STR "StormScreenManager"
  100. #define MSG_REQ_55_FORMAT_STR "Error: %s."
  101. #define MSG_REQ_55_GADGETS_STR "OK"
  102. #define MSG_REQ_56_NAME_STR "StormScreenManager"
  103. #define MSG_REQ_56_FORMAT_STR "Unable to open screen\n\"%s\""
  104. #define MSG_REQ_56_GADGETS_STR "OK"
  105. #define MSG_WIN_1_NAME_STR "Storm Screen Manager"
  106. #define MSG_BUTTON_12_NAME_STR "_New"
  107. #define MSG_BUTTON_13_NAME_STR "_Delete"
  108. #define MSG_BUTTON_14_NAME_STR "_Mode..."
  109. #define MSG_BUTTON_15_NAME_STR "_Font..."
  110. #define MSG_TOGGLE_31_NAME_STR "_Open..."
  111. #define MSG_LABEL_30_NAME_STR "Open _Behind"
  112. #define MSG_BUTTON_46_NAME_STR "P_roperties..."
  113. #define MSG_LABEL_24_NAME_STR "Shanghai"
  114. #define MSG_LABEL_27_NAME_STR "Auto Popup"
  115. #define MSG_MENU_47_NAME_STR "Project"
  116. #define MSG_ITEM_48_NAME_STR "S\x00Save"
  117. #define MSG_ITEM_50_NAME_STR "\x00About..."
  118. #define MSG_ITEM_52_NAME_STR "H\x00Hide"
  119. #define MSG_ITEM_53_NAME_STR "Q\x00Quit"
  120. #define MSG_WIN_34_NAME_STR "Properties"
  121. #define MSG_LABEL_58_NAME_STR "Colors"
  122. #define MSG_LABEL_61_NAME_STR "Width"
  123. #define MSG_LABEL_64_NAME_STR "Height"
  124. #define MSG_LABEL_76_NAME_STR "_Font"
  125. #define MSG_CYCLE_77_NAME_STR "Custom\nSystem\nWorkbench"
  126. #define MSG_LABEL_73_NAME_STR "_Title"
  127. #define MSG_LABEL_80_NAME_STR "Like _Workbench"
  128. #define MSG_LABEL_68_NAME_STR "_CloseGadget"
  129. #define MSG_LABEL_83_NAME_STR "_Draggable"
  130. #define MSG_LABEL_71_NAME_STR "_Quiet"
  131. #define MSG_LABEL_86_NAME_STR "_Exclusive"
  132. #define MSG_NAME_ID_STR "Name"
  133. #define MSG_DISPLAYMODE_ID_STR "Displaymode"
  134. #define MSG_FONT_ID_STR "Font"
  135. #define MSG_UNKNOWN_ID_STR "«Unknown»"
  136. #define MSG_FONTTEXT_ID_STR "%s/%ld"
  137. #define MSG_OUT_OF_MEMORY_ID_STR "Out of memory"
  138. #define MSG_UNABLE_TO_READ_ICON_ID_STR "Unable to read icon"
  139. #define MSG_UNABLE_TO_WRITE_ICON_ID_STR "Unable to write icon"
  140. #define MSG_UNABLE_TO_OPEN_WIZARD_FILE_ID_STR "Unable to open wizard resource file"
  141. #define MSG_REXXPORT_IN_USE_ID_STR "Rexx port \"StormScreenManager\" already in use"
  142. #define MSG_SELECT_SCREEN_MODE_ID_STR "Select Screen Mode..."
  143. #define MSG_SELECT_FONT_ID_STR "Select Font..."
  144. #define MSG_BROKER_TITLE_ID_STR "StormScreenManager V2 © HAAGE&PARTNER"
  145. #define MSG_BROKER_DESCRIP_ID_STR "A Public Screen Manager"
  146. #define MSG_UNABLE_TO_INSTALL_COMMODITY_ID_STR "Unable to install commodity"
  147. #define MSG_FATAL_ID_STR "Resource allocation failed."
  148.  
  149. #endif /* CATCOMP_STRINGS */
  150.  
  151.  
  152. /****************************************************************************/
  153.  
  154.  
  155. #ifdef CATCOMP_ARRAY
  156.  
  157. struct CatCompArrayType
  158. {
  159.     LONG   cca_ID;
  160.     STRPTR cca_Str;
  161. };
  162.  
  163. static const struct CatCompArrayType CatCompArray[] =
  164. {
  165.     {MSG_REQ_54_NAME,(STRPTR)MSG_REQ_54_NAME_STR},
  166.     {MSG_REQ_54_FORMAT,(STRPTR)MSG_REQ_54_FORMAT_STR},
  167.     {MSG_REQ_54_GADGETS,(STRPTR)MSG_REQ_54_GADGETS_STR},
  168.     {MSG_REQ_55_NAME,(STRPTR)MSG_REQ_55_NAME_STR},
  169.     {MSG_REQ_55_FORMAT,(STRPTR)MSG_REQ_55_FORMAT_STR},
  170.     {MSG_REQ_55_GADGETS,(STRPTR)MSG_REQ_55_GADGETS_STR},
  171.     {MSG_REQ_56_NAME,(STRPTR)MSG_REQ_56_NAME_STR},
  172.     {MSG_REQ_56_FORMAT,(STRPTR)MSG_REQ_56_FORMAT_STR},
  173.     {MSG_REQ_56_GADGETS,(STRPTR)MSG_REQ_56_GADGETS_STR},
  174.     {MSG_WIN_1_NAME,(STRPTR)MSG_WIN_1_NAME_STR},
  175.     {MSG_BUTTON_12_NAME,(STRPTR)MSG_BUTTON_12_NAME_STR},
  176.     {MSG_BUTTON_13_NAME,(STRPTR)MSG_BUTTON_13_NAME_STR},
  177.     {MSG_BUTTON_14_NAME,(STRPTR)MSG_BUTTON_14_NAME_STR},
  178.     {MSG_BUTTON_15_NAME,(STRPTR)MSG_BUTTON_15_NAME_STR},
  179.     {MSG_TOGGLE_31_NAME,(STRPTR)MSG_TOGGLE_31_NAME_STR},
  180.     {MSG_LABEL_30_NAME,(STRPTR)MSG_LABEL_30_NAME_STR},
  181.     {MSG_BUTTON_46_NAME,(STRPTR)MSG_BUTTON_46_NAME_STR},
  182.     {MSG_LABEL_24_NAME,(STRPTR)MSG_LABEL_24_NAME_STR},
  183.     {MSG_LABEL_27_NAME,(STRPTR)MSG_LABEL_27_NAME_STR},
  184.     {MSG_MENU_47_NAME,(STRPTR)MSG_MENU_47_NAME_STR},
  185.     {MSG_ITEM_48_NAME,(STRPTR)MSG_ITEM_48_NAME_STR},
  186.     {MSG_ITEM_50_NAME,(STRPTR)MSG_ITEM_50_NAME_STR},
  187.     {MSG_ITEM_52_NAME,(STRPTR)MSG_ITEM_52_NAME_STR},
  188.     {MSG_ITEM_53_NAME,(STRPTR)MSG_ITEM_53_NAME_STR},
  189.     {MSG_WIN_34_NAME,(STRPTR)MSG_WIN_34_NAME_STR},
  190.     {MSG_LABEL_58_NAME,(STRPTR)MSG_LABEL_58_NAME_STR},
  191.     {MSG_LABEL_61_NAME,(STRPTR)MSG_LABEL_61_NAME_STR},
  192.     {MSG_LABEL_64_NAME,(STRPTR)MSG_LABEL_64_NAME_STR},
  193.     {MSG_LABEL_76_NAME,(STRPTR)MSG_LABEL_76_NAME_STR},
  194.     {MSG_CYCLE_77_NAME,(STRPTR)MSG_CYCLE_77_NAME_STR},
  195.     {MSG_LABEL_73_NAME,(STRPTR)MSG_LABEL_73_NAME_STR},
  196.     {MSG_LABEL_80_NAME,(STRPTR)MSG_LABEL_80_NAME_STR},
  197.     {MSG_LABEL_68_NAME,(STRPTR)MSG_LABEL_68_NAME_STR},
  198.     {MSG_LABEL_83_NAME,(STRPTR)MSG_LABEL_83_NAME_STR},
  199.     {MSG_LABEL_71_NAME,(STRPTR)MSG_LABEL_71_NAME_STR},
  200.     {MSG_LABEL_86_NAME,(STRPTR)MSG_LABEL_86_NAME_STR},
  201.     {MSG_NAME_ID,(STRPTR)MSG_NAME_ID_STR},
  202.     {MSG_DISPLAYMODE_ID,(STRPTR)MSG_DISPLAYMODE_ID_STR},
  203.     {MSG_FONT_ID,(STRPTR)MSG_FONT_ID_STR},
  204.     {MSG_UNKNOWN_ID,(STRPTR)MSG_UNKNOWN_ID_STR},
  205.     {MSG_FONTTEXT_ID,(STRPTR)MSG_FONTTEXT_ID_STR},
  206.     {MSG_OUT_OF_MEMORY_ID,(STRPTR)MSG_OUT_OF_MEMORY_ID_STR},
  207.     {MSG_UNABLE_TO_READ_ICON_ID,(STRPTR)MSG_UNABLE_TO_READ_ICON_ID_STR},
  208.     {MSG_UNABLE_TO_WRITE_ICON_ID,(STRPTR)MSG_UNABLE_TO_WRITE_ICON_ID_STR},
  209.     {MSG_UNABLE_TO_OPEN_WIZARD_FILE_ID,(STRPTR)MSG_UNABLE_TO_OPEN_WIZARD_FILE_ID_STR},
  210.     {MSG_REXXPORT_IN_USE_ID,(STRPTR)MSG_REXXPORT_IN_USE_ID_STR},
  211.     {MSG_SELECT_SCREEN_MODE_ID,(STRPTR)MSG_SELECT_SCREEN_MODE_ID_STR},
  212.     {MSG_SELECT_FONT_ID,(STRPTR)MSG_SELECT_FONT_ID_STR},
  213.     {MSG_BROKER_TITLE_ID,(STRPTR)MSG_BROKER_TITLE_ID_STR},
  214.     {MSG_BROKER_DESCRIP_ID,(STRPTR)MSG_BROKER_DESCRIP_ID_STR},
  215.     {MSG_UNABLE_TO_INSTALL_COMMODITY_ID,(STRPTR)MSG_UNABLE_TO_INSTALL_COMMODITY_ID_STR},
  216.     {MSG_FATAL_ID,(STRPTR)MSG_FATAL_ID_STR},
  217. };
  218.  
  219. #endif /* CATCOMP_ARRAY */
  220.  
  221.  
  222. /****************************************************************************/
  223.  
  224.  
  225. #ifdef CATCOMP_BLOCK
  226.  
  227. static const char CatCompBlock[] =
  228. {
  229.     "\x00\x00\x00\x01\x00\x0A"
  230.     MSG_REQ_54_NAME_STR "\x00\x00"
  231.     "\x00\x00\x00\x02\x00\x3A"
  232.     MSG_REQ_54_FORMAT_STR "\x00\x00"
  233.     "\x00\x00\x00\x03\x00\x04"
  234.     MSG_REQ_54_GADGETS_STR "\x00\x00"
  235.     "\x00\x00\x00\x04\x00\x14"
  236.     MSG_REQ_55_NAME_STR "\x00\x00"
  237.     "\x00\x00\x00\x05\x00\x0C"
  238.     MSG_REQ_55_FORMAT_STR "\x00\x00"
  239.     "\x00\x00\x00\x06\x00\x04"
  240.     MSG_REQ_55_GADGETS_STR "\x00\x00"
  241.     "\x00\x00\x00\x07\x00\x14"
  242.     MSG_REQ_56_NAME_STR "\x00\x00"
  243.     "\x00\x00\x00\x08\x00\x1C"
  244.     MSG_REQ_56_FORMAT_STR "\x00\x00"
  245.     "\x00\x00\x00\x09\x00\x04"
  246.     MSG_REQ_56_GADGETS_STR "\x00\x00"
  247.     "\x00\x00\x00\x0A\x00\x16"
  248.     MSG_WIN_1_NAME_STR "\x00\x00"
  249.     "\x00\x00\x00\x0B\x00\x06"
  250.     MSG_BUTTON_12_NAME_STR "\x00\x00"
  251.     "\x00\x00\x00\x0C\x00\x08"
  252.     MSG_BUTTON_13_NAME_STR "\x00"
  253.     "\x00\x00\x00\x0D\x00\x0A"
  254.     MSG_BUTTON_14_NAME_STR "\x00\x00"
  255.     "\x00\x00\x00\x0E\x00\x0A"
  256.     MSG_BUTTON_15_NAME_STR "\x00\x00"
  257.     "\x00\x00\x00\x0F\x00\x0A"
  258.     MSG_TOGGLE_31_NAME_STR "\x00\x00"
  259.     "\x00\x00\x00\x10\x00\x0E"
  260.     MSG_LABEL_30_NAME_STR "\x00\x00"
  261.     "\x00\x00\x00\x11\x00\x10"
  262.     MSG_BUTTON_46_NAME_STR "\x00\x00"
  263.     "\x00\x00\x00\x12\x00\x0A"
  264.     MSG_LABEL_24_NAME_STR "\x00\x00"
  265.     "\x00\x00\x00\x13\x00\x0C"
  266.     MSG_LABEL_27_NAME_STR "\x00\x00"
  267.     "\x00\x00\x00\x14\x00\x08"
  268.     MSG_MENU_47_NAME_STR "\x00"
  269.     "\x00\x00\x00\x15\x00\x08"
  270.     MSG_ITEM_48_NAME_STR "\x00\x00"
  271.     "\x00\x00\x00\x16\x00\x0A"
  272.     MSG_ITEM_50_NAME_STR "\x00"
  273.     "\x00\x00\x00\x17\x00\x08"
  274.     MSG_ITEM_52_NAME_STR "\x00\x00"
  275.     "\x00\x00\x00\x18\x00\x08"
  276.     MSG_ITEM_53_NAME_STR "\x00\x00"
  277.     "\x00\x00\x00\x19\x00\x0C"
  278.     MSG_WIN_34_NAME_STR "\x00\x00"
  279.     "\x00\x00\x00\x1A\x00\x08"
  280.     MSG_LABEL_58_NAME_STR "\x00\x00"
  281.     "\x00\x00\x00\x1B\x00\x06"
  282.     MSG_LABEL_61_NAME_STR "\x00"
  283.     "\x00\x00\x00\x1C\x00\x08"
  284.     MSG_LABEL_64_NAME_STR "\x00\x00"
  285.     "\x00\x00\x00\x1D\x00\x06"
  286.     MSG_LABEL_76_NAME_STR "\x00"
  287.     "\x00\x00\x00\x1E\x00\x18"
  288.     MSG_CYCLE_77_NAME_STR "\x00"
  289.     "\x00\x00\x00\x1F\x00\x08"
  290.     MSG_LABEL_73_NAME_STR "\x00\x00"
  291.     "\x00\x00\x00\x20\x00\x10"
  292.     MSG_LABEL_80_NAME_STR "\x00"
  293.     "\x00\x00\x00\x21\x00\x0E"
  294.     MSG_LABEL_68_NAME_STR "\x00\x00"
  295.     "\x00\x00\x00\x22\x00\x0C"
  296.     MSG_LABEL_83_NAME_STR "\x00\x00"
  297.     "\x00\x00\x00\x23\x00\x08"
  298.     MSG_LABEL_71_NAME_STR "\x00\x00"
  299.     "\x00\x00\x00\x24\x00\x0C"
  300.     MSG_LABEL_86_NAME_STR "\x00\x00"
  301.     "\x00\x00\x00\x25\x00\x06"
  302.     MSG_NAME_ID_STR "\x00\x00"
  303.     "\x00\x00\x00\x26\x00\x0C"
  304.     MSG_DISPLAYMODE_ID_STR "\x00"
  305.     "\x00\x00\x00\x27\x00\x06"
  306.     MSG_FONT_ID_STR "\x00\x00"
  307.     "\x00\x00\x00\x28\x00\x0A"
  308.     MSG_UNKNOWN_ID_STR "\x00"
  309.     "\x00\x00\x00\x29\x00\x08"
  310.     MSG_FONTTEXT_ID_STR "\x00\x00"
  311.     "\x00\x00\x00\x2A\x00\x0E"
  312.     MSG_OUT_OF_MEMORY_ID_STR "\x00"
  313.     "\x00\x00\x00\x2B\x00\x14"
  314.     MSG_UNABLE_TO_READ_ICON_ID_STR "\x00"
  315.     "\x00\x00\x00\x2C\x00\x16"
  316.     MSG_UNABLE_TO_WRITE_ICON_ID_STR "\x00\x00"
  317.     "\x00\x00\x00\x2D\x00\x24"
  318.     MSG_UNABLE_TO_OPEN_WIZARD_FILE_ID_STR "\x00"
  319.     "\x00\x00\x00\x2E\x00\x2E"
  320.     MSG_REXXPORT_IN_USE_ID_STR "\x00"
  321.     "\x00\x00\x00\x2F\x00\x16"
  322.     MSG_SELECT_SCREEN_MODE_ID_STR "\x00"
  323.     "\x00\x00\x00\x30\x00\x10"
  324.     MSG_SELECT_FONT_ID_STR "\x00\x00"
  325.     "\x00\x00\x00\x31\x00\x26"
  326.     MSG_BROKER_TITLE_ID_STR "\x00"
  327.     "\x00\x00\x00\x32\x00\x18"
  328.     MSG_BROKER_DESCRIP_ID_STR "\x00"
  329.     "\x00\x00\x00\x33\x00\x1C"
  330.     MSG_UNABLE_TO_INSTALL_COMMODITY_ID_STR "\x00"
  331.     "\x00\x00\x00\x34\x00\x1C"
  332.     MSG_FATAL_ID_STR "\x00"
  333. };
  334.  
  335. #endif /* CATCOMP_BLOCK */
  336.  
  337.  
  338. /****************************************************************************/
  339.  
  340.  
  341. struct LocaleInfo
  342. {
  343.     APTR li_LocaleBase;
  344.     APTR li_Catalog;
  345. };
  346.  
  347.  
  348. #ifdef CATCOMP_CODE
  349.  
  350. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  351. {
  352. LONG   *l;
  353. UWORD  *w;
  354. STRPTR  builtIn;
  355.  
  356.     l = (LONG *)CatCompBlock;
  357.  
  358.     while (*l != stringNum)
  359.     {
  360.         w = (UWORD *)((ULONG)l + 4);
  361.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  362.     }
  363.     builtIn = (STRPTR)((ULONG)l + 6);
  364.  
  365. #define XLocaleBase LocaleBase
  366. #define LocaleBase li->li_LocaleBase
  367.     
  368.     if (LocaleBase)
  369.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  370. #define LocaleBase XLocaleBase
  371. #undef XLocaleBase
  372.  
  373.     return(builtIn);
  374. }
  375.  
  376.  
  377. #endif /* CATCOMP_CODE */
  378.  
  379.  
  380. /****************************************************************************/
  381.  
  382.  
  383. #endif /* SCREENMANAGERALL_H */
  384.