home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d8xx
/
d854
/
upcat.lha
/
Upcat
/
Upcat.doc
< prev
next >
Wrap
Text File
|
1993-03-16
|
17KB
|
462 lines
*****************************************************************
* *
* Upcat - Disk catalog program *
* *
* Version 1.0 *
* *
* 16 March 1993 *
* *
* Copyright © 1993 Frans Zuydwijk *
* *
*****************************************************************
Table of contents
1. Introduction
2. Distribution
3. Running Upcat
4. Screen layout
5. Project menu
6. Settings menu
7. Catalog menu
8. Display menu
9. Catalog file layout
10. Developing environment
11. Bug reports
12. History
1. Introduction
Upcat is a disk catalog program with the following features :
- Read file information from disks.
- Store it in a catalog in memory.
- Save/load catalogs to/from disk.
- Display catalog in several ways.
- Select files to be displayed.
- Print (selection of) catalog.
- 32 user definable categories.
- Add comment to files in catalog.
Upcat requires Release 2.04 or higher.
2. Distribution
Upcat is NOT Public Domain, but copyrighted freeware : it may be
distributed and used freely.
Upcat may not be sold, but inclusion in a PD-library is permitted as
long as only a SMALL fee is charged to cover the costs of copying and
distribution. The Fred Fish Library is the perfect example.
Program and documentation must be distributed together.
The files in the distribution are : Upcat, Upcat.info, Upcat.doc,
Upcat.doc.info, Example.cat, Example.cat.info.
3. Running Upcat
Upcat may be started from Shell or Workbench. When started from Shell
the name of a catalog may be given as argument. Starting from
Workbench can be done by clicking the Upcat icon, or clicking the icon
of an Upcat catalog, in which case the catalog will be loaded.
If no catalogname is supplied and a default catalog is defined in the
Settings menu, the default catalog will be loaded.
Upcat uses a 640 x 256 (PAL) or a 640 x 200 (NTSC) non-interlaced
screen.
Upcat will use your default system text font, provided it is 8 pixels
high and 8 pixels wide. If this font has a companion 9 pixels high and
10 pixels wide, this will be used for gadget texts etc. Default
Topaz-8 and Topaz-9 will be used.
Upcat is controlled by using the mouse to operate the gadgets and the
menus. Some keyboard equivalents may be used, as indicated on the
gadgets and in the menus.
All changes are performed in the catalog, which is currently in
memory, and are lost, if you quit Upcat or load another catalog
without saving the catalog first.
4. Screen layout
The screen consists of 3 areas :
4.1 The main display area.
Here you see the catalog records. Clicking the left mouse button on a
record will select it. Depending on the type of the selected record
(volume, directory or file), one or two menu items in the Catalog menu
will be enabled. Instead of selecting the menu item or using its key-
board equivalent, a second click on the selected record is effective
too, except for 'Delete Record'.
4.2 The title bar.
This shows you the catalog name and the number of volumes, directories
and (selected) files in the catalog. After the number of files you see
either '(A)' or '(S)', this indicates whether all or a selection of
the files are currently displayed.
Selecting the Window Close gadget in the upper left corner is the same
as selecting 'Quit Upcat' in the Project menu, but this has no effect
when a requester is displayed.
4.3 The scroll bar in the right border.
This shows which part of the currently displayed records is visible on
screen.
You can move through the records by operating the arrow gadgets at the
bottom of the scroll bar, by moving the knob of the scroll bar, or by
clicking above (screen up) or below (screen down) the knob.
Keyboard equivalents are : cursor up, cursor down, shift cursor up
(screen up), shift cursor down (screen down), Alt or Ctrl cursor up
(top of catalog), Alt or Ctrl cursor down (bottom of catalog).
5. Project menu
5.1 New
A new, empty catalog will be created in memory. If there is currently
a catalog in memory, which is changed and not saved, a requester will
pop up to ask you whether the catalog may be deleted or not.
5.2 Open
A catalog will be loaded from disk. By means of a file requester you
can select directory and catalog. If there is currently a catalog in
memory, which is changed and not saved, a requester will pop up to ask
you whether the catalog may be deleted or not.
5.3 Save
The catalog will be saved to disk. If the catalog has no name yet, you
will be asked for the directory and filename by means of a file
requester.
5.4 Save As
The catalog will be saved to disk in another directory and/or with
another filename. You must supply this information in a file
requester.
5.5 Print
Send the currently selected or all records to the printer (PRT:). This
is a rather simple print, no print formatting is done. All records,
which are currently displayed, will be sent to the printer in the
current display format.
5.6 Print As
Does the same as Print, but writes the records not to the printer, but
to a disk file. You must supply directory and filename in a file
requester.
5.7 About
Displays the About requester.
5.8 Quit Upcat
The current catalog is removed from memory and Upcat quits. If there
is currently a catalog in memory, which is changed and not saved, a
requester will pop up to ask you whether the catalog may be deleted or
not.
6. Settings menu
By means of the Settings menu you can set several options :
6.1 Input device.
Select the device from which the file information must be read. In the
submenu you see the available devices. Default 'df0:'.
6.2 Default directory/catalog.
Select the default directory where catalogs must be stored. If you
select a default catalog too, this catalog will be loaded when Upcat
is started.
6.3 Default display.
Select the default display type. This does not affect the current
display, use the Display menu for that.
6.4 Create icons.
If checkmarked, icons will be created for catalog files during save,
unless they already exist. If not checkmarked, existing icons will be
removed during save. Default ON.
6.5 Exclude .info.
If checkmarked, files with names ending with '.info' (icon files) will
be excluded from the catalog during a 'Insert Volume' or 'Update
Volume' operation. Default OFF.
6.6 Save Settings.
If you select this, the choices from the Settings menu will be saved
in a file 'Upcat.prefs'. You may choose the directory where this file
will be saved, either the directory where the program Upcat was loaded
from, or the directories 'ENV:Upcat' and 'ENVARC:Upcat'. These latter
directories contain all system preferences files too.
At startup, Upcat will look in the program directory first and then in
the 'ENV:Upcat' directory. If 'Upcat.prefs' is not found, the Upcat
defaults will be used.
7. Catalog menu
7.1 Show Vol/Dir
This item is usually disabled. It is enabled when the Display type is
'Volumes only' or 'Directories only' and you click on a record. This
record is highlighted then. Selecting this item or clicking a second
time will change the Display type to 'Hierarchy' and will display the
selected volume or directory.
7.2 File Info
This item is usually disabled. It is enabled when you click on a file
record, which is highlighted then. Clicking a second time or selecting
'File Info' brings up the File Information requester, which shows you
all available information about the file.
You can mark categories for the file by selecting category gadgets.
The comment field may be edited. Originally this contains the comment
from the file header on disk, buy you may change it.
In case a volume is updated, the existing comment and category
information of the files is preserved.
7.3 Insert Volume
The file information of the volume in the current Input Device will be
read and inserted in the catalog. Icon (.info) files will be excluded
if this is selected. If the volume is in the catalog already, you may
choose between 'Update' and 'Cancel'.
7.4 Update Volume
Same as Insert Volume, but if the volume is already present, the
information in the catalog will be updated with the new information
without asking you first.
Update means : delete records not existing in the new information,
insert records not existing in the old information, and replace old
records by new records with the same name, but keep the categories and
the comment of the old records.
7.5 Delete Record
This item is usually disabled. It is enabled when you click on a
record, which is highlighted then. Clicking a second time or selecting
'Delete Record' will bring up a requester asking you whether you want
to delete the volume or directory or file record(s) or not.
7.6 Categories
There are 32 user definable categories in each catalog. These
categories are saved in the catalog files.
Selecting the 'Categories' menuitem in the 'Catalog' menu will bring
up the Categories requester. Select and edit the 32 string gadgets to
add or change a category.
Selecting a string gadget will enable the 'Delete' and 'Swap' gadgets.
Swapping two categories only affects the physical place of the
categories in the requesters.
Deleting a category will delete all references to this category in all
records of the current catalog in memory.
Selecting the 'Load' gadget will bring up a file requester. Choose a
catalog and the categories information will be read from this catalog
and overwrite the current categories information in memory. In this
way you may use the same categories for more than one catalog.
8. Display menu
8.1 Hierarchy
Displays the records in the same hierarchical way as they were found
on disk. For each level one space is indented.
8.2 Volumes only
Displays only the volumes in the catalog. You can display the contents
of a volume by clicking it twice or clicking it once and selecting the
'Show Vol/Dir' item in the Catalog menu.
8.3 Directories only
Displays only the volumes and the directories in the catalog. You can
display the contents of a volume or directory by clicking it twice or
clicking it once and selecting the 'Show Vol/Dir' item in the Catalog
menu.
8.4 Files - Name sorted
Display the files only, sorted by name. If you select this and you
press a character key, the display jumps to the first filename, of
which the first character is equal to or higher than the selected
character.
8.5 Files - Date sorted
Display the files only, sorted by descending date and time.
8.5 Files - Size sorted
Display the files only, sorted by descending size.
8.6 Paths/Files
Display the files with the complete path. Empty volumes and
directories are displayed too.
8.7 File Selection
This brings up the file selection requester. Default all files are
selected for display.
You may set the following selection criteria (each criterium used will
restrict the selection further) :
- Name : substring which must occur in the file name.
You may use the special character '*' as starting or ending
character of the substring. In the middle of the substring it is
just an ordinary character.
If the substring ends with '*', the filename must start with the
substring e.g. 'Up*'. If the substring starts with '*', the file-
name must end with the substring e.g. '*.LZH'. If the substring is
'*', all filenames will be accepted.
- MinDate : The date of the selected files must be >= MinDate.
- MaxDate : The date of the selected files must be <= MaxDate.
- MinSize : The size of the selected files must be >= MinSize.
- MaxSize : The size of the selected files must be <= MaxSize.
- Comment : substring which must occur in the comment field.
Use of "*' is the same as for Name.
- Protect : select files with any combination of protect bits.
The protect bits are '-sparwed' (script, pure, archive, read,
write, executable, deletable). The position of these bits is
fixed.
Use the character to indicate that the protect bit must be set,
use '-' to indicate it must not be set, use '*' to indicate both
are accepted. For instance, '*s*****-' will select all script
files, which are not deletable.
- Categories : select files by categories.
You may select and checkmark the individual categories used for
the file selection.
You may select and checkmark one of the 'Or' and 'And' gadgets.
'Or' means that a file to be selected must be in one or more of
the selected categories. 'And' means that a file to be selected
must be in all of the selected categories.
Clicking the 'All' gadget will select all categories.
Clicking the 'None' gadget will deselect all categories.
Clicking the 'Include No Category' gadget will select all files,
which are in no category.
- Clicking the 'Select all files' gadget will set all gadgets in the
requester in such a way, that all files will be selected. This is
the default too.
If any files are selected, the menu item 'File Selection' will be
checkmarked and the titlebar will show '(S)' instead of '(A)'.
9. Catalog file layout
9.1 General layout of a catalog file :
- The first record is always 'Upcat Catalog'.
- The second record is always 'Categories'.
- Next there are 0-32 category records.
- The next record is always 'Records'.
- The remaining records are the file records.
- Records are always separated by the linefeed character (hex 0A).
9.2 Layout of a category record :
- Position number (0-31).
- /
- Category number (0-31).
- /
- Category name (max 15 characters).
9.3 Layout of a file record :
- Level number (0-255). Volumes are always at level 0.
- /
- Record type. 'V' = volume, 'D' = directory, 'F' = file.
- /
- Name (max 30 characters).
- /
- Size (0 for directories, free space in K's for volumes).
- /
- Date and time (12 characters YYMMDDHHMMSS).
- /
- Protect (max 2 hex characters).
- /
- Categories (max 8 hex characters).
- /
- Comment (max 79 characters).
10. Developing environment
Computer : A2000, 1 MB Chip RAM, 2 MB Fast RAM.
Harddisk : Supra WordSync Series II + Quantum 52 MB.
OS : 2.04
Compiler : SAS/C 6.2
11. Bug reports
Bug reports, comments etc. can be sent to:
Frans Zuydwijk
Konijnenweide 84
2727GH Zoetermeer
Nederland
12. History
- Version 1.0 : 16 March 1993
First release.