home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d8xx
/
d839
/
trashicon.lha
/
TrashIcon
/
TrashIcon.Doc
< prev
next >
Wrap
Text File
|
1993-03-13
|
6KB
|
139 lines
TrashIcon V1.2 © Mark McPherson, 26-Feb-93
--------------------------------------------
TrashIcon - A Workbench 2.04+ application icon to delete files.
DESCRIPTION
The workbench has a standard trashcan, but unfortunately, each disk
must have its own, and it cannot be 'Left Out'. TrashIcon basically
puts an icon at a (possibly user-defined) position on the workbench
screen, and deletes all files that are dragged onto it.
OPTIONS
The icon used for the appicon is just the program's icon, which can
of course be changed, if the user wants (which is quite likely - I'm
a Software Engineer, not an artist!)
The default options are taken from the icon's tooltypes. These are as
follows:
FORCE - If set, then deletion overides any protection flags
on the file, thus causing ALL files to be deleted.
RECURSIVE - If set, then if a directory is dragged to the icon,
it, and all its contents are deleted. If not set,
then a directory will only be deleted if it is empty.
CONFIRM - If set, then a requestor will pop up asking the user to
confirm the action of deleting files. It will display
the number of files and directories in a manner similar
to that of the workbench menu item 'Delete...'
FORMAT - If set, then is the path and filename of the SYSTEM
format program. If not supplied then looks for
SYS:System/Format.
XPOS=xxx - If set, then this is the x-coordinate that the appicon
will be set at when placed on the workbench screen. If
there is something else already there, or it is off the
boundaries of the screen, then it will be placed by
Workbench.
YPOS=xxx - Same as XPOS=xxx, but for the y-coordinate.
If the icon is double clicked on, then an options window will appear.
This gives the user the ability to overide the default flags in the
tooltypes. It also contains an 'About' requester. Please look at this -
after all, I did take the effort to put it there! To quit the program,
just click on the 'Quit' gadget.
FEATURES
Confirm
If this option is set then when the user drags one or more files/dirs to
the TrashIcon, an initial confirm requestor is brought up. This has three
options - OK, CONFIRM EACH, or CANCEL. OK will go ahead and delete
all the objects requested. CANCEL will cancel the operation, and CONFIRM
EACH will bring up a further requestor for each individual file. This
requestor has four options - YES, ALL, CANCEL, and NO. YES will delete
that file, and go on to the next. ALL will delete the rest of the files
originally specified, CANCEL will abort the operation from this point, and
NO will just skip that file and go on to the next.
Format
When a disk icon is dragged on to the TrashIcon, a format requestor is
used. If the user selects YES, then that disk is formatted with the same
name and DosType as the disk originally was. If the user wants more control
over the format, then they should use the format option from the workbench
menu!
FILES
TrashIcon - the program
TrashIcon.info - The program's icon file, including example tooltypes.
TrashIcon.Doc - This documentation file
Format - This program should be present for the format disk
facility to work.
HISTORY
V0.1 - Internal release. Inital program. No Options window.
V0.5 - Internal release. Added options window.
V0.6 - Public release. Handles XPOS,YPOS positioning.
V1.0 - Internal release. Added purge option for completely deleting a file.
V1.1 - Internal release. Made purge option even more secure! + bug fix.
V1.2 - This release. Added extra confirmation handling, and the format disk
option. Removed purge option due to it being found to be unreliable.
I will add this again if I find a good way of implementing it.
TESTING
This version has been tested under V37.175, and V39.106, on both
accelerated and unaccelerated machines. It actually worked on all of
them! It hasn't been tested with Enforcer or other such programs. If
there ARE any problems then please tell me!
TECHNICAL NOTES - PLEASE HELP ME!
While formatting, I'd like to be able to change to a busy pointer.
However, I have no idea of how to do this - I know there is a SetPointer
function, but I'd like to be able to use the system default busy pointer.
Again, if anybody can help then please send me some information.
AUTHOR
I am currently a student at the University of Kent at Canterbury,
where studying for a degree in Computer Science. This is my second
public release of one of my programs. The other being MmDir which
made multiple, nested, directories in one go. At the moment, as well
as continuing to try to get a good degree, I am putting all my effort
into this program - until I find something more interesting to work
on anyway!
I can be contacted on the Internet at "msm@ukc.ac.uk", and JANET at
"msm@uk.ac.ukc" (Note the subtle difference ;-). If you can, please send me
some E-Mail to say you use this program, along with comments on what else is
necessary. I got a fairly good response from the last release, but still keep
telling me you use my program, and what you want from it.
For others without access to E-Mail, I can be reached at:
54 Wrestwood Road
Bexhill-On-Sea
East Sussex
TN40 2LL
England
though it could take a couple of weeks to actually get to me.
DISTRIBUTION
All code is copyright (C) 1993 Mark McPherson. It is freely
distributable and can be copied so long as no charge is made. It
may not be modified, sold or included in any commercial distribution
without my written permission. I also ask that this documentation
file accompanies the main program. The author takes no responsibility
for any loss or damage that may arise from using this program.