2 * File-Selector dialog of GhostView 1.5, incorporated in XBoard by H.G.Muller
4 * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of Software Research Associates not be used
11 * in advertising or publicity pertaining to distribution of the software
12 * without specific, written prior permission. Software Research Associates
13 * makes no representations about the suitability of this software for any
14 * purpose. It is provided "as is" without express or implied warranty.
16 * SOFTWARE RESEARCH ASSOCIATES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
18 * IN NO EVENT SHALL SOFTWARE RESEARCH ASSOCIATES BE LIABLE FOR ANY SPECIAL,
19 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
21 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
24 * Author: Erik M. van der Poel
25 * Software Research Associates, Inc., Tokyo, Japan
29 #include <X11/Intrinsic.h>
30 #include <X11/StringDefs.h>
32 #include <X11/Xaw/Text.h>
33 #include <X11/Xaw/AsciiText.h>
35 #define SEL_FILE_CANCEL -1
37 #define SEL_FILE_NULL 1
38 #define SEL_FILE_TEXT 2
40 #define SF_DO_SCROLL 1
41 #define SF_DO_NOT_SCROLL 0
43 #define NR 3 /* [HGM] (so far failed) attempt to suppress some of the director listings */
67 extern char SFcurrentPath[], SFstartDir[], SFcurrentDir[];
81 extern Display *SFdisplay;
83 extern int SFcharWidth, SFcharHeight, SFcharAscent;
87 extern int SFdirEnd, SFdirPtr;
89 extern Pixel SFfore, SFback;
91 extern Atom SFwmDeleteWindow;
93 extern XSegment SFsegs[], SFcompletionSegs[];
95 extern XawTextPosition SFtextPos;
102 SFbuttonReleaseList();
105 SFvSliderMovedCallback(),
106 SFvFloatSliderMovedCallback(),
107 SFhSliderMovedCallback(),
108 SFpathSliderMovedCallback(),
109 SFvAreaSelectedCallback(),
110 SFhAreaSelectedCallback(),
111 SFpathAreaSelectedCallback();
113 extern int SFupperX, SFlowerY, SFupperY;
115 extern int SFtextX, SFtextYoffset;
117 extern int SFentryWidth, SFentryHeight;
119 extern int SFlineToTextH, SFlineToTextV;
121 extern int SFbesideText, SFaboveAndBelowText;
123 extern int SFcharsPerEntry;
125 extern int SFlistSize;
127 extern int SFcurrentInvert[];
129 extern int SFworkProcAdded;
131 extern Boolean SFworkProc();
133 extern XtAppContext SFapp;
135 extern int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth;
137 extern char SFtextBuffer[];
139 extern int SFbuttonPressed;
141 extern int SFcompareEntries();
143 extern void SFdirModTimer();
145 extern char SFstatChar();
147 extern XtIntervalId SFdirModTimerId;
149 extern int (*SFfunc)();