/****************************************************************************
**
*A  main.c                      XGAP Source                      Frank Celler
**
*H  @(#)$Id: main.h,v 1.1 1993/10/18 11:04:47 fceller Exp $
**
*Y  Copyright 1993-1995,   Frank Celler,   Lehrstuhl D fuer Mathematik,  RWTH
**
*H  $Log: main.h,v $
*H  Revision 1.1  1993/10/18  11:04:47  fceller
*H  added fast updated,  fixed timing problem
*H
*H  Revision 1.0  1993/04/05  11:42:18  fceller
*H  Initial revision
*H
*/


/****************************************************************************
**
*F  AppContext	. . . . . . . . . . . . . . . . . . . . .  aplication context
*/
extern XtAppContext AppContext;

/****************************************************************************
**
*V  xGap  . . . . . . . . . . . . . . . . . . . . . . . . . .  toplevel shell
*/
extern Widget xGap;


/****************************************************************************
**
*V  GapTalk . . . . . . . . . . . . . . . . . . . . . . . . . gap text window
*/
extern Widget GapTalk;


/****************************************************************************
**
*T  TypeMenuItem  . . . . . . . . . . . . . . . . . . . . .  menu description
*/
#define S_ALWAYS          0
#define S_INPUT_ONLY	  1
#define S_ERROR_ONLY      2
#define S_NORMAL_ONLY     3
#define S_RUNNING_ONLY    4
#define S_HELP_ONLY       5

typedef struct _menu_item
{
  char 	  * label;
  void      (*click)();
  int       sensitive;
  Widget    entry;
}
TypeMenuItem;


/****************************************************************************
**

*P  Prototypes  . . . . . . . . . . . prototypes of public gap text functions
*/
#ifdef __STDC__
extern void SimulateInput( char* );
#else
extern void SimulateInput();
#endif
