Commit of 3.99.1 version

This commit is contained in:
Erick Gallesio
2019-10-31 12:04:33 +01:00
parent 5f74a25a3c
commit 3c98caa84e
158 changed files with 10002 additions and 8279 deletions
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>S-scape: The STk Web Browser.</title>
</head>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif"><i>S-scape</i>: The STk Web Browser.</h1>
<font size=+4>
<b>S-scape</b> is a Web browser<P>
<ul>
<li> Entirely written in Scheme;<P>
<li> Accepts a subset of the HTML 2.0 norm (no <i>"forms"</i>)<P>
<li> Is used generally to access <b>STk</b> on line help:<p>
<ul>
<li><tt> <A expr=(help)> (help) </A></tt><p>
<li><tt> <A expr=(help "bell")>(help "bell")</A></tt>
</ul><p>
<li> Allows the definition of Scheme <i>"<A HREF="applet-en.html">applets</A>"</i><P>
<li> can browse <b>remote</b> pages (<i>e.g.</i>
<A HREF=http://kaolin.unice.fr/STk/>http://kaolin.unice.fr/STk/</A>)
</ul>
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 13:00:15 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 11:59:20 CEST 1998
<!-- hhmts end -->
</body>
</html>
+2 -2
View File
@@ -19,7 +19,7 @@
<li> Permet de d&eacute;finir des <i>"<A HREF="applet-fr.html">applets</A>"</i>
en Scheme<P>
<li> Permet la consultation de pages <b>distantes</b> (<i>e.g.</i>
<A HREF=http://kaolin.unice.fr/>http://kaolin.unice.fr/</A>)
<A HREF=http://kaolin.unice.fr/STk/>http://kaolin.unice.fr/STk/</A>)
</ul>
</font>
<hr>
@@ -28,7 +28,7 @@
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 13:00:15 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Mar 9 21:41:18 CET 1998
Last modified: Mon Apr 13 09:25:03 CEST 1998
<!-- hhmts end -->
</body>
</html>
+63
View File
@@ -0,0 +1,63 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Building Interfaces in STklos</title>
</head>
<body bgcolor=white>
<script language="STk">
(lambda (parent url)
(let ((dir (dirname (expand-file-name
((with-module URL url:filename) url)))))
(chdir dir)))
</script>
<h1><img src="Images/STk-tiny.gif">
AMIB: <font color=red>A</font>
<font color=red>M</font>ini
<font color=red>I</font>nterface
<font color=red>B</font>uilder</h1>
<font size=+4>
<center>
<a href="Images/amib.gif"><img src="Images/amib-tiny.gif"></a>
</center>
<ul>
</ul><p>
<I>Objective</I>: Building Graphical Interfaces interactively<P>
<ul>
<li> Written in STklos<P>
<li> Provides
<ul>
<li> Interactive building of GUI;
<li> Save/Restore of built interfaces.<P>
</ul>
<li> Uses the STklos Meta Object Protocol<P>
<li> Code
<ul>
<li> generic (adding a new widget just consists in adding a line in
the program)
<li> just a demo (less than <B>600 lines</B> of code!!)<p>
</ul>
<li> Launch a Demo of AMIB with
<ul>
<li> the non-installed version of STk
(<a expr=(system "test-stk -f amib.stklos&")><tt>test-stk -f amib.stklos&</tt></a>)
<li> the installed version of STk
(<a expr=(system "stk -f amib.stklos &")><tt>stk -f amib.stklos&</tt></a>)
</ul>
</ul>
</font>
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Tue Mar 10 17:40:16 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 12:00:21 CEST 1998
<!-- hhmts end -->
</body>
</html>
+1 -1
View File
@@ -57,7 +57,7 @@
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Tue Mar 10 17:40:16 CET 1998 -->
<!-- hhmts start -->
Last modified: Tue Mar 10 18:41:48 CET 1998
Last modified: Mon Apr 13 09:58:25 CEST 1998
<!-- hhmts end -->
</body>
</html>
+1 -1
View File
@@ -10,7 +10,7 @@
;;;; permission of the copyright holder.
;;;; This software is provided ``as is'' without express or implied warranty.
;;;;
;;;; $Id: animate.stk 1.1 Tue, 10 Mar 1998 21:43:37 +0100 eg $
;;;; $Id: animate.stk 1.1 Tue, 10 Mar 1998 20:43:37 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 9-Mar-1998 18:51
+70
View File
@@ -0,0 +1,70 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Applets in STk</title>
</head>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif">Applets in STk</h1>
<p>
<script language="STk">
(lambda (parent url)
(let ((dir (dirname (expand-file-name
((with-module URL url:filename) url)))))
(load (string-append dir "/animate.stk"))))
</script>
<font size=+4>
<b>S-scape</b> allows the insertion of STk-code in a HTML page.
<P> Examples:
<ul>
<li> Animation:
<script language="STk">
(lambda (parent url)
(let* ((dir (dirname (expand-file-name
((with-module URL url:filename) url))))
(img (make-animation (string-append dir "/Images/mosaic*")
parent 100)))
(set! *img* img)
(pack img :expand #t :fill "both")))
</script>
<p>
<li> Piece of embedded interface:
<script language="STk">
(lambda (parent url)
(let ((w (scale (format #f "~A.scale" (widget-name parent))
:label "delay between frames (ms)" :orient "hor"
:to 300 :length 250))
(b (button (format #f "~A.butt" (widget-name parent))
:text "Stop animation" :foreground "red")))
(w 'set 100)
(tk-set! w :command (lambda (x)
(change-animation-delay *img* (w 'get))))
(tk-set! b :command (lambda ()
(change-animation-delay *img* -1)))
(pack w b :expand #t :fill "both")))
</script>
<p>
<li> Embedded application:
<script language="STk">
(lambda (parent url)
(let ((dir (dirname (expand-file-name
((with-module URL url:filename) url)))))
(load (string-append dir "/puzzle.stk"))
(display-puzzle parent)))
</script>
</ul>
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 13:16:50 CET 1998 -->
<!-- hhmts start -->
Last modified: Tue Mar 10 21:37:14 CET 1998
<!-- hhmts end -->
</body>
</html>
+69
View File
@@ -0,0 +1,69 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Composite Widgets</title>
</head>
<body bgcolor="white">
<script language="STk">
(lambda (parent url)
(let ((dir (dirname (expand-file-name
((with-module URL url:filename) url)))))
(chdir dir)))
</script>
<h1><img src="Images/STk-tiny.gif">Composite Widgets</h1>
<font size=+4>
A composite widget is made by assembling several widgets (simple
or even composite widgets):
</font>
<pre>
(define le (make &lt;Labeled-entry&gt; :value 50 :title "Valeur:"))
</pre>
<font size=+4>
defines <tt>le</tt> as an instance of the <tt>&lt;Labeled-entry&gt;</tt>
class. This object, on a screen, gives:
<p>
<center>
<IMG SRC="Images/compo-all.gif"><P>
</center>
<pre>
</pre>
In fact, this widget is composed if three Tk basic widgets: a
<i>frame</i>, a <i>label</i> an an <i>entry</i>:
<pre>
</pre>
<center>
<IMG SRC=Images/frame.gif> + <IMG SRC=Images/label.gif> + <IMG SRC=Images/entry.gif><P>
</center>
<pre>
</pre>
<ul>
<li> A demonstration of some composite widgets can be launched from here with:
<ul>
<li> the non-installed version of STk
(<a expr=(system "test-stk -f stklos-widgets.stklos&")><tt>test-stk</tt></a>)
<li> the installed version of STk
(<a expr=(system "stk -f stklos-widgets.stklos &")><tt>stk</tt></a>)<p>
</ul>
<li> The complete <a href="Lentry.stklos">code</a> of the <tt>&lt;Labeled-entry&gt;</tt> class is approximatively 60 lines.
</ul>
</font>
<hr>
<A HREF="main-fr.html"><img src="Images/backward.gif" align=middle> Retour</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Tue Mar 10 18:42:29 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 12:08:18 CEST 1998
<!-- hhmts end -->
</body>
</html>
+27 -5
View File
@@ -4,15 +4,27 @@
<title>Envdraw</title>
</head>
<body>
<h1>Envdraw</h1>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif"> Envdraw</h1>
<font size=+4>
<center>
<img src="Images/envdraw.gif">
</center>
<pre>
</pre>
EnvDraw is a environment diagramming package which draws environment
diagrams as taught in Abelson and Sussman's _Structure and
Interpretation of Computer Languages_. It was written as an
diagrams as taught in <i>Abelson and Sussman's</i> <b>Structure and
Interpretation of Computer Languages</b>.
<p>
It was written as an
instructional tool for the CS61A course at the University of
California at Berkeley. The environment diagrammer is a metacircular
California at Berkeley.
<p>
The environment diagrammer is a metacircular
evaluator which draws procedures, environments, and box and pointer
diagrams along with all the accompanying symbols and mutation. It
includes a box and pointer diagrammer which handles circular list
@@ -20,6 +32,15 @@ structures, cons cell mutation, and also will watch for modification
of any symbols known to be pointing to drawn cells.
<p>
Envdraw can be downloaded from the following URL:
<a href=http://kaolin.unice.fr/Contribs">http://kaolin.unice.fr/STk/Contribs</a>
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<
@@ -28,6 +49,7 @@ of any symbols known to be pointing to drawn cells.
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Tue Mar 10 19:29:32 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 12:15:49 CEST 1998
<!-- hhmts end -->
</body>
</html>
+3 -3
View File
@@ -24,7 +24,7 @@ d'environnement tels qu'il sont pr
<p>
Cet outil a été écrit comme un outil pédagogique pour le cours
<b>CS61A</b> de l'Université de Berkeley (Californie).
<p>
Envdraw est en fait un interprète méta-circulaire capable de
dessiner des procedures, des environnement ainsi que des listes sous forme
de boîtes (les listes circulaire sont gérées)
@@ -33,7 +33,7 @@ modifications apport
<p>
Envdraw peut être récupéré à l'URL suivante:
<a href=http://kaolin.unice.fr/Contribs">http://kaolin.unice.fr/Contribs</a>
<a href=http://kaolin.unice.fr/Contribs">http://kaolin.unice.fr/STk/Contribs</a>
</font>
<hr>
<A HREF="main-fr.html"><img src="Images/backward.gif" align=middle> Retour</A>
@@ -41,7 +41,7 @@ Envdraw peut
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Tue Mar 10 19:29:32 CET 1998 -->
<!-- hhmts start -->
Last modified: Tue Mar 10 21:24:50 CET 1998
Last modified: Mon Apr 13 12:11:34 CEST 1998
<!-- hhmts end -->
</body>
</html>
+34
View File
@@ -0,0 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>STk/STklos Introduction</title>
</head>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif">STk/STklos Introduction</h1>
<p>
<font size=+4>
<B>STk</B> is a Scheme interpreter which<p>
<ul>
<li>is able to access the Tk graphical toolkit<p>
<li>eases the constrution of GUI<p>
</ul>
<b>STklos</b> is the Object extension of STk<p>
<ul>
<li> gives access to the Tk toolit as a hierarchy of objets<p>
<li> eases the Tk toolkit programming<p>
</ul>
A simple <A HREF=simple-en.html>example</A> written in STklos
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 12:19:35 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 12:16:54 CEST 1998
<!-- hhmts end -->
</body>
</html>
+30
View File
@@ -0,0 +1,30 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Presentation of STk</title>
</head>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif">Presentation of STk</h1>
<font size=+4>
<ul>
<li> <A HREF=intro-en.html>Introduction</A><P>
<li> Applications written in STk:<p>
<ul>
<li> Browser Web: <a href="S-scape-en.html">S-scape</a><P>
<li> Interface Builder: <A HREF=amib-en.html>
AMIB</A><P>
<li> Visualization of Environments in Scheme:
<A HREF=envdraw-en.html>Envdraw</A><P>
</ul>
<li> Definition of <A HREF=compo-en.html>composite</A> widgets
</ul>
</font>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 12:11:25 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 09:57:17 CEST 1998
<!-- hhmts end -->
</body>
</html>
+1 -1
View File
@@ -10,7 +10,7 @@
;;;; permission of the copyright holder.
;;;; This software is provided ``as is'' without express or implied warranty.
;;;;
;;;; $Id: puzzle.stk 1.1 Tue, 10 Mar 1998 21:43:37 +0100 eg $
;;;; $Id: puzzle.stk 1.1 Tue, 10 Mar 1998 20:43:37 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 9-Mar-1998 21:11
+39
View File
@@ -0,0 +1,39 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>STklos Example</title>
</head>
<body bgcolor=white>
<h1><img src="Images/STk-tiny.gif">STklos Example</h1>
<font size=+6>
Launch an <b>xterm</b> to test this <i>program</i> with
<ul>
<li> the non-installed version of STk
(<a expr=(system "xterm -e test-stk &")>test-stk</a>)
<li> the installed version of STk
(<a expr=(system "xterm -e stk &")>stk</a>)
</ul>
</font>
<pre>
(require "Tk-classes")
(define l (make &lt;Button&gt;
:text "Hello, world"
:font "10x20"
:command (lambda () (exit 0))))
(pack l)
</pre>
<font size=+6>
<b>Cut</b> the 3 expressions above and <b>Paste</b> them in the xterm
window as soon as it appears.
</font>
<hr>
<A HREF="main-en.html"><img src="Images/backward.gif" align=middle> Top</A>
<hr>
<address><a href="mailto:eg@unice.fr">Erick Gallesio</a></address>
<!-- Created: Mon Mar 9 12:30:47 CET 1998 -->
<!-- hhmts start -->
Last modified: Mon Apr 13 10:13:04 CEST 1998
<!-- hhmts end -->
</body>
</html>
Regular → Executable
+11 -3
View File
@@ -4,22 +4,30 @@
include ../config.make
DEMODIR=$(libdir)/demos
DEMODIR=$(libdir)/Demos
what:
@echo "Type make install to install demos"
install:
-if [ ! -d $(DEMODIR) ] ; then mkdir -p $(DEMODIR); fi
for i in *.stk *.stklos Widget/*.stklos ; \
chmod 0755 $(DEMODIR)
for i in *.stk *.stklos Widget/*.stklos *.html; \
do \
j=`basename $$i`; \
sed -e 's=/usr/local/lib/stk=$(libdir)=' \
-e 's=/usr/local/bin=$(bindir)=' $$i > $(DEMODIR)/$$j;\
done
for i in *.stk *.stklos ; \
for i in *.stk *.stklos *.html; \
do \
chmod 0755 $(DEMODIR)/`basename $$i`; \
done
mkdir $(DEMODIR)/Html-Demos; chmod 0755 $(DEMODIR)/Html-Demos
cp Html-Demos/*.html $(DEMODIR)/Html-Demos
chmod 0644 $(DEMODIR)/Html-Demos/*.html
mkdir $(DEMODIR)/Html-Demos/Images; chmod 0755 $(DEMODIR)/Html-Demos/Images
cp Html-Demos/Images/* $(DEMODIR)/Html-Demos/Images
chmod 0644 $(DEMODIR)/Html-Demos/Images/*
(cd $(DEMODIR)/Html-Demos; ln -s ../amib.stklos ../stklos-widgets .)
install.libs:
+1 -1
View File
@@ -8,7 +8,7 @@
;;;; double-clicking.
;;;; This is a new version of the demo which can be run before STk is installed
;;;;
;;;; $Id: browse.stk 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
;;;; $Id: browse.stk 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 3-Aug-1993 17:33
+1 -1
View File
@@ -7,7 +7,7 @@
;;;; directory and allows you to open files or subdirectories by
;;;; double-clicking.
;;;;
;;;; $Id: browse.stklos 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
;;;; $Id: browse.stklos 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 3-Aug-1993 17:33
+1 -1
View File
@@ -13,7 +13,7 @@
;;;; permission of the copyright holder.
;;;; This software is provided ``as is'' without express or implied warranty.
;;;;
;;;; $Id: calc.stklos 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
;;;; $Id: calc.stklos 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 6-Apr-1995 18:11
+1 -1
View File
@@ -16,7 +16,7 @@
;;;; This software is a derivative work of other copyrighted softwares; the
;;;; copyright notices of these softwares are placed in the file COPYRIGHTS
;;;;
;;;; $Id: filebox.stklos 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
;;;; $Id: filebox.stklos 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@kaolin.unice.fr]
;;;; Creation date: 12-Jun-1994 11:24
+1 -1
View File
@@ -13,7 +13,7 @@
;;;; permission of the copyright holder.
;;;; This software is provided ``as is'' without express or implied warranty.
;;;;
;;;; $Id: term.stk 1.2 Mon, 16 Feb 1998 08:28:39 +0100 eg $
;;;; $Id: term.stk 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 7-Oct-1995 10:39