home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GWINDOWS
/
lfmaker.lzh
/
readme
< prev
Wrap
Text File
|
1996-04-13
|
6KB
|
155 lines
Lfmaker - Copyright 1996 by Stephen Carville
Creates and edits Application Information Files for G-Windows
----------------------------------------------------
This program requires G-Windows 3.0 and will not
work with earlier version of G-Windows.
----------------------------------------------------
This archive should contain the following files:
readme - this file
Lfmaker - executable
aif_recognizer - a text file recognizer subroutine module
AIF_Sample - sample Application Information File.
aif.c - Ultra-C source code for aif_recognizer
aif_icons - source code definitions for the icons
This program will create and edit small text files to launch applications
from anywhere in the G-Windows directory structure. It is a very simple
program to use and, though it doesn't add any new abilities to G-Windows,
it does make some of the Desktop capabilities much easier to take advantage
of.
The file "aif_recognizer is a text file recognizer module and must be
entered in the "config" file of your GWINDOWS/DESKTOP directory for Lfmaker
to work. If you are not familiar with how to enter a new file recognizers
detailed instructions are provided in the section labeled "Step by Step In-
structions."
Using Lfmaker
To start the program type the name "Lfmaker" at the shell prompt or double
click on the program icon. This will open a window where you will edit the
AIF.
The "Command Line" Entry.
The "Command Line" entry will be passed to the Desktop for execution
when the AIF file icon is double clicked from within a directory win-
dow. It will act exactly as if you double clicked the program icon
and gives you some extra capabilities as well. The entry follows the
format described in the G-Windows manual.
For example, to change to the directory "/dd/GAMES" and start up the
program CyberWar the entry would look like"
chd /dd/GAMES;cyberwar <>>>%
To change the window environment and start up a shell in the current
data directory use a command line like:
profile /dd/shell_start;shell -l <>>>%
The file "/dd/shell_start" contains any special "setenv" commands
needed to configure the window or other system environment variables.
The "File Type" Entry.
The "File Type" entry is passed to Desktop whenever "Information..."
is requested from the "File" option of the Desktop menu.
"Select Icon" Button.
The "Select Icon" button opens a window showing the available icons.
To select an icon just click on it. To cancel the operation, click on
the close button on the window Title Bar.
Menu Entries.
"Open..." Opens an existing AIF.
"New File" Allows creation of a new AIF.
"Save" Saves the current file with the name displayed in the
window title bar.
"Save As..." Allows saving the current file with a different name.
"Quit" Quits Lfmaker. Equivalent to clicking the close button
in the program window.
---------------------------------------------------------------------------
To simplify the process of adding or creating Lfmaker files it may be use-
ful to add the program as an entry to the Custom option of the main Desktop
Menu. This facilitates creating new files from anywhere in the directory
tree. You can also just click on an existing AIF, pull down the entry in
your Custom menu and edit the file. The "menu" file entry will look some-
thing like:
"Launch File Editor" Lfmaker @ <>>>%
---------------------------------------------------------------------------
Step by Step Instructions
Installing "aif_recognizer"
1. Copy the module "aif_recognizer" to the directory "GWINDOWS/CMDS".
2. Change to "GWINDOWS/DESKTOP"
3. Load the file "config" into your text editor
4. Locate the line that starts with ":text" (Note the leading colon).
5. Move the cursor (or insertion point) till it is to the right of the
letters ":text".
6. Insert the text: ":/dd/GWINDOWS/CMDS/aif_recognizer". Pay attention
the the leading colon (:) and be certain there is at least one space
before and after the inserted text.
7. Save the edited file and exit the text editor.
----------------------------------------------------
You will have to quit and restart G-Windows for
this change to take effect though you may con-
tinue with the installation without restarting.
A sample AIF file called "Shell" has been in-
cluded in so that you may verify that the recog-
nizer is installed correctly.
----------------------------------------------------
Adding Icons to aif_recognizer
1. Edit the file "aif_icons" to add the source definition of the new
icon. Consult your GWINDOWS manual for a complete description of how
icons are defined or use the provided icons as a guide.
2. Compile and link the new version of aif_recognizer.
3. Copy the new aif_recognizer into /dd/GWINDOWS/CMDS if necessary.
----------------------------------------------------
You will have to quit and restart G-Windows for
any changes to take effect.
----------------------------------------------------
Adding Lfmaker to your custom menu.
1. Change to the directory "GWINDOWS/DESKTOP"
2. Load the file "menu" into your text editor.
3. Decide where you want the new entry to go and add the line:
"Launch File Editor" Lfmaker @ <>>>%
(Type the quotation marks as entered).
4. Save the edited file and exit the text editor.
5. Pull down "Refresh Custom Menu" from "Services" in the main Desktop
menu.