home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume17 / xwbstrmt / part01 < prev    next >
Encoding:
Text File  |  1992-04-19  |  50.4 KB  |  1,359 lines

  1. Newsgroups: comp.sources.x
  2. Path: uunet!zaphod.mps.ohio-state.edu!mips!msi!dcmartin
  3. From: cattelan@everest.ee.umn.edu (Russell Cattelan)
  4. Subject: v17i064: xwebster (MOTIF) (REPOST), Part01/01
  5. Message-ID: <1992Apr20.143700.21198@msi.com>
  6. Originator: dcmartin@fascet
  7. Sender: dcmartin@msi.com (David C. Martin - Moderator)
  8. Nntp-Posting-Host: fascet
  9. Organization: Molecular Simulations, Inc.
  10. Date: Mon, 20 Apr 1992 14:37:00 GMT
  11. Approved: dcmartin@msi.com
  12. Lines: 1345
  13.  
  14. Submitted-by: cattelan@everest.ee.umn.edu (Russell Cattelan)
  15. Posting-number: Volume 17, Issue 64
  16. Archive-name: xwebster-motif/part01
  17.  
  18. [ There appeared to be some problems w/ this posting (since this segment
  19.   is not showing up outside my local USENET hierarchy.. here we go again ]
  20.  
  21. #!/bin/sh
  22. # This is a shell archive (produced by shar 3.49)
  23. # To extract the files from this archive, save it to a file, remove
  24. # everything above the "!/bin/sh" line above, and type "sh file_name".
  25. #
  26. # made 04/14/1992 14:09 UTC by dcmartin@fascet
  27. # Source directory /home/fascet/dcmartin/csx/src/xwebster.motif
  28. #
  29. # existing files will NOT be overwritten unless -c is specified
  30. #
  31. # This is part 1 of a multipart archive                                    
  32. # do not concatenate these parts, unpack them in order with /bin/sh        
  33. #
  34. # This shar contains:
  35. # length  mode       name
  36. # ------ ---------- ------------------------------------------
  37. #    955 -rw-r--r-- Imakefile
  38. #  11405 -rw-r--r-- Makefile
  39. #   2239 -rw-r--r-- README
  40. #   5959 -rw-r--r-- README.mayer
  41. #   6945 -rw-r--r-- Xwebster.ad
  42. #  19389 -rw-r--r-- Xwebster.ad.hp_widgets
  43. #  19720 -rw-r--r-- controlpanel.c
  44. #   5712 -rw-r--r-- display_def.c
  45. #     21 -rw-r--r-- patchlevel.h
  46. #   1870 -rw-r--r-- user_prefs.h
  47. #   5889 -rw-r--r-- wordlist.c
  48. #  22128 -rw-r--r-- xwebster.c
  49. #   2464 -rw-r--r-- xwebster.h
  50. #   5680 -rw-r--r-- xwebster.man
  51. #
  52. if test -r _shar_seq_.tmp; then
  53.     echo 'Must unpack archives in sequence!'
  54.     echo Please unpack part `cat _shar_seq_.tmp` next
  55.     exit 1
  56. fi
  57. # ============= Imakefile ==============
  58. if test -f 'Imakefile' -a X"$1" != X"-c"; then
  59.     echo 'x - skipping Imakefile (File already exists)'
  60.     rm -f _shar_wnt_.tmp
  61. else
  62. > _shar_wnt_.tmp
  63. echo 'x - extracting Imakefile (Text)'
  64. sed 's/^X//' << 'SHAR_EOF' > 'Imakefile' &&
  65. #
  66. # If you XMLIB is defined in your Imake.tmpl comment out the
  67. # following line
  68. #
  69. XXMLIB           =  -lXm
  70. # for initiall development
  71. #CC = gcc
  72. #CDEBUGFLAGS = -g
  73. #
  74. #
  75. INCLUDES      = -I$(TOP)/lib -I$(TOP)
  76. X
  77. # Define SLOW_X_SERVER here if you have an X server that is too slow to draw
  78. # the stippling on pushbuttons that have temporarily been desensitized (aka
  79. # greyed out). On Suns with the MIT sample server, it is VERY painful.
  80. # HP's product X11 server, on the other hand, is quite fast and has no such
  81. # problems, even in color.
  82. #
  83. # This does not seem to be a problem even on the Suns RMC.
  84. #
  85. DEFINES       = -DAPPDEFAULTSDIR=\"$(XAPPLOADDIR)\"
  86. HDRS          = user_prefs.h \
  87. X        xwebster.h
  88. LOCAL_LIBRARIES = $(XMLIB) \
  89. X        $(XTOOLLIB) \
  90. X        $(XLIB)
  91. OBJS          = controlpanel.o \
  92. X        display_def.o \
  93. X        wordlist.o \
  94. X        xwebster.o
  95. SRCS          = controlpanel.c \
  96. X        display_def.c \
  97. X        wordlist.c \
  98. X        xwebster.c
  99. X
  100. ComplexProgramTarget(xwebster)
  101. InstallAppDefaults(Xwebster)
  102. SHAR_EOF
  103. chmod 0644 Imakefile ||
  104. echo 'restore of Imakefile failed'
  105. Wc_c="`wc -c < 'Imakefile'`"
  106. test 955 -eq "$Wc_c" ||
  107.     echo 'Imakefile: original size 955, current size' "$Wc_c"
  108. rm -f _shar_wnt_.tmp
  109. fi
  110. # ============= Makefile ==============
  111. if test -f 'Makefile' -a X"$1" != X"-c"; then
  112.     echo 'x - skipping Makefile (File already exists)'
  113.     rm -f _shar_wnt_.tmp
  114. else
  115. > _shar_wnt_.tmp
  116. echo 'x - extracting Makefile (Text)'
  117. sed 's/^X//' << 'SHAR_EOF' > 'Makefile' &&
  118. # Makefile generated by imake - do not edit!
  119. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  120. #
  121. # The cpp used on this machine replaces all newlines and multiple tabs and
  122. # spaces in a macro expansion with a single space.  Imake tries to compensate
  123. # for this, but is not always successful.
  124. #
  125. X
  126. # -------------------------------------------------------------------------
  127. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a26129>
  128. # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  129. #
  130. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  131. # configuration files.  Site-specific parameters should be set in the file
  132. # site.def.  Full rebuilds are recommended if any parameters are changed.
  133. #
  134. # If your C preprocessor does not define any unique symbols, you will need
  135. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  136. # "make World" the first time).
  137. #
  138. X
  139. # -------------------------------------------------------------------------
  140. # site-specific configuration parameters that need to come before
  141. # the platform-specific parameters - edit site.def to change
  142. X
  143. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  144. X
  145. # -------------------------------------------------------------------------
  146. # platform-specific configuration parameters - edit sun.cf to change
  147. X
  148. # platform:  $XConsortium: sun.cf,v 1.71 91/12/20 11:18:34 rws Exp $
  149. X
  150. # operating system:  SunOS 4.1.1
  151. X
  152. # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
  153. X
  154. # -------------------------------------------------------------------------
  155. # site-specific configuration parameters that go after
  156. # the platform-specific parameters - edit site.def to change
  157. X
  158. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  159. X
  160. X            SHELL = /bin/sh
  161. X
  162. X              TOP = .
  163. X      CURRENT_DIR = .
  164. X
  165. X               AR = ar clq
  166. X  BOOTSTRAPCFLAGS =
  167. X               CC = /usr/lang/cc
  168. X               AS = as
  169. X
  170. X         COMPRESS = compress
  171. X              CPP = /lib/cpp $(STD_CPP_DEFINES)
  172. X    PREPROCESSCMD = /usr/lang/cc -E $(STD_CPP_DEFINES)
  173. X          INSTALL = install
  174. X               LD = ld
  175. X             LINT = lint
  176. X      LINTLIBFLAG = -C
  177. X         LINTOPTS = -axz
  178. X               LN = ln -s
  179. X             MAKE = make
  180. X               MV = mv
  181. X               CP = cp
  182. X
  183. X           RANLIB = ranlib
  184. X  RANLIBINSTFLAGS =
  185. X
  186. X               RM = rm -f
  187. X            TROFF = psroff
  188. X         MSMACROS = -ms
  189. X              TBL = tbl
  190. X              EQN = eqn
  191. X     STD_INCLUDES =
  192. X  STD_CPP_DEFINES =
  193. X      STD_DEFINES =
  194. X EXTRA_LOAD_FLAGS =
  195. X  EXTRA_LIBRARIES =
  196. X             TAGS = ctags
  197. X
  198. X    SHAREDCODEDEF = -DSHAREDCODE
  199. X         SHLIBDEF = -DSUNSHLIB
  200. X
  201. X    PROTO_DEFINES =
  202. X
  203. X     INSTPGMFLAGS =
  204. X
  205. X     INSTBINFLAGS = -m 0755
  206. X     INSTUIDFLAGS = -m 4755
  207. X     INSTLIBFLAGS = -m 0644
  208. X     INSTINCFLAGS = -m 0444
  209. X     INSTMANFLAGS = -m 0444
  210. X     INSTDATFLAGS = -m 0444
  211. X    INSTKMEMFLAGS = -g kmem -m 2755
  212. X
  213. X      PROJECTROOT = /usr/local/
  214. X
  215. X     TOP_INCLUDES = -I$(INCROOT)
  216. X
  217. X      CDEBUGFLAGS = -fast
  218. X        CCOPTIONS = -pipe
  219. X
  220. X      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  221. X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  222. X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  223. X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  224. X
  225. X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  226. X
  227. X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
  228. X
  229. X   LDCOMBINEFLAGS = -X -r
  230. X      DEPENDFLAGS =
  231. X
  232. X        MACROFILE = sun.cf
  233. X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  234. X
  235. X    IMAKE_DEFINES =
  236. X
  237. X         IRULESRC = $(CONFIGDIR)
  238. X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  239. X
  240. X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  241. X            $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  242. X            $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  243. X
  244. # -------------------------------------------------------------------------
  245. # X Window System Build Parameters
  246. # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  247. X
  248. # -------------------------------------------------------------------------
  249. # X Window System make variables; this need to be coordinated with rules
  250. X
  251. X          PATHSEP = /
  252. X        USRLIBDIR = /usr/local/lib
  253. X           BINDIR = /usr/local/bin/X11
  254. X          INCROOT = /usr/local/include
  255. X     BUILDINCROOT = $(TOP)
  256. X      BUILDINCDIR = $(BUILDINCROOT)/X11
  257. X      BUILDINCTOP = ..
  258. X           INCDIR = $(INCROOT)/X11
  259. X           ADMDIR = /usr/adm
  260. X           LIBDIR = $(USRLIBDIR)/X11
  261. X        CONFIGDIR = $(LIBDIR)/config
  262. X       LINTLIBDIR = $(USRLIBDIR)/lint
  263. X
  264. X          FONTDIR = $(LIBDIR)/fonts
  265. X         XINITDIR = $(LIBDIR)/xinit
  266. X           XDMDIR = $(LIBDIR)/xdm
  267. X           TWMDIR = $(LIBDIR)/twm
  268. X          MANPATH = /usr/local/man
  269. X    MANSOURCEPATH = $(MANPATH)/man
  270. X        MANSUFFIX = n
  271. X     LIBMANSUFFIX = 3
  272. X           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  273. X        LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  274. X           NLSDIR = $(LIBDIR)/nls
  275. X        PEXAPIDIR = $(LIBDIR)/PEX
  276. X      XAPPLOADDIR = $(LIBDIR)/app-defaults
  277. X       FONTCFLAGS = -t
  278. X
  279. X     INSTAPPFLAGS = $(INSTDATFLAGS)
  280. X
  281. X            IMAKE = imake
  282. X           DEPEND = makedepend
  283. X              RGB = rgb
  284. X
  285. X            FONTC = bdftopcf
  286. X
  287. X        MKFONTDIR = mkfontdir
  288. X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  289. X
  290. X        CONFIGSRC = $(TOP)/config
  291. X       DOCUTILSRC = $(TOP)/doc/util
  292. X        CLIENTSRC = $(TOP)/clients
  293. X          DEMOSRC = $(TOP)/demos
  294. X           LIBSRC = $(TOP)/lib
  295. X          FONTSRC = $(TOP)/fonts
  296. X       INCLUDESRC = $(TOP)/X11
  297. X        SERVERSRC = $(TOP)/server
  298. X          UTILSRC = $(TOP)/util
  299. X        SCRIPTSRC = $(UTILSRC)/scripts
  300. X       EXAMPLESRC = $(TOP)/examples
  301. X       CONTRIBSRC = $(TOP)/../contrib
  302. X           DOCSRC = $(TOP)/doc
  303. X           RGBSRC = $(TOP)/rgb
  304. X        DEPENDSRC = $(UTILSRC)/makedepend
  305. X         IMAKESRC = $(CONFIGSRC)
  306. X         XAUTHSRC = $(LIBSRC)/Xau
  307. X          XLIBSRC = $(LIBSRC)/X
  308. X           XMUSRC = $(LIBSRC)/Xmu
  309. X       TOOLKITSRC = $(LIBSRC)/Xt
  310. X       AWIDGETSRC = $(LIBSRC)/Xaw
  311. X       OLDXLIBSRC = $(LIBSRC)/oldX
  312. X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  313. X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  314. X      BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  315. X      BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  316. X     MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  317. X         FSLIBSRC = $(FONTSRC)/lib/fs
  318. X    FONTSERVERSRC = $(FONTSRC)/server
  319. X     EXTENSIONSRC = $(TOP)/extensions
  320. X         XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  321. X      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  322. X
  323. # $XConsortium: sunLib.tmpl,v 1.14 91/12/20 11:19:05 rws Exp $
  324. X
  325. SHLIBLDFLAGS = -assert pure-text
  326. PICFLAGS = -pic
  327. X
  328. X  DEPEXTENSIONLIB =
  329. X     EXTENSIONLIB = -lXext
  330. X
  331. X          DEPXLIB = $(DEPEXTENSIONLIB)
  332. X             XLIB = $(EXTENSIONLIB) -lX11
  333. X
  334. X        DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
  335. X       XMULIBONLY = -lXmu
  336. X           XMULIB = -lXmu
  337. X
  338. X       DEPOLDXLIB =
  339. X          OLDXLIB = -loldX
  340. X
  341. X      DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
  342. X         XTOOLLIB = -lXt
  343. X
  344. X        DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
  345. X           XAWLIB = -lXaw
  346. X
  347. X        DEPXILIB =
  348. X           XILIB = -lXi
  349. X
  350. X        SOXLIBREV = 4.10
  351. X          SOXTREV = 4.10
  352. X         SOXAWREV = 5.0
  353. X        SOOLDXREV = 4.10
  354. X         SOXMUREV = 4.10
  355. X        SOXEXTREV = 4.10
  356. X      SOXINPUTREV = 4.10
  357. X
  358. X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  359. X         XAUTHLIB =  -lXau
  360. X      DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  361. X         XDMCPLIB =  -lXdmcp
  362. X
  363. X        DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  364. X           PHIGSLIB =  -lphigs
  365. X
  366. X       DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  367. X          XBSDLIB =  -lXbsd
  368. X
  369. X LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  370. X         LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  371. X          LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  372. X        LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  373. X          LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  374. X           LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  375. X        LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  376. X
  377. X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  378. X
  379. X         DEPLIBS1 = $(DEPLIBS)
  380. X         DEPLIBS2 = $(DEPLIBS)
  381. X         DEPLIBS3 = $(DEPLIBS)
  382. X
  383. # -------------------------------------------------------------------------
  384. # Imake rules for building libraries, programs, scripts, and data files
  385. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  386. X
  387. # -------------------------------------------------------------------------
  388. # start of Imakefile
  389. X
  390. #
  391. # If you XMLIB is defined in your Imake.tmpl comment out the
  392. # following line
  393. #
  394. XXMLIB           =  -lXm
  395. # for initiall development
  396. #CC = gcc
  397. #CDEBUGFLAGS = -g
  398. #
  399. #
  400. INCLUDES      = -I$(TOP)/lib -I$(TOP)
  401. X
  402. #
  403. # Define SLOW_X_SERVER here if you have an X server that is too slow to draw
  404. # the stippling on pushbuttons that have temporarily been desensitized (aka
  405. # greyed out). On Suns with the MIT sample server, it is VERY painful.
  406. # HP's product X11 server, on the other hand, is quite fast and has no such
  407. # problems, even in color.
  408. #
  409. # This does not seem to be a problem even on the Suns RMC.
  410. #
  411. DEFINES       = -DAPPDEFAULTSDIR=\"$(XAPPLOADDIR)\"
  412. HDRS          = user_prefs.h \
  413. X        xwebster.h
  414. LOCAL_LIBRARIES = $(XMLIB) \
  415. X        $(XTOOLLIB) \
  416. X        $(XLIB)
  417. OBJS          = controlpanel.o \
  418. X        display_def.o \
  419. X        wordlist.o \
  420. X        xwebster.o
  421. SRCS          = controlpanel.c \
  422. X        display_def.c \
  423. X        wordlist.c \
  424. X        xwebster.c
  425. X
  426. X PROGRAM = xwebster
  427. X
  428. all:: xwebster
  429. X
  430. xwebster: $(OBJS) $(DEPLIBS)
  431. X    $(RM) $@
  432. X    $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  433. X
  434. saber_xwebster:: $(SRCS)
  435. X    # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  436. X
  437. osaber_xwebster:: $(OBJS)
  438. X    # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  439. X
  440. install:: xwebster
  441. X    @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  442. X    else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  443. X    $(INSTALL) -c $(INSTPGMFLAGS)  xwebster $(DESTDIR)$(BINDIR)
  444. X
  445. install.man:: xwebster.man
  446. X    @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  447. X    else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  448. X    $(INSTALL) -c $(INSTMANFLAGS) xwebster.man $(DESTDIR)$(MANDIR)/xwebster.$(MANSUFFIX)
  449. X
  450. depend::
  451. X    $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  452. X
  453. lint:
  454. X    $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  455. lint1:
  456. X    $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  457. X
  458. clean::
  459. X    $(RM) $(PROGRAM)
  460. X
  461. install:: Xwebster.ad
  462. X    @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  463. X    else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
  464. X    $(INSTALL) -c $(INSTAPPFLAGS) Xwebster.ad $(DESTDIR)$(XAPPLOADDIR)/Xwebster
  465. X
  466. # -------------------------------------------------------------------------
  467. # common rules for all Makefiles - do not edit
  468. X
  469. emptyrule::
  470. X
  471. clean::
  472. X    $(RM_CMD) "#"*
  473. X
  474. Makefile::
  475. X    -@if [ -f Makefile ]; then set -x; \
  476. X    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  477. X    else exit 0; fi
  478. X    $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  479. X
  480. tags::
  481. X    $(TAGS) -w *.[ch]
  482. X    $(TAGS) -xw *.[ch] > TAGS
  483. X
  484. saber:
  485. X    # load $(ALLDEFINES) $(SRCS)
  486. X
  487. osaber:
  488. X    # load $(ALLDEFINES) $(OBJS)
  489. X
  490. # -------------------------------------------------------------------------
  491. # empty rules for directories that do not have SUBDIRS - do not edit
  492. X
  493. install::
  494. X    @echo "install in $(CURRENT_DIR) done"
  495. X
  496. install.man::
  497. X    @echo "install.man in $(CURRENT_DIR) done"
  498. X
  499. Makefiles::
  500. X
  501. includes::
  502. X
  503. # -------------------------------------------------------------------------
  504. # dependencies generated by makedepend
  505. X
  506. SHAR_EOF
  507. chmod 0644 Makefile ||
  508. echo 'restore of Makefile failed'
  509. Wc_c="`wc -c < 'Makefile'`"
  510. test 11405 -eq "$Wc_c" ||
  511.     echo 'Makefile: original size 11405, current size' "$Wc_c"
  512. rm -f _shar_wnt_.tmp
  513. fi
  514. # ============= README ==============
  515. if test -f 'README' -a X"$1" != X"-c"; then
  516.     echo 'x - skipping README (File already exists)'
  517.     rm -f _shar_wnt_.tmp
  518. else
  519. > _shar_wnt_.tmp
  520. echo 'x - extracting README (Text)'
  521. sed 's/^X//' << 'SHAR_EOF' > 'README' &&
  522. X                      Xwebster Motif
  523. X
  524. Whats new?
  525. X    Well not alot, for the most part this is still the same program just
  526. redone to use the Motif Widgets. 
  527. X    The most significant change is the additional support for the
  528. NeXT version of websterd by Steve Hayman. Since the NeXTS also have
  529. the 9th edition Thesaurus as well the 9th edition Dictionary online
  530. Steve's version of websterd now has the "INDEX" directive, that allows
  531. slections of which data base to use.
  532. X    To support both version of websterd I have added an additonal
  533. application resource "dictionarySource" by default this is set to the
  534. string "next" (Since that is the one I am using) if your webster
  535. server is not the NeXT version set this string to something else. 
  536. (ie "other").
  537. X
  538. X    It is important to note that the NeXT websterd will be set
  539. into "dictionary mode" or "thesaurus mode" depending upon which button
  540. is clicked.  Clicking on Define will put it into dictionary mode,
  541. clicking on Thesaurus will put it into thesaurus mode. It will remain
  542. in a particular mode until set to something different, which means
  543. typing a word into the input box and then hitting <Return>  will do a
  544. lookup based on whatever mode the websterd is currently in. 
  545. X
  546. For example typing "moon" and then clicking the Thesaurus button will
  547. set the websterd into thesaurus mode and do a lookup of the word "moon".
  548. If you then type "cow" and hit <Return> you will get a thesaurus
  549. lookup of the word cow. It will continue to do thesaurus lookup until 
  550. the Define button is clicked.
  551. X
  552. X    The Xwebster.ad has been set up with emacs keybindings for
  553. both the word input box, and the definition display box if you do not
  554. care for these bindings either comment them out of the Xwebster.ad
  555. file or change them to your liking. 
  556. X
  557. X
  558. Compiling should be fairly straight forward.
  559. X
  560. %xmkmf
  561. %make
  562. Finally check the values of "hostAddrList" and "hostPort" in the
  563. XXwebster.ad file and...
  564. %make install
  565. X
  566. X
  567. X
  568. This should put the Xwebster.ad in the "app-defaults" directory and
  569. xwebster in your BINDIR directory.
  570. X
  571. Any comments, suggestions drop me a line.
  572. X
  573. --------------------------------------------------------------
  574. X                        Russell Cattelan
  575. X                    cattelan@everest.ee.umn.edu
  576. X            University of Minnesota, Electrical Engineering dept
  577. SHAR_EOF
  578. chmod 0644 README ||
  579. echo 'restore of README failed'
  580. Wc_c="`wc -c < 'README'`"
  581. test 2239 -eq "$Wc_c" ||
  582.     echo 'README: original size 2239, current size' "$Wc_c"
  583. rm -f _shar_wnt_.tmp
  584. fi
  585. # ============= README.mayer ==============
  586. if test -f 'README.mayer' -a X"$1" != X"-c"; then
  587.     echo 'x - skipping README.mayer (File already exists)'
  588.     rm -f _shar_wnt_.tmp
  589. else
  590. > _shar_wnt_.tmp
  591. echo 'x - extracting README.mayer (Text)'
  592. sed 's/^X//' << 'SHAR_EOF' > 'README.mayer' &&
  593. X    Xwebster, A Dictionary Browser
  594. X        Niels P. Mayer
  595. X        Hewlett-Packard Laboratories
  596. X        Software Technology Lab.
  597. X        Human-Computer Interaction Department.
  598. ------------------------------------------------------------------------------
  599. X
  600. XXwebster is used to look up words in the online copy of Webster's 7th
  601. dictionary, stored at SRI-NIC  and also available on machines located at
  602. Boston U., Indiana U, Purdue U., MIT, Stanford, etc. In order to run xwebster
  603. you must have access to a webster server. In order to make xwebster run faster
  604. and more reliably (the "arpanet" can be flaky), you may want to ask your 
  605. system administrators whether there is a webster server running locally.
  606. Chances are, if people at your site are using the tty-based webster(1) 
  607. interface, there is probably a webster server "nearby".
  608. X
  609. Using xwebster is simple -- words are typed into a TextEdit widget in
  610. xwebster, and then one of three actions can be taken:
  611. X
  612. X    1) mousing [Define] (or hitting <ret>) after typing in a
  613. X    word will attempt to show you a complete dictionary entry for the
  614. X    word including definitions,  pronunciation, and derivation. If the word
  615. X    is misspelled, then a browser of similar words will be presented. If
  616. X    the word contains wildcard characters (%=any char; *=any char seq),
  617. X    then a browser of all matching words will be presented.
  618. X    
  619. X    2) mousing [Complete] (or hitting <esc>) after a partial word has
  620. X    been typed will attempt to complete what you have typed so far.  If 
  621. X    what you have typed is a unique abbreviation for a word, the word is 
  622. X    completed. Otherwise xwebster will beep and indicate the ambiguity of 
  623. X    the partial word.
  624. X
  625. X    3) mousing [Endings] (or hitting <?>) after a partial word has been
  626. X    entered will display a browser of all the words matching the partial
  627. X    word.
  628. X
  629. Anytime there are words in the word browser panel, clicking on a word will
  630. cause its definition to be dispayed. 
  631. X
  632. X                ----------
  633. COMPILING:
  634. X
  635. XXwebster expects to use the X11r3 HP Xwidgets library, libXw.a, and the
  636. XX11R3 Xt intrinsics, libXt.a (with the latest patches, particularly
  637. fixes/fix8). The HP widgets are on the X11R3 tape (under
  638. contrib/widgets/Xhp/Xw/), and require a set of fixes by Martin Friedmann
  639. <martin@citi.umich.edu> in order to work under R3. These will probably be
  640. available from the usual archive sites, and in particular, from
  641. expo.lcs.mit.edu:contrib/Xhp.patch.works.tar.Z.
  642. X
  643. XXwebster has been tested under HPUX 6.2 and SunOS3.5. I've avoided any
  644. particularly hairy SYSVisms, so you sholdn't have any trouble getting it to
  645. run on your machine. You'll need the strtok() call - if your system doesn't
  646. have it (HPUX, System V, SunOS have it), get Henry Spencer's public domain
  647. strings(3) library from some comp.sources.unix archive site.
  648. X
  649. X                ----------
  650. X
  651. CUSTOMIZING:
  652. X
  653. All the resources for xwebster are specified in the application default
  654. file Xwebster.ad, which MUST be installed in APPDEFAULTSDIR/Xwebster.  Fully
  655. qualified resource names are used in this app-defaults file so as to
  656. document the widget hierarchy in the application. Documentation on
  657. customizing xwebster also appears in this defaults file.  (APPDEFAULTSDIR
  658. is set in the imake defaults, it is usually /usr/lib/X11/app-defaults/)
  659. X
  660. Parameters for connecting to a webster server are contained in the
  661. resources "hostAddrList", "hostPort", and "hostServiceName". See the
  662. XXwebster.ad file for details and documentation.
  663. X
  664. XXwebster allows dictionary definitions to be viewed in either a scrolled
  665. StaticText widget (for those who like scrollbars), or in a TextEdit widget
  666. (for those who like Emacs, and need better control of cut/paste
  667. operations). The resource that controls this is "useEditorAsDisplay"
  668. X
  669. I personally use the following set of .Xdefaults for xwebster, in addition
  670. to the defaults provided by APPDEFAULTSDIR/Xwebster:
  671. X
  672. #
  673. # Global Defaults.
  674. #
  675. *foreground:            White
  676. *background:            DarkSlateGray
  677. *font:                6x13
  678. *Sash*background:        wheat
  679. *Sash*foreground:        black
  680. *topShadowColor:        light blue
  681. *topShadowTile:            foreground
  682. *bottomShadowColor:        black
  683. *bottomShadowTile:        foreground
  684. *TextEdit*background:        IndianRed
  685. *TextEdit*foreground:        Green
  686. *TextEdit*highlightThickness:    1
  687. *TextEdit*font:            fixed
  688. *StaticText*background:         DarkSlateGray
  689. *StaticText*foreground:         White
  690. *StaticText.BorderWidth:    1
  691. *StaticText.ShadowOn:        yes
  692. *StaticText*font:        variable
  693. *PushButton*background:     Blue
  694. *PushButton*foreground:        White
  695. *PushButton*font:        variable
  696. X
  697. #
  698. # Xwebster
  699. #
  700. xwebster*hostAddrList: 26.0.0.73 10.0.0.51
  701. xwebster*hostPort: 103
  702. xwebster*useEditorAsDisplay: TRUE
  703. xwebster*highlightColor: white
  704. xwebster*highlightTile: foreground
  705. xwebster*display.foreground: White
  706. xwebster*display.background: IndianRed
  707. xwebster*word_input*foreground: Green
  708. xwebster*word_input*background: IndianRed
  709. X
  710. X                ----------
  711. X
  712. HISTORY/THANKS/AUTHORS:
  713. X
  714. This program was inspired by the webster(1) tty-based client to a webster
  715. server written by Dave Curry <davy@riacs.edu>, although most of the code
  716. was written from scratch because I didn't find the webster(1) source code
  717. until after the application was prototyped. The original webster
  718. client/server was written in MIDAS and ran under Tops-20, it was probably
  719. done by someone at SRI-NIC.
  720. X
  721. XXwebster was originally written and released by Niels Mayer
  722. <mayer@hplabs.hp.com> on the X11r3 contrib tape. Mark Moraes
  723. <moraes@csri.toronto.edu> took that version, updated it to work with the r3
  724. HP Xwidgets and r3 Toolkit Intrinsics, and fixed a bunch of stupid bugs
  725. that were making xwebster dump core an a SUN. He also made xwebster
  726. disconnect gracefully after the webster dictionary server times out.
  727. Finally, he wrote up a manual page and put together an Imake file. Thanks
  728. Mark! 
  729. X
  730. If you have contributions to make to xwebster, please send them to me via
  731. email.
  732. X
  733. -------------------------------------------------------------------------------
  734. X        Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com
  735. X               Hewlett-Packard Laboratories
  736. X                  Palo Alto, CA.
  737. X                   *
  738. SHAR_EOF
  739. chmod 0644 README.mayer ||
  740. echo 'restore of README.mayer failed'
  741. Wc_c="`wc -c < 'README.mayer'`"
  742. test 5959 -eq "$Wc_c" ||
  743.     echo 'README.mayer: original size 5959, current size' "$Wc_c"
  744. rm -f _shar_wnt_.tmp
  745. fi
  746. # ============= Xwebster.ad ==============
  747. if test -f 'Xwebster.ad' -a X"$1" != X"-c"; then
  748.     echo 'x - skipping Xwebster.ad (File already exists)'
  749.     rm -f _shar_wnt_.tmp
  750. else
  751. > _shar_wnt_.tmp
  752. echo 'x - extracting Xwebster.ad (Text)'
  753. sed 's/^X//' << 'SHAR_EOF' > 'Xwebster.ad' &&
  754. XXwebster.helpText: WELCOME TO XWEBSTER,  \n\n\
  755. originally by Niels Mayer (mayer@hplabs.hp.com)\n\n\
  756. Hp widget to Motif by Russell Cattelan (cattelan@everest.ee.umn.edu)\n\n\
  757. X    Webster's 9th Collegiate Dictionary, Copyright (C) 1963 by Merriam-Webster,\n\
  758. X    Inc.  No part of this information may be copied or reprinted without the\n\
  759. X    express written consent of the publisher.\n\n\
  760. This program connects to a Webster dictionary server to get definitions of\n\
  761. words.  Words are entered in the TextEdit Widget in the center panel of\n\
  762. this program.  You may then type <ret> or mouse [Define] to get the\n\
  763. definition of the word. If the word has any cross-references, they will be\n\
  764. presented in the word browser panel in xwebster. If the word is\n\
  765. "slightly misspelled", then a list of words is presented in the word browser\n\
  766. panel, one of which might be the word that you had intended.\n\n\
  767. Mousing [Endings] following part of a word will cause\n\
  768. xwebster to list all words beginning with the partial word in the word\n\
  769. browser panel. The program will beep and give an error message if nothing\n\
  770. matches.\n\n\
  771. Mousing [Complete] causes the program to attempt to\n\
  772. complete the word.  If the word can be completed, the new word is placed in\n\
  773. the TextEdit widget; otherwise, the program beeps and displays a message\n\
  774. indicating that the word is ambiguous.\n\n\
  775. In all the above cases, the wildcard characters '%' and '*' may be used to\n\
  776. specify partial words. The '%' character matches exactly one character,\n\
  777. while the '*' matches zero or more characters.  If wildcards are used, the\n\
  778. program will return either "No match" or a browser of matching words.\n\n\
  779. Mousing [Thesaurus] will set webster into thesaurus mode, which means\n\
  780. that all subsequent words typed in will be looked up in the online Thesaurus.\n\
  781. To return to "Dictionary" mode mouse [Define] button.\n
  782. !!
  783. !! Make sure to see this list to a least one of your webster servers
  784. !! there is no default address compiled into the program
  785. XXwebster.hostAddrList: 127.0.0.1
  786. XXwebster.hostPort: 2627
  787. XXwebster.hostServiceName: webster
  788. !!
  789. XXwebster.numWordsBeforeRefresh: 10
  790. !! If you are using Steve Hayman's websterd for the NeXT 
  791. !! set this to "next" otherwise setting to anything else will
  792. !! set it back to default mode.
  793. XXwebster.dictionarySource: next
  794. !
  795. !! Change this as you wish. I like big fonts easier to see :-)
  796. XXwebster*display_scroller*display*font: -adobe-times-bold-r-normal--17-120-100-100-p-88-iso8859-1
  797. XXwebster*fontList:-adobe-times-bold-r-normal--17-120-100-100-p-88-iso8859-1
  798. !
  799. !
  800. XXwebster*define.labelString: Define <ret>
  801. XXwebster*complete.labelString: Complete <tab>
  802. XXwebster*endings.labelString: Endings <?> 
  803. XXwebster*thesaurus.labelString: Thesaurus
  804. XXwebster*quit.labelString: Quit
  805. X
  806. XXwebster.panel.wordlist_scroller.height: 100
  807. XXwebster.panel.wordlist_scroller.wordlist.HSpace: 2
  808. XXwebster.panel.wordlist_scroller.wordlist.VSpace: 2
  809. XXwebster.panel.wordlist_scroller.wordlist.numColumns: 5
  810. !
  811. XXwebster*control_panel.word_input.columns: 30
  812. XXwebster*control_panel.word_input.minheight: 40
  813. XXwebster*display_scroller.display.rows: 24
  814. XXwebster*display_scroller.display.columns: 80
  815. X
  816. !! Change these as you wish I am going to comment them out
  817. !! since some people question my choice of colors
  818. !!
  819. !Xwebster*background: wheat
  820. !Xwebster.panel.wordlist_scroller*background: cornsilk1
  821. !Xwebster.panel.display_scroller*background: wheat
  822. !Xwebster.panel.display_scroller.display.background: cornsilk1
  823. !Xwebster*word_input.background: cornsilk1
  824. X
  825. !Xwebster*define.background: green
  826. !Xwebster*complete.background: green
  827. !Xwebster*endings.background: green
  828. !Xwebster*thesaurus.background: green
  829. !Xwebster*quit.background: green
  830. !Xwebster*help.background: green
  831. !Xwebster*word.background: green
  832. !Xwebster*word_list.background: green
  833. !Xwebster*control_panel.background: wheat
  834. !
  835. !
  836. ! Sets up the Word input box to use emacs key bindings
  837. ! I know motif says that it doesn't want to impose other peoples
  838. ! Religions on people, but if you don't like it just delete the 
  839. !  Following lines.
  840. !
  841. ! Oh one other thing the orginal had Escape bound to 
  842. ! webster-complete-word, but I'll be dammed it I can
  843. ! get the TextFieldWidget to reconize the escape key 
  844. ! as an action. Besides that as long as we are going for
  845. ! the emacs bindings Tab seems more appropriate.
  846. !
  847. XXwebster*word_input.translations:  #override \n\
  848. X     <Key>Return:               webster-define-word() \n\
  849. X     <Key>?:                    webster-list-endings() \n\
  850. X     Shift<Key>/:               webster-list-endings() \n\
  851. X     <Key>Tab:                  webster-complete-word() \n\
  852. X     Ctrl<Key>M:                webster-no-op() \n\
  853. X     Meta<Key>]:                webster-no-op() \n\
  854. X     Ctrl<Key>[:                webster-no-op() \n\
  855. X     Ctrl<Key>N:                webster-no-op() \n\
  856. X     Ctrl<Key>P:                webster-no-op() \n\
  857. X     Ctrl<Key>V:                webster-no-op() \n\
  858. X     Meta<Key>V:                webster-no-op() \n\
  859. X     Ctrl<Key>Z:                webster-no-op() \n\
  860. X     Meta<Key>Z:                webster-no-op() \n\
  861. X     Ctrl<Key>J:                webster-no-op() \n\
  862. X     Ctrl<Key>O:                webster-no-op() \n\
  863. X     Ctrl<Key>F:                forward-character() \n\
  864. X     <Key>Right:                forward-character() \n\
  865. X     Ctrl<Key>B:                backward-character() \n\
  866. X     Meta<Key>F:                forward-word() \n\
  867. X     Meta<Key>B:                backward-word() \n\
  868. X     Ctrl<Key>A:                beginning-of-line() \n\
  869. X     Ctrl<Key>E:                end-of-line() \n\
  870. X     <Key>Down:                 webster-no-op() \n\
  871. X     <Key>Up:                   webster-no-op() \n\
  872. X     Ctrl<Key>D:                delete-next-character() \n\
  873. X     <Key>osfDelete:               delete-previous-character() \n\
  874. X     <Key>osfBackSpace:            delete-previous-character() \n\
  875. X     Ctrl<Key>H:                delete-previous-character() \n\
  876. X     Meta<Key>D:                delete-next-word() \n\
  877. X     Ctrl<Key>K:                delete-to-end-of-line() \n\
  878. X     Meta<Key>H:                delete-previous-word()
  879. XXwebster*display.translations: #override \n\
  880. X     <Key>osfBackSpace:        previous-page() \n\
  881. X     Ctrl<Key>H:        previous-page() \n\
  882. X     <Key>\\ :                next-page() \n\
  883. X     Ctrl<Key>F:        forward-character() \n\
  884. X     Ctrl<Key>B:        backward-character() \n\
  885. X     Meta<Key>F:        forward-word() \n\
  886. X     Meta<Key>B:        backward-word() \n\
  887. X     Meta<Key>]:        forward-paragraph() \n\
  888. X     Ctrl<Key>[:        backward-paragraph() \n\
  889. X     Ctrl<Key>A:        beginning-of-line() \n\
  890. X     Ctrl<Key>E:        end-of-line() \n\
  891. X     Ctrl<Key>N:        next-line() \n\
  892. X     Ctrl<Key>P:        previous-line() \n\
  893. X     Ctrl<Key>V:        next-page() \n\
  894. X     Meta<Key>V:        previous-page() \n\
  895. X     Meta<Key>\\<:        beginning-of-file() \n\
  896. X     Meta<Key>\\>:        end-of-file() \n\
  897. X     Ctrl<Key>Z:        scroll-one-line-up() \n\
  898. X     Meta<Key>Z:        scroll-one-line-down() \n\
  899. X     Ctrl<Key>L:        redraw-display()
  900. X
  901. X
  902. SHAR_EOF
  903. chmod 0644 Xwebster.ad ||
  904. echo 'restore of Xwebster.ad failed'
  905. Wc_c="`wc -c < 'Xwebster.ad'`"
  906. test 6945 -eq "$Wc_c" ||
  907.     echo 'Xwebster.ad: original size 6945, current size' "$Wc_c"
  908. rm -f _shar_wnt_.tmp
  909. fi
  910. # ============= Xwebster.ad.hp_widgets ==============
  911. if test -f 'Xwebster.ad.hp_widgets' -a X"$1" != X"-c"; then
  912.     echo 'x - skipping Xwebster.ad.hp_widgets (File already exists)'
  913.     rm -f _shar_wnt_.tmp
  914. else
  915. > _shar_wnt_.tmp
  916. echo 'x - extracting Xwebster.ad.hp_widgets (Text)'
  917. sed 's/^X//' << 'SHAR_EOF' > 'Xwebster.ad.hp_widgets' &&
  918. ################################################################################
  919. #
  920. # File:         Xwebster
  921. # RCS:          $Header: /home/everest1/cattelan/work/xwebster.motif/RCS/Xwebster.ad.hp_widgets,v 1.1 1992/03/21 22:39:43 cattelan Exp $
  922. # Description:  Application Default: put in /usr/lib/X11/app-defaults/Xwebster
  923. # Author:       Niels Mayer, HPLabs
  924. # Created:      Thu Sep  1 01:14:17 1988
  925. # Modified:     Mon Mar  6 01:10:41 1989 (Niels Mayer) mayer@hplnpm
  926. # Language:     N/A
  927. # Package:      N/A
  928. # Status:       G-Job
  929. #
  930. # xwebster - dictionary browser
  931. #
  932. # Copyright 1988 Hewlett-Packard Company
  933. #
  934. # Permission to use, copy, modify, and distribute this software and its
  935. # documentation for any purpose and without fee is hereby granted, provided
  936. # that the above copyright notice appear in all copies and that both that
  937. # copyright notice and this permission notice appear in supporting
  938. # documentation, and that the name of HP not be used in advertising or
  939. # publicity pertaining to distribution of the software without specific,
  940. # written prior permission.  HP makes no representations about the
  941. # suitability of this software for any purpose.  It is provided "as is"
  942. # without express or implied warranty.
  943. #
  944. # Please send any improvements, bug fixes, useful modifications, and comments
  945. # to mayer@hplabs.hp.com.
  946. ################################################################################
  947. X
  948. ##
  949. ## this is the help display that comes up initially when you run Xwebster.
  950. ##
  951. *helpText: WELCOME TO XWEBSTER, by Niels Mayer (mayer@hplabs.hp.com)\n\n\
  952. X    Webster's 7th Collegiate Dictionary, Copyright (C) 1963 by Merriam-Webster,\n\
  953. X    Inc.  No part of this information may be copied or reprinted without the\n\
  954. X    express written consent of the publisher.\n\n\
  955. This program connects to a Webster dictionary server to get definitions of\n\
  956. words.  Words are entered in the TextEdit Widget in the center panel of\n\
  957. this program.  You may then type <ret> or mouse [Define] to get the\n\
  958. definition of the word. If the word has any cross-references, they will be\n\
  959. presented in the word browser panel in xwebster. If the word is\n\
  960. "slightly misspelled", then a list of words is presented in the word browser\n\
  961. panel, one of which might be the word that you had intended.\n\n\
  962. Typing '?' or mousing [Endings] following part of a word will cause\n\
  963. xwebster to list all words beginning with the partial word in the word\n\
  964. browser panel. The program will beep and give an error message if nothing\n\
  965. matches.\n\n\
  966. Typing <esc> or mousing [Complete] causes the program to attempt to\n\
  967. complete the word.  If the word can be completed, the new word is placed in\n\
  968. the TextEdit widget; otherwise, the program beeps and displays a message\n\
  969. indicating that the word is ambiguous.\n\n\
  970. In all the above cases, the wildcard characters '%' and '*' may be used to\n\
  971. specify partial words. The '%' character matches exactly one character,\n\
  972. while the '*' matches zero or more characters.  If wildcards are used, the\n\
  973. program will return either "No match" or a browser of matching words.\n
  974. X
  975. ##
  976. ## The following are parameters for accessing the webster server. Note that
  977. ## hostAddrList is a list of internet adresses that are tried in succession
  978. ## incase there's problems connecting to a server. In the following example, 
  979. ## we try the two different SRI-NIC server addresses for a total of 10 times
  980. ## before giving up. Or replace these with your own webster server's parameters
  981. ##
  982. ## (Webster servers are available at ???.bu.edu, ???.indiana.edu, ???.mit.edu,
  983. ## ??.purdue.edu, and others. If you have the webster(1) tty interface to 
  984. ## webster, then run strings on it to find out which server host it uses 
  985. ## (or look at the source  code). Webster servers tend to be located on port 
  986. ## 103 or 2627.)
  987. ##
  988. *hostAddrList: 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51
  989. *hostPort: 103
  990. *hostServiceName: webster
  991. X
  992. ##
  993. ## This is the width of the wordinput widget. I figure that most words are
  994. ## less than 30 characters long.
  995. ##
  996. *wordInputWidgetWidth: 30
  997. X
  998. ##
  999. ## if useEditorAsDisplay is true, then a TextEdit widget is used to display,
  1000. ## definitions.
  1001. ## if useEditorAsDisplay is false, then a statictext widget within a
  1002. ## scrolled window is used to display definitions.
  1003. ##
  1004. ## Advantages for "*useEditorAsDisplay: FALSE" are:
  1005. ##     1) obvious to use -- move around the definition with the scrollbar.
  1006. ## Disadvantages are:
  1007. ##     1) Can only cut entire text of definition via left-mouse selection,
  1008. ##       cannot cut an individual region of text, such as a single word.
  1009. ##      2) Scrolling refreshes in an ugly fashion.
  1010. ##
  1011. ## Advantages for "*useEditorAsDisplay: TRUE" are:
  1012. ##     1) can cut individual regions from the definition text.
  1013. ## Disadvantages are:
  1014. ##     1) "beginners" may not know that "emacs" commands allow moving around
  1015. ##         the definition. The TexEdit widget doesn't have a scrollbar, so it's
  1016. ##         not visually obvious that part of the definition may be off-screen.
  1017. ##
  1018. *useEditorAsDisplay: FALSE
  1019. X
  1020. ##
  1021. ## The following control the size of the pane that display's word definitions.
  1022. ## The webster server formats it's output for 80-column wide displays, and 
  1023. ## therefore, *displayWidth should be at least this wide. Due to weirdness
  1024. ## of this implementation and the Xwidgets, "85" width allows for a scrollbar
  1025. ## to fit in the display pane without covering up 80-column wide text.
  1026. ##
  1027. *displayWidth: 85
  1028. *displayHeight: 10
  1029. X
  1030. ##
  1031. ## When a long list of words is being sent by the server (eg, list endings of
  1032. ## all words beginning with "a"), the wordlist display is updated every 
  1033. ## "numWordsBeforeRefresh" words. If the server is very slow (or the network is 
  1034. ## slow), it is useful to see its progress, so as to show that xwebster hasn't 
  1035. ## hung. On the other hand, if the server is very fast, then the wordlist display
  1036. ## will update too much. So Adjust this value upwards if you don't care to see 
  1037. ## the words in the wordlist arrive from the server incementally or if you want
  1038. ## to reduce the amount of display updating.
  1039. ## 
  1040. *numWordsBeforeRefresh: 10
  1041. X
  1042. ###############################################################################
  1043. # *panel -- XwvPanedWidgetClass.
  1044. #
  1045. *panel.sashIndent: -20
  1046. X
  1047. ###############################################################################
  1048. ##
  1049. ## *panel.display_scroller and *panel.display_scroller.display below only
  1050. ## count if "*useEditorAsDisplay" resource is false. In that case, the 
  1051. ## widget displaying the definition is made up from a statictext widget within
  1052. ## a scrollbar.
  1053. ##
  1054. # *panel.display_scroller -- XwswindowWidgetClass
  1055. #
  1056. ## preset: *panel.display_scroller.width = displayWidth*fontwidth where by default
  1057. ## *displayWidth: 85
  1058. #
  1059. ## preset: *panel.display_scroller.height = displayHeight*fonthheight where by default
  1060. ## *displayHeight: 10
  1061. #
  1062. ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  1063. # *panel.display_scroller.min: 1
  1064. # *panel.display_scroller.max: 10000
  1065. # *panel.display_scroller.allowResize: FALSE
  1066. # *panel.display_scroller.skipAdjust: FALSE
  1067. X
  1068. #
  1069. # *panel.display_scroller.display -- XwstaticTextWidgetClass
  1070. #
  1071. *panel.display_scroller.display.borderWidth: 0
  1072. *panel.display_scroller.display.shadowOn: no
  1073. *panel.display_scroller.display.alignment: Left
  1074. *panel.display_scroller.display.gravity: CenterGravity
  1075. *panel.display_scroller.display.wrap: FALSE
  1076. *panel.display_scroller.display.strip: FALSE
  1077. # it would be very silly to use proportional fonts here, since the webster
  1078. # server formats the text output for fixed width fonts.
  1079. *display_scroller.display.font: 6x13
  1080. X
  1081. ###############################################################################
  1082. ##
  1083. ## *panel.display below only counts if "*useEditorAsDisplay" resource is true.
  1084. ## In that case, the widget displaying the definition is made up from a 
  1085. ## TextEdit widget.
  1086. ##
  1087. # *panel.display -- XwtexteditWidgetClass
  1088. #
  1089. ## preset: *display.width = displayWidth*fontwidth where by default
  1090. ## *displayWidth: 85
  1091. #
  1092. ## preset: *display.height = displayHeight*fonthheight where by default
  1093. ## *displayHeight: 10
  1094. #
  1095. ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  1096. # *panel.display.min: 1
  1097. # *panel.display.max: 10000
  1098. # *panel.display.allowResize: FALSE
  1099. # *panel.display.skipAdjust: FALSE
  1100. X
  1101. *panel.display.wrap: wrapoff
  1102. ## it would be very silly to use proportional fonts here, since the webster
  1103. ## server formats the text output for fixed width fonts.
  1104. *panel.display.font: 6x13
  1105. ## this is the default TextEdit txlation table with all bindings that alter 
  1106. ## the editor's text removed. In addition, backspace and space move to 
  1107. ## previous and next pages, respectively. 
  1108. *panel.display.translations: \
  1109. X     <Key>BackSpace:        previous-page() \n\
  1110. X     Ctrl<Key>H:        previous-page() \n\
  1111. X     <Key>\\ :                next-page() \n\
  1112. X     Ctrl<Key>F:        forward-character() \n\
  1113. X     Ctrl<Key>Right:        traverse-right() \n\
  1114. X     <Key>Right:        forward-character() \n\
  1115. X     Ctrl<Key>B:        backward-character() \n\
  1116. X     Ctrl<Key>Left:        traverse-left() \n\
  1117. X     <Key>Left:         backward-character() \n\
  1118. X     Meta<Key>F:        forward-word() \n\
  1119. X     Meta<Key>B:        backward-word() \n\
  1120. X     Meta<Key>]:        forward-paragraph() \n\
  1121. X     Ctrl<Key>[:        backward-paragraph() \n\
  1122. X     Ctrl<Key>A:        beginning-of-line() \n\
  1123. X     Ctrl<Key>E:        end-of-line() \n\
  1124. X     Ctrl<Key>N:        next-line() \n\
  1125. X     Ctrl<Key>Down:        traverse-down() \n\
  1126. X     <Key>Down:         next-line() \n\
  1127. X     Ctrl<Key>P:        previous-line() \n\
  1128. X     Ctrl<Key>Up:               traverse-up() \n\
  1129. X     <Key>Up:                previous-line() \n\
  1130. X     Ctrl<Key>V:        next-page() \n\
  1131. X     Ctrl<Key>Next:        traverse-next() \n\
  1132. X     <Key>Next:            next-page() \n\
  1133. X     Meta<Key>V:        previous-page() \n\
  1134. X     Ctrl<Key>Prior:        traverse-prev() \n\
  1135. X     <Key>Prior:        previous-page() \n\
  1136. X     Meta<Key>\\<:        beginning-of-file() \n\
  1137. X     Meta<Key>\\>:        end-of-file() \n\
  1138. X     Ctrl<Key>Home:        traverse-home() \n\
  1139. X     Shift<Key>Home:        end-of-file() \n\
  1140. X     <Key>Home:            beginning-of-file() \n\
  1141. X     Ctrl<Key>Z:        scroll-one-line-up() \n\
  1142. X     Meta<Key>Z:        scroll-one-line-down() \n\
  1143. X     Ctrl<Key>L:        redraw-display() \n\
  1144. X     <FocusIn>:            focus-in() \n\
  1145. X     <FocusOut>:        focus-out() \n\
  1146. X     <Btn1Down>:        select-start() \n\
  1147. X     Button1<PtrMoved>:        extend-adjust() \n\
  1148. X     <Btn1Up>:            extend-end() \n\
  1149. X     <Btn3Down>:        extend-start() \n\
  1150. X     Button3<PtrMoved>:        extend-adjust() \n\
  1151. X     <Btn3Up>:            extend-end() \n\
  1152. X     <Key>Execute:        execute() \n\
  1153. X     <EnterWindow>:        enter() \n\
  1154. X     <LeaveWindow>:        leave()
  1155. X
  1156. ###############################################################################
  1157. # *panel.titlebar -- XwtitlebarWidgetClass
  1158. #
  1159. ## preset: *panel.titlebar.titleForeground == *panel.titlebar.foreground
  1160. ## preset: *panel.titlebar.titleBackground == *panel.titlebar.background
  1161. X
  1162. ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  1163. ## preset: *panel.titlebar.min == *panel.titlebar.height
  1164. ## preset: *panel.titlebar.max == *panel.titlebar.height
  1165. # *panel.titlebar.allowResize: FALSE
  1166. # *panel.titlebar.skipAdjust: FALSE
  1167. X
  1168. *panel.titlebar.titlePrecedence: 0
  1169. *panel.titlebar.titleRegion: Center
  1170. X
  1171. #
  1172. # *panel.titlebar.StaticText -- the label text on the titlebar panel
  1173. #
  1174. *panel.titlebar.StaticText.gravity: CenterGravity
  1175. *panel.titlebar.StaticText.borderWith: 0
  1176. *panel.titlebar.StaticText.shadowOn: no
  1177. *panel.titlebar.alignment: Left
  1178. *panel.titlebar.wrap: FALSE
  1179. *panel.titlebar.font: variable
  1180. X
  1181. #
  1182. # *panel.titlebar.PushButton -- XwpushButtonWidgetClass
  1183. #
  1184. *panel.titlebar.PushButton.traversalType: highlight_enter
  1185. *panel.titlebar.PushButton.highlightThickness: 1
  1186. ## color display users might want to uncomment the following line and set
  1187. ## .highlightTile to foreground as well. 
  1188. # *panel.titlebar.PushButton.highlightColor: white
  1189. *panel.titlebar.PushButton.highlightTile: 50_foreground
  1190. *panel.titlebar.PushButton.font: variable
  1191. X
  1192. *panel.titlebar.quit_button.label: Quit
  1193. *panel.titlebar.quit_button.region: Left
  1194. # *panel.titlebar.quit_button.lPadding: 2
  1195. # *panel.titlebar.quit_button.rPadding: 2
  1196. # *panel.titlebar.quit_button.precedence: 1
  1197. X
  1198. *panel.titlebar.help_button.label: Help
  1199. *panel.titlebar.help_button.region: Right
  1200. # *panel.titlebar.help_button.lPadding: 2
  1201. # *panel.titlebar.help_button.rPadding: 2
  1202. # *panel.titlebar.help_button.precedence: 1
  1203. X
  1204. ###############################################################################
  1205. # *panel.wordlist_scroller -- XwswindowWidgetClass
  1206. #
  1207. *panel.wordlist_scroller.height: 100
  1208. X
  1209. ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  1210. # *panel.wordlist_scroller.min: 1
  1211. # *panel.wordlist_scroller.max: 10000
  1212. # *panel.wordlist_scroller.allowResize: FALSE
  1213. # *panel.wordlist_scroller.skipAdjust: FALSE
  1214. X
  1215. #
  1216. # *panel.wordlist_scroller.wordlist -- XwrowColWidgetClass
  1217. #
  1218. *panel.wordlist_scroller.wordlist.hSpace: 2
  1219. *panel.wordlist_scroller.wordlist.vSpace: 2
  1220. *panel.wordlist_scroller.wordlist.layoutType: requested_columns
  1221. *panel.wordlist_scroller.wordlist.columns: 4
  1222. *panel.wordlist_scroller.wordlist.forceSize: TRUE
  1223. *panel.wordlist_scroller.wordlist.singleRow: FALSE
  1224. *panel.wordlist_scroller.wordlist.mode: n_of_many
  1225. *panel.wordlist_scroller.wordlist.borderWidth: 0
  1226. X
  1227. #
  1228. # *panel.wordlist_scroller.wordlist.word -- XwpushButtonWidgetClass
  1229. # ??? for some reason, I must spec this as *panel.wordlist_scroller*wordlist...
  1230. # ??? rather than panel.wordlist_scroller.wordlist... even though
  1231. # ??? wordlist_scroller is the parent of wordlist -- an Xtk bug, perhaps?
  1232. *panel.wordlist_scroller*wordlist.word.font: 6x13
  1233. *panel.wordlist_scroller*wordlist.word.traversalType: highlight_enter
  1234. *panel.wordlist_scroller*wordlist.word.highlightThickness: 1
  1235. ## color display users might want to uncomment the following line and set
  1236. ## .highlightTile to foreground as well. 
  1237. # *panel.wordlist_scroller*wordlist.word.highlightColor: white
  1238. *panel.wordlist_scroller*wordlist.word.highlightTile: 50_foreground
  1239. X
  1240. ###############################################################################
  1241. # *panel.control_panel -- XwtitlebarWidgetClass
  1242. X
  1243. ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  1244. ## preset: *panel.control_panel.min == *panel.control_panel.height
  1245. ## preset: *panel.control_panel.max == *panel.control_panel.height
  1246. # *panel.control_panel.allowResize: FALSE
  1247. # *panel.control_panel.skipAdjust: FALSE
  1248. X
  1249. #
  1250. # *panel.control_panel.PushButton -- XwpushButtonWidgetClass
  1251. #
  1252. *panel.control_panel.PushButton.traversalType: highlight_enter
  1253. *panel.control_panel.PushButton.highlightThickness: 1
  1254. ## color display users might want to uncomment the following line and set
  1255. ## .highlightTile to foreground as well. 
  1256. # *panel.control_panel.PushButton.highlightColor: white
  1257. *panel.control_panel.PushButton.highlightTile: 50_foreground
  1258. *panel.control_panel.PushButton.font: variable
  1259. X
  1260. *panel.control_panel.define_button.label: Define <ret>
  1261. *panel.control_panel.define_button.region: Center
  1262. *panel.control_panel.define_button.precedence: 0
  1263. # *panel.control_panel.define_button.lPadding: 2
  1264. # *panel.control_panel.define_button.rPadding: 2
  1265. X
  1266. *panel.control_panel.complete_button.label: Complete <esc>
  1267. *panel.control_panel.complete_button.region: Center
  1268. *panel.control_panel.complete_button.precedence: 1
  1269. # *panel.control_panel.complete_button.lPadding: 2
  1270. # *panel.control_panel.complete_button.rPadding: 2
  1271. X
  1272. *panel.control_panel.endings_button.label: Endings <?>
  1273. *panel.control_panel.endings_button.region: Center
  1274. *panel.control_panel.endings_button.precedence: 1
  1275. # *panel.control_panel.endings_button.lPadding: 2
  1276. # *panel.control_panel.endings_button.rPadding: 2
  1277. X
  1278. #
  1279. # *panel.control_panel.word_input -- XwtexteditWidgetClass
  1280. #
  1281. ## preset: *word_input.height = 1*fontheight, 
  1282. ## preset: *word_input.width = wordInputWidgetWidth*fontheight where by default
  1283. ## *wordInputWidgetWidth: 30
  1284. #
  1285. *panel.control_panel.word_input.traversalType: highlight_enter
  1286. *panel.control_panel.word_input.highlightThickness: 1
  1287. ## color display users might want to uncomment the following line and set
  1288. ## .highlightTile to foreground as well. 
  1289. # *panel.control_panel.word_input.highlightColor: white
  1290. *panel.control_panel.word_input.highlightTile: 50_foreground
  1291. *panel.control_panel.word_input.font: 6x13
  1292. X
  1293. *panel.control_panel.word_input.region: Center
  1294. *panel.control_panel.word_input.precedence: 0
  1295. # *panel.control_panel.word_input.lPadding: 2
  1296. # *panel.control_panel.word_input.rPadding: 2
  1297. *panel.control_panel.word_input.shadowOn: FALSE
  1298. X
  1299. ## TextEdit's default translation table that has been munged so that
  1300. ## (1) ?, <esc> and <return> call endings, complete, and define.
  1301. ## (2) since the word_input widget is only for a single line of text, all
  1302. ## keystrokes from the default TextEdit table that deal with multiline text
  1303. ## have been rebound to webster-no-op(), a function that just beeps.
  1304. *panel.control_panel.word_input.translations: \
  1305. X     <Key>Return:        webster-define-word() \n\
  1306. X     <Key>Escape:        webster-complete-word() \n\
  1307. X     <Key>?:            webster-list-endings() \n\
  1308. X     Shift<Key>/:        webster-list-endings() \n\
  1309. X     Ctrl<Key>M:        webster-no-op() \n\
  1310. X     Meta<Key>]:        webster-no-op() \n\
  1311. X     Ctrl<Key>[:        webster-no-op() \n\
  1312. X     Ctrl<Key>N:        webster-no-op() \n\
  1313. X     Ctrl<Key>P:        webster-no-op() \n\
  1314. X     Ctrl<Key>V:        webster-no-op() \n\
  1315. X     Meta<Key>V:        webster-no-op() \n\
  1316. X     Ctrl<Key>Z:        webster-no-op() \n\
  1317. X     Meta<Key>Z:        webster-no-op() \n\
  1318. X     Ctrl<Key>J:        webster-no-op() \n\
  1319. X     Ctrl<Key>O:        webster-no-op() \n\
  1320. X     Ctrl<Key>F:        forward-character() \n\
  1321. X     Ctrl<Key>Right:        traverse-right() \n\
  1322. X     <Key>Right:        forward-character() \n\
  1323. X     Ctrl<Key>B:        backward-character() \n\
  1324. X     Ctrl<Key>Left:        traverse-left() \n\
  1325. X     <Key>Left:         backward-character() \n\
  1326. X     Meta<Key>F:        forward-word() \n\
  1327. X     Meta<Key>B:        backward-word() \n\
  1328. X     Ctrl<Key>A:        beginning-of-line() \n\
  1329. X     Ctrl<Key>E:        end-of-line() \n\
  1330. X     Ctrl<Key>Down:        traverse-down() \n\
  1331. X     <Key>Down:            webster-no-op() \n\
  1332. X     Ctrl<Key>Up:               traverse-up() \n\
  1333. X     <Key>Up:            webster-no-op() \n\
  1334. X     Ctrl<Key>Next:        traverse-next() \n\
  1335. X     Ctrl<Key>Prior:        traverse-prev() \n\
  1336. X     <Key>Prior:        webster-no-op() \n\
  1337. X     Meta<Key>\\<:        beginning-of-file() \n\
  1338. X     Meta<Key>\\>:        end-of-file() \n\
  1339. X     Ctrl<Key>Home:        traverse-home() \n\
  1340. X     Shift<Key>Home:        end-of-file() \n\
  1341. X     <Key>Home:            beginning-of-file() \n\
  1342. X     Shift Meta<Key>D:        kill-word() \n\
  1343. X     Ctrl<Key>D:        delete-next-character() \n\
  1344. X     <Key>Delete:        delete-previous-character() \n\
  1345. X     <Key>BackSpace:        delete-previous-character() \n\
  1346. SHAR_EOF
  1347. true || echo 'restore of Xwebster.ad.hp_widgets failed'
  1348. fi
  1349. echo 'End of  part 1'
  1350. echo 'File Xwebster.ad.hp_widgets is continued in part 2'
  1351. echo 2 > _shar_seq_.tmp
  1352. exit 0
  1353. -- 
  1354. --
  1355. Molecular Simulations, Inc.            mail: dcmartin@msi.com
  1356. 796 N. Pastoria Avenue                uucp: uunet!dcmartin
  1357. Sunnyvale, California 94086            at&t: 408/522-9236
  1358.