2.1 Running the Demos
The McCLIM source distribution comes with a number of demos and
applications. They are intended to showcase specific CLIM features,
demonstrate programming techniques or provide useful tools.
These demos and applications are available in the Examples and
Apps subdirectories of the source tree's root directory.
Instructions for compiling, loading and running some of the demos are
included in the files with the McCLIM installation instructions for your
Common Lisp implementation. See for example the file INSTALL if you
use Allegro CL, INSTALL.CMU for CMUCL, INSTALL.OPENMCL for
OpenMCL, and so on.
Below is a complete list of the McCLIM demos and applications, sorted in
alphabetical order. Each entry provides a short description of what the
program does, with instructions for compiling and running it if not
mentioned in the general installation instructions.
- Apps/Listener
- CLIM-enabled Lisp listener. See the compilation and execution
instructions in Apps/Listener/README.
- Examples/address-book.lisp
- Simple address book. See McCLIM's installation instructions.
- Examples/calculator.lisp
- Simple desk calculator. See McCLIM's installation instructions.
- Examples/clim-fig.lisp
- Simple paint program. You can run it by evaluating this form at the
Lisp prompt:
(clim-demo::clim-fig)
- Examples/colorslider.lisp
- Interactive color editor. See McCLIM's installation instructions.
- Examples/demodemo.lisp
- Demonstrates different pane types. You can compile it by evaluating:
(compile-file "Examples/demodemo.lisp")
Then load it with:
(load "Examples/demodemo")
Finally, run it with:
(clim-demo::demodemo)
- Examples/goatee-test.lisp
- Text editor with Emacs-like key bindings. See McCLIM's installation
instructions.
- Examples/menutest.lisp
- Displays a window with a simple menu bar. See McCLIM's installation
instructions.
- Examples/postscript-test.lisp
- Displays text and graphics to a PostScript file. Run it with:
(clim-demo::postscript-test)
The resulting file ps-test.ps is generated in the current directory
and can be displayed by a PostScript viewer such as gv on Unix-like
systems.
- Examples/presentation-test.lisp
- Displays an interactive window in which you type numbers that are
successively added. When a number is expected as input, you can either
type it at the keyboard, or click on a previously entered number. Run it
with:
(clim:run-frame-top-level (clim:make-application-frame
'clim-demo::summation))
- Examples/sliderdemo.lisp
- Apparently a calculator demo (see above). Compile with:
(compile-file "Examples/sliderdemo.lisp")
Load with:
(load "Examples/sliderdemo")
Run with:
(clim-demo::slidertest)
- Examples/stream-test.lisp
- Interactive command processor that echoes its input. Run with:
(clim-demo::run-test)
The following programs are currently known not to work:
- Examples/fire.lisp
- Examples/gadget-test-kr.lisp
- Examples/gadget-test.lisp
- Examples/puzzle.lisp
- Examples/traffic-lights.lisp
- Examples/transformations-test.lisp