home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
z
/
zapconfig
/
!ZapConfig
/
!Help
< prev
next >
Wrap
Text File
|
1996-12-18
|
40KB
|
793 lines
> !ZapConfig
> Allow configuration of Zap (by Dominic Symes)
> © Copyright James Aylett 1996
> Version 1.21
Copyright
---------
ZapConfig is copyright (c) James Aylett. It may not be distributed without
the express and written permission of the author, except that it may be
distributed along with Zap under the distribution conditions as laid down by
Dominic in the standard (public release) Zap distribution. Zap is copyright
(c) Dominic Symes. Any such distribution must contain the entire contents of
the !ZapConfig directory, unaltered in any way.
ZapSetup is copyright (c) Matthew Wilcox.
ZapConfig version 1.21 requires Zap version 1.30 or later, and RiscOS 3.10 or
later, to run. It has been tested up to Zap 1.35, and should work with
subsequent versions, barring major changes to the format of the configuration
files.
ZapConfig was written using DeskLib, the FreeWare C library for RiscOS.
### READ THE DISCLAIMER (NEAR THE BOTTOM) BEFORE IT'S TOO LATE ###
### I cannot be held responsible for any loss of your nice setup ###
### It's also a good idea to read the known bugs section ###
Introduction
------------
Zap is very flexible. In many ways too flexible. Too big, too far, too deep,
and much too flexible. More than seventeen¹ innocent users have been put off
by the automatic comment from experienced Zappers, 'Oh, just reconfigure it
if you don't like that'. The next question in the conversation is always
'How?'. Up till now everyone has had to either hack their way through Zap's
Keys file, and use the Options menu, or swap to an alternative base set by
using ZapSetup. This is still far too complex, and so ZapConfig was finally
started properly.
¹ This may be wrong.
Use
---
Note that I've assumed throughout here that you are familiar with RiscOS and
the way RiscOS programs work. I mean, you're trying to configure _Zap_,
aren't you? :-)
One thing before you start: Zap can cope with no !Config file in its main
directory, but ZapConfig can't currently, so before you run ZapConfig (which
will give an error but _not_ leave gracefully - and it will be left
containing whatever data was in memory, so saving could result in very nasty
things happening), save Zap's !Config file by clicking Menu on Zap's iconbar
icon, moving right from Options and selecting Save options (at the top). This
will keep ZapConfig happy. Note that you must not distribute Zap in this
state; when you distribute Zap you must do it with no !Config file in Zap's
main directory, and with the Standard options set selected.
Loading ZapConfig in the usual way, you click on the iconbar icon to get the
main configuration window. This actually contains very little by way of
configuration, but presents a pair of sections. The top bit contains ten
icons, and allows you access to the actual configuration. Go ahead, click on
them.
The bottom part of the window allows you to specify which configuration set
and which template set Zap uses. The configuration set shown is also the one
you're currently editing using ZapConfig. This uses the configuration sets as
supplied with Zap 1.30 or later, in the style of ZapSetup. Click on the menu
icon (at the far right) to get a list; Standard refers to the standard set
inside the main directory; these are the ones that _must_not_be_altered_ in
copies of Zap you pass on to other people. Down from that will be a list
containing, most likely: Default, MJEbourne, MRWilcox and Salt. The last
three are written by 3rd party authors (Martin Ebourne has written various
add-on modes to Zap, Matthew Wilcox wrote ZapSetup, and Darren Salt wrote a
module adding various commands to Zap). The Default one is not to be confused
with Standard; Default is the best one to edit for your own use.
It is also possible to create new sets, using the item at the bottom of the
menu and typing in the name you want.
Note: if a particular file (Keys, !Config, whatever) doesn't already exist
inside the option set you select then the file loaded for editing will be
from the Standard set supplied inside Zap. However when you save your
changes, these will be saved as part of the option set.
You can change between template sets in the same way, except that you can't
create new ones. ZapConfig will list all template sets available (in
<Zap$Dir>.Templates), up to a maximum of 12. Currently nine template sets are
distributed with Zap (but you probably want to get rid of mine because it's
horrible :-).
To save the configuration and template sets shown - so that Zap will use them
next time it starts up - click on the Save button at the bottom right of the
window. Note that exiting ZapConfig without saving does not prompt for
confirmation.
Configuration Part 1 - Key bindings
-----------------------------------
It is advisable to read Sections A.1, A.2 of the Zap help file at this point,
since they explain key bindings. However you may ignore the bits which talk
specifically about the Keys file - just read the bits which explain how the
command format for each key binding works, and what key bindings are in the
first place.
Clicking on the 'Edit key bindings' button will open a dazzling window
representing your keyboard. If you have a RiscPC then this window will be
slightly different to if not, since the RPC uses a standard PC-style keyboard
layout, whereas older machines use a modified keyboard.
The window is split in two; the top displays the current key binding you are
editing, and the bottom displays the keyboard. Clicking on a 'key' on the
keyboard will select that key as the one to edit. This is then displayed in
the far left icon at the top. To the right of this are two option buttons,
showing whether you are editing the shifted and/or control-modified version
of the key (in that order - !FinalLook for RiscOS 3.1 will result in the
shifted icon being somewhat obscure because the available fonts for RiscOS
3.1 don't contain a suitable shift character). At the far right is the actual
action performed by this keypress; the command bound to the keypress.
Clicking on the shifted and control-modified icons will toggle them on and
off, and any alteration in the keypress being editing will be reflected in
the action icon, which is editable to allow you to change it. Choosing
another keypress _temporarily_ saves the key binding you have altered; the
changes aren't saved until you close the window.
ZapConfig now deals with the full *&xxx command used in Zap's standard
keybinding for the keypad numbers (it drops the key bindings through to
keymap 0, with the base of the range starting at &xxx. Omitting the &xxx -
having just the command '*' - drops through to keymap 0 with no renumbering,
as used in the Emacs keymaps, 1).
Note that the keys ',' '.' and '/', plus some others, don't actually do
anything in Zap when used with control or shift and control. ZapConfig deals
with this in a slightly upsetting way due to the way it's coded; the control
switch has no effect on these keys, so for instance it treats shift+ctrl+'.'
the same as shift+'.' = '>'.
Configuration Part 2 - Window Display
-------------------------------------
Clicking on the 'Window display' button will open a window allowing you to
set all sorts of groovy things associated with fine-tuning Zap's display. It
is divided into three parts.
In the top left you can configure Zap's treatement of anti-aliased fonts
(character reduction refers to how many pixels it strips off each character
when displaying), and the default font and size to use.
In the bottom left you can configure Zap's default bitmap fonts, both the
low-res and hi-res versions.
On the right you can set all sorts of things associated with Zap's window
spacing. End of file zap is the number of lines Zap adds to the end of a
window so that you're not typing right at the window extent. Cursor indent is
how close you can get to the edge of a window before Zap will start scrolling
it. Left margin doesn't work, but right margin does and is in OS coordinates.
Auto-width gives the upper and lower bounds for the auto-width width (using
the auto-width option :-). Margin is in characters.
Right down the bottom you can set Zap's default redraw s