home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!morrow.stanford.edu!sep!steve
- From: steve@sep.Stanford.EDU (Steve Cole)
- Newsgroups: alt.sources
- Subject: xtpanel 2.0 - interactive program builder - part 01/10
- Followup-To: alt.sources.d
- Date: 21 Nov 1992 00:27:26 GMT
- Organization: Stanford Exploration Project
- Lines: 1971
- Distribution: world
- Message-ID: <1ejvpeINN194@morrow.stanford.edu>
- NNTP-Posting-Host: taal.stanford.edu
-
-
- Submitted-by: steve@sep.Stanford.EDU
- Archive-name: xtpanel/part01
-
- xtpanel - build an interactive program, from the command line
- or using a simple scripting language
-
- This is xtpanel version 2.00. Changes since version 1.01:
- -added new objects: toggle, scrollbar, graph.
- -added new actions: ASSIGN, SET. Allow one object to modify another.
- -objects can have multiple actions.
- -backquoted strings in actions get executed at action time.
- -new examples: xtpanel-based calculator, color selection tool,
- bitmap browser.
-
- xtpanel is also available for anonymous ftp from
- hanauma.Stanford.EDU (36.51.0.16) as pub/X/xtpanel.tar.Z.
- Size of version 2.00 is 172489 bytes.
- Note hanauma's ftp daemon doesn't like you using "ls" and "cd .."
- use "dir" and "cdup" instead.
-
- Here is some information from the README file:
-
- xtpanel provides a quick and easy way of producing a panel
- containing interactive objects such as buttons, sliders, and text
- fields, either from the command line or from an xtpanel script file.
- Each panel object maintains a string representation of its value. When
- the object is modified it updates its value and it can also perform an
- action such as printing its value or calling a system command. Objects
- can make use of the values of other objects in constructing their
- actions, and they can set the values of other objects as the result of
- an action. The result is an interactive X windows program, without the
- need for conventional programming.
-
- This program is not intended as a replacement for a full featured
- interface programming toolkit like Tk or Dirt or as a replacement for a
- simple menu builder like xmenu, it falls somewhere in the gap between the two.
- It is intended as an easy to use tool that can be used to add an
- interactive wrapper to all those old programs and shells that you have
- lying around.
-
-
- Three utilities are provided with xtpanel. All three utilities are
- written as xtpanel scripts.
-
- The first is a script generator. This is a collection af xtpanel scripts
- that can be used to build, examine and test xtpanel script files.
- It is invoked using the command "xtpanel-generator". The second utility is a
- collection of example scripts and a master script that can be use to
- view and run the examples. It is invoked using the command
- "xtpanel-examples". A particularly powerful demo is the "lister"
- script example, which is a tool for maneuvering through a Unix
- filesystem and viewing files at any level. The third is a set of
- xtpanel scripts that present information about xtpanel, mostly taken
- from this manual page, in an interactive, menu-driven form. This
- is invoked by doing "xtpanel -help".
-
- This program uses the X toolkit and the MIT Athena widget
- set.
-
- COPYRIGHT
- Although xtpanel is not in the public domain, its copyright is not
- very restrictive. Here is the official xtpanel copyright notice:
- .PP
- Copyright 1992 the Board of Trustees of the Leland Stanford Junior
- University. All Rights Reserved. Permission is hereby given
- to use, copy, modify, and distribute this software provided
- that (1) copyright and proprietary notices are retained in
- each copy, (2) any files which are modified are identified as such,
- and (3) you do not copy or distribute the software for payment or
- for commercial use without prior written consent from Stanford.
- STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
- concerning this software or its use.
-
- Machines tested:
- ----------------
-
- Sun 4, OS 4.1.1, MIT X11R5
- Sun 4, OS 4.1.1, Openwindows-3 (see the file OW3 for more info)
- Sun 3, OS 3.5, MIT X11R5
- DEC 3100, ULTRIX V4.2, MIT X11R5
- DEC 3100, ULTRIX V4.2, UWS V4.2 (with optional MIT compatible subset)
- IBM RS6000, AIX V3.2, MIT X11R5
- IBM RS6000, AIX V3.2, IBM X11R4
- HP 700, HP-UX 8.05, HP X11R4
- Convex C-1, OS 9.0, MIT X11R4
-
- AUTHORS
- Steve Cole (steve@sep.stanford.edu)
- Dave Nichols (dave@sep.stanford.edu)
- Stanford Exploration Project, Department of Geophysics
- Stanford University, Stanford, CA 94305-2215
-
- #!/bin/sh
- # This is a shell archive (produced by shar 3.50)
- # To extract the files from this archive, save it to a file, remove
- # everything above the "!/bin/sh" line above, and type "sh file_name".
- #
- # made 11/20/1992 22:59 UTC by steve@sep.stanford.edu
- # Source directory /home/taal/src/our/interact
- #
- # existing files will NOT be overwritten unless -c is specified
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 491 -rw-rw-r-- xtpanel/examples/Imakefile
- # 441 -rw-rw-r-- xtpanel/examples/script/lister
- # 209 -rw-rw-r-- xtpanel/examples/script/choice
- # 1138 -rw-rw-r-- xtpanel/examples/script/all
- # 60 -rw-rw-r-- xtpanel/examples/script/text
- # 483 -rw-rw-r-- xtpanel/examples/script/list
- # 210 -rw-rw-r-- xtpanel/examples/script/menubutton
- # 362 -rw-rw-r-- xtpanel/examples/script/Imakefile
- # 72 -rw-rw-r-- xtpanel/examples/script/message
- # 163 -rw-rw-r-- xtpanel/examples/script/slider
- # 180 -rw-rw-r-- xtpanel/examples/script/scrollbar
- # 9953 -rw-rw-r-- xtpanel/examples/script/Makefile
- # 82 -rw-rw-r-- xtpanel/examples/script/button
- # 516 -rw-rw-r-- xtpanel/examples/script/graph
- # 186 -rw-rw-r-- xtpanel/examples/script/dialog
- # 7975 -rw-rw-r-- xtpanel/examples/script/color_selector
- # 247 -rw-rw-r-- xtpanel/examples/script/.bitmap_browser
- # 5191 -rw-rw-r-- xtpanel/examples/script/calculator
- # 188 -rw-rw-r-- xtpanel/examples/script/toggle
- # 383 -rw-rw-r-- xtpanel/examples/script/bitmap_browser
- # 12622 -rw-rw-r-- xtpanel/examples/Makefile
- # 947 -rw-rw-r-- xtpanel/examples/all_examples.sed
- # 583 -rwxrwxr-x xtpanel/examples/commandline/all
- # 43 -rwxrwxr-x xtpanel/examples/commandline/message
- # 73 -rwxrwxr-x xtpanel/examples/commandline/button
- # 92 -rwxrwxr-x xtpanel/examples/commandline/slider
- # 111 -rwxrwxr-x xtpanel/examples/commandline/list
- # 103 -rwxrwxr-x xtpanel/examples/commandline/menubutton
- # 87 -rwxrwxr-x xtpanel/examples/commandline/dialog
- # 32 -rwxrwxr-x xtpanel/examples/commandline/text
- # 95 -rwxrwxr-x xtpanel/examples/commandline/choice
- # 256 -rw-rw-r-- xtpanel/examples/commandline/Imakefile
- # 9860 -rw-rw-r-- xtpanel/examples/commandline/Makefile
- # 64 -rwxrwxr-x xtpanel/examples/commandline/scrollbar
- # 105 -rwxrwxr-x xtpanel/examples/commandline/graph
- # 663 -rw-rw-r-- xtpanel/generator/actionstring
- # 787 -rw-rw-r-- xtpanel/generator/box
- # 1121 -rw-rw-r-- xtpanel/generator/button
- # 1276 -rw-rw-r-- xtpanel/generator/choice
- # 151 -rw-rw-r-- xtpanel/generator/confirm
- # 1127 -rw-rw-r-- xtpanel/generator/dialog
- # 158 -rw-rw-r-- xtpanel/generator/field
- # 1208 -rw-rw-r-- xtpanel/generator/item
- # 1253 -rw-rw-r-- xtpanel/generator/list
- # 10168 -rw-rw-r-- xtpanel/generator/Makefile
- # 875 -rw-rw-r-- xtpanel/generator/message
- # 1553 -rw-rw-r-- xtpanel/generator/slider
- # 978 -rw-rw-r-- xtpanel/generator/text
- # 1322 -rw-rw-r-- xtpanel/generator/menubutton
- # 2328 -rw-rw-r-- xtpanel/generator/generator
- # 1538 -rw-rw-r-- xtpanel/generator/action
- # 451 -rw-rw-r-- xtpanel/generator/Imakefile
- # 4234 -rw-rw-r-- xtpanel/generator/help
- # 745 -rw-rw-r-- xtpanel/generator/assignstring
- # 821 -rw-rw-r-- xtpanel/generator/setstring
- # 1636 -rw-rw-r-- xtpanel/generator/extras
- # 1121 -rw-rw-r-- xtpanel/generator/toggle
- # 1452 -rw-rw-r-- xtpanel/generator/scrollbar
- # 1698 -rw-rw-r-- xtpanel/generator/graph
- # 1659 -rw-rw-r-- xtpanel/Imakefile
- # 30583 -rw-rw-r-- xtpanel/Makefile
- # 1227 -rw-rw-r-- xtpanel/builders.h
- # 2737 -rw-rw-r-- xtpanel/item.c
- # 12032 -rw-rw-r-- xtpanel/actions.c
- # 1205 -rw-rw-r-- xtpanel/CHANGES
- # 7865 -rw-rw-r-- xtpanel/main.c
- # 22092 -rw-rw-r-- xtpanel/parse.c
- # 4270 -rw-rw-r-- xtpanel/tree.c
- # 1134 -rw-rw-r-- xtpanel/tree.h
- # 2377 -rw-rw-r-- xtpanel/XTpanel.ad.sed
- # 2871 -rw-rw-r-- xtpanel/README
- # 6855 -rw-rw-r-- xtpanel/xtpanel_scan.l
- # 51 -rw-rw-r-- xtpanel/patchlevel.h
- # 1457 -rw-rw-r-- xtpanel/NoImake.cpp
- # 2598 -rw-rw-r-- xtpanel/NoImake.m4
- # 4189 -rw-rw-r-- xtpanel/button.c
- # 679 -rw-rw-r-- xtpanel/object.h
- # 1423 -rw-rw-r-- xtpanel/INSTALL
- # 4381 -rw-rw-r-- xtpanel/dialog.c
- # 5904 -rw-rw-r-- xtpanel/list.c
- # 360 -rw-rw-r-- xtpanel/xtpanel-examples.script.sed
- # 471 -rw-rw-r-- xtpanel/item.h
- # 6487 -rw-rw-r-- xtpanel/menubutton.c
- # 2221 -rw-rw-r-- xtpanel/message.c
- # 9457 -rw-rw-r-- xtpanel/slider.c
- # 205 -rw-rw-r-- xtpanel/Imake.config
- # 6770 -rw-rw-r-- xtpanel/choice.c
- # 3373 -rw-rw-r-- xtpanel/text.c
- # 1532 -rw-rw-r-- xtpanel/variable.c
- # 38445 -rw-rw-r-- xtpanel/xtpanel.man.sed
- # 75 -rw-rw-r-- xtpanel/xtpanel-generator.script
- # 1708 -rwxrwxr-x xtpanel/NoImake
- # 145 -rw-rw-r-- xtpanel/eval_command.h
- # 2031 -rw-rw-r-- xtpanel/eval_command.c
- # 5609 -rw-rw-r-- xtpanel/help/general
- # 874 -rw-rw-r-- xtpanel/help/message
- # 1367 -rw-rw-r-- xtpanel/help/objects
- # 1012 -rw-rw-r-- xtpanel/help/text
- # 720 -rw-rw-r-- xtpanel/help/dialog
- # 713 -rw-rw-r-- xtpanel/help/button
- # 300 -rw-rw-r-- xtpanel/help/toggle
- # 2132 -rw-rw-r-- xtpanel/help/slider
- # 198 -rw-rw-r-- xtpanel/help/scrollbar
- # 1537 -rw-rw-r-- xtpanel/help/choice
- # 1384 -rw-rw-r-- xtpanel/help/list
- # 1326 -rw-rw-r-- xtpanel/help/menubutton
- # 654 -rw-rw-r-- xtpanel/help/item
- # 847 -rw-rw-r-- xtpanel/help/itemlist
- # 2208 -rw-rw-r-- xtpanel/help/graph
- # 677 -rw-rw-r-- xtpanel/help/var
- # 1689 -rw-rw-r-- xtpanel/help/params
- # 6610 -rw-rw-r-- xtpanel/help/actions
- # 1967 -rw-rw-r-- xtpanel/help/boxes
- # 843 -rw-rw-r-- xtpanel/help/copyright
- # 616 -rw-rw-r-- xtpanel/help/about
- # 5812 -rw-rw-r-- xtpanel/help/commandline
- # 2094 -rw-rw-r-- xtpanel/help/syntax
- # 1669 -rw-rw-r-- xtpanel/help/resources
- # 258 -rw-rw-r-- xtpanel/help/examples
- # 509 -rw-rw-r-- xtpanel/help/generator
- # 1524 -rw-rw-r-- xtpanel/help/help
- # 1500 -rw-rw-r-- xtpanel/help/help.sed
- # 1758 -rw-rw-r-- xtpanel/help/scriptvcomm
- # 642 -rw-rw-r-- xtpanel/help/Imakefile
- # 10345 -rw-rw-r-- xtpanel/help/Makefile
- # 13634 -rw-rw-r-- xtpanel/help/dave.xbm
- # 13800 -rw-rw-r-- xtpanel/help/steve.xbm
- # 3409 -rw-rw-r-- xtpanel/string_buf.c
- # 1091 -rw-rw-r-- xtpanel/string_buf.h
- # 6167 -rw-rw-r-- xtpanel/builders.c
- # 1003 -rw-rw-r-- xtpanel/actions.h
- # 5219 -rw-rw-r-- xtpanel/object.c
- # 11318 -rw-rw-r-- xtpanel/graph.c
- # 317 -rw-rw-r-- xtpanel/README.OW3
- #
- # ============= xtpanel/examples/Imakefile ==============
- if test ! -d 'xtpanel'; then
- echo 'x - creating directory xtpanel'
- mkdir 'xtpanel'
- fi
- if test ! -d 'xtpanel/examples'; then
- echo 'x - creating directory xtpanel/examples'
- mkdir 'xtpanel/examples'
- fi
- if test -f 'xtpanel/examples/Imakefile' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/Imakefile (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/Imakefile (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/Imakefile' &&
- X
- #include "../Imake.config"
- X
- SUBDIRS = commandline script
- X
- X
- FILES = all_examples
- X
- all_examples: all_examples.sed
- X sed -e 's,CPP,$(CPP),g' <$? >$@
- X
- MakeDirectories(install,$(SYS_XTPANELDIR)/examples \
- X $(SYS_XTPANELDIR)/examples/commandline \
- X $(SYS_XTPANELDIR)/examples/script)
- X
- X
- InstallMultipleFlags( $(FILES), $(SYS_XTPANELDIR)/examples, -m 644 )
- X
- MakefileSubdirs($(SUBDIRS))
- X
- InstallSubdirs($(SUBDIRS))
- X
- CleanSubdirs($(SUBDIRS))
- X
- clean::
- X $(RM) all_examples
- X
- SHAR_EOF
- chmod 0664 xtpanel/examples/Imakefile ||
- echo 'restore of xtpanel/examples/Imakefile failed'
- Wc_c="`wc -c < 'xtpanel/examples/Imakefile'`"
- test 491 -eq "$Wc_c" ||
- echo 'xtpanel/examples/Imakefile: original size 491, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/lister ==============
- if test ! -d 'xtpanel/examples/script'; then
- echo 'x - creating directory xtpanel/examples/script'
- mkdir 'xtpanel/examples/script'
- fi
- if test -f 'xtpanel/examples/script/lister' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/lister (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/lister (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/lister' &&
- X
- button={ label=DONE action=QUIT }
- X
- hbox={
- message={ value="Directory:" }
- message={ value=`pwd` }
- }
- X
- dialog={ name=command label="Command for files" value="xterm -e vi" }
- X
- list={ name=name label="NAMES"
- X action=" if test -d $val
- X then
- X cd $val
- X xtpanel -file examples/script/lister &
- X else
- X $command $val &
- X fi"
- X itemlist={ list=`echo .* * ` separator=" " }
- }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/lister ||
- echo 'restore of xtpanel/examples/script/lister failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/lister'`"
- test 441 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/lister: original size 441, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/choice ==============
- if test -f 'xtpanel/examples/script/choice' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/choice (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/choice (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/choice' &&
- button={ label=quit action=QUIT }
- choice={ label=colors action="PRINT choice is $val"
- X item={ label=red foreground=red }
- X item={ label=blue foreground=blue }
- X item={ label=green foreground=green }
- X }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/choice ||
- echo 'restore of xtpanel/examples/script/choice failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/choice'`"
- test 209 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/choice: original size 209, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/all ==============
- if test -f 'xtpanel/examples/script/all' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/all (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/all (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/all' &&
- button={ label=quit action=QUIT }
- text={ value=`cat all` }
- button={ label="hit me" action="PRINT AARGH!" }
- toggle={ label="this is a toggle" }
- dialog={ label="what is your favorite color?" value="red"
- X action="PRINT Your favorite color is $val" }
- list={ label=colors value="255 0 0" action="PRINT color is $val"
- X item={ label=red value="255 0 0" }
- X item={ label=green value="0 255 0" }
- X item={ label=blue value="0 0 255" }
- X item={ label=cyan value="0 255 255" }
- X item={ label=yellow value="255 255 0" }
- X item={ label=magenta value="255 0 255" }
- X item={ label=black value="0 0 0" }
- X item={ label=white value="255 255 255" }
- X }
- menubutton={ label=numbers action="PRINT choice is $val"
- X item={ label=one value=1 }
- X item={ label=two value=2 }
- X item={ label=three value=3 }
- X }
- message={ value="this is a message" }
- slider={ label="this is a slider" min=0 max=100 value=50
- X format="%.2f" width=300
- X action="PRINT slider value is $val" }
- choice={ label=colors action="PRINT choice is $val"
- X itemlist={ list="red green blue" }
- X }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/all ||
- echo 'restore of xtpanel/examples/script/all failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/all'`"
- test 1138 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/all: original size 1138, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/text ==============
- if test -f 'xtpanel/examples/script/text' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/text (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/text (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/text' &&
- button={ label=quit action=QUIT }
- text={ value=`cat text` }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/text ||
- echo 'restore of xtpanel/examples/script/text failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/text'`"
- test 60 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/text: original size 60, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/list ==============
- if test -f 'xtpanel/examples/script/list' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/list (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/list (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/list' &&
- button={ label=quit action=QUIT }
- list={ label=colors value="255 0 0" action="PRINT color is $val"
- X item={ label=red value="255 0 0" }
- X item={ label=green value="0 255 0" }
- X item={ label=blue value="0 0 255" }
- X item={ label=cyan value="0 255 255" }
- X item={ label=yellow value="255 255 0" }
- X item={ label=magenta value="255 0 255" }
- X item={ label=black value="0 0 0" }
- X item={ label=white value="255 255 255" }
- X }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/list ||
- echo 'restore of xtpanel/examples/script/list failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/list'`"
- test 483 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/list: original size 483, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/menubutton ==============
- if test -f 'xtpanel/examples/script/menubutton' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/menubutton (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/menubutton (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/menubutton' &&
- button={ label=quit action=QUIT }
- menubutton={ label=numbers action="PRINT choice is $val"
- X item={ label=one value=1 }
- X item={ label=two value=2 }
- X item={ label=three value=3 }
- X }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/menubutton ||
- echo 'restore of xtpanel/examples/script/menubutton failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/menubutton'`"
- test 210 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/menubutton: original size 210, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/Imakefile ==============
- if test -f 'xtpanel/examples/script/Imakefile' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/Imakefile (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/Imakefile (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/Imakefile' &&
- X
- #include "../../Imake.config"
- X
- X
- FILES = lister choice menubutton text \
- X all dialog message scrollbar \
- X button list slider bitmap_browser \
- X color_selector graph calculator \
- X toggle .bitmap_browser
- X
- X
- InstallMultipleFlags($(FILES),$(SYS_XTPANELDIR)/examples/script,-m 644)
- X
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/Imakefile ||
- echo 'restore of xtpanel/examples/script/Imakefile failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/Imakefile'`"
- test 362 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/Imakefile: original size 362, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/message ==============
- if test -f 'xtpanel/examples/script/message' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/message (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/message (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/message' &&
- button={ label=quit action=QUIT }
- message={ value="this is a message" }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/message ||
- echo 'restore of xtpanel/examples/script/message failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/message'`"
- test 72 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/message: original size 72, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/slider ==============
- if test -f 'xtpanel/examples/script/slider' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/slider (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/slider (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/slider' &&
- button={ label=quit action=QUIT }
- slider={ label="this is a slider object" min=0 max=100 value=50
- X format="%.2f" width=300
- X action="PRINT slider value is $val" }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/slider ||
- echo 'restore of xtpanel/examples/script/slider failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/slider'`"
- test 163 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/slider: original size 163, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/scrollbar ==============
- if test -f 'xtpanel/examples/script/scrollbar' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/scrollbar (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/scrollbar (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/scrollbar' &&
- button={ label=quit action=QUIT }
- scrollbar={ min=0 max=100 value=50
- X format="%.2f" orient=horizontal height=50 width=300
- X border=salmon
- X action="PRINT scrollbar value is $val" }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/scrollbar ||
- echo 'restore of xtpanel/examples/script/scrollbar failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/scrollbar'`"
- test 180 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/scrollbar: original size 180, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/Makefile ==============
- if test -f 'xtpanel/examples/script/Makefile' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/Makefile (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/Makefile (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/Makefile' &&
- # Makefile generated by imake - do not edit!
- # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
- #
- # The cpp used on this machine replaces all newlines and multiple tabs and
- # spaces in a macro expansion with a single space. Imake tries to compensate
- # for this, but is not always successful.
- #
- X
- # -------------------------------------------------------------------------
- # Makefile generated from "Imake.tmpl" and <Imakefile>
- # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
- #
- # Platform-specific parameters may be set in the appropriate <vendor>.cf
- # configuration files. Site-specific parameters should be set in the file
- # site.def. Full rebuilds are recommended if any parameters are changed.
- #
- # If your C preprocessor does not define any unique symbols, you will need
- # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
- # "make World" the first time).
- #
- X
- # -------------------------------------------------------------------------
- # site-specific configuration parameters that need to come before
- # the platform-specific parameters - edit site.def to change
- X
- # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- X
- # -------------------------------------------------------------------------
- # platform-specific configuration parameters - edit sun.cf to change
- X
- # platform: $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
- X
- # operating system: SunOS 4.1.1
- X
- # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
- X
- # -------------------------------------------------------------------------
- # site-specific configuration parameters that go after
- # the platform-specific parameters - edit site.def to change
- X
- # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- X
- X SHELL = /bin/sh
- X
- X TOP = ../../.
- X CURRENT_DIR = ./examples/script
- X
- X AR = ar clq
- X BOOTSTRAPCFLAGS =
- X CC = cc
- X AS = as
- X
- X COMPRESS = compress
- X CPP = /lib/cpp $(STD_CPP_DEFINES)
- X PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
- X INSTALL = install
- X LD = ld
- X LINT = lint
- X LINTLIBFLAG = -C
- X LINTOPTS = -axz
- X LN = ln -s
- X MAKE = make
- X MV = mv
- X CP = cp
- X
- X RANLIB = ranlib
- X RANLIBINSTFLAGS =
- X
- X RM = rm -f
- X TROFF = psroff
- X MSMACROS = -ms
- X TBL = tbl
- X EQN = eqn
- X STD_INCLUDES =
- X STD_CPP_DEFINES = -D_NO_PROTO
- X STD_DEFINES = -D_NO_PROTO
- X EXTRA_LOAD_FLAGS =
- X EXTRA_LIBRARIES =
- X TAGS = ctags
- X
- X SHAREDCODEDEF = -DSHAREDCODE
- X SHLIBDEF = -DSUNSHLIB
- X
- X PROTO_DEFINES =
- X
- X INSTPGMFLAGS =
- X
- X INSTBINFLAGS = -m 0755
- X INSTUIDFLAGS = -m 4755
- X INSTLIBFLAGS = -m 0644
- X INSTINCFLAGS = -m 0444
- X INSTMANFLAGS = -m 0444
- X INSTDATFLAGS = -m 0444
- X INSTKMEMFLAGS = -g kmem -m 2755
- X
- X PROJECTROOT = /usr/local
- X
- X TOP_INCLUDES = -I$(INCROOT)
- X
- X CDEBUGFLAGS = -O
- X CCOPTIONS = -pipe
- X
- X ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
- X ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
- X CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
- X LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
- X
- X LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- X
- X LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
- X
- X LDCOMBINEFLAGS = -X -r
- X DEPENDFLAGS =
- X
- X MACROFILE = sun.cf
- X RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
- X
- X IMAKE_DEFINES =
- X
- X IRULESRC = $(CONFIGDIR)
- X IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
- X
- X ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
- X $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
- X $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
- X
- # -------------------------------------------------------------------------
- # X Window System Build Parameters
- # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
- X
- # -------------------------------------------------------------------------
- # X Window System make variables; this need to be coordinated with rules
- X
- X PATHSEP = /
- X USRLIBDIR = /usr/local/lib
- X BINDIR = /usr/local/bin/X5
- X INCROOT = /usr/local/include
- X BUILDINCROOT = $(TOP)
- X BUILDINCDIR = $(BUILDINCROOT)/X11
- X BUILDINCTOP = ..
- X INCDIR = $(INCROOT)/X11
- X ADMDIR = /usr/adm
- X LIBDIR = $(USRLIBDIR)/X11
- X CONFIGDIR = $(LIBDIR)/config
- X LINTLIBDIR = $(USRLIBDIR)/lint
- X
- X FONTDIR = $(LIBDIR)/fonts
- X XINITDIR = $(LIBDIR)/xinit
- X XDMDIR = $(LIBDIR)/xdm
- X TWMDIR = $(LIBDIR)/twm
- X MANPATH = /usr/local/man
- X MANSOURCEPATH = $(MANPATH)/man
- X MANSUFFIX = n
- X LIBMANSUFFIX = 3
- X MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
- X LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
- X NLSDIR = $(LIBDIR)/nls
- X PEXAPIDIR = $(LIBDIR)/PEX
- X XAPPLOADDIR = $(LIBDIR)/app-defaults
- X FONTCFLAGS = -t
- X
- X INSTAPPFLAGS = $(INSTDATFLAGS)
- X
- X IMAKE = imake
- X DEPEND = makedepend
- X RGB = rgb
- X
- X FONTC = bdftopcf
- X
- X MKFONTDIR = mkfontdir
- X MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
- X
- X CONFIGSRC = $(TOP)/config
- X DOCUTILSRC = $(TOP)/doc/util
- X CLIENTSRC = $(TOP)/clients
- X DEMOSRC = $(TOP)/demos
- X LIBSRC = $(TOP)/lib
- X FONTSRC = $(TOP)/fonts
- X INCLUDESRC = $(TOP)/X11
- X SERVERSRC = $(TOP)/server
- X UTILSRC = $(TOP)/util
- X SCRIPTSRC = $(UTILSRC)/scripts
- X EXAMPLESRC = $(TOP)/examples
- X CONTRIBSRC = $(TOP)/../contrib
- X DOCSRC = $(TOP)/doc
- X RGBSRC = $(TOP)/rgb
- X DEPENDSRC = $(UTILSRC)/makedepend
- X IMAKESRC = $(CONFIGSRC)
- X XAUTHSRC = $(LIBSRC)/Xau
- X XLIBSRC = $(LIBSRC)/X
- X XMUSRC = $(LIBSRC)/Xmu
- X TOOLKITSRC = $(LIBSRC)/Xt
- X AWIDGETSRC = $(LIBSRC)/Xaw
- X OLDXLIBSRC = $(LIBSRC)/oldX
- X XDMCPLIBSRC = $(LIBSRC)/Xdmcp
- X BDFTOSNFSRC = $(FONTSRC)/bdftosnf
- X BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
- X BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
- X MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
- X FSLIBSRC = $(FONTSRC)/lib/fs
- X FONTSERVERSRC = $(FONTSRC)/server
- X EXTENSIONSRC = $(TOP)/extensions
- X XILIBSRC = $(EXTENSIONSRC)/lib/xinput
- X PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
- X
- # $XConsortium: sunLib.tmpl,v 1.14.1.1 92/03/17 14:58:46 rws Exp $
- X
- SHLIBLDFLAGS = -assert pure-text
- PICFLAGS = -pic
- X
- X DEPEXTENSIONLIB =
- X EXTENSIONLIB = -lXext
- X
- X DEPXLIB = $(DEPEXTENSIONLIB)
- X XLIB = $(EXTENSIONLIB) -lX11
- X
- X DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
- X XMULIBONLY = -lXmu
- X XMULIB = -lXmu
- X
- X DEPOLDXLIB =
- X OLDXLIB = -loldX
- X
- X DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
- X XTOOLLIB = -lXt
- X
- X DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
- X XAWLIB = -lXaw
- X
- X DEPXILIB =
- X XILIB = -lXi
- X
- X SOXLIBREV = 4.10
- X SOXTREV = 4.10
- X SOXAWREV = 5.0
- X SOOLDXREV = 4.10
- X SOXMUREV = 4.10
- X SOXEXTREV = 4.10
- X SOXINPUTREV = 4.10
- X
- X DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
- X XAUTHLIB = -lXau
- X DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
- X XDMCPLIB = -lXdmcp
- X
- X DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
- X PHIGSLIB = -lphigs
- X
- X DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
- X XBSDLIB = -lXbsd
- X
- X LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
- X LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
- X LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
- X LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
- X LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
- X LINTXI = $(LINTLIBDIR)/llib-lXi.ln
- X LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
- X
- X DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
- X
- X DEPLIBS1 = $(DEPLIBS)
- X DEPLIBS2 = $(DEPLIBS)
- X DEPLIBS3 = $(DEPLIBS)
- X
- # -------------------------------------------------------------------------
- # Imake rules for building libraries, programs, scripts, and data files
- # rules: $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
- X
- # -------------------------------------------------------------------------
- # start of Imakefile
- X
- SYS_XTPANELDIR = $(LIBDIR)/xtpanel
- X
- FILES = lister choice menubutton text \
- X all dialog message scrollbar \
- X button list slider bitmap_browser \
- X color_selector graph calculator \
- X toggle .bitmap_browser
- X
- install:: $(FILES)
- X @if [ -d $(DESTDIR)$(SYS_XTPANELDIR)/examples/script ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(SYS_XTPANELDIR)/examples/script); fi
- X @case '${MFLAGS}' in *[i]*) set +e;; esac; \
- X for i in $(FILES); do \
- X (set -x; $(INSTALL) -c -m 644 $$i $(DESTDIR)$(SYS_XTPANELDIR)/examples/script); \
- X done
- X
- # -------------------------------------------------------------------------
- # common rules for all Makefiles - do not edit
- X
- emptyrule::
- X
- clean::
- X $(RM_CMD) "#"*
- X
- Makefile::
- X -@if [ -f Makefile ]; then set -x; \
- X $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
- X else exit 0; fi
- X $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
- X
- tags::
- X $(TAGS) -w *.[ch]
- X $(TAGS) -xw *.[ch] > TAGS
- X
- saber:
- X # load $(ALLDEFINES) $(SRCS)
- X
- osaber:
- X # load $(ALLDEFINES) $(OBJS)
- X
- # -------------------------------------------------------------------------
- # empty rules for directories that do not have SUBDIRS - do not edit
- X
- install::
- X @echo "install in $(CURRENT_DIR) done"
- X
- install.man::
- X @echo "install.man in $(CURRENT_DIR) done"
- X
- Makefiles::
- X
- includes::
- X
- # -------------------------------------------------------------------------
- # dependencies generated by makedepend
- X
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/Makefile ||
- echo 'restore of xtpanel/examples/script/Makefile failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/Makefile'`"
- test 9953 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/Makefile: original size 9953, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/button ==============
- if test -f 'xtpanel/examples/script/button' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/button (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/button (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/button' &&
- button={ label=QUIT action=QUIT }
- button={ label="hit me" action="PRINT AARGH!" }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/button ||
- echo 'restore of xtpanel/examples/script/button failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/button'`"
- test 82 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/button: original size 82, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/graph ==============
- if test -f 'xtpanel/examples/script/graph' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/graph (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/graph (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/graph' &&
- button={ label=QUIT action=QUIT }
- vbox={ name=noborder
- message={ value="Below is a graph object." }
- message={ value="You can adjust the scrollbars individually with the" }
- message={ value="mouse, or hold down the meta key to ""draw"". " }
- graph={ nsamp=50 action="PRINT $val" max=100 min=0 format="%.0f"
- X value=50
- X label=""
- X orientation=vertical
- X foreground=red
- X height=10 width=300 }
- }
- button={ label="Reset values" action="ASSIGN graph1 50" }
- button={ label="Print values" action="PRINT $graph1" }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/graph ||
- echo 'restore of xtpanel/examples/script/graph failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/graph'`"
- test 516 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/graph: original size 516, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/dialog ==============
- if test -f 'xtpanel/examples/script/dialog' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/dialog (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/dialog (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/dialog' &&
- button={ label=quit action=QUIT }
- dialog={ name=diag label="what is your favorite color?" value="red"
- X action="PRINT Your favorite color is $val"
- X action="SET diag background $val" }
- X
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/dialog ||
- echo 'restore of xtpanel/examples/script/dialog failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/dialog'`"
- test 186 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/dialog: original size 186, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/color_selector ==============
- if test -f 'xtpanel/examples/script/color_selector' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/color_selector (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/color_selector (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/color_selector' &&
- X
- button={ label=DONE action=QUIT }
- X
- button={
- X label="select a color, then press foreground/background/border to change me"
- X name=test
- }
- X
- var={ name=testcolor }
- X
- vbox={ name=noborder
- hbox={ name=noborder
- button={ label=foreground action="SET test foreground $testcolor"
- action="ASSIGN fgname $testcolor"
- }
- message={ name=fgname value=black }
- }
- hbox={ name=noborder
- button={ label=background action="SET test background $testcolor"
- action="ASSIGN bgname $testcolor"
- }
- message={ name=bgname value=white }
- }
- hbox={ name=noborder
- button={ label=border action="SET test borderColor $testcolor"
- action="ASSIGN bordername $testcolor"
- }
- message={ name=bordername value=black }
- }
- X
- list={ name=name label="COLORS"
- X action="SET name background $val"
- X action="ASSIGN testcolor $val"
- X height=300 width=400
- X value=snow
- X itemlist={
- X separator="\n"
- X list="
- snow
- ghost white
- GhostWhite
- white smoke
- WhiteSmoke
- gainsboro
- floral white
- FloralWhite
- old lace
- OldLace
- linen
- antique white
- AntiqueWhite
- papaya whip
- PapayaWhip
- blanched almond
- BlanchedAlmond
- bisque
- peach puff
- PeachPuff
- navajo white
- NavajoWhite
- moccasin
- cornsilk
- ivory
- lemon chiffon
- LemonChiffon
- seashell
- honeydew
- mint cream
- MintCream
- azure
- alice blue
- AliceBlue
- lavender
- lavender blush
- LavenderBlush
- misty rose
- MistyRose
- white
- black
- dark slate
- DarkSlateGray
- dark slate
- DarkSlateGrey
- dim gray
- DimGray
- dim grey
- DimGrey
- slate gray
- SlateGray
- slate grey
- SlateGrey
- light slate
- LightSlateGray
- light slate
- LightSlateGrey
- gray
- grey
- light grey
- LightGrey
- light gray
- LightGray
- midnight blue
- MidnightBlue
- navy
- navy blue
- NavyBlue
- cornflower blue
- CornflowerBlue
- dark slate
- DarkSlateBlue
- slate blue
- SlateBlue
- medium slate
- MediumSlateBlue
- light slate
- LightSlateBlue
- medium blue
- MediumBlue
- royal blue
- RoyalBlue
- blue
- dodger blue
- DodgerBlue
- deep sky
- DeepSkyBlue
- sky blue
- SkyBlue
- light sky
- LightSkyBlue
- steel blue
- SteelBlue
- light steel
- LightSteelBlue
- light blue
- LightBlue
- powder blue
- PowderBlue
- pale turquoise
- PaleTurquoise
- dark turquoise
- DarkTurquoise
- medium turquoise
- MediumTurquoise
- turquoise
- cyan
- light cyan
- LightCyan
- cadet blue
- CadetBlue
- medium aquamarine
- MediumAquamarine
- aquamarine
- dark green
- DarkGreen
- dark olive
- DarkOliveGreen
- dark sea
- DarkSeaGreen
- sea green
- SeaGreen
- medium sea
- MediumSeaGreen
- light sea
- LightSeaGreen
- pale green
- PaleGreen
- spring green
- SpringGreen
- lawn green
- LawnGreen
- green
- chartreuse
- medium spring
- MediumSpringGreen
- green yellow
- GreenYellow
- lime green
- LimeGreen
- yellow green
- YellowGreen
- forest green
- ForestGreen
- olive drab
- OliveDrab
- dark khaki
- DarkKhaki
- khaki
- pale goldenrod
- PaleGoldenrod
- light goldenrod
- LightGoldenrodYellow
- light yellow
- LightYellow
- yellow
- gold
- light goldenrod
- LightGoldenrod
- goldenrod
- dark goldenrod
- DarkGoldenrod
- rosy brown
- RosyBrown
- indian red
- IndianRed
- saddle brown
- SaddleBrown
- sienna
- peru
- burlywood
- beige
- wheat
- sandy brown
- SandyBrown
- tan
- chocolate
- firebrick
- brown
- dark salmon
- DarkSalmon
- salmon
- light salmon
- LightSalmon
- orange
- dark orange
- DarkOrange
- coral
- light coral
- LightCoral
- tomato
- orange red
- OrangeRed
- red
- hot pink
- HotPink
- deep pink
- DeepPink
- pink
- light pink
- LightPink
- pale violet
- PaleVioletRed
- maroon
- medium violet
- MediumVioletRed
- violet red
- VioletRed
- magenta
- violet
- plum
- orchid
- medium orchid
- MediumOrchid
- dark orchid
- DarkOrchid
- dark violet
- DarkViolet
- blue violet
- BlueViolet
- purple
- medium purple
- MediumPurple
- thistle
- snow1
- snow2
- snow3
- snow4
- seashell1
- seashell2
- seashell3
- seashell4
- AntiqueWhite1
- AntiqueWhite2
- AntiqueWhite3
- AntiqueWhite4
- bisque1
- bisque2
- bisque3
- bisque4
- PeachPuff1
- PeachPuff2
- PeachPuff3
- PeachPuff4
- NavajoWhite1
- NavajoWhite2
- NavajoWhite3
- NavajoWhite4
- LemonChiffon1
- LemonChiffon2
- LemonChiffon3
- LemonChiffon4
- cornsilk1
- cornsilk2
- cornsilk3
- cornsilk4
- ivory1
- ivory2
- ivory3
- ivory4
- honeydew1
- honeydew2
- honeydew3
- honeydew4
- LavenderBlush1
- LavenderBlush2
- LavenderBlush3
- LavenderBlush4
- MistyRose1
- MistyRose2
- MistyRose3
- MistyRose4
- azure1
- azure2
- azure3
- azure4
- SlateBlue1
- SlateBlue2
- SlateBlue3
- SlateBlue4
- RoyalBlue1
- RoyalBlue2
- RoyalBlue3
- RoyalBlue4
- blue1
- blue2
- blue3
- blue4
- DodgerBlue1
- DodgerBlue2
- DodgerBlue3
- DodgerBlue4
- SteelBlue1
- SteelBlue2
- SteelBlue3
- SteelBlue4
- DeepSkyBlue1
- DeepSkyBlue2
- DeepSkyBlue3
- DeepSkyBlue4
- SkyBlue1
- SkyBlue2
- SkyBlue3
- SkyBlue4
- LightSkyBlue1
- LightSkyBlue2
- LightSkyBlue3
- LightSkyBlue4
- SlateGray1
- SlateGray2
- SlateGray3
- SlateGray4
- LightSteelBlue1
- LightSteelBlue2
- LightSteelBlue3
- LightSteelBlue4
- LightBlue1
- LightBlue2
- LightBlue3
- LightBlue4
- LightCyan1
- LightCyan2
- LightCyan3
- LightCyan4
- PaleTurquoise1
- PaleTurquoise2
- PaleTurquoise3
- PaleTurquoise4
- CadetBlue1
- CadetBlue2
- CadetBlue3
- CadetBlue4
- turquoise1
- turquoise2
- turquoise3
- turquoise4
- cyan1
- cyan2
- cyan3
- cyan4
- DarkSlateGray1
- DarkSlateGray2
- DarkSlateGray3
- DarkSlateGray4
- aquamarine1
- aquamarine2
- aquamarine3
- aquamarine4
- DarkSeaGreen1
- DarkSeaGreen2
- DarkSeaGreen3
- DarkSeaGreen4
- SeaGreen1
- SeaGreen2
- SeaGreen3
- SeaGreen4
- PaleGreen1
- PaleGreen2
- PaleGreen3
- PaleGreen4
- SpringGreen1
- SpringGreen2
- SpringGreen3
- SpringGreen4
- green1
- green2
- green3
- green4
- chartreuse1
- chartreuse2
- chartreuse3
- chartreuse4
- OliveDrab1
- OliveDrab2
- OliveDrab3
- OliveDrab4
- DarkOliveGreen1
- DarkOliveGreen2
- DarkOliveGreen3
- DarkOliveGreen4
- khaki1
- khaki2
- khaki3
- khaki4
- LightGoldenrod1
- LightGoldenrod2
- LightGoldenrod3
- LightGoldenrod4
- LightYellow1
- LightYellow2
- LightYellow3
- LightYellow4
- yellow1
- yellow2
- yellow3
- yellow4
- gold1
- gold2
- gold3
- gold4
- goldenrod1
- goldenrod2
- goldenrod3
- goldenrod4
- DarkGoldenrod1
- DarkGoldenrod2
- DarkGoldenrod3
- DarkGoldenrod4
- RosyBrown1
- RosyBrown2
- RosyBrown3
- RosyBrown4
- IndianRed1
- IndianRed2
- IndianRed3
- IndianRed4
- sienna1
- sienna2
- sienna3
- sienna4
- burlywood1
- burlywood2
- burlywood3
- burlywood4
- wheat1
- wheat2
- wheat3
- wheat4
- tan1
- tan2
- tan3
- tan4
- chocolate1
- chocolate2
- chocolate3
- chocolate4
- firebrick1
- firebrick2
- firebrick3
- firebrick4
- brown1
- brown2
- brown3
- brown4
- salmon1
- salmon2
- salmon3
- salmon4
- LightSalmon1
- LightSalmon2
- LightSalmon3
- LightSalmon4
- orange1
- orange2
- orange3
- orange4
- DarkOrange1
- DarkOrange2
- DarkOrange3
- DarkOrange4
- coral1
- coral2
- coral3
- coral4
- tomato1
- tomato2
- tomato3
- tomato4
- OrangeRed1
- OrangeRed2
- OrangeRed3
- OrangeRed4
- red1
- red2
- red3
- red4
- DeepPink1
- DeepPink2
- DeepPink3
- DeepPink4
- HotPink1
- HotPink2
- HotPink3
- HotPink4
- pink1
- pink2
- pink3
- pink4
- LightPink1
- LightPink2
- LightPink3
- LightPink4
- PaleVioletRed1
- PaleVioletRed2
- PaleVioletRed3
- PaleVioletRed4
- maroon1
- maroon2
- maroon3
- maroon4
- VioletRed1
- VioletRed2
- VioletRed3
- VioletRed4
- magenta1
- magenta2
- magenta3
- magenta4
- orchid1
- orchid2
- orchid3
- orchid4
- plum1
- plum2
- plum3
- plum4
- MediumOrchid1
- MediumOrchid2
- MediumOrchid3
- MediumOrchid4
- DarkOrchid1
- DarkOrchid2
- DarkOrchid3
- DarkOrchid4
- purple1
- purple2
- purple3
- purple4
- MediumPurple1
- MediumPurple2
- MediumPurple3
- MediumPurple4
- thistle1
- thistle2
- thistle3
- thistle4
- gray0
- grey0
- gray1
- grey1
- gray2
- grey2
- gray3
- grey3
- gray4
- grey4
- gray5
- grey5
- gray6
- grey6
- gray7
- grey7
- gray8
- grey8
- gray9
- grey9
- gray10
- grey10
- gray11
- grey11
- gray12
- grey12
- gray13
- grey13
- gray14
- grey14
- gray15
- grey15
- gray16
- grey16
- gray17
- grey17
- gray18
- grey18
- gray19
- grey19
- gray20
- grey20
- gray21
- grey21
- gray22
- grey22
- gray23
- grey23
- gray24
- grey24
- gray25
- grey25
- gray26
- grey26
- gray27
- grey27
- gray28
- grey28
- gray29
- grey29
- gray30
- grey30
- gray31
- grey31
- gray32
- grey32
- gray33
- grey33
- gray34
- grey34
- gray35
- grey35
- gray36
- grey36
- gray37
- grey37
- gray38
- grey38
- gray39
- grey39
- gray40
- grey40
- gray41
- grey41
- gray42
- grey42
- gray43
- grey43
- gray44
- grey44
- gray45
- grey45
- gray46
- grey46
- gray47
- grey47
- gray48
- grey48
- gray49
- grey49
- gray50
- grey50
- gray51
- grey51
- gray52
- grey52
- gray53
- grey53
- gray54
- grey54
- gray55
- grey55
- gray56
- grey56
- gray57
- grey57
- gray58
- grey58
- gray59
- grey59
- gray60
- grey60
- gray61
- grey61
- gray62
- grey62
- gray63
- grey63
- gray64
- grey64
- gray65
- grey65
- gray66
- grey66
- gray67
- grey67
- gray68
- grey68
- gray69
- grey69
- gray70
- grey70
- gray71
- grey71
- gray72
- grey72
- gray73
- grey73
- gray74
- grey74
- gray75
- grey75
- gray76
- grey76
- gray77
- grey77
- gray78
- grey78
- gray79
- grey79
- gray80
- grey80
- gray81
- grey81
- gray82
- grey82
- gray83
- grey83
- gray84
- grey84
- gray85
- grey85
- gray86
- grey86
- gray87
- grey87
- gray88
- grey88
- gray89
- grey89
- gray90
- grey90
- gray91
- grey91
- gray92
- grey92
- gray93
- grey93
- gray94
- grey94
- gray95
- grey95
- gray96
- grey96
- gray97
- grey97
- gray98
- grey98
- gray99
- grey99
- gray100
- grey100"
- X }
- }
- }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/color_selector ||
- echo 'restore of xtpanel/examples/script/color_selector failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/color_selector'`"
- test 7975 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/color_selector: original size 7975, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/.bitmap_browser ==============
- if test -f 'xtpanel/examples/script/.bitmap_browser' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/.bitmap_browser (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/.bitmap_browser (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/.bitmap_browser' &&
- button={ label=DONE action=QUIT }
- message={ name=thebitmap label=" " height=200 width=200 }
- list={ label="click on files that are bitmaps" height=400 width=400
- X action="SET thebitmap bitmap $val"
- X itemlist={ list=`echo -n * ` separator=" " }
- }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/.bitmap_browser ||
- echo 'restore of xtpanel/examples/script/.bitmap_browser failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/.bitmap_browser'`"
- test 247 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/.bitmap_browser: original size 247, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/calculator ==============
- if test -f 'xtpanel/examples/script/calculator' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/calculator (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/calculator (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/calculator' &&
- button={ label=Quit action=QUIT }
- var={ name=calc value=" | bc -l " }
- var={ name=trigcon value="*3.14159265/180" }
- var={ name=buffer value="" }
- var={ name=todisp value="" }
- var={ name=tobuff value="" }
- hbox={ name=noborder
- vbox={ name=noborder
- vbox={
- message={ value="Display" }
- text={ name=display value="0" height=50 width=300 }
- }
- vbox={
- message={ value="Memory" }
- text={ name=mem value="0" height=50 width=300 }
- }
- }
- vbox={ name=noborder
- button={ label="Clear display" action="ASSIGN display 0" }
- button={ label="Clear memory " action="ASSIGN mem 0" }
- button={ label="Clear all " action="ASSIGN display 0"
- X action="ASSIGN buffer " action="ASSIGN mem 0"
- X action="ASSIGN todisp " action="ASSIGN tobuff " }
- choice={ label="Trig units" action="ASSIGN trigcon $val"
- X item={ label="DEG" value="*3.14159265/180" }
- X item={ label="RAD" value="" }
- }
- }
- }
- hbox={ name=noborder
- vbox={ name=noborder
- hbox={ name=noborder
- button={ label=" 7 "
- X action="ASSIGN todisp $(todisp)7"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 8 "
- X action="ASSIGN todisp $(todisp)8"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 9 "
- X action="ASSIGN todisp $(todisp)9"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- }
- hbox={ name=noborder
- button={ label=" 4 "
- X action="ASSIGN todisp $(todisp)4"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 5 "
- X action="ASSIGN todisp $(todisp)5"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 6 "
- X action="ASSIGN todisp $(todisp)6"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- }
- hbox={ name=noborder
- button={ label=" 1 "
- X action="ASSIGN todisp $(todisp)1"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 2 "
- X action="ASSIGN todisp $(todisp)2"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" 3 "
- X action="ASSIGN todisp $(todisp)3"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- }
- hbox={ name=noborder
- button={ label=" 0 "
- X action="ASSIGN todisp $(todisp)0"
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label=" . "
- X action="ASSIGN todisp $(todisp)."
- X action="ASSIGN display $(todisp)"
- X action="ASSIGN tobuff $(display)"
- }
- button={ label="+/-"
- X action="ASSIGN display `echo ""-$(display)"" | sed -e 's,--,,g' `"
- X action="ASSIGN tobuff $(display)"
- }
- }
- }
- vbox={ name=noborder
- button={ label=" + "
- X action="ASSIGN buffer $(buffer)$(tobuff)+" action="ASSIGN todisp " }
- button={ label=" - "
- X action="ASSIGN buffer $(buffer)$(tobuff)-" action="ASSIGN todisp " }
- button={ label=" * "
- X action="ASSIGN buffer $(buffer)$(tobuff)*" action="ASSIGN todisp " }
- button={ label=" / "
- X action="ASSIGN buffer $(buffer)$(tobuff)/" action="ASSIGN todisp " }
- button={ label=" = "
- X action="ASSIGN buffer $(buffer)$(tobuff)"
- X action="ASSIGN display `echo ""$(buffer)"" $calc `"
- X action="ASSIGN buffer "
- X action="ASSIGN tobuff $(display) "
- X action="ASSIGN todisp " }
- }
- vbox={ name=noborder
- hbox={ name=noborder
- button={ label="x^2"
- X action="ASSIGN display `echo ""$(display)^2"" $calc `"
- X action="ASSIGN tobuff $(display) "
- }
- button={ label="SQT"
- X action="ASSIGN display `echo ""sqrt($(display))"" $calc `"
- X action="ASSIGN tobuff $(display) "
- }
- button={ label="1/x"
- X action="ASSIGN display `echo ""1/$(display)"" $calc `"
- X action="ASSIGN tobuff $(display) "
- }
- button={ label="x^y"
- X action="ASSIGN buffer $(buffer)$(display)^" action="ASSIGN todisp "
- }
- }
- hbox={ name=noborder
- button={ label=" ( "
- X action="ASSIGN buffer $(buffer)(" action="ASSIGN todisp "
- X action="ASSIGN tobuff " }
- button={ label=" ) "
- X action="ASSIGN buffer $(buffer)$(tobuff))" action="ASSIGN todisp "
- X action="ASSIGN tobuff " }
- button={ label="e^x"
- X action="ASSIGN display `echo ""e($(display))"" $calc `"
- X action="ASSIGN tobuff $(display) " }
- button={ label=" ln" action="ASSIGN display `echo ""l($(display))"" $calc `"
- X action="ASSIGN tobuff $(display) " }
- }
- hbox={ name=noborder
- button={ label="sin"
- X action="ASSIGN display `echo ""s($(display)$(trigcon))"" $calc `"
- X action="ASSIGN tobuff $(display) " }
- button={ label="cos"
- X action="ASSIGN display `echo ""c($(display)$(trigcon))"" $calc `"
- X action="ASSIGN tobuff $(display) " }
- button={ label="tan"
- X action="ASSIGN display \
- X `echo ""s($(display)$(trigcon))/c($(display)$(trigcon))"" $calc `"
- X action="ASSIGN tobuff $(display) " }
- button={ label=" PI" action="ASSIGN display 3.14159265"
- X action="ASSIGN tobuff $(display) " }
- }
- hbox={ name=noborder
- var={ name=temp value="" }
- button={ label="STO" action="ASSIGN mem $display"
- X action="ASSIGN todisp " }
- button={ label="RCL" action="ASSIGN display $mem"
- X action="ASSIGN tobuff $(display) " }
- button={ label="SUM" action="ASSIGN mem `echo ""$mem + $display"" $calc `"
- X action="ASSIGN todisp " }
- button={ label="EXC"
- X action="ASSIGN temp $mem"
- X action="ASSIGN mem $display" action="ASSIGN display $temp"
- X action="ASSIGN todisp "
- X action="ASSIGN tobuff $(display) " }
- }
- }
- }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/calculator ||
- echo 'restore of xtpanel/examples/script/calculator failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/calculator'`"
- test 5191 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/calculator: original size 5191, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/toggle ==============
- if test -f 'xtpanel/examples/script/toggle' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/toggle (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/toggle (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/toggle' &&
- button={ label=QUIT action=QUIT }
- toggle={ label="toggle me" name=mytoggle value="the toggle is on"
- X action="ASSIGN mymessage $val"
- }
- message={ name=mymessage value=" " }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/toggle ||
- echo 'restore of xtpanel/examples/script/toggle failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/toggle'`"
- test 188 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/toggle: original size 188, current size' "$Wc_c"
- fi
- # ============= xtpanel/examples/script/bitmap_browser ==============
- if test -f 'xtpanel/examples/script/bitmap_browser' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/examples/script/bitmap_browser (File already exists)'
- else
- echo 'x - extracting xtpanel/examples/script/bitmap_browser (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/examples/script/bitmap_browser' &&
- X
- button={ label=QUIT action=QUIT }
- X
- message={ value="Enter name of directory containing bitmaps." }
- message={ value="This brings up a second panel where you can browse them." }
- vbox={ name=noborder
- text={ name=dir height=25 width=400 editType=edit
- X value="/usr/local/include/X11/bitmaps"
- }
- button={ label="Go"
- X action="cd $(dir); xtpanel -file examples/script/.bitmap_browser"
- }
- }
- SHAR_EOF
- chmod 0664 xtpanel/examples/script/bitmap_browser ||
- echo 'restore of xtpanel/examples/script/bitmap_browser failed'
- Wc_c="`wc -c < 'xtpanel/examples/script/bitmap_browser'`"
- test 383 -eq "$Wc_c" ||
- echo 'xtpanel/examples/script/bitmap_browser: original size 383, current size' "$Wc_c"
- fi
- true || echo 'restore of xtpanel/examples/Makefile failed'
- echo End of part 1, continue with part 2
- exit 0
- -----------------------------------------------------------------
- Steve Cole (steve@sep.stanford.edu, apple!sep!steve)
- Department of Geophysics, Stanford University, Stanford, CA 94305
-