home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / x / xwais.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-07  |  3.3 KB  |  179 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    This is part of the X user-interface for the WAIS software.  Do with it
  6.    as you please.
  7.  
  8.    jonathan@Think.COM
  9. */
  10.  
  11. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  12.  
  13. /*
  14.  * $Log: xwais.h,v $
  15.  * Revision 1.4  1994/08/08  07:33:17  pfeifer
  16.  * Moved wais_log_file_name and waislogfile to cutil.[ch]
  17.  *
  18.  * Revision 1.3  1994/08/05  08:54:30  pfeifer
  19.  * dumped numtosave since it's unused
  20.  *
  21.  * Revision 1.2  1994/08/05  07:28:43  pfeifer
  22.  * Release beta 04
  23.  *
  24.  * Revision 1.1  1993/02/16  15:10:18  freewais
  25.  * Initial revision
  26.  *
  27.  * Revision 1.15  92/04/30  12:23:34  jonathan
  28.  * Removed redundant includes.
  29.  * 
  30.  * Revision 1.14  92/04/28  15:34:12  jonathan
  31.  * Cleaned up includes.  More to go I'm sure.
  32.  * 
  33.  * Revision 1.13  92/03/23  16:10:53  jonathan
  34.  * named a lot of buttons.
  35.  * 
  36.  * Revision 1.12  92/03/17  14:21:20  jonathan
  37.  * Generally cleaned up.
  38.  * 
  39.  */
  40.  
  41. #ifndef _H_XWAIS
  42. #define _H_XWAIS
  43.  
  44.  
  45. #include "xstuff.h"
  46.  
  47. #ifdef _IBMR2
  48. #undef SYSV
  49. #undef void
  50. #endif
  51.  
  52. /* usefull definitions */
  53.  
  54. #define STRINGSIZE    256
  55.  
  56. #include "cdialect.h"
  57. #include "wais.h"
  58. #include "text.h"
  59. #include "scrolllist.h"
  60. #include "util.h"
  61. #include "scommands.h"
  62.  
  63. #ifdef XWAIS
  64. #include "display.h"
  65. #include "tcommands.h"
  66. #else
  67. #include "xquestion.h"
  68. #include "qdisplay.h"
  69. #include "qcommands.h"
  70. #include "filereq.h"
  71. #endif
  72.  
  73. #ifdef MAIN
  74. #define ext
  75. #else
  76. #define ext extern
  77. #endif
  78.  
  79. #define NUM_CURSORS 7
  80.  
  81. ext Cursor wais_cursors[NUM_CURSORS];
  82.  
  83. ext char *command_name;
  84.  
  85. ext char *sdir, *cdir;
  86.  
  87. /*
  88. ext char* wais_log_file_name;
  89. ext FILE* waislogfile;
  90. */
  91. #define NO_ITEM_SELECTED -1
  92.  
  93. #define NUMQLINES 3
  94. #define NUMSLINES 3
  95. #define NUMRLINES 6
  96.  
  97. /*    externals in xwais.c     */
  98.  
  99. ext struct _app_resources {
  100.     char *questionDirectory;
  101.     char *userSourceDirectory;
  102.     char *commonSourceDirectory;
  103.     char *documentDirectory;
  104.     char *helpFile;
  105.     char *removeSeekerCodes;
  106.     char *rescanInterval;
  107.     char *seedWords;
  108.     char *initialSource;
  109.     char *questionName;
  110.     char *filters;
  111.     int maximumResults;
  112.     Boolean doSearch;
  113.     Boolean defaultsInstalled;
  114.     Boolean showKeys;
  115. } app_resources;
  116.  
  117. ext XtAppContext app_context;
  118.  
  119. ext XtIntervalId rescantimerid;
  120.  
  121. ext Widget top, form; /* top level things for display */
  122.  
  123. ext Widget
  124.   labelwindow,
  125.   messwidget;
  126.  
  127. ext ScrollList
  128.   questionwindow,
  129.   sourcewindow,
  130.   typewindow,
  131.   savelist;
  132.  
  133. ext Widget questionpopup,
  134.   qnamewid, keywordwid, sshell, typeshell,
  135.   savereq, dirnamewidget, filenamewidget, maxdocwid;
  136.  
  137. ext Widget sourcepopup, prefpopup, maxdocwid, sourcepathwid,
  138.   filterwid, snamewid, serverwid, servicewid, dbwid,
  139.   costwid, unitwid, maintainerwid, descwid;
  140.  
  141. ext Widget searchButton, addSourceButton, delSourceButton,
  142.   addDocButton, delDocButton, helpButton, abortButton, 
  143.   saveAsButton, doneButton;
  144.  
  145. ext Widget savebutton, viewbutton, cancelbutton, quitbutton;
  146.  
  147. ext Widget sourcemenu, sourcebutton;
  148.  
  149. ext String questionname, config, db;
  150.  
  151. ext Display *CurDpy;
  152.  
  153. ext int NumQuestions;
  154.  
  155. ext Source the_Source;
  156.  
  157. #ifndef XWAIS
  158. ext XQuestion the_Question;
  159. #endif
  160.  
  161. ext String *Question_items;
  162.  
  163. ext SList Sources;
  164. extern char **Source_items;
  165. ext int NumSources;
  166.  
  167. ext char** Type_items;
  168.  
  169. ext TextList allText;
  170.  
  171. ext Widget LastClicked;
  172. ext Boolean double_click;
  173.  
  174. ext void Feep();
  175.  
  176. extern void DoQuit();
  177.  
  178. #endif
  179.