jsiteinit.tcl

Introduction

The jsiteinit.tcl library is distributed as part of the jstools package. It consists of a procedure, ::jstools::site_init, that can be edited by the local installer to perform site-specific configuration, such as providing the names of printers or overriding user preferences or application defaults.

This document describes jsiteinit.tcl version 2001.02.10.

Usage

Accessing the Library


The ::jstools::site_init procedure is automatically called by ::jstools::jstools_init, so you should not need to call it directly in your code. (You should, of course, call ::jstools::jstools_init early on in your application.)

By default, ::jstools::site_init doesn't do anything. If you want it to, you should edit the file pkg/jsiteinit.tcl in the jstools library directory. You should uncomment and modify lines in the body of the ::jstools::site_init procedure.

Credits and Copyright

Author

Jay Sekora
js@aq.org
http://www.aq.org/~js/

Copyright

The library is copyright © 1992-2001 by Jay Sekora, but may be freely redistributed under the conditions at the top of the file.

Overview

Procedure

::jstools::jstools_init - common initialisation for jstools applications and libraries

::jstools::site_init

Usage

::jstools::site_init [app]

Argument

app - name of the current application

Description

By default, this procedure does nothing. You can edit it, as described above under Usage, to customize it for your site. Currently, the main thing it's used for is to provide a list of the local printer names, for use in the print panel. Comments in the body of the procedure should explain what changes you can make.