Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Features » Vocabulary/Source/temp

Vocabulary/Source/temp

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Features
Filename: Vocabulary/Source/temp
Read OK:
File size: 1F4D bytes
Load address: 0000
Exec address: 0000
File contents
#include "inc.h"
/*
extern os_error *wimp_bordericon (mouse);
extern os_error *wimp_borderwindow (redraw_box);
extern os_error *wimp_claiminterface (void);
extern os_error *wimp_releaseinterface (void);
extern os_error *wimp_setworkareapointer (pointer);
extern os_error *wimp_releaseworkareapointer (pointer);
extern os_error *wimp_pollpointer (poll);
extern os_error *wimp_sendhelp (message_block);
*/
extern dbox info;
extern void drawbox(void);
extern dbox score;
extern menu wdelete;
extern dbox wrong;
extern dbox edit;
extern menu edelete;
extern menu einsert;
extern void restart(void);
extern int now;

int option2;
extern int num;
extern int quest;
extern int i;
extern void okclick(void);
extern int lenght;
extern dbox m;
extern char title[70];
extern char subtitle[70];
extern int n;
extern dbox options;
int option1;
int icon1;
int icon2;
int wsound;
int csound;

extern void getnew_wrong(void);
extern void getnew_edit(void);
extern void redraw_edit(void);
extern void redraw_wrong(void);
extern int addon1;
extern int addon2;
extern char english[170][40];
extern char german[170][40];
extern char language[70];
extern void edit_delete(void);
extern void wrong_delete(void);
extern char wrong_word_english[170][40];
extern char wrong_word_german[170][40];

extern char tosave_english[170][40];
extern char tosave_german[170][40];
extern char tosave_wrong_word_english[170][40];
extern char tosave_wrong_word_english[170][40];
extern char tosave_title[50];

extern char tosave_language[50];
extern wn;

extern change_german(void);
extern change_english(void);
extern change_language(void);
extern change_title(void);
extern change_subtitle(void);


extern void edit_insert(void);
int ins;

/****************************** EVENT HANDLERS ******************************/

/*--- Event handler called on a left click on the icon. ---*/

/*--- Display the program main box - called from the menu processor. ---*/
void vocab_iconclick(wimp_i icon)
{

  icon = icon;

  if (now==1)
  {
dbox_setnumeric(options,2,1);
dbox_setnumeric(options,1,0);
dbox_setnumeric(options,4,1);
dbox_setnumeric(options,6,1); 
now=0;
  }

  dbox_setfield(m,4,title);
  dbox_setfield(m,2,"");
  dbox_setfield(m,9,subtitle);
  dbox_hide(edit);
  /* Create the dialogue box */

    /* Show the dialogue box */
    dbox_showstatic(m);

    drawbox();



}







void options_window(void)
{
dbox_showstatic(options);
dbox_setfield(options,1,language);
      if (option1 == 1)
      dbox_setnumeric(options,1,1);

      if (option2 == 1)
      dbox_setnumeric(options,2,1);

      if (wsound == 1)
      dbox_setnumeric(options,6,1);

     if (csound == 1)
      dbox_setnumeric(options,4,1);


}

void options_handler(dbox options1, void *handle)  /* Keep it on the screen as long as needed */
{
int which_icon_hit;
which_icon_hit=dbox_get(options1);

handle=handle;

   switch(which_icon_hit)
      {
      case 0:
      dbox_hide(options1);
      option1 = dbox_getnumeric(options,1);
      option2 = dbox_getnumeric(options,2);

      if (option2 == 1)
      {
      option1 = 0;
      }

      if (option1 == 0 && option2 == 0)
      {
      option1 = 0;
      }

      wsound = dbox_getnumeric(options,6);
      csound = dbox_getnumeric(options,4);





      break;

      case 1:
      dbox_setfield(m,7,language);
      dbox_setfield(m,5,"ENGLISH");

      break;

      case 2:
      dbox_setfield(m,5,language);
      dbox_setfield(m,7,"ENGLISH");

      break;

      default:
      break;
      }


    /* Dispose of the dialogue box*/
if (which_icon_hit==dbox_CLOSE)
   {
   dbox_hide(options1);
   }

}



void score_win(void)
{
    int h;
  /* Create the dialogue box */
  if (score = dbox_new("score"), score != NULL);
  {

   dbox_setnumeric(score,2,num);
   dbox_setnumeric(score,1,n);
   i=0;
   quest=0;
   num=0;

    /* Show the dialogue box */
    dbox_show(score);


    h = dbox_fillin(score);

    switch(h)
    {
    case 0:
    dbox_hide(score);
    break;


    case 6:
    restart();
   
 
  
    
    break;

    case 5:
    dbox_showstatic(wrong);
    redraw_wrong();
    break;


    }
    dbox_dispose(&score);

    }




    }



void m_handler(dbox m1, void *handle)  /* Keep it on the screen as long as needed */
{
int which_icon_hit;
which_icon_hit=dbox_get(m1);

handle=handle;

switch(which_icon_hit)
      {
      case 0:
      okclick();
      break;
      }



    /* Dispose of the dialogue box*/
if(which_icon_hit==dbox_CLOSE)
   {
   dbox_hide(m);
   dbox_setfield(m,2,"");
   }
}




void wrong_handler(dbox wrong1, void *handle)  /* Keep it on the screen as long as needed */
{
    wimp_mousestr micky;
    int which_icon_hit;
    which_icon_hit=dbox_get(wrong1);


    handle=handle;

    switch(which_icon_hit)
      {
      case 36:
      /*getnew_wrong();*/
      dbox_hide(wrong);
      break;





      case 29:

        wimp_get_point_info(&micky);
        if(micky.bbits==wimp_BRIGHT)
            {

  addon2=addon2+9;

          if (addon2 > 141)
             {
             addon2=141;
             }
          }

          else


          {
          addon2++;

          if (addon2 > 141)
             {
             addon2=141;
             }
           }

            redraw_wrong();

       break;

      case 28:




      wimp_get_point_info(&micky);
      if(micky.bbits==wimp_BRIGHT)
          {

 addon2=addon2-9;

       if (addon2 < 0)
          {
          addon2=0;
          }
       }

       else


       {
       addon2--;

       if (addon2 < 0)
           {
           addon2=0;
           }
       }


          redraw_wrong();
     /* }  */
      break;
      }

    /* Dispose of the dialogue box*/
if(which_icon_hit==dbox_CLOSE)
   {
   /*getnew_wrong();*/
   dbox_hide(wrong);
   }
}

void edit_handler(dbox edit1, void *handle)  /* Keep it on the screen as long as needed */
{
wimp_mousestr micky;


int which_icon_hit;
which_icon_hit=dbox_get(edit1);

handle=handle;

switch(which_icon_hit)
      {
      case 38:
      getnew_edit();
      change_german();
      change_english();
      change_language();
      change_title();
      change_subtitle();
      dbox_hide(edit1);
      redraw_wrong();
      break;

      case 29:

      dbox_getfield(edit,30,title,30);
      dbox_getfield(edit,31,language,30);


      dbox_getfield(edit,10,english[addon1],30);
      dbox_getfield(edit,19,german[addon1],30);

       getnew_edit();

      wimp_get_point_info(&micky);

      if(micky.bbits==wimp_BRIGHT)
          {

          addon1=addon1+9;

          if (addon1 > 141)
             {
             addon1=141;
             }
          }

          else


          {
          addon1++;

          if (addon1 > 141)
             {
             addon1=141;
             }
           }



      redraw_edit();

      break;



      case 28:

     dbox_getfield(edit,30,title,30);
     dbox_getfield(edit,31,language,30);

     dbox_getfield(edit,18,english[addon1+8],30);
     dbox_getfield(edit,27,german[addon1+8],30);

     getnew_edit();

     wimp_get_point_info(&micky);
     if(micky.bbits==wimp_BRIGHT)

       {

       addon1=addon1-9;

       if (addon1 < 0)
          {
          addon1=0;
          }
       }

       else


       {
       addon1--;

       if (addon1 < 0)
           {
           addon1=0;
           }
       }

           redraw_edit();
     break;


     }



    /* Dispose of the dialogue box*/
if(which_icon_hit==dbox_CLOSE)
   {

   getnew_edit();

   dbox_hide(edit1);

   change_german();

   change_english();
   change_language();
   change_title();
   change_subtitle();

   redraw_wrong();

   }
}


/*--- Display the program info box - called from the menu processor. ---*/
void vocab_info_about_program(void)
{


  /* Create the dialogue box */
  if (info = dbox_new("Info"), info != NULL)
  {

    /* Show the dialogue box */
    dbox_show(info);

    /* Keep it on the screen as long as needed */
    dbox_fillin(info);

    /* Dispose of the dialogue box */
    dbox_dispose(&info);
  }
}
00000000  23 69 6e 63 6c 75 64 65  20 22 69 6e 63 2e 68 22  |#include "inc.h"|
00000010  0a 2f 2a 0a 65 78 74 65  72 6e 20 6f 73 5f 65 72  |./*.extern os_er|
00000020  72 6f 72 20 2a 77 69 6d  70 5f 62 6f 72 64 65 72  |ror *wimp_border|
00000030  69 63 6f 6e 20 28 6d 6f  75 73 65 29 3b 0a 65 78  |icon (mouse);.ex|
00000040  74 65 72 6e 20 6f 73 5f  65 72 72 6f 72 20 2a 77  |tern os_error *w|
00000050  69 6d 70 5f 62 6f 72 64  65 72 77 69 6e 64 6f 77  |imp_borderwindow|
00000060  20 28 72 65 64 72 61 77  5f 62 6f 78 29 3b 0a 65  | (redraw_box);.e|
00000070  78 74 65 72 6e 20 6f 73  5f 65 72 72 6f 72 20 2a  |xtern os_error *|
00000080  77 69 6d 70 5f 63 6c 61  69 6d 69 6e 74 65 72 66  |wimp_claiminterf|
00000090  61 63 65 20 28 76 6f 69  64 29 3b 0a 65 78 74 65  |ace (void);.exte|
000000a0  72 6e 20 6f 73 5f 65 72  72 6f 72 20 2a 77 69 6d  |rn os_error *wim|
000000b0  70 5f 72 65 6c 65 61 73  65 69 6e 74 65 72 66 61  |p_releaseinterfa|
000000c0  63 65 20 28 76 6f 69 64  29 3b 0a 65 78 74 65 72  |ce (void);.exter|
000000d0  6e 20 6f 73 5f 65 72 72  6f 72 20 2a 77 69 6d 70  |n os_error *wimp|
000000e0  5f 73 65 74 77 6f 72 6b  61 72 65 61 70 6f 69 6e  |_setworkareapoin|
000000f0  74 65 72 20 28 70 6f 69  6e 74 65 72 29 3b 0a 65  |ter (pointer);.e|
00000100  78 74 65 72 6e 20 6f 73  5f 65 72 72 6f 72 20 2a  |xtern os_error *|
00000110  77 69 6d 70 5f 72 65 6c  65 61 73 65 77 6f 72 6b  |wimp_releasework|
00000120  61 72 65 61 70 6f 69 6e  74 65 72 20 28 70 6f 69  |areapointer (poi|
00000130  6e 74 65 72 29 3b 0a 65  78 74 65 72 6e 20 6f 73  |nter);.extern os|
00000140  5f 65 72 72 6f 72 20 2a  77 69 6d 70 5f 70 6f 6c  |_error *wimp_pol|
00000150  6c 70 6f 69 6e 74 65 72  20 28 70 6f 6c 6c 29 3b  |lpointer (poll);|
00000160  0a 65 78 74 65 72 6e 20  6f 73 5f 65 72 72 6f 72  |.extern os_error|
00000170  20 2a 77 69 6d 70 5f 73  65 6e 64 68 65 6c 70 20  | *wimp_sendhelp |
00000180  28 6d 65 73 73 61 67 65  5f 62 6c 6f 63 6b 29 3b  |(message_block);|
00000190  0a 2a 2f 0a 65 78 74 65  72 6e 20 64 62 6f 78 20  |.*/.extern dbox |
000001a0  69 6e 66 6f 3b 0a 65 78  74 65 72 6e 20 76 6f 69  |info;.extern voi|
000001b0  64 20 64 72 61 77 62 6f  78 28 76 6f 69 64 29 3b  |d drawbox(void);|
000001c0  0a 65 78 74 65 72 6e 20  64 62 6f 78 20 73 63 6f  |.extern dbox sco|
000001d0  72 65 3b 0a 65 78 74 65  72 6e 20 6d 65 6e 75 20  |re;.extern menu |
000001e0  77 64 65 6c 65 74 65 3b  0a 65 78 74 65 72 6e 20  |wdelete;.extern |
000001f0  64 62 6f 78 20 77 72 6f  6e 67 3b 0a 65 78 74 65  |dbox wrong;.exte|
00000200  72 6e 20 64 62 6f 78 20  65 64 69 74 3b 0a 65 78  |rn dbox edit;.ex|
00000210  74 65 72 6e 20 6d 65 6e  75 20 65 64 65 6c 65 74  |tern menu edelet|
00000220  65 3b 0a 65 78 74 65 72  6e 20 6d 65 6e 75 20 65  |e;.extern menu e|
00000230  69 6e 73 65 72 74 3b 0a  65 78 74 65 72 6e 20 76  |insert;.extern v|
00000240  6f 69 64 20 72 65 73 74  61 72 74 28 76 6f 69 64  |oid restart(void|
00000250  29 3b 0a 65 78 74 65 72  6e 20 69 6e 74 20 6e 6f  |);.extern int no|
00000260  77 3b 0a 0a 69 6e 74 20  6f 70 74 69 6f 6e 32 3b  |w;..int option2;|
00000270  0a 65 78 74 65 72 6e 20  69 6e 74 20 6e 75 6d 3b  |.extern int num;|
00000280  0a 65 78 74 65 72 6e 20  69 6e 74 20 71 75 65 73  |.extern int ques|
00000290  74 3b 0a 65 78 74 65 72  6e 20 69 6e 74 20 69 3b  |t;.extern int i;|
000002a0  0a 65 78 74 65 72 6e 20  76 6f 69 64 20 6f 6b 63  |.extern void okc|
000002b0  6c 69 63 6b 28 76 6f 69  64 29 3b 0a 65 78 74 65  |lick(void);.exte|
000002c0  72 6e 20 69 6e 74 20 6c  65 6e 67 68 74 3b 0a 65  |rn int lenght;.e|
000002d0  78 74 65 72 6e 20 64 62  6f 78 20 6d 3b 0a 65 78  |xtern dbox m;.ex|
000002e0  74 65 72 6e 20 63 68 61  72 20 74 69 74 6c 65 5b  |tern char title[|
000002f0  37 30 5d 3b 0a 65 78 74  65 72 6e 20 63 68 61 72  |70];.extern char|
00000300  20 73 75 62 74 69 74 6c  65 5b 37 30 5d 3b 0a 65  | subtitle[70];.e|
00000310  78 74 65 72 6e 20 69 6e  74 20 6e 3b 0a 65 78 74  |xtern int n;.ext|
00000320  65 72 6e 20 64 62 6f 78  20 6f 70 74 69 6f 6e 73  |ern dbox options|
00000330  3b 0a 69 6e 74 20 6f 70  74 69 6f 6e 31 3b 0a 69  |;.int option1;.i|
00000340  6e 74 20 69 63 6f 6e 31  3b 0a 69 6e 74 20 69 63  |nt icon1;.int ic|
00000350  6f 6e 32 3b 0a 69 6e 74  20 77 73 6f 75 6e 64 3b  |on2;.int wsound;|
00000360  0a 69 6e 74 20 63 73 6f  75 6e 64 3b 0a 0a 65 78  |.int csound;..ex|
00000370  74 65 72 6e 20 76 6f 69  64 20 67 65 74 6e 65 77  |tern void getnew|
00000380  5f 77 72 6f 6e 67 28 76  6f 69 64 29 3b 0a 65 78  |_wrong(void);.ex|
00000390  74 65 72 6e 20 76 6f 69  64 20 67 65 74 6e 65 77  |tern void getnew|
000003a0  5f 65 64 69 74 28 76 6f  69 64 29 3b 0a 65 78 74  |_edit(void);.ext|
000003b0  65 72 6e 20 76 6f 69 64  20 72 65 64 72 61 77 5f  |ern void redraw_|
000003c0  65 64 69 74 28 76 6f 69  64 29 3b 0a 65 78 74 65  |edit(void);.exte|
000003d0  72 6e 20 76 6f 69 64 20  72 65 64 72 61 77 5f 77  |rn void redraw_w|
000003e0  72 6f 6e 67 28 76 6f 69  64 29 3b 0a 65 78 74 65  |rong(void);.exte|
000003f0  72 6e 20 69 6e 74 20 61  64 64 6f 6e 31 3b 0a 65  |rn int addon1;.e|
00000400  78 74 65 72 6e 20 69 6e  74 20 61 64 64 6f 6e 32  |xtern int addon2|
00000410  3b 0a 65 78 74 65 72 6e  20 63 68 61 72 20 65 6e  |;.extern char en|
00000420  67 6c 69 73 68 5b 31 37  30 5d 5b 34 30 5d 3b 0a  |glish[170][40];.|
00000430  65 78 74 65 72 6e 20 63  68 61 72 20 67 65 72 6d  |extern char germ|
00000440  61 6e 5b 31 37 30 5d 5b  34 30 5d 3b 0a 65 78 74  |an[170][40];.ext|
00000450  65 72 6e 20 63 68 61 72  20 6c 61 6e 67 75 61 67  |ern char languag|
00000460  65 5b 37 30 5d 3b 0a 65  78 74 65 72 6e 20 76 6f  |e[70];.extern vo|
00000470  69 64 20 65 64 69 74 5f  64 65 6c 65 74 65 28 76  |id edit_delete(v|
00000480  6f 69 64 29 3b 0a 65 78  74 65 72 6e 20 76 6f 69  |oid);.extern voi|
00000490  64 20 77 72 6f 6e 67 5f  64 65 6c 65 74 65 28 76  |d wrong_delete(v|
000004a0  6f 69 64 29 3b 0a 65 78  74 65 72 6e 20 63 68 61  |oid);.extern cha|
000004b0  72 20 77 72 6f 6e 67 5f  77 6f 72 64 5f 65 6e 67  |r wrong_word_eng|
000004c0  6c 69 73 68 5b 31 37 30  5d 5b 34 30 5d 3b 0a 65  |lish[170][40];.e|
000004d0  78 74 65 72 6e 20 63 68  61 72 20 77 72 6f 6e 67  |xtern char wrong|
000004e0  5f 77 6f 72 64 5f 67 65  72 6d 61 6e 5b 31 37 30  |_word_german[170|
000004f0  5d 5b 34 30 5d 3b 0a 0a  65 78 74 65 72 6e 20 63  |][40];..extern c|
00000500  68 61 72 20 74 6f 73 61  76 65 5f 65 6e 67 6c 69  |har tosave_engli|
00000510  73 68 5b 31 37 30 5d 5b  34 30 5d 3b 0a 65 78 74  |sh[170][40];.ext|
00000520  65 72 6e 20 63 68 61 72  20 74 6f 73 61 76 65 5f  |ern char tosave_|
00000530  67 65 72 6d 61 6e 5b 31  37 30 5d 5b 34 30 5d 3b  |german[170][40];|
00000540  0a 65 78 74 65 72 6e 20  63 68 61 72 20 74 6f 73  |.extern char tos|
00000550  61 76 65 5f 77 72 6f 6e  67 5f 77 6f 72 64 5f 65  |ave_wrong_word_e|
00000560  6e 67 6c 69 73 68 5b 31  37 30 5d 5b 34 30 5d 3b  |nglish[170][40];|
00000570  0a 65 78 74 65 72 6e 20  63 68 61 72 20 74 6f 73  |.extern char tos|
00000580  61 76 65 5f 77 72 6f 6e  67 5f 77 6f 72 64 5f 65  |ave_wrong_word_e|
00000590  6e 67 6c 69 73 68 5b 31  37 30 5d 5b 34 30 5d 3b  |nglish[170][40];|
000005a0  0a 65 78 74 65 72 6e 20  63 68 61 72 20 74 6f 73  |.extern char tos|
000005b0  61 76 65 5f 74 69 74 6c  65 5b 35 30 5d 3b 0a 0a  |ave_title[50];..|
000005c0  65 78 74 65 72 6e 20 63  68 61 72 20 74 6f 73 61  |extern char tosa|
000005d0  76 65 5f 6c 61 6e 67 75  61 67 65 5b 35 30 5d 3b  |ve_language[50];|
000005e0  0a 65 78 74 65 72 6e 20  77 6e 3b 0a 0a 65 78 74  |.extern wn;..ext|
000005f0  65 72 6e 20 63 68 61 6e  67 65 5f 67 65 72 6d 61  |ern change_germa|
00000600  6e 28 76 6f 69 64 29 3b  0a 65 78 74 65 72 6e 20  |n(void);.extern |
00000610  63 68 61 6e 67 65 5f 65  6e 67 6c 69 73 68 28 76  |change_english(v|
00000620  6f 69 64 29 3b 0a 65 78  74 65 72 6e 20 63 68 61  |oid);.extern cha|
00000630  6e 67 65 5f 6c 61 6e 67  75 61 67 65 28 76 6f 69  |nge_language(voi|
00000640  64 29 3b 0a 65 78 74 65  72 6e 20 63 68 61 6e 67  |d);.extern chang|
00000650  65 5f 74 69 74 6c 65 28  76 6f 69 64 29 3b 0a 65  |e_title(void);.e|
00000660  78 74 65 72 6e 20 63 68  61 6e 67 65 5f 73 75 62  |xtern change_sub|
00000670  74 69 74 6c 65 28 76 6f  69 64 29 3b 0a 0a 0a 65  |title(void);...e|
00000680  78 74 65 72 6e 20 76 6f  69 64 20 65 64 69 74 5f  |xtern void edit_|
00000690  69 6e 73 65 72 74 28 76  6f 69 64 29 3b 0a 69 6e  |insert(void);.in|
000006a0  74 20 69 6e 73 3b 0a 0a  2f 2a 2a 2a 2a 2a 2a 2a  |t ins;../*******|
000006b0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
000006c0  2a 2a 2a 2a 2a 2a 2a 20  45 56 45 4e 54 20 48 41  |******* EVENT HA|
000006d0  4e 44 4c 45 52 53 20 2a  2a 2a 2a 2a 2a 2a 2a 2a  |NDLERS *********|
000006e0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
000006f0  2a 2a 2a 2a 2a 2f 0a 0a  2f 2a 2d 2d 2d 20 45 76  |*****/../*--- Ev|
00000700  65 6e 74 20 68 61 6e 64  6c 65 72 20 63 61 6c 6c  |ent handler call|
00000710  65 64 20 6f 6e 20 61 20  6c 65 66 74 20 63 6c 69  |ed on a left cli|
00000720  63 6b 20 6f 6e 20 74 68  65 20 69 63 6f 6e 2e 20  |ck on the icon. |
00000730  2d 2d 2d 2a 2f 0a 0a 2f  2a 2d 2d 2d 20 44 69 73  |---*/../*--- Dis|
00000740  70 6c 61 79 20 74 68 65  20 70 72 6f 67 72 61 6d  |play the program|
00000750  20 6d 61 69 6e 20 62 6f  78 20 2d 20 63 61 6c 6c  | main box - call|
00000760  65 64 20 66 72 6f 6d 20  74 68 65 20 6d 65 6e 75  |ed from the menu|
00000770  20 70 72 6f 63 65 73 73  6f 72 2e 20 2d 2d 2d 2a  | processor. ---*|
00000780  2f 0a 76 6f 69 64 20 76  6f 63 61 62 5f 69 63 6f  |/.void vocab_ico|
00000790  6e 63 6c 69 63 6b 28 77  69 6d 70 5f 69 20 69 63  |nclick(wimp_i ic|
000007a0  6f 6e 29 0a 7b 0a 0a 20  20 69 63 6f 6e 20 3d 20  |on).{..  icon = |
000007b0  69 63 6f 6e 3b 0a 0a 20  20 69 66 20 28 6e 6f 77  |icon;..  if (now|
000007c0  3d 3d 31 29 0a 20 20 7b  0a 64 62 6f 78 5f 73 65  |==1).  {.dbox_se|
000007d0  74 6e 75 6d 65 72 69 63  28 6f 70 74 69 6f 6e 73  |tnumeric(options|
000007e0  2c 32 2c 31 29 3b 0a 64  62 6f 78 5f 73 65 74 6e  |,2,1);.dbox_setn|
000007f0  75 6d 65 72 69 63 28 6f  70 74 69 6f 6e 73 2c 31  |umeric(options,1|
00000800  2c 30 29 3b 0a 64 62 6f  78 5f 73 65 74 6e 75 6d  |,0);.dbox_setnum|
00000810  65 72 69 63 28 6f 70 74  69 6f 6e 73 2c 34 2c 31  |eric(options,4,1|
00000820  29 3b 0a 64 62 6f 78 5f  73 65 74 6e 75 6d 65 72  |);.dbox_setnumer|
00000830  69 63 28 6f 70 74 69 6f  6e 73 2c 36 2c 31 29 3b  |ic(options,6,1);|
00000840  20 0a 6e 6f 77 3d 30 3b  0a 20 20 7d 0a 0a 20 20  | .now=0;.  }..  |
00000850  64 62 6f 78 5f 73 65 74  66 69 65 6c 64 28 6d 2c  |dbox_setfield(m,|
00000860  34 2c 74 69 74 6c 65 29  3b 0a 20 20 64 62 6f 78  |4,title);.  dbox|
00000870  5f 73 65 74 66 69 65 6c  64 28 6d 2c 32 2c 22 22  |_setfield(m,2,""|
00000880  29 3b 0a 20 20 64 62 6f  78 5f 73 65 74 66 69 65  |);.  dbox_setfie|
00000890  6c 64 28 6d 2c 39 2c 73  75 62 74 69 74 6c 65 29  |ld(m,9,subtitle)|
000008a0  3b 0a 20 20 64 62 6f 78  5f 68 69 64 65 28 65 64  |;.  dbox_hide(ed|
000008b0  69 74 29 3b 0a 20 20 2f  2a 20 43 72 65 61 74 65  |it);.  /* Create|
000008c0  20 74 68 65 20 64 69 61  6c 6f 67 75 65 20 62 6f  | the dialogue bo|
000008d0  78 20 2a 2f 0a 0a 20 20  20 20 2f 2a 20 53 68 6f  |x */..    /* Sho|
000008e0  77 20 74 68 65 20 64 69  61 6c 6f 67 75 65 20 62  |w the dialogue b|
000008f0  6f 78 20 2a 2f 0a 20 20  20 20 64 62 6f 78 5f 73  |ox */.    dbox_s|
00000900  68 6f 77 73 74 61 74 69  63 28 6d 29 3b 0a 0a 20  |howstatic(m);.. |
00000910  20 20 20 64 72 61 77 62  6f 78 28 29 3b 0a 0a 0a  |   drawbox();...|
00000920  0a 7d 0a 0a 0a 0a 0a 0a  0a 0a 76 6f 69 64 20 6f  |.}........void o|
00000930  70 74 69 6f 6e 73 5f 77  69 6e 64 6f 77 28 76 6f  |ptions_window(vo|
00000940  69 64 29 0a 7b 0a 64 62  6f 78 5f 73 68 6f 77 73  |id).{.dbox_shows|
00000950  74 61 74 69 63 28 6f 70  74 69 6f 6e 73 29 3b 0a  |tatic(options);.|
00000960  64 62 6f 78 5f 73 65 74  66 69 65 6c 64 28 6f 70  |dbox_setfield(op|
00000970  74 69 6f 6e 73 2c 31 2c  6c 61 6e 67 75 61 67 65  |tions,1,language|
00000980  29 3b 0a 20 20 20 20 20  20 69 66 20 28 6f 70 74  |);.      if (opt|
00000990  69 6f 6e 31 20 3d 3d 20  31 29 0a 20 20 20 20 20  |ion1 == 1).     |
000009a0  20 64 62 6f 78 5f 73 65  74 6e 75 6d 65 72 69 63  | dbox_setnumeric|
000009b0  28 6f 70 74 69 6f 6e 73  2c 31 2c 31 29 3b 0a 0a  |(options,1,1);..|
000009c0  20 20 20 20 20 20 69 66  20 28 6f 70 74 69 6f 6e  |      if (option|
000009d0  32 20 3d 3d 20 31 29 0a  20 20 20 20 20 20 64 62  |2 == 1).      db|
000009e0  6f 78 5f 73 65 74 6e 75  6d 65 72 69 63 28 6f 70  |ox_setnumeric(op|
000009f0  74 69 6f 6e 73 2c 32 2c  31 29 3b 0a 0a 20 20 20  |tions,2,1);..   |
00000a00  20 20 20 69 66 20 28 77  73 6f 75 6e 64 20 3d 3d  |   if (wsound ==|
00000a10  20 31 29 0a 20 20 20 20  20 20 64 62 6f 78 5f 73  | 1).      dbox_s|
00000a20  65 74 6e 75 6d 65 72 69  63 28 6f 70 74 69 6f 6e  |etnumeric(option|
00000a30  73 2c 36 2c 31 29 3b 0a  0a 20 20 20 20 20 69 66  |s,6,1);..     if|
00000a40  20 28 63 73 6f 75 6e 64  20 3d 3d 20 31 29 0a 20  | (csound == 1). |
00000a50  20 20 20 20 20 64 62 6f  78 5f 73 65 74 6e 75 6d  |     dbox_setnum|
00000a60  65 72 69 63 28 6f 70 74  69 6f 6e 73 2c 34 2c 31  |eric(options,4,1|
00000a70  29 3b 0a 0a 0a 7d 0a 0a  76 6f 69 64 20 6f 70 74  |);...}..void opt|
00000a80  69 6f 6e 73 5f 68 61 6e  64 6c 65 72 28 64 62 6f  |ions_handler(dbo|
00000a90  78 20 6f 70 74 69 6f 6e  73 31 2c 20 76 6f 69 64  |x options1, void|
00000aa0  20 2a 68 61 6e 64 6c 65  29 20 20 2f 2a 20 4b 65  | *handle)  /* Ke|
00000ab0  65 70 20 69 74 20 6f 6e  20 74 68 65 20 73 63 72  |ep it on the scr|
00000ac0  65 65 6e 20 61 73 20 6c  6f 6e 67 20 61 73 20 6e  |een as long as n|
00000ad0  65 65 64 65 64 20 2a 2f  0a 7b 0a 69 6e 74 20 77  |eeded */.{.int w|
00000ae0  68 69 63 68 5f 69 63 6f  6e 5f 68 69 74 3b 0a 77  |hich_icon_hit;.w|
00000af0  68 69 63 68 5f 69 63 6f  6e 5f 68 69 74 3d 64 62  |hich_icon_hit=db|
00000b00  6f 78 5f 67 65 74 28 6f  70 74 69 6f 6e 73 31 29  |ox_get(options1)|
00000b10  3b 0a 0a 68 61 6e 64 6c  65 3d 68 61 6e 64 6c 65  |;..handle=handle|
00000b20  3b 0a 0a 20 20 20 73 77  69 74 63 68 28 77 68 69  |;..   switch(whi|
00000b30  63 68 5f 69 63 6f 6e 5f  68 69 74 29 0a 20 20 20  |ch_icon_hit).   |
00000b40  20 20 20 7b 0a 20 20 20  20 20 20 63 61 73 65 20  |   {.      case |
00000b50  30 3a 0a 20 20 20 20 20  20 64 62 6f 78 5f 68 69  |0:.      dbox_hi|
00000b60  64 65 28 6f 70 74 69 6f  6e 73 31 29 3b 0a 20 20  |de(options1);.  |
00000b70  20 20 20 20 6f 70 74 69  6f 6e 31 20 3d 20 64 62  |    option1 = db|
00000b80  6f 78 5f 67 65 74 6e 75  6d 65 72 69 63 28 6f 70  |ox_getnumeric(op|
00000b90  74 69 6f 6e 73 2c 31 29  3b 0a 20 20 20 20 20 20  |tions,1);.      |
00000ba0  6f 70 74 69 6f 6e 32 20  3d 20 64 62 6f 78 5f 67  |option2 = dbox_g|
00000bb0  65 74 6e 75 6d 65 72 69  63 28 6f 70 74 69 6f 6e  |etnumeric(option|
00000bc0  73 2c 32 29 3b 0a 0a 20  20 20 20 20 20 69 66 20  |s,2);..      if |
00000bd0  28 6f 70 74 69 6f 6e 32  20 3d 3d 20 31 29 0a 20  |(option2 == 1). |
00000be0  20 20 20 20 20 7b 0a 20  20 20 20 20 20 6f 70 74  |     {.      opt|
00000bf0  69 6f 6e 31 20 3d 20 30  3b 0a 20 20 20 20 20 20  |ion1 = 0;.      |
00000c00  7d 0a 0a 20 20 20 20 20  20 69 66 20 28 6f 70 74  |}..      if (opt|
00000c10  69 6f 6e 31 20 3d 3d 20  30 20 26 26 20 6f 70 74  |ion1 == 0 && opt|
00000c20  69 6f 6e 32 20 3d 3d 20  30 29 0a 20 20 20 20 20  |ion2 == 0).     |
00000c30  20 7b 0a 20 20 20 20 20  20 6f 70 74 69 6f 6e 31  | {.      option1|
00000c40  20 3d 20 30 3b 0a 20 20  20 20 20 20 7d 0a 0a 20  | = 0;.      }.. |
00000c50  20 20 20 20 20 77 73 6f  75 6e 64 20 3d 20 64 62  |     wsound = db|
00000c60  6f 78 5f 67 65 74 6e 75  6d 65 72 69 63 28 6f 70  |ox_getnumeric(op|
00000c70  74 69 6f 6e 73 2c 36 29  3b 0a 20 20 20 20 20 20  |tions,6);.      |
00000c80  63 73 6f 75 6e 64 20 3d  20 64 62 6f 78 5f 67 65  |csound = dbox_ge|
00000c90  74 6e 75 6d 65 72 69 63  28 6f 70 74 69 6f 6e 73  |tnumeric(options|
00000ca0  2c 34 29 3b 0a 0a 0a 0a  0a 0a 20 20 20 20 20 20  |,4);......      |
00000cb0  62 72 65 61 6b 3b 0a 0a  20 20 20 20 20 20 63 61  |break;..      ca|
00000cc0  73 65 20 31 3a 0a 20 20  20 20 20 20 64 62 6f 78  |se 1:.      dbox|
00000cd0  5f 73 65 74 66 69 65 6c  64 28 6d 2c 37 2c 6c 61  |_setfield(m,7,la|
00000ce0  6e 67 75 61 67 65 29 3b  0a 20 20 20 20 20 20 64  |nguage);.      d|
00000cf0  62 6f 78 5f 73 65 74 66  69 65 6c 64 28 6d 2c 35  |box_setfield(m,5|
00000d00  2c 22 45 4e 47 4c 49 53  48 22 29 3b 0a 0a 20 20  |,"ENGLISH");..  |
00000d10  20 20 20 20 62 72 65 61  6b 3b 0a 0a 20 20 20 20  |    break;..    |
00000d20  20 20 63 61 73 65 20 32  3a 0a 20 20 20 20 20 20  |  case 2:.      |
00000d30  64 62 6f 78 5f 73 65 74  66 69 65 6c 64 28 6d 2c  |dbox_setfield(m,|
00000d40  35 2c 6c 61 6e 67 75 61  67 65 29 3b 0a 20 20 20  |5,language);.   |
00000d50  20 20 20 64 62 6f 78 5f  73 65 74 66 69 65 6c 64  |   dbox_setfield|
00000d60  28 6d 2c 37 2c 22 45 4e  47 4c 49 53 48 22 29 3b  |(m,7,"ENGLISH");|
00000d70  0a 0a 20 20 20 20 20 20  62 72 65 61 6b 3b 0a 0a  |..      break;..|
00000d80  20 20 20 20 20 20 64 65  66 61 75 6c 74 3a 0a 20  |      default:. |
00000d90  20 20 20 20 20 62 72 65  61 6b 3b 0a 20 20 20 20  |     break;.    |
00000da0  20 20 7d 0a 0a 0a 20 20  20 20 2f 2a 20 44 69 73  |  }...    /* Dis|
00000db0  70 6f 73 65 20 6f 66 20  74 68 65 20 64 69 61 6c  |pose of the dial|
00000dc0  6f 67 75 65 20 62 6f 78  2a 2f 0a 69 66 20 28 77  |ogue box*/.if (w|
00000dd0  68 69 63 68 5f 69 63 6f  6e 5f 68 69 74 3d 3d 64  |hich_icon_hit==d|
00000de0  62 6f 78 5f 43 4c 4f 53  45 29 0a 20 20 20 7b 0a  |box_CLOSE).   {.|
00000df0  20 20 20 64 62 6f 78 5f  68 69 64 65 28 6f 70 74  |   dbox_hide(opt|
00000e00  69 6f 6e 73 31 29 3b 0a  20 20 20 7d 0a 0a 7d 0a  |ions1);.   }..}.|
00000e10  0a 0a 0a 76 6f 69 64 20  73 63 6f 72 65 5f 77 69  |...void score_wi|
00000e20  6e 28 76 6f 69 64 29 0a  7b 0a 20 20 20 20 69 6e  |n(void).{.    in|
00000e30  74 20 68 3b 0a 20 20 2f  2a 20 43 72 65 61 74 65  |t h;.  /* Create|
00000e40  20 74 68 65 20 64 69 61  6c 6f 67 75 65 20 62 6f  | the dialogue bo|
00000e50  78 20 2a 2f 0a 20 20 69  66 20 28 73 63 6f 72 65  |x */.  if (score|
00000e60  20 3d 20 64 62 6f 78 5f  6e 65 77 28 22 73 63 6f  | = dbox_new("sco|
00000e70  72 65 22 29 2c 20 73 63  6f 72 65 20 21 3d 20 4e  |re"), score != N|
00000e80  55 4c 4c 29 3b 0a 20 20  7b 0a 0a 20 20 20 64 62  |ULL);.  {..   db|
00000e90  6f 78 5f 73 65 74 6e 75  6d 65 72 69 63 28 73 63  |ox_setnumeric(sc|
00000ea0  6f 72 65 2c 32 2c 6e 75  6d 29 3b 0a 20 20 20 64  |ore,2,num);.   d|
00000eb0  62 6f 78 5f 73 65 74 6e  75 6d 65 72 69 63 28 73  |box_setnumeric(s|
00000ec0  63 6f 72 65 2c 31 2c 6e  29 3b 0a 20 20 20 69 3d  |core,1,n);.   i=|
00000ed0  30 3b 0a 20 20 20 71 75  65 73 74 3d 30 3b 0a 20  |0;.   quest=0;. |
00000ee0  20 20 6e 75 6d 3d 30 3b  0a 0a 20 20 20 20 2f 2a  |  num=0;..    /*|
00000ef0  20 53 68 6f 77 20 74 68  65 20 64 69 61 6c 6f 67  | Show the dialog|
00000f00  75 65 20 62 6f 78 20 2a  2f 0a 20 20 20 20 64 62  |ue box */.    db|
00000f10  6f 78 5f 73 68 6f 77 28  73 63 6f 72 65 29 3b 0a  |ox_show(score);.|
00000f20  0a 0a 20 20 20 20 68 20  3d 20 64 62 6f 78 5f 66  |..    h = dbox_f|
00000f30  69 6c 6c 69 6e 28 73 63  6f 72 65 29 3b 0a 0a 20  |illin(score);.. |
00000f40  20 20 20 73 77 69 74 63  68 28 68 29 0a 20 20 20  |   switch(h).   |
00000f50  20 7b 0a 20 20 20 20 63  61 73 65 20 30 3a 0a 20  | {.    case 0:. |
00000f60  20 20 20 64 62 6f 78 5f  68 69 64 65 28 73 63 6f  |   dbox_hide(sco|
00000f70  72 65 29 3b 0a 20 20 20  20 62 72 65 61 6b 3b 0a  |re);.    break;.|
00000f80  0a 0a 20 20 20 20 63 61  73 65 20 36 3a 0a 20 20  |..    case 6:.  |
00000f90  20 20 72 65 73 74 61 72  74 28 29 3b 0a 20 20 20  |  restart();.   |
00000fa0  0a 20 0a 20 20 0a 20 20  20 20 0a 20 20 20 20 62  |. .  .    .    b|
00000fb0  72 65 61 6b 3b 0a 0a 20  20 20 20 63 61 73 65 20  |reak;..    case |
00000fc0  35 3a 0a 20 20 20 20 64  62 6f 78 5f 73 68 6f 77  |5:.    dbox_show|
00000fd0  73 74 61 74 69 63 28 77  72 6f 6e 67 29 3b 0a 20  |static(wrong);. |
00000fe0  20 20 20 72 65 64 72 61  77 5f 77 72 6f 6e 67 28  |   redraw_wrong(|
00000ff0  29 3b 0a 20 20 20 20 62  72 65 61 6b 3b 0a 0a 0a  |);.    break;...|
00001000  20 20 20 20 7d 0a 20 20  20 20 64 62 6f 78 5f 64  |    }.    dbox_d|
00001010  69 73 70 6f 73 65 28 26  73 63 6f 72 65 29 3b 0a  |ispose(&score);.|
00001020  0a 20 20 20 20 7d 0a 0a  0a 0a 0a 20 20 20 20 7d  |.    }.....    }|
00001030  0a 0a 0a 0a 76 6f 69 64  20 6d 5f 68 61 6e 64 6c  |....void m_handl|
00001040  65 72 28 64 62 6f 78 20  6d 31 2c 20 76 6f 69 64  |er(dbox m1, void|
00001050  20 2a 68 61 6e 64 6c 65  29 20 20 2f 2a 20 4b 65  | *handle)  /* Ke|
00001060  65 70 20 69 74 20 6f 6e  20 74 68 65 20 73 63 72  |ep it on the scr|
00001070  65 65 6e 20 61 73 20 6c  6f 6e 67 20 61 73 20 6e  |een as long as n|
00001080  65 65 64 65 64 20 2a 2f  0a 7b 0a 69 6e 74 20 77  |eeded */.{.int w|
00001090  68 69 63 68 5f 69 63 6f  6e 5f 68 69 74 3b 0a 77  |hich_icon_hit;.w|
000010a0  68 69 63 68 5f 69 63 6f  6e 5f 68 69 74 3d 64 62  |hich_icon_hit=db|
000010b0  6f 78 5f 67 65 74 28 6d  31 29 3b 0a 0a 68 61 6e  |ox_get(m1);..han|
000010c0  64 6c 65 3d 68 61 6e 64  6c 65 3b 0a 0a 73 77 69  |dle=handle;..swi|
000010d0  74 63 68 28 77 68 69 63  68 5f 69 63 6f 6e 5f 68  |tch(which_icon_h|
000010e0  69 74 29 0a 20 20 20 20  20 20 7b 0a 20 20 20 20  |it).      {.    |
000010f0  20 20 63 61 73 65 20 30  3a 0a 20 20 20 20 20 20  |  case 0:.      |
00001100  6f 6b 63 6c 69 63 6b 28  29 3b 0a 20 20 20 20 20  |okclick();.     |
00001110  20 62 72 65 61 6b 3b 0a  20 20 20 20 20 20 7d 0a  | break;.      }.|
00001120  0a 0a 0a 20 20 20 20 2f  2a 20 44 69 73 70 6f 73  |...    /* Dispos|
00001130  65 20 6f 66 20 74 68 65  20 64 69 61 6c 6f 67 75  |e of the dialogu|
00001140  65 20 62 6f 78 2a 2f 0a  69 66 28 77 68 69 63 68  |e box*/.if(which|
00001150  5f 69 63 6f 6e 5f 68 69  74 3d 3d 64 62 6f 78 5f  |_icon_hit==dbox_|
00001160  43 4c 4f 53 45 29 0a 20  20 20 7b 0a 20 20 20 64  |CLOSE).   {.   d|
00001170  62 6f 78 5f 68 69 64 65  28 6d 29 3b 0a 20 20 20  |box_hide(m);.   |
00001180  64 62 6f 78 5f 73 65 74  66 69 65 6c 64 28 6d 2c  |dbox_setfield(m,|
00001190  32 2c 22 22 29 3b 0a 20  20 20 7d 0a 7d 0a 0a 0a  |2,"");.   }.}...|
000011a0  0a 0a 76 6f 69 64 20 77  72 6f 6e 67 5f 68 61 6e  |..void wrong_han|
000011b0  64 6c 65 72 28 64 62 6f  78 20 77 72 6f 6e 67 31  |dler(dbox wrong1|
000011c0  2c 20 76 6f 69 64 20 2a  68 61 6e 64 6c 65 29 20  |, void *handle) |
000011d0  20 2f 2a 20 4b 65 65 70  20 69 74 20 6f 6e 20 74  | /* Keep it on t|
000011e0  68 65 20 73 63 72 65 65  6e 20 61 73 20 6c 6f 6e  |he screen as lon|
000011f0  67 20 61 73 20 6e 65 65  64 65 64 20 2a 2f 0a 7b  |g as needed */.{|
00001200  0a 20 20 20 20 77 69 6d  70 5f 6d 6f 75 73 65 73  |.    wimp_mouses|
00001210  74 72 20 6d 69 63 6b 79  3b 0a 20 20 20 20 69 6e  |tr micky;.    in|
00001220  74 20 77 68 69 63 68 5f  69 63 6f 6e 5f 68 69 74  |t which_icon_hit|
00001230  3b 0a 20 20 20 20 77 68  69 63 68 5f 69 63 6f 6e  |;.    which_icon|
00001240  5f 68 69 74 3d 64 62 6f  78 5f 67 65 74 28 77 72  |_hit=dbox_get(wr|
00001250  6f 6e 67 31 29 3b 0a 0a  0a 20 20 20 20 68 61 6e  |ong1);...    han|
00001260  64 6c 65 3d 68 61 6e 64  6c 65 3b 0a 0a 20 20 20  |dle=handle;..   |
00001270  20 73 77 69 74 63 68 28  77 68 69 63 68 5f 69 63  | switch(which_ic|
00001280  6f 6e 5f 68 69 74 29 0a  20 20 20 20 20 20 7b 0a  |on_hit).      {.|
00001290  20 20 20 20 20 20 63 61  73 65 20 33 36 3a 0a 20  |      case 36:. |
000012a0  20 20 20 20 20 2f 2a 67  65 74 6e 65 77 5f 77 72  |     /*getnew_wr|
000012b0  6f 6e 67 28 29 3b 2a 2f  0a 20 20 20 20 20 20 64  |ong();*/.      d|
000012c0  62 6f 78 5f 68 69 64 65  28 77 72 6f 6e 67 29 3b  |box_hide(wrong);|
000012d0  0a 20 20 20 20 20 20 62  72 65 61 6b 3b 0a 0a 0a  |.      break;...|
000012e0  0a 0a 0a 20 20 20 20 20  20 63 61 73 65 20 32 39  |...      case 29|
000012f0  3a 0a 0a 20 20 20 20 20  20 20 20 77 69 6d 70 5f  |:..        wimp_|
00001300  67 65 74 5f 70 6f 69 6e  74 5f 69 6e 66 6f 28 26  |get_point_info(&|
00001310  6d 69 63 6b 79 29 3b 0a  20 20 20 20 20 20 20 20  |micky);.        |
00001320  69 66 28 6d 69 63 6b 79  2e 62 62 69 74 73 3d 3d  |if(micky.bbits==|
00001330  77 69 6d 70 5f 42 52 49  47 48 54 29 0a 20 20 20  |wimp_BRIGHT).   |
00001340  20 20 20 20 20 20 20 20  20 7b 0a 0a 20 20 61 64  |         {..  ad|
00001350  64 6f 6e 32 3d 61 64 64  6f 6e 32 2b 39 3b 0a 0a  |don2=addon2+9;..|
00001360  20 20 20 20 20 20 20 20  20 20 69 66 20 28 61 64  |          if (ad|
00001370  64 6f 6e 32 20 3e 20 31  34 31 29 0a 20 20 20 20  |don2 > 141).    |
00001380  20 20 20 20 20 20 20 20  20 7b 0a 20 20 20 20 20  |         {.     |
00001390  20 20 20 20 20 20 20 20  61 64 64 6f 6e 32 3d 31  |        addon2=1|
000013a0  34 31 3b 0a 20 20 20 20  20 20 20 20 20 20 20 20  |41;.            |
000013b0  20 7d 0a 20 20 20 20 20  20 20 20 20 20 7d 0a 0a  | }.          }..|
000013c0  20 20 20 20 20 20 20 20  20 20 65 6c 73 65 0a 0a  |          else..|
000013d0  0a 20 20 20 20 20 20 20  20 20 20 7b 0a 20 20 20  |.          {.   |
000013e0  20 20 20 20 20 20 20 61  64 64 6f 6e 32 2b 2b 3b  |       addon2++;|
000013f0  0a 0a 20 20 20 20 20 20  20 20 20 20 69 66 20 28  |..          if (|
00001400  61 64 64 6f 6e 32 20 3e  20 31 34 31 29 0a 20 20  |addon2 > 141).  |
00001410  20 20 20 20 20 20 20 20  20 20 20 7b 0a 20 20 20  |           {.   |
00001420  20 20 20 20 20 20 20 20  20 20 61 64 64 6f 6e 32  |          addon2|
00001430  3d 31 34 31 3b 0a 20 20  20 20 20 20 20 20 20 20  |=141;.          |
00001440  20 20 20 7d 0a 20 20 20  20 20 20 20 20 20 20 20  |   }.           |
00001450  7d 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 72  |}..            r|
00001460  65 64 72 61 77 5f 77 72  6f 6e 67 28 29 3b 0a 0a  |edraw_wrong();..|
00001470  20 20 20 20 20 20 20 62  72 65 61 6b 3b 0a 0a 20  |       break;.. |
00001480  20 20 20 20 20 63 61 73  65 20 32 38 3a 0a 0a 0a  |     case 28:...|
00001490  0a 0a 20 20 20 20 20 20  77 69 6d 70 5f 67 65 74  |..      wimp_get|
000014a0  5f 70 6f 69 6e 74 5f 69  6e 66 6f 28 26 6d 69 63  |_point_info(&mic|
000014b0  6b 79 29 3b 0a 20 20 20  20 20 20 69 66 28 6d 69  |ky);.      if(mi|
000014c0  63 6b 79 2e 62 62 69 74  73 3d 3d 77 69 6d 70 5f  |cky.bbits==wimp_|
000014d0  42 52 49 47 48 54 29 0a  20 20 20 20 20 20 20 20  |BRIGHT).        |
000014e0  20 20 7b 0a 0a 20 61 64  64 6f 6e 32 3d 61 64 64  |  {.. addon2=add|
000014f0  6f 6e 32 2d 39 3b 0a 0a  20 20 20 20 20 20 20 69  |on2-9;..       i|
00001500  66 20 28 61 64 64 6f 6e  32 20 3c 20 30 29 0a 20  |f (addon2 < 0). |
00001510  20 20 20 20 20 20 20 20  20 7b 0a 20 20 20 20 20  |         {.     |
00001520  20 20 20 20 20 61 64 64  6f 6e 32 3d 30 3b 0a 20  |     addon2=0;. |
00001530  20 20 20 20 20 20 20 20  20 7d 0a 20 20 20 20 20  |         }.     |
00001540  20 20 7d 0a 0a 20 20 20  20 20 20 20 65 6c 73 65  |  }..       else|
00001550  0a 0a 0a 20 20 20 20 20  20 20 7b 0a 20 20 20 20  |...       {.    |
00001560  20 20 20 61 64 64 6f 6e  32 2d 2d 3b 0a 0a 20 20  |   addon2--;..  |
00001570  20 20 20 20 20 69 66 20  28 61 64 64 6f 6e 32 20  |     if (addon2 |
00001580  3c 20 30 29 0a 20 20 20  20 20 20 20 20 20 20 20  |< 0).           |
00001590  7b 0a 20 20 20 20 20 20  20 20 20 20 20 61 64 64  |{.           add|
000015a0  6f 6e 32 3d 30 3b 0a 20  20 20 20 20 20 20 20 20  |on2=0;.         |
000015b0  20 20 7d 0a 20 20 20 20  20 20 20 7d 0a 0a 0a 20  |  }.       }... |
000015c0  20 20 20 20 20 20 20 20  20 72 65 64 72 61 77 5f  |         redraw_|
000015d0  77 72 6f 6e 67 28 29 3b  0a 20 20 20 20 20 2f 2a  |wrong();.     /*|
000015e0  20 7d 20 20 2a 2f 0a 20  20 20 20 20 20 62 72 65  | }  */.      bre|
000015f0  61 6b 3b 0a 20 20 20 20  20 20 7d 0a 0a 20 20 20  |ak;.      }..   |
00001600  20 2f 2a 20 44 69 73 70  6f 73 65 20 6f 66 20 74  | /* Dispose of t|
00001610  68 65 20 64 69 61 6c 6f  67 75 65 20 62 6f 78 2a  |he dialogue box*|
00001620  2f 0a 69 66 28 77 68 69  63 68 5f 69 63 6f 6e 5f  |/.if(which_icon_|
00001630  68 69 74 3d 3d 64 62 6f  78 5f 43 4c 4f 53 45 29  |hit==dbox_CLOSE)|
00001640  0a 20 20 20 7b 0a 20 20  20 2f 2a 67 65 74 6e 65  |.   {.   /*getne|
00001650  77 5f 77 72 6f 6e 67 28  29 3b 2a 2f 0a 20 20 20  |w_wrong();*/.   |
00001660  64 62 6f 78 5f 68 69 64  65 28 77 72 6f 6e 67 29  |dbox_hide(wrong)|
00001670  3b 0a 20 20 20 7d 0a 7d  0a 0a 76 6f 69 64 20 65  |;.   }.}..void e|
00001680  64 69 74 5f 68 61 6e 64  6c 65 72 28 64 62 6f 78  |dit_handler(dbox|
00001690  20 65 64 69 74 31 2c 20  76 6f 69 64 20 2a 68 61  | edit1, void *ha|
000016a0  6e 64 6c 65 29 20 20 2f  2a 20 4b 65 65 70 20 69  |ndle)  /* Keep i|
000016b0  74 20 6f 6e 20 74 68 65  20 73 63 72 65 65 6e 20  |t on the screen |
000016c0  61 73 20 6c 6f 6e 67 20  61 73 20 6e 65 65 64 65  |as long as neede|
000016d0  64 20 2a 2f 0a 7b 0a 77  69 6d 70 5f 6d 6f 75 73  |d */.{.wimp_mous|
000016e0  65 73 74 72 20 6d 69 63  6b 79 3b 0a 0a 0a 69 6e  |estr micky;...in|
000016f0  74 20 77 68 69 63 68 5f  69 63 6f 6e 5f 68 69 74  |t which_icon_hit|
00001700  3b 0a 77 68 69 63 68 5f  69 63 6f 6e 5f 68 69 74  |;.which_icon_hit|
00001710  3d 64 62 6f 78 5f 67 65  74 28 65 64 69 74 31 29  |=dbox_get(edit1)|
00001720  3b 0a 0a 68 61 6e 64 6c  65 3d 68 61 6e 64 6c 65  |;..handle=handle|
00001730  3b 0a 0a 73 77 69 74 63  68 28 77 68 69 63 68 5f  |;..switch(which_|
00001740  69 63 6f 6e 5f 68 69 74  29 0a 20 20 20 20 20 20  |icon_hit).      |
00001750  7b 0a 20 20 20 20 20 20  63 61 73 65 20 33 38 3a  |{.      case 38:|
00001760  0a 20 20 20 20 20 20 67  65 74 6e 65 77 5f 65 64  |.      getnew_ed|
00001770  69 74 28 29 3b 0a 20 20  20 20 20 20 63 68 61 6e  |it();.      chan|
00001780  67 65 5f 67 65 72 6d 61  6e 28 29 3b 0a 20 20 20  |ge_german();.   |
00001790  20 20 20 63 68 61 6e 67  65 5f 65 6e 67 6c 69 73  |   change_englis|
000017a0  68 28 29 3b 0a 20 20 20  20 20 20 63 68 61 6e 67  |h();.      chang|
000017b0  65 5f 6c 61 6e 67 75 61  67 65 28 29 3b 0a 20 20  |e_language();.  |
000017c0  20 20 20 20 63 68 61 6e  67 65 5f 74 69 74 6c 65  |    change_title|
000017d0  28 29 3b 0a 20 20 20 20  20 20 63 68 61 6e 67 65  |();.      change|
000017e0  5f 73 75 62 74 69 74 6c  65 28 29 3b 0a 20 20 20  |_subtitle();.   |
000017f0  20 20 20 64 62 6f 78 5f  68 69 64 65 28 65 64 69  |   dbox_hide(edi|
00001800  74 31 29 3b 0a 20 20 20  20 20 20 72 65 64 72 61  |t1);.      redra|
00001810  77 5f 77 72 6f 6e 67 28  29 3b 0a 20 20 20 20 20  |w_wrong();.     |
00001820  20 62 72 65 61 6b 3b 0a  0a 20 20 20 20 20 20 63  | break;..      c|
00001830  61 73 65 20 32 39 3a 0a  0a 20 20 20 20 20 20 64  |ase 29:..      d|
00001840  62 6f 78 5f 67 65 74 66  69 65 6c 64 28 65 64 69  |box_getfield(edi|
00001850  74 2c 33 30 2c 74 69 74  6c 65 2c 33 30 29 3b 0a  |t,30,title,30);.|
00001860  20 20 20 20 20 20 64 62  6f 78 5f 67 65 74 66 69  |      dbox_getfi|
00001870  65 6c 64 28 65 64 69 74  2c 33 31 2c 6c 61 6e 67  |eld(edit,31,lang|
00001880  75 61 67 65 2c 33 30 29  3b 0a 0a 0a 20 20 20 20  |uage,30);...    |
00001890  20 20 64 62 6f 78 5f 67  65 74 66 69 65 6c 64 28  |  dbox_getfield(|
000018a0  65 64 69 74 2c 31 30 2c  65 6e 67 6c 69 73 68 5b  |edit,10,english[|
000018b0  61 64 64 6f 6e 31 5d 2c  33 30 29 3b 0a 20 20 20  |addon1],30);.   |
000018c0  20 20 20 64 62 6f 78 5f  67 65 74 66 69 65 6c 64  |   dbox_getfield|
000018d0  28 65 64 69 74 2c 31 39  2c 67 65 72 6d 61 6e 5b  |(edit,19,german[|
000018e0  61 64 64 6f 6e 31 5d 2c  33 30 29 3b 0a 0a 20 20  |addon1],30);..  |
000018f0  20 20 20 20 20 67 65 74  6e 65 77 5f 65 64 69 74  |     getnew_edit|
00001900  28 29 3b 0a 0a 20 20 20  20 20 20 77 69 6d 70 5f  |();..      wimp_|
00001910  67 65 74 5f 70 6f 69 6e  74 5f 69 6e 66 6f 28 26  |get_point_info(&|
00001920  6d 69 63 6b 79 29 3b 0a  0a 20 20 20 20 20 20 69  |micky);..      i|
00001930  66 28 6d 69 63 6b 79 2e  62 62 69 74 73 3d 3d 77  |f(micky.bbits==w|
00001940  69 6d 70 5f 42 52 49 47  48 54 29 0a 20 20 20 20  |imp_BRIGHT).    |
00001950  20 20 20 20 20 20 7b 0a  0a 20 20 20 20 20 20 20  |      {..       |
00001960  20 20 20 61 64 64 6f 6e  31 3d 61 64 64 6f 6e 31  |   addon1=addon1|
00001970  2b 39 3b 0a 0a 20 20 20  20 20 20 20 20 20 20 69  |+9;..          i|
00001980  66 20 28 61 64 64 6f 6e  31 20 3e 20 31 34 31 29  |f (addon1 > 141)|
00001990  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 7b 0a  |.             {.|
000019a0  20 20 20 20 20 20 20 20  20 20 20 20 20 61 64 64  |             add|
000019b0  6f 6e 31 3d 31 34 31 3b  0a 20 20 20 20 20 20 20  |on1=141;.       |
000019c0  20 20 20 20 20 20 7d 0a  20 20 20 20 20 20 20 20  |      }.        |
000019d0  20 20 7d 0a 0a 20 20 20  20 20 20 20 20 20 20 65  |  }..          e|
000019e0  6c 73 65 0a 0a 0a 20 20  20 20 20 20 20 20 20 20  |lse...          |
000019f0  7b 0a 20 20 20 20 20 20  20 20 20 20 61 64 64 6f  |{.          addo|
00001a00  6e 31 2b 2b 3b 0a 0a 20  20 20 20 20 20 20 20 20  |n1++;..         |
00001a10  20 69 66 20 28 61 64 64  6f 6e 31 20 3e 20 31 34  | if (addon1 > 14|
00001a20  31 29 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |1).             |
00001a30  7b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 61  |{.             a|
00001a40  64 64 6f 6e 31 3d 31 34  31 3b 0a 20 20 20 20 20  |ddon1=141;.     |
00001a50  20 20 20 20 20 20 20 20  7d 0a 20 20 20 20 20 20  |        }.      |
00001a60  20 20 20 20 20 7d 0a 0a  0a 0a 20 20 20 20 20 20  |     }....      |
00001a70  72 65 64 72 61 77 5f 65  64 69 74 28 29 3b 0a 0a  |redraw_edit();..|
00001a80  20 20 20 20 20 20 62 72  65 61 6b 3b 0a 0a 0a 0a  |      break;....|
00001a90  20 20 20 20 20 20 63 61  73 65 20 32 38 3a 0a 0a  |      case 28:..|
00001aa0  20 20 20 20 20 64 62 6f  78 5f 67 65 74 66 69 65  |     dbox_getfie|
00001ab0  6c 64 28 65 64 69 74 2c  33 30 2c 74 69 74 6c 65  |ld(edit,30,title|
00001ac0  2c 33 30 29 3b 0a 20 20  20 20 20 64 62 6f 78 5f  |,30);.     dbox_|
00001ad0  67 65 74 66 69 65 6c 64  28 65 64 69 74 2c 33 31  |getfield(edit,31|
00001ae0  2c 6c 61 6e 67 75 61 67  65 2c 33 30 29 3b 0a 0a  |,language,30);..|
00001af0  20 20 20 20 20 64 62 6f  78 5f 67 65 74 66 69 65  |     dbox_getfie|
00001b00  6c 64 28 65 64 69 74 2c  31 38 2c 65 6e 67 6c 69  |ld(edit,18,engli|
00001b10  73 68 5b 61 64 64 6f 6e  31 2b 38 5d 2c 33 30 29  |sh[addon1+8],30)|
00001b20  3b 0a 20 20 20 20 20 64  62 6f 78 5f 67 65 74 66  |;.     dbox_getf|
00001b30  69 65 6c 64 28 65 64 69  74 2c 32 37 2c 67 65 72  |ield(edit,27,ger|
00001b40  6d 61 6e 5b 61 64 64 6f  6e 31 2b 38 5d 2c 33 30  |man[addon1+8],30|
00001b50  29 3b 0a 0a 20 20 20 20  20 67 65 74 6e 65 77 5f  |);..     getnew_|
00001b60  65 64 69 74 28 29 3b 0a  0a 20 20 20 20 20 77 69  |edit();..     wi|
00001b70  6d 70 5f 67 65 74 5f 70  6f 69 6e 74 5f 69 6e 66  |mp_get_point_inf|
00001b80  6f 28 26 6d 69 63 6b 79  29 3b 0a 20 20 20 20 20  |o(&micky);.     |
00001b90  69 66 28 6d 69 63 6b 79  2e 62 62 69 74 73 3d 3d  |if(micky.bbits==|
00001ba0  77 69 6d 70 5f 42 52 49  47 48 54 29 0a 0a 20 20  |wimp_BRIGHT)..  |
00001bb0  20 20 20 20 20 7b 0a 0a  20 20 20 20 20 20 20 61  |     {..       a|
00001bc0  64 64 6f 6e 31 3d 61 64  64 6f 6e 31 2d 39 3b 0a  |ddon1=addon1-9;.|
00001bd0  0a 20 20 20 20 20 20 20  69 66 20 28 61 64 64 6f  |.       if (addo|
00001be0  6e 31 20 3c 20 30 29 0a  20 20 20 20 20 20 20 20  |n1 < 0).        |
00001bf0  20 20 7b 0a 20 20 20 20  20 20 20 20 20 20 61 64  |  {.          ad|
00001c00  64 6f 6e 31 3d 30 3b 0a  20 20 20 20 20 20 20 20  |don1=0;.        |
00001c10  20 20 7d 0a 20 20 20 20  20 20 20 7d 0a 0a 20 20  |  }.       }..  |
00001c20  20 20 20 20 20 65 6c 73  65 0a 0a 0a 20 20 20 20  |     else...    |
00001c30  20 20 20 7b 0a 20 20 20  20 20 20 20 61 64 64 6f  |   {.       addo|
00001c40  6e 31 2d 2d 3b 0a 0a 20  20 20 20 20 20 20 69 66  |n1--;..       if|
00001c50  20 28 61 64 64 6f 6e 31  20 3c 20 30 29 0a 20 20  | (addon1 < 0).  |
00001c60  20 20 20 20 20 20 20 20  20 7b 0a 20 20 20 20 20  |         {.     |
00001c70  20 20 20 20 20 20 61 64  64 6f 6e 31 3d 30 3b 0a  |      addon1=0;.|
00001c80  20 20 20 20 20 20 20 20  20 20 20 7d 0a 20 20 20  |           }.   |
00001c90  20 20 20 20 7d 0a 0a 20  20 20 20 20 20 20 20 20  |    }..         |
00001ca0  20 20 72 65 64 72 61 77  5f 65 64 69 74 28 29 3b  |  redraw_edit();|
00001cb0  0a 20 20 20 20 20 62 72  65 61 6b 3b 0a 0a 0a 20  |.     break;... |
00001cc0  20 20 20 20 7d 0a 0a 0a  0a 20 20 20 20 2f 2a 20  |    }....    /* |
00001cd0  44 69 73 70 6f 73 65 20  6f 66 20 74 68 65 20 64  |Dispose of the d|
00001ce0  69 61 6c 6f 67 75 65 20  62 6f 78 2a 2f 0a 69 66  |ialogue box*/.if|
00001cf0  28 77 68 69 63 68 5f 69  63 6f 6e 5f 68 69 74 3d  |(which_icon_hit=|
00001d00  3d 64 62 6f 78 5f 43 4c  4f 53 45 29 0a 20 20 20  |=dbox_CLOSE).   |
00001d10  7b 0a 0a 20 20 20 67 65  74 6e 65 77 5f 65 64 69  |{..   getnew_edi|
00001d20  74 28 29 3b 0a 0a 20 20  20 64 62 6f 78 5f 68 69  |t();..   dbox_hi|
00001d30  64 65 28 65 64 69 74 31  29 3b 0a 0a 20 20 20 63  |de(edit1);..   c|
00001d40  68 61 6e 67 65 5f 67 65  72 6d 61 6e 28 29 3b 0a  |hange_german();.|
00001d50  0a 20 20 20 63 68 61 6e  67 65 5f 65 6e 67 6c 69  |.   change_engli|
00001d60  73 68 28 29 3b 0a 20 20  20 63 68 61 6e 67 65 5f  |sh();.   change_|
00001d70  6c 61 6e 67 75 61 67 65  28 29 3b 0a 20 20 20 63  |language();.   c|
00001d80  68 61 6e 67 65 5f 74 69  74 6c 65 28 29 3b 0a 20  |hange_title();. |
00001d90  20 20 63 68 61 6e 67 65  5f 73 75 62 74 69 74 6c  |  change_subtitl|
00001da0  65 28 29 3b 0a 0a 20 20  20 72 65 64 72 61 77 5f  |e();..   redraw_|
00001db0  77 72 6f 6e 67 28 29 3b  0a 0a 20 20 20 7d 0a 7d  |wrong();..   }.}|
00001dc0  0a 0a 0a 2f 2a 2d 2d 2d  20 44 69 73 70 6c 61 79  |.../*--- Display|
00001dd0  20 74 68 65 20 70 72 6f  67 72 61 6d 20 69 6e 66  | the program inf|
00001de0  6f 20 62 6f 78 20 2d 20  63 61 6c 6c 65 64 20 66  |o box - called f|
00001df0  72 6f 6d 20 74 68 65 20  6d 65 6e 75 20 70 72 6f  |rom the menu pro|
00001e00  63 65 73 73 6f 72 2e 20  2d 2d 2d 2a 2f 0a 76 6f  |cessor. ---*/.vo|
00001e10  69 64 20 76 6f 63 61 62  5f 69 6e 66 6f 5f 61 62  |id vocab_info_ab|
00001e20  6f 75 74 5f 70 72 6f 67  72 61 6d 28 76 6f 69 64  |out_program(void|
00001e30  29 0a 7b 0a 0a 0a 20 20  2f 2a 20 43 72 65 61 74  |).{...  /* Creat|
00001e40  65 20 74 68 65 20 64 69  61 6c 6f 67 75 65 20 62  |e the dialogue b|
00001e50  6f 78 20 2a 2f 0a 20 20  69 66 20 28 69 6e 66 6f  |ox */.  if (info|
00001e60  20 3d 20 64 62 6f 78 5f  6e 65 77 28 22 49 6e 66  | = dbox_new("Inf|
00001e70  6f 22 29 2c 20 69 6e 66  6f 20 21 3d 20 4e 55 4c  |o"), info != NUL|
00001e80  4c 29 0a 20 20 7b 0a 0a  20 20 20 20 2f 2a 20 53  |L).  {..    /* S|
00001e90  68 6f 77 20 74 68 65 20  64 69 61 6c 6f 67 75 65  |how the dialogue|
00001ea0  20 62 6f 78 20 2a 2f 0a  20 20 20 20 64 62 6f 78  | box */.    dbox|
00001eb0  5f 73 68 6f 77 28 69 6e  66 6f 29 3b 0a 0a 20 20  |_show(info);..  |
00001ec0  20 20 2f 2a 20 4b 65 65  70 20 69 74 20 6f 6e 20  |  /* Keep it on |
00001ed0  74 68 65 20 73 63 72 65  65 6e 20 61 73 20 6c 6f  |the screen as lo|
00001ee0  6e 67 20 61 73 20 6e 65  65 64 65 64 20 2a 2f 0a  |ng as needed */.|
00001ef0  20 20 20 20 64 62 6f 78  5f 66 69 6c 6c 69 6e 28  |    dbox_fillin(|
00001f00  69 6e 66 6f 29 3b 0a 0a  20 20 20 20 2f 2a 20 44  |info);..    /* D|
00001f10  69 73 70 6f 73 65 20 6f  66 20 74 68 65 20 64 69  |ispose of the di|
00001f20  61 6c 6f 67 75 65 20 62  6f 78 20 2a 2f 0a 20 20  |alogue box */.  |
00001f30  20 20 64 62 6f 78 5f 64  69 73 70 6f 73 65 28 26  |  dbox_dispose(&|
00001f40  69 6e 66 6f 29 3b 0a 20  20 7d 0a 7d 0a           |info);.  }.}.|
00001f4d