home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 514b.lha / GadgetED_v2.3 / PatchGE / PatchGE.h < prev    next >
C/C++ Source or Header  |  1991-06-08  |  3KB  |  123 lines

  1. /*---------------------------------------------------*
  2.   Gadgets created with GadgetEd V2.2a
  3.   which is (c) Copyright 1990-91 by Jaba Development
  4.   written by Jan van den Baard
  5.  *---------------------------------------------------*/
  6.  
  7. SHORT Border0_pairs[] = {
  8.   0,0,0,88,1,87,1,0,380,0 };
  9. SHORT Border1_pairs[] = {
  10.   1,88,380,88,380,1,381,0,381,88 };
  11. SHORT Border2_pairs[] = {
  12.   0,0,0,10,1,9,1,0,370,0 };
  13. SHORT Border3_pairs[] = {
  14.   1,10,370,10,370,1,371,0,371,10 };
  15. SHORT Border4_pairs[] = {
  16.   0,0,0,48,1,47,1,0,369,0 };
  17. SHORT Border5_pairs[] = {
  18.   1,48,369,48,369,1,370,0,370,48 };
  19.  
  20. struct Border Border_bord[] = {
  21.   1,1,2,0,JAM1,5,(SHORT *)&Border0_pairs,&Border_bord[1],
  22.   1,1,1,0,JAM1,5,(SHORT *)&Border1_pairs,&Border_bord[2],
  23.   6,3,2,0,JAM1,5,(SHORT *)&Border2_pairs,&Border_bord[3],
  24.   6,3,1,0,JAM1,5,(SHORT *)&Border3_pairs,&Border_bord[4],
  25.   7,16,2,0,JAM1,5,(SHORT *)&Border4_pairs,&Border_bord[5],
  26.   7,16,1,0,JAM1,5,(SHORT *)&Border5_pairs,NULL };
  27.  
  28. struct IntuiText rnd_text[] = {
  29.   1,0,JAM1,95,5,NULL,(UBYTE *)"- PatchGE version 1.0 -",&rnd_text[1],
  30.   1,0,JAM1,11,18,NULL,(UBYTE *)"File____________________:",&rnd_text[2],
  31.   1,0,JAM1,11,27,NULL,(UBYTE *)"Number of gadgets_______:",&rnd_text[3],
  32.   1,0,JAM1,11,36,NULL,(UBYTE *)"Type of gadgets_________:",&rnd_text[4],
  33.   1,0,JAM1,11,45,NULL,(UBYTE *)"Number of texts_________:",&rnd_text[5],
  34.   1,0,JAM1,11,54,NULL,(UBYTE *)"Screen type_____________:",NULL };
  35.  
  36. struct Gadget rnd = {
  37.   NULL,0,0,1,1,GADGHNONE,NULL,BOOLGADGET,
  38.   (APTR)&Border_bord[0],NULL,&rnd_text[0],NULL,NULL,NULL,NULL };
  39.  
  40. SHORT QUIT_pairs0[] = {
  41.   0,0,0,18,1,18,1,0,113,0 };
  42.  
  43. SHORT QUIT_pairs1[] = {
  44.   1,18,113,18,113,1,114,0,114,18 };
  45.  
  46. struct Border QUIT_bord[] = {
  47.   0,0,2,0,JAM1,5,(SHORT *)&QUIT_pairs0,&QUIT_bord[1],
  48.   0,0,1,0,JAM1,5,(SHORT *)&QUIT_pairs1,NULL };
  49.  
  50. struct IntuiText QUIT_text = {
  51.   1,0,JAM1,40,6,NULL,(UBYTE *)"Quit",NULL };
  52.  
  53. #define QUIT_ID    5
  54.  
  55. struct Gadget QUIT = {
  56.   &rnd,263,68,115,19,
  57.   GADGHCOMP,
  58.   RELVERIFY,
  59.   BOOLGADGET,
  60.   (APTR)&QUIT_bord[0],NULL,
  61.   &QUIT_text,NULL,NULL,QUIT_ID,NULL };
  62.  
  63. SHORT SAVE_pairs0[] = {
  64.   0,0,0,18,1,18,1,0,113,0 };
  65.  
  66. SHORT SAVE_pairs1[] = {
  67.   1,18,113,18,113,1,114,0,114,18 };
  68.  
  69. struct Border SAVE_bord[] = {
  70.   0,0,2,0,JAM1,5,(SHORT *)&SAVE_pairs0,&SAVE_bord[1],
  71.   0,0,1,0,JAM1,5,(SHORT *)&SAVE_pairs1,NULL };
  72.  
  73. struct IntuiText SAVE_text = {
  74.   1,0,JAM1,6,6,NULL,(UBYTE *)"Save GE Patch",NULL };
  75.  
  76. #define SAVE_ID    4
  77.  
  78. struct Gadget SAVE = {
  79.   &QUIT,136,68,115,19,
  80.   GADGHCOMP,
  81.   RELVERIFY,
  82.   BOOLGADGET,
  83.   (APTR)&SAVE_bord[0],NULL,
  84.   &SAVE_text,NULL,NULL,SAVE_ID,NULL };
  85.  
  86. SHORT LOAD_pairs0[] = {
  87.   0,0,0,18,1,18,1,0,113,0 };
  88.  
  89. SHORT LOAD_pairs1[] = {
  90.   1,18,113,18,113,1,114,0,114,18 };
  91.  
  92. struct Border LOAD_bord[] = {
  93.   0,0,2,0,JAM1,5,(SHORT *)&LOAD_pairs0,&LOAD_bord[1],
  94.   0,0,1,0,JAM1,5,(SHORT *)&LOAD_pairs1,NULL };
  95.  
  96. struct IntuiText LOAD_text = {
  97.   1,0,JAM1,10,6,NULL,(UBYTE *)"Load GE file",NULL };
  98.  
  99. #define LOAD_ID    3
  100.  
  101. struct Gadget LOAD = {
  102.   &SAVE,8,68,115,19,
  103.   GADGHCOMP,
  104.   RELVERIFY,
  105.   BOOLGADGET,
  106.   (APTR)&LOAD_bord[0],NULL,
  107.   &LOAD_text,NULL,NULL,LOAD_ID,NULL };
  108.  
  109. struct NewWindow new_window = {
  110.   117,25,385,91,0,1,
  111.   GADGETUP+CLOSEWINDOW,
  112.   NOCAREREFRESH+SMART_REFRESH+ACTIVATE+RMBTRAP,
  113.   &LOAD,NULL,
  114.   NULL,NULL,NULL,
  115.   150,50,640,256,WBENCHSCREEN };
  116.  
  117.  
  118. #define NEWWINDOW   &new_window
  119. #define WDBACKFILL   0
  120. #define FIRSTGADGET &LOAD
  121. #define FIRSTTEXT   &rnd_text[0]
  122. #define FIRSTBORDER &Border_bord[0]
  123.