home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-src.tgz / tar.out / contrib / unixtex / xdvik / sfinternal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-28  |  3.5 KB  |  152 lines

  1. /*
  2.  * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and its
  5.  * documentation for any purpose and without fee is hereby granted, provided
  6.  * that the above copyright notice appear in all copies and that both that
  7.  * copyright notice and this permission notice appear in supporting
  8.  * documentation, and that the name of Software Research Associates not be used
  9.  * in advertising or publicity pertaining to distribution of the software
  10.  * without specific, written prior permission.  Software Research Associates
  11.  * makes no representations about the suitability of this software for any
  12.  * purpose.  It is provided "as is" without express or implied warranty.
  13.  *
  14.  * SOFTWARE RESEARCH ASSOCIATES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  15.  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
  16.  * IN NO EVENT SHALL SOFTWARE RESEARCH ASSOCIATES BE LIABLE FOR ANY SPECIAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  18.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  19.  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20.  * PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  * Author: Erik M. van der Poel
  23.  *         Software Research Associates, Inc., Tokyo, Japan
  24.  *         erik@sra.co.jp
  25.  */
  26.  
  27. #ifdef FOIL_X_WCHAR_T
  28. #define wchar_t foil_x_defining_wchar_t
  29. #define X_WCHAR
  30. #endif
  31.  
  32. #include <X11/Intrinsic.h>
  33. #include <X11/StringDefs.h>
  34. #include <X11/Xos.h>
  35. #include <X11/Xaw/Text.h>
  36. #include <X11/Xaw/AsciiText.h>
  37. #undef wchar_t
  38.  
  39. #define SEL_FILE_CANCEL        -1
  40. #define SEL_FILE_OK        0
  41. #define SEL_FILE_NULL        1
  42. #define SEL_FILE_TEXT        2
  43.  
  44. #define SF_DO_SCROLL        1
  45. #define SF_DO_NOT_SCROLL    0
  46.  
  47. typedef struct {
  48.     int    statDone;
  49.     char    *real;
  50.     char    *shown;
  51. } SFEntry;
  52.  
  53. typedef struct {
  54.     char    *dir;
  55.     char    *path;
  56.     SFEntry    *entries;
  57.     int    nEntries;
  58.     int    vOrigin;
  59.     int    nChars;
  60.     int    hOrigin;
  61.     int    changed;
  62.     int    beginSelection;
  63.     int    endSelection;
  64.     time_t    mtime;
  65. } SFDir;
  66.  
  67. extern int SFstatus;
  68.  
  69. extern char SFcurrentPath[], SFstartDir[], SFcurrentDir[];
  70.  
  71. extern Widget
  72.         selFile,
  73.         selFileCancel,
  74.         selFileField,
  75.         selFileForm,
  76.         selFileHScroll,
  77.         selFileHScrolls[],
  78.         selFileLists[],
  79.         selFileOK,
  80.         selFilePrompt,
  81.         selFileVScrolls[];
  82.  
  83. extern Display *SFdisplay;
  84.  
  85. extern int SFcharWidth, SFcharHeight, SFcharAscent;
  86.  
  87. extern SFDir *SFdirs;
  88.  
  89. extern int SFdirEnd, SFdirPtr;
  90.  
  91. extern Pixel SFfore, SFback;
  92.  
  93. extern Atom SFwmDeleteWindow;
  94.  
  95. extern XSegment SFsegs[], SFcompletionSegs[];
  96.  
  97. extern XawTextPosition SFtextPos;
  98.  
  99. extern void
  100.     SFenterList(),
  101.     SFleaveList(),
  102.     SFmotionList(),
  103.     SFbuttonPressList(),
  104.     SFbuttonReleaseList();
  105.  
  106. extern void
  107.     SFvSliderMovedCallback(),
  108.     SFvFloatSliderMovedCallback(),
  109.     SFhSliderMovedCallback(),
  110.     SFpathSliderMovedCallback(),
  111.     SFvAreaSelectedCallback(),
  112.     SFhAreaSelectedCallback(),
  113.     SFpathAreaSelectedCallback();
  114.  
  115. extern int SFupperX, SFlowerY, SFupperY;
  116.  
  117. extern int SFtextX, SFtextYoffset;
  118.  
  119. extern int SFentryWidth, SFentryHeight;
  120.  
  121. extern int SFlineToTextH, SFlineToTextV;
  122.  
  123. extern int SFbesideText, SFaboveAndBelowText;
  124.  
  125. extern int SFcharsPerEntry;
  126.  
  127. extern int SFlistSize;
  128.  
  129. extern int SFcurrentInvert[];
  130.  
  131. extern int SFworkProcAdded;
  132.  
  133. extern Boolean SFworkProc();
  134.  
  135. extern XtAppContext SFapp;
  136.  
  137. extern int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth;
  138.  
  139. extern char SFtextBuffer[];
  140.  
  141. extern int SFbuttonPressed;
  142.  
  143. extern int SFcompareEntries();
  144.  
  145. extern void SFdirModTimer();
  146.  
  147. extern char SFstatChar();
  148.  
  149. extern XtIntervalId SFdirModTimerId;
  150.  
  151. extern int (*SFfunc)();
  152.