Installation
Requires Apache Ant and
Java 1.5.0.
- Step 1: Download FOG and extract it to any
directory.
- Step 2: Add a $FOG_HOME environment variable
to your system, and point it at the directory you extracted FOG
to.
- i.e., point it at the folder that contains
build.xml
- Step 3: Add $FOG_HOME/bin to your
$PATH variable.
- Step 4: Compile FOG with these commands:
- cd $FOG_HOME
- ant
Usage
You should now be able to run the following programs:
- fogv runs the gui preview tool.
- This is a good place to start out. Try browsing the gui files
in the $FOG_HOME/demos folder.
- You can supply a GUI file as an argument, or open one after
fogp loads.
- fogc compiles a gui file into Java.
- You can use this if you don't want to use FOG's dynamic
loader at run time.
- Syntax: fogc file.gui feature1 feature2 ...
featureN
- fogpp runs the fog preprocessor.
- You can use this to strip features from any XML
file.
- Syntax: fogpp file.xml feature1 feature2 ...
featureN
Notepad Demo
- fognotes runs a featureful notepad demo.
- This demo program's GUI is compiled statically into a Java
file by the build script.
- fognoted runs a customizable notepad demo.
- Syntax: fognoted feature1 feature2 ...
featureN
- Example: fognoted menu toolbar new open save
print
- To see a full feature list, run fogv
$FOG_HOME/src/notepad/main.gui