home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_2.iso
/
files
/
712b.lha
/
Struct-Saver_v1.20
/
Struct-Saver.doc.pp
/
Struct-Saver.doc
Wrap
Text File
|
1992-12-28
|
5KB
|
131 lines
Struct-Saver 1.20
*****************
(sorry for this nice name, I had no better idea yet)
Documentation by Thies Wellpott
(excuse my bad English, please)
1. Copyright
************
Struct-Saver is FreeWare (c) 1992 Thies Wellpott. You may copy it for free
provided that
- no profit is made with it
- Struct-Saver is not included with commercial software without
written agreement from the owner of the copyright
- Struct-Saver is distributed with this documentation file,
"Struct-Saver.doc" and both files are unmodified
The source code is for personal use only. It need not to be distributed
along with the program, but if it is the whole source code must be kept
with it.
1.1. Warrenty
*************
YOU USE THIS PROGRAM COMPLETELY ON YOUR OWN RISK! If you destroy any file,
your computer, your car or even the whole universe or any part of it while
using it, do not blame me, it is not my fault!
2. Introduction
***************
Imagine the following situation:
You own OS 2.0 and have written a program using gadtools` great menu and
gadget tools. The program is nice, useful and you think it is worth running
under Kickstart 1.2/1.3, too. You check the things that must be changed and
suddenly your eyes see the menu definitions. Argh! Kickstart 1.2/1.3
requires the whole menu structure defined byte by byte, a nice work for
your holidays.
Here comes the trick: YOU own OS 2.0 and gadtools builds up the whole menu
definition in your memory! Start your program and start Struct-Saver, enter
the filename, select your options and then press "Menus". Activate your
program window while Struct-Saver counts down its timer. Wait a few seconds
and you have a complete menu structure definition you may use with
Kickstart 1.2/1.3.
Until now the source code is available only for C-programmers. Another
problem are the gadgets. Gadtools uses the Intuition boopsi. You get the
gadget structures but they are incomplete. I realized this after having
coded the gadget-structure-save routines and I do not want to throw them
away.
3. Usage
********
Struct-Saver is runnable from Workbewnch and from CLI/Shell and requires
OS 2.0 (because it is for OS 2.0 users/programmers). If Struct-Saver cannot
load the file "S:Struct-Saver.config" the screen beeps. Then a window
opens.
Short description of the mega big menu:
"Save configuration" saves the current config. (wait time, line length,
options, window position) to "S:Struct-Saver.config".
"About" displayes program information.
"Quit" quits.
Now have a closer look at the gadgets:
"Filename" sets the name of your source-code filename (the gadget is a
string gadget, perhaps you missed the arrows? :-) ).
"Wait time" sets the countdown time.
"Line len" sets the maximum length of one line of the source code. You can
format your source a bit with this.
"use defines" uses the define-names (JAM1, BOOLGADGET, etc.) instead of
hexadecimal or decimal numbers. The 1.2/1.3 defines are used, because the
source code is for 1.2/1.3 !
"expanded" formats the source code for better legibility. Between the
structures there is a blank line and matching values have their own line.
"Gadgets" and "Menus" are the action gadgets. If you click on either the
title bar counts down a timer from "Wait time" to zero. Then the gadgets or
menus of the CURRENTLY ACTIVE WINDOW will be saved. During the saving the
Intuition base is locked (you cannot move your mouse pointer) to prevent
changes from the menu or the gadgets.
4. Tutorial
***********
1. Start Struct-Saver
2. Set the wait time to 2 seconds
3. Enter the name "ram:testsrc.00" as filename
4. Disable both options (no checkmark visable)
5. Click "Menus", wait until the title bar displays "Saving done." You
have saved your first source code with Struct-Saver. Congratulations!
6. Enter the name "ram:testsrc.10"
7. enable "use defines"
8. repeat point 5.
9. Enter the name "ram:testsrc.01"
10. disable "use defines", enable "expanded"
11. repeat point 5.
12. Enter the name "ram:testsrc.11"
17. enable both options
14. repeat point 5.
Compare the four source codes to realize the differences. (Note: the source
code defines the menu of Struct-Saver, perhaps you noticed.)
Send bug reports, hints, and ideas to (sorry, no e-mail available):
Thies Wellpott
Moorhauser Weg 14
2948 Schortens 1
Germany