Compiling the Xew test/sample programs
--------------------------------------
This directory (demo) has been unpacked along with Xew.

1. Making test programs

	You may have to edit the Imakefile to your local conventions. Note
	that this program uses Athena Widgets.

	cd demo
	cp Imakefile.dist Imakefile
			- edit your local changes to Imakefile.
	xmkmf

	'make viewer' or 'make texted' or just 'make'

	If you don't have 'imake', you can try to compile with
	following (after tailoring some paths to the local
	environment):

	gcc -c -O2 -Wall -g -I/usr/X11R5/include viewer.c
	gcc -o viewer viewer.o -O2 -Wall -g  -L/usr/X11R5/lib -lXew -lXaw \
		 -lXmu -lXt -lXext -lX11 -L/usr/local/lib -ltiff -ljpeg -lm

	NOTE:	The Imakefile.dist is initially assuming that neither
		TIFF nor JPEG support has been compiled in.

2. Testing the widgets

	The test programs do attempt to use fallback resources (fallback.c)
	but, if they are not correct for you, you may start from the Demo.ad
	file and use it as your resource file.

	The subdirectory (demo/Text/...) contains some sample text files
	which demonstrate the capabilities of the XeText widget.

	simple files(s)
	------------------------------
	This should pop a separate shell/popup shell for each file.

	viewer file(s)
	------------------------------
	Same as simple, but the file(s) are shown in single paned widget
	which can be panned via athena panner/porthole widgets (X11R5) or
	athena viewport (X11R4).

	The left mouse button (Btn3Up) is bound to a code that pops up
	control panel for changing some of the resources associated with
	the widget. It will control the widget on top of which the button
	was released last.

	audio [audiofilename]
	---------------------
	This works only on Sun SPARC's (assumes existence of
	/dev/audio and 8KHz u-law audio stream).

	texted [textfilename]
	---------------------
	A test program for the TextEd widget class.

	! This is not intended to be a text editor program. A real text
	! editor to 'texted' is has approximately the same relation as
	! high level programming language has to machine language.

	tagged [textfilename]
	---------------------
	Another test program for the TextEd widget. This uses the tag
	feature of the widget. A skeleton MIME text/enriched lookalike
	editing is provided through the default definition file
	"enriched.tag".

	! This is also an experiment, that proved to be wrong. It allows
	! the user to get completely lost into tags. It should allow less
	! freedom in combinations...

	xaudio from Andrew Brooks (arb@comp.lancs.ac.uk)
	------------------------------------------------
	This program has nothing to do with Xew widgets. It provides a
	simple control panel for controlling the audio play volume on
	Sun environment. This is included just because the XeAudio
	widget does not contain such controls (it is actually open
	question whether widget should have such).

