home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d476
/
toolmanager
/
toolmanager.doc
< prev
next >
Wrap
Text File
|
1991-04-17
|
12KB
|
278 lines
Documentation for ToolManager 1.3 13.03.1991
NOTE to first time users: Please read the entire document!
NOTE to users of ToolManager 1.0-1.2: This version contains MANY changes and
enhancements, so please re-read the
entire document!
This program is freeware, but copyrighted by me. This means that you can copy
it freely as long as you don't ask any more money for it than a nominal fee for
copying. THIS APPLIES TO GERMAN PD DEALERS TOO!!! This program may be put on PD
disks, especially on Fred Fish's AmigaLibDisks. If you want to distribute this
program you should keep this document and the source code with it. Program,
document and source code must be distributed in their original unmodified form.
Of course you can use an archiver like LHarc to make it available to Mailboxes
and FTP sites. This program cannot be used for commercial purposes without
written permission from the author. The author can not be made responsible for
any damage which is caused by using this program.
This is program is freeware, so you don't have to spend a buck for it. But
this program has costed me a lot of time (and sweat) to create it (especially
the version 1.3), so the only thing that I demand for it is, that you sent me
a note if you are using ToolManager.
Send comments, suggestions or bug reports to:
Snail : Stefan Becker, Holsteinstrasse 9, 5100 Aachen, GERMANY
Domain: stefanb@cip-s01.informatik.rwth-aachen.de
Bang : ..mcvax!unido!rwthinf!cip-s01!stefanb
FIDO : 2:242/7.6
I. What is ToolManager?
With ToolManager you can add your own programs to the Tools menu of the 2.0
Workbench. The programs can now be started by selecting their entries in the
Tools menu. The user can select icons from the Workbench, which will be the
startup parameters for a tool.
BEWARE: This program makes heavely use of the new 2.0 functions, so its
completely useless to all people who are still forced to use 1.3 :-)
II. How to start ToolManager
ToolManager can be started from the CLI or the Workbench:
CLI: Run ToolManager [options] [<program 1>] ... [<program n>]
Options: '-n' Don't show the icon
'-f <name>' Read "name" as configuration file instead of
"S:ToolManager.config"
The name of program x will also be the name of its corresponding menu item.
All programs will be added as CLI tools.
NOTE: If you want to start ToolManager at boot time, you can add the
following line to your S:Startup-Sequence:
Run >NIL: ToolManager [parameters...]
NOTE: For a quick reminder of this options type: ToolManager ?
Workbench: <Click on ToolManager's icon>
[<Click on program 1's icon>] ...
[<Double click program n's icon>]
ToolTypes: 'SHOWICON=NO|YES' Don't show the icon
'INTERNALICON' Use the internal icon instead of the startup
icon
'CONFIG=<name>' Read "name" as configuration file instead of
"S:ToolManager.config"
If you selected a Tool icon, its name will also be the name of the menu
item. If you selected a Project icon, the icon name will be the name of the
menu entry. The default tool of this icon will be called if the menu item
is selected. All programs will be started as WB tools.
NOTE: If you want to start ToolManager at Workbench startup time, move its
icon into the Wbstartup drawer and add the ToolType 'DONOTWAIT' to
it. ToolManager uses the icon from which it was started as its icon,
if you don't set the 'INTERNALICON' ToolType.
After startup you will notice additional entries in the Workbench Tools menu
and a neat icon on the Workbench (if you don't disable it). To stop ToolManager
you can select the menu entry "Quit ToolManager" or send a break signal to his
process.
NOTE: You can't exit ToolManager if a Workbench tool is still running.
ToolManager will flash the screen if you try it.
III. The configuration file
After processing the startup parameters, ToolManager reads the configuration
file. It is normally called "S:ToolManager.config", but this can be overriden
by the CLI Parameter '-f' or the WB Parameter 'CONFIG'. The file consists of
lines which look like this:
<Keyword>:<Parameters>
ICON:<x>,<y>
Set the position of the program icon to (x,y)
CLI:<Menu entry name>[;<Real program name>]
Add a CLI tool. If only one name is given, it will be the name of the menu
entry and also of the program to be called for this entry. If two names are
given, the first will be the name of the menu entry and the second one will
be the name of the program to be called. You can add any command line
parameters after the program name.
NOTE: If the program name contains spaces (e.g. ram disk:prog) you MUST
enclose it with double quotes (e.g. "ram disk:prog")
WB:<Menu entry name>[;<Real program name>]
Add a WB tool. For the names apply the same rules as stated above.
NOTE: You MUST supply an absolute path name for WB tools, otherwise
ToolManager can't find the executable.
NOTE: It is not possible to supply command line parameters for a WB tool.
To create a dummy entry without function for "aesthetic" reasons, use the
following configuration line. Note that the trailing semicolon is mandatory.
CLI:<Dummy menu entry name>;
EXAMPLES:
ICON:200,10
CLI:Editor
CLI:Edit Text;Ed
CLI:Blanker off;DMouse -s0
WB:C:DME (not really useful)
WB:Edit Text;C:DME
For more examples please look into the supplied configuration file.
IV. How to use ToolManager
When ToolManager is active, you can see additional entries in the Workbench
Tools menu. To start a tool you select its entry. Easy, isn't it? You can also
select some icons on the Workbench to supply the tool with parameters.
ToolManager supports two different startup methods for tools:
CLI startup
The tool is started as a CLI process. The selected icons will be converted
to file names, which are then joined with the tool name to a CLI command
line. The system default stack size will be used to run the tool.
NOTE: There is a limitation of 256 characters for the resulting command
line.
Workbench startup
The tool is started as a Workbench process. If an icon exists for the tool,
ToolManager will read the ToolWindow definition and the stack size from it.
If no icon can be found, the ToolWindow will be empty and a default stack
size of 4096 Bytes is used. The selected icons will be directly passed to
the tool.
There are two special menu entries. The first one is "Quit ToolManager", which
causes ToolManager to quit if you select it. The second one is "Open TM Window",
which causes ToolManager to open its status window. You can also open this
window by double-clicking the program icon.
To add a new tool, you just drag a Tool (or Project) icon on ToolManager's icon
or on the status window and it will be added as a WB tool. If you start
ToolManager a second time, it will pass its startup parameters to the already
running ToolManager process. They will be added as WB tools if an icon exists
for them, otherwise as CLI tools.
The status window contains a list of all menu entries and allows you to
manipulate them. You can select a tool by clicking on its name in the list.
Remove Tool
Remove the selected icon.
Edit Tool Definition
A new window will open, which shows the actual definition of the selected
tool. It is displayed in the same format which is used in the configuration
file. You can now change the definition. If you press the return key, the
changes will be taken over by ToolManager. To cancel your action, click on
the close gadget of the window.
NOTE: The changed menu entry will be added to the END of the list. This
is because 2.0 provides no choice where to put the menu entry.
Save Configuration
A file requester will open, in which you can select the name of the
configuration save file. If you click on the OK gadget, ToolManager will
write its actual configuration on this file. Workbench tools will be
converted to absolute path names, so they can be found the next time you
read in the configuration file,
You can close the status window by clicking its close gadget. It will remember
its current screen position for the next time you open it.
V. Caveats
If you start a program as Workbench tool and it immediately crashes with a
GURU #87000004, then the startup code of this program contains a bug. This
happened to me as I tried to start programs which were compiled with DICE. I
have informed Matt Dillon and he told me that it will be fixed in the next
release.
The configuration files of version 1.0-1.2 will NOT be recognized by the new
version 1.3. Please re-read the corresponding chapter for the changes.
Now to some weird things, that are NOT bugs or 'undocumented features' of my
my program:
- The Workbench seems not to support multiple menu selects.
- The Workbench looses menu select events if a disk is inserted. So if you
insert a disk and select a tool at the same time, the tool will NOT be
started, because ToolManager didn't receive a menu event.
VI. How to compile ToolManager
This program was developed with DICE (nice job Matt!). You will need the
registered version, because I used the __chip keyword, but DICE is worth its
$50 anyway. Of course you need the 2.0 include files and the 2.0 amiga.lib.
VII. TODO
- Better looking internal icon (hey, I'm not a painter :-)
- "About" menu entry with a super MEGA demo, containing astonishing 2D & 3D
graphics and 16 Bit digitized stereo sound (Hi Juergen :-)
VIII. HISTORY
1.3: Release version (13.03.1991)
- Now supports different configuration files
- Format of the configuration file slightly changed
- Tool definitions can be changed at runtime
- Now supports CLI & Workbench startup method
- Selected icons are passed as parameters to the tools
- Now uses the startup icon as program icon if started from Workbench
- The position of the icon can now be supplied in the configuration file
- The program icon can now be disabled
- New menu entry "Show TM Window"
- Every new started ToolManager passes its startup parameters to the
already running ToolManager process
1.2: Release version (12.01.1991)
(First version to appear on a Fish disk: #442)
- Status window changed to a no-GZZ & simple refresh type
(this should save some bytes)
- Status window remembers its last position
- New status window gadget "Save Configuration": saves the actual tool
list in the configuration file
- Small bugs removed in the ListView gadget handling
- Name of the icon hard-wired to "ToolManager"
1.1 Release version (01.01.1991)
- Icons can be dropped on the status window
- Status window contains a list of all tool names
- Tools can be removed from the list
1.0 Release version (04.11.1990)
- Initial release
IX. THANKS TO
Martin Horneffer, Juergen Lueg, Georg Sassen, Brian Wright
and anyone I forgot to mention for their suggestions, beta testing, support,
flames.....
Stefan Becker