home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 100-199 / ff193.lzh / KeyMapEd / Source / KME_Menus.h < prev    next >
C/C++ Source or Header  |  1989-03-13  |  7KB  |  283 lines

  1. /*
  2.  * Key Map Editor Menus
  3.  *
  4.  * by: Tim Friest
  5.  * on: December 31, 1988
  6.  * using: Power Windows v2.5
  7.  */
  8.  
  9. /*
  10.  * Define the Options Menu
  11.  */
  12.  
  13. struct IntuiText OptionsIText5 = {
  14.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  15.     19,0,    /* origin */
  16.     NULL,    /* font */
  17.     "Clear",    /* text */
  18.     NULL    /* next IntuiText */
  19. };
  20.  
  21. struct MenuItem OptionsMenuItem5 = {
  22.     NULL,    /* next MenuItem */
  23.     0,32,    /* origin of Item hitbox relative to parent */
  24.     67,8,    /* hit box width and height */
  25.     CHECKIT|ITEMTEXT|ITEMENABLED|HIGHCOMP,    /* flags */
  26.     ~(1<<4),    /* mutual-exclude bits */
  27.     (APTR)&OptionsIText5,    /* Item render */
  28.     NULL,    /* Select render */
  29.     NULL,    /* command-key */
  30.     NULL,    /* SubItem list */
  31.     MENUNULL    /* next select */
  32. };
  33.  
  34. struct IntuiText OptionsIText4 = {
  35.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  36.     19,0,    /* origin */
  37.     NULL,    /* font */
  38.     "Swap",    /* text */
  39.     NULL    /* next IntuiText */
  40. };
  41.  
  42. struct MenuItem OptionsMenuItem4 = {
  43.     &OptionsMenuItem5,    /* next MenuItem */
  44.     0,24,    /* origin of Item hitbox relative to parent */
  45.     67,8,    /* hit box width and height */
  46.     CHECKIT|ITEMTEXT|ITEMENABLED|HIGHCOMP,    /* flags */
  47.     ~(1<<3),    /* mutual-exclude bits */
  48.     (APTR)&OptionsIText4,    /* Item render */
  49.     NULL,    /* Select render */
  50.     NULL,    /* command-key */
  51.     NULL,    /* SubItem list */
  52.     MENUNULL    /* next select */
  53. };
  54.  
  55. struct IntuiText OptionsIText3 = {
  56.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  57.     19,0,    /* origin */
  58.     NULL,    /* font */
  59.     "Move",    /* text */
  60.     NULL    /* next IntuiText */
  61. };
  62.  
  63. struct MenuItem OptionsMenuItem3 = {
  64.     &OptionsMenuItem4,    /* next MenuItem */
  65.     0,16,    /* origin of Item hitbox relative to parent */
  66.     67,8,    /* hit box width and height */
  67.     CHECKIT|ITEMTEXT|ITEMENABLED|HIGHCOMP,    /* flags */
  68.     ~(1<<2),    /* mutual-exclude bits */
  69.     (APTR)&OptionsIText3,    /* Item render */
  70.     NULL,    /* Select render */
  71.     NULL,    /* command-key */
  72.     NULL,    /* SubItem list */
  73.     MENUNULL    /* next select */
  74. };
  75.  
  76. struct IntuiText OptionsIText2 = {
  77.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  78.     19,0,    /* origin */
  79.     NULL,    /* font */
  80.     "Copy",    /* text */
  81.     NULL    /* next IntuiText */
  82. };
  83.  
  84. struct MenuItem OptionsMenuItem2 = {
  85.     &OptionsMenuItem3,    /* next MenuItem */
  86.     0,8,    /* origin of Item hitbox relative to parent */
  87.     67,8,    /* hit box width and height */
  88.     CHECKIT|ITEMTEXT|ITEMENABLED|HIGHCOMP,    /* flags */
  89.     ~(1<<1),    /* mutual-exclude bits */
  90.     (APTR)&OptionsIText2,    /* Item render */
  91.     NULL,    /* Select render */
  92.     NULL,    /* command-key */
  93.     NULL,    /* SubItem list */
  94.     MENUNULL    /* next select */
  95. };
  96.  
  97. struct IntuiText OptionsIText1 = {
  98.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  99.     19,0,    /* origin */
  100.     NULL,    /* font */
  101.     "Define",    /* text */
  102.     NULL    /* next IntuiText */
  103. };
  104.  
  105. struct MenuItem OptionsMenuItem1 = {
  106.     &OptionsMenuItem2,    /* next MenuItem */
  107.     0,0,    /* origin of Item hitbox relative to parent */
  108.     67,8,    /* hit box width and height */
  109.     CHECKIT|ITEMTEXT|ITEMENABLED|HIGHCOMP|CHECKED,    /* flags */
  110.     ~(1<<0),    /* mutual-exclude bits */
  111.     (APTR)&OptionsIText1,    /* Item render */
  112.     NULL,    /* Select render */
  113.     NULL,    /* command-key */
  114.     NULL,    /* SubItem list */
  115.     MENUNULL    /* next select */
  116. };
  117.  
  118. struct Menu OptionsMenu = {
  119.     NULL,    /* next Menu */
  120.     70,0,    /* origin of hit box */
  121.     63,0,    /* hit box width and height */
  122.     MENUENABLED,    /* flags */
  123.     "Options",    /* text */
  124.     &OptionsMenuItem1    /* MenuItem list */
  125. };
  126.  
  127. /*
  128.  * Define the Project Menu
  129.  */
  130.  
  131. struct IntuiText ProjectIText5 = {
  132.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  133.     0,0,    /* origin */
  134.     NULL,    /* font */
  135.     "Quit",    /* text */
  136.     NULL    /* next IntuiText */
  137. };
  138.  
  139. struct MenuItem ProjectMenuItem5 = {
  140.     NULL,    /* next MenuItem */
  141.     0,32,    /* origin of Item hitbox relative to parent */
  142.     72,8,    /* hit box width and height */
  143.     ITEMTEXT|COMMSEQ|ITEMENABLED|HIGHCOMP,    /* flags */
  144.     0,    /* mutual-exclude bits */
  145.     (APTR)&ProjectIText5,    /* Item render */
  146.     NULL,    /* Select render */
  147.     'Q',    /* command-key */
  148.     NULL,    /* SubItem list */
  149.     MENUNULL    /* next select */
  150. };
  151.  
  152. struct IntuiText CreditsIText2 = {
  153.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  154.     0,16,    /* origin */
  155.     NULL,    /* font */
  156.     "March 1989",    /* text */
  157.     NULL    /* next IntuiText */
  158. };
  159.  
  160. struct IntuiText CreditsIText1 = {
  161.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  162.     0,8,    /* origin */
  163.     NULL,    /* font */
  164.     "By Tim Friest",    /* text */
  165.     &CreditsIText2    /* next IntuiText */
  166. };
  167.  
  168. struct IntuiText CreditsIText0 = {
  169.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  170.     0,0,    /* origin */
  171.     NULL,    /* font */
  172.     KeyMapEdVer,    /* text */
  173.     &CreditsIText1    /* next IntuiText */
  174. };
  175.  
  176. struct MenuItem CreditsMenuItem0 = {
  177.     NULL,    /* next MenuItem */
  178.     70,0,    /* origin of Item hitbox relative to parent */
  179.     155,24,    /* hit box width and height */
  180.     ITEMTEXT|ITEMENABLED|HIGHNONE,    /* flags */
  181.     0,    /* mutual-exclude bits */
  182.     (APTR)&CreditsIText0,    /* Item render */
  183.     NULL,    /* Select render */
  184.     NULL,    /* command-key */
  185.     NULL,    /* SubItem list */
  186.     MENUNULL    /* next select */
  187. };
  188.  
  189. struct IntuiText ProjectIText4 = {
  190.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  191.     0,0,    /* origin */
  192.     NULL,    /* font */
  193.     "Credits",    /* text */
  194.     NULL    /* next IntuiText */
  195. };
  196.  
  197. struct MenuItem ProjectMenuItem4 = {
  198.     &ProjectMenuItem5,    /* next MenuItem */
  199.     0,24,    /* origin of Item hitbox relative to parent */
  200.     72,8,    /* hit box width and height */
  201.     ITEMTEXT|ITEMENABLED|HIGHCOMP,    /* flags */
  202.     0,    /* mutual-exclude bits */
  203.     (APTR)&ProjectIText4,    /* Item render */
  204.     NULL,    /* Select render */
  205.     'C',    /* command-key */
  206.     &CreditsMenuItem0,    /* SubItem list */
  207.     MENUNULL    /* next select */
  208. };
  209.  
  210. struct IntuiText ProjectIText3 = {
  211.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  212.     0,0,    /* origin */
  213.     NULL,    /* font */
  214.     "Save",    /* text */
  215.     NULL    /* next IntuiText */
  216. };
  217.  
  218. struct MenuItem ProjectMenuItem3 = {
  219.     &ProjectMenuItem4,    /* next MenuItem */
  220.     0,16,    /* origin of Item hitbox relative to parent */
  221.     72,8,    /* hit box width and height */
  222.     ITEMTEXT|COMMSEQ|ITEMENABLED|HIGHCOMP,    /* flags */
  223.     0,    /* mutual-exclude bits */
  224.     (APTR)&ProjectIText3,    /* Item render */
  225.     NULL,    /* Select render */
  226.     'S',    /* command-key */
  227.     NULL,    /* SubItem list */
  228.     MENUNULL    /* next select */
  229. };
  230.  
  231. struct IntuiText ProjectIText2 = {
  232.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  233.     0,0,    /* origin */
  234.     NULL,    /* font */
  235.     "New",    /* text */
  236.     NULL    /* next IntuiText */
  237. };
  238.  
  239. struct MenuItem ProjectMenuItem2 = {
  240.     &ProjectMenuItem3,    /* next MenuItem */
  241.     0,8,    /* origin of Item hitbox relative to parent */
  242.     72,8,    /* hit box width and height */
  243.     ITEMTEXT|COMMSEQ|ITEMENABLED|HIGHCOMP,    /* flags */
  244.     0,    /* mutual-exclude bits */
  245.     (APTR)&ProjectIText2,    /* Item render */
  246.     NULL,    /* Select render */
  247.     'N',    /* command-key */
  248.     NULL,    /* SubItem list */
  249.     MENUNULL    /* next select */
  250. };
  251.  
  252. struct IntuiText ProjectIText1 = {
  253.     3,1,COMPLEMENT,    /* frontpen, backpen, and drawmode */
  254.     0,0,    /* origin */
  255.     NULL,    /* font */
  256.     "Load",    /* text */
  257.     NULL    /* next IntuiText */
  258. };
  259.  
  260. struct MenuItem ProjectMenuItem1 = {
  261.     &ProjectMenuItem2,    /* next MenuItem */
  262.     0,0,    /* origin of Item hitbox relative to parent */
  263.     72,8,    /* hit box width and height */
  264.     ITEMTEXT|COMMSEQ|ITEMENABLED|HIGHCOMP,    /* flags */
  265.     0,    /* mutual-exclude bits */
  266.     (APTR)&ProjectIText1,    /* Item render */
  267.     NULL,    /* Select render */
  268.     'L',    /* command-key */
  269.     NULL,    /* SubItem list */
  270.     MENUNULL    /* next select */
  271. };
  272.  
  273. struct Menu ProjectMenu = {
  274.     &OptionsMenu,    /* next Menu */
  275.     0,0,    /* origin of hit box */
  276.     63,0,    /* hit box width and height */
  277.     MENUENABLED,    /* flags */
  278.     "Project",    /* text */
  279.     &ProjectMenuItem1    /* MenuItem list */
  280. };
  281.  
  282. #define MenuList &ProjectMenu
  283.