diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-22 22:40:10 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-22 22:40:10 +0000 |
| commit | 285dd4020e8e762f009ac334a45ebf03b5b9e75c (patch) | |
| tree | 310ce1f3547747b834377e525c2c30f0ad04d69b | |
| parent | 1a8da69ca397bf17f5ca099910acac29e6462692 (diff) | |
Working on the FLUID chapter, to do a new FLTK 1.1.0 beta release...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | documentation/fluid.html | 80 | ||||
| -rw-r--r-- | documentation/fluid1.gif | bin | 9570 -> 6257 bytes | |||
| -rw-r--r-- | documentation/fluid2.gif | bin | 37056 -> 28555 bytes | |||
| -rw-r--r-- | documentation/fluid3-cxx.gif | bin | 0 -> 8841 bytes | |||
| -rw-r--r-- | documentation/fluid3-gui.gif | bin | 0 -> 10636 bytes | |||
| -rw-r--r-- | documentation/fluid3-style.gif | bin | 0 -> 8046 bytes | |||
| -rw-r--r-- | documentation/fluid3.gif | bin | 17584 -> 0 bytes | |||
| -rw-r--r-- | documentation/fluid4.gif | bin | 5976 -> 5123 bytes | |||
| -rw-r--r-- | documentation/fluid_widget.gif | bin | 9938 -> 0 bytes | |||
| -rw-r--r-- | documentation/fluid_widget_cxx.gif | bin | 0 -> 5620 bytes | |||
| -rw-r--r-- | documentation/fluid_widget_gui.gif | bin | 0 -> 7886 bytes | |||
| -rw-r--r-- | documentation/fluid_widget_style.gif | bin | 0 -> 5262 bytes |
12 files changed, 48 insertions, 32 deletions
diff --git a/documentation/fluid.html b/documentation/fluid.html index c45f6fda3..f92a8cd93 100644 --- a/documentation/fluid.html +++ b/documentation/fluid.html @@ -68,50 +68,66 @@ save-as to write it to a file). -fg color -bg color -bg2 color +-scheme schemename </PRE> </UL> - Changing the colors may be useful to see what your interface will look -at if the user calls it with the same switches. -<P>In the current version, if you don't go into the background (with -'&') then you will be able to abort FLUID by typing ^C on the terminal. It -will exit immediately, losing any changes. </P> + +<P>Changing the colors may be useful to see what your interface +will look at if the user calls it with the same switches. +Similarly, using "-scheme plastic" will show how the interface +will look using the "plastic" scheme. + +<P>In the current version, if you don't put FLUID into the +background with '&' then you will be able to abort FLUID by +typing <KBD>CTRL-C</KBD> on the terminal. It will exit +immediately, losing any changes. </P> + <H2>Running FLUID Under Microsoft Windows</H2> -To run FLUID under WIN32, double-click on the <I>FLUID.exe</I> file. -You can also run FLUID from the Command Prompt window (FLUID always -runs in the background under WIN32). + +<P>To run FLUID under WIN32, double-click on the <I>FLUID.exe</I> +file. You can also run FLUID from the Command Prompt window. +FLUID always runs in the background under WIN32. + <H2>Compiling <TT>.fl</TT> files</H2> - FLUID can also be called as a command-line "compiler" to create the -<TT>.cxx</TT> and <TT>.h</TT> file from a <TT>.fl</TT> file. To do this type: + +<P>FLUID can also be called as a command-line +"compiler" to create the <TT>.cxx</TT> and <TT>.h</TT> +file from a <TT>.fl</TT> file. To do this type: + <UL><PRE> fluid -c <I>filename.fl</I> </PRE></UL> -This will read the <TT>filename.fl</TT> file and write <I>filename.cxx</I> and <I> -filename.h</I>. The directory will be stripped, so they are written to -the current directory always. If there are any errors reading or -writing the files it will print the error and exit with a non-zero -code. In a makefile you can use a line like this: -<UL> -<PRE> + +<P>This will read the <TT>filename.fl</TT> file and write +<I>filename.cxx</I> and <I> filename.h</I>. Any leading +directory on <TT>filename.fl</TT> will be stripped, so they are +always written to the current directory. If there are any errors +reading or writing the files, FLUID will print the error and +exit with a non-zero code. You can use the following lines in a +makefile to automate the creation of the source and header +files: + +<UL><PRE> my_panels.h my_panels.cxx: my_panels.fl fluid -c my_panels.fl -</PRE> -</UL> - Some versions of make will accept rules like this to allow all <TT>.fl</TT> -files found to be compiled: -<UL> -<PRE> +</PRE></UL> + +<P>Some versions of make will accept rules that allow all +<TT>.fl</TT> files found to be compiled: + +<UL><PRE> .SUFFIXES: .fl .cxx .h .fl.h .fl.cxx: fluid -c $< -</PRE> -</UL> +</PRE></UL> + <H2>A Short Tutorial</H2> -FLUID is an amazingly powerful little program. However, this power -comes at a price as it is not always obvious how to accomplish seemingly -simple tasks with it. This tutorial will show you how to generate a -complete user interface class with FLUID that is used for the CubeView -program provided with FLTK. +<P>FLUID is an amazingly powerful little program. However, this +power comes at a price as it is not always obvious how to +accomplish seemingly simple tasks with it. This tutorial will +show you how to generate a complete user interface class with +FLUID that is used for the CubeView program provided with FLTK. <P ALIGN=CENTER><IMG SRC="cubeview.gif" ALT="CubeView demo."></P> @@ -373,7 +389,7 @@ Code:" field enter <tt>#include "CubeView.h"</tt> CubeView as a member of CubeViewUI, so any public CubeView methods are now available to CubeViewUI. -<p align=center><img src="fluid3.gif" ALT="CubeView methods."></p> +<p align=center><img src="fluid3-cxx.gif" ALT="CubeView methods."></p> <h4><a name="defcall">Defining the Callbacks</a></h4> Each of the widgets we defined before adding CubeView can have @@ -636,7 +652,7 @@ You pick the subtype off of this menu. The boxtype to draw as a background for the widget. </TD> <TD> </TD> -<TD VALIGN=TOP WIDTH=378><IMG src="fluid_widget.gif" ALT="The FLUID widget dialog."></TD> +<TD VALIGN=TOP WIDTH=378><IMG src="fluid_widget_gui.gif" ALT="The FLUID widget dialog."></TD> </TR> </TABLE> <P>Many widgets will work, and draw faster, with a "frame" instead of a diff --git a/documentation/fluid1.gif b/documentation/fluid1.gif Binary files differindex a6526a292..cfdefd7a7 100644 --- a/documentation/fluid1.gif +++ b/documentation/fluid1.gif diff --git a/documentation/fluid2.gif b/documentation/fluid2.gif Binary files differindex c780d83c5..e551e84a5 100644 --- a/documentation/fluid2.gif +++ b/documentation/fluid2.gif diff --git a/documentation/fluid3-cxx.gif b/documentation/fluid3-cxx.gif Binary files differnew file mode 100644 index 000000000..420ccaf31 --- /dev/null +++ b/documentation/fluid3-cxx.gif diff --git a/documentation/fluid3-gui.gif b/documentation/fluid3-gui.gif Binary files differnew file mode 100644 index 000000000..5f757264c --- /dev/null +++ b/documentation/fluid3-gui.gif diff --git a/documentation/fluid3-style.gif b/documentation/fluid3-style.gif Binary files differnew file mode 100644 index 000000000..ecb55b40c --- /dev/null +++ b/documentation/fluid3-style.gif diff --git a/documentation/fluid3.gif b/documentation/fluid3.gif Binary files differdeleted file mode 100644 index 81672704f..000000000 --- a/documentation/fluid3.gif +++ /dev/null diff --git a/documentation/fluid4.gif b/documentation/fluid4.gif Binary files differindex 00e8d0806..d9e029273 100644 --- a/documentation/fluid4.gif +++ b/documentation/fluid4.gif diff --git a/documentation/fluid_widget.gif b/documentation/fluid_widget.gif Binary files differdeleted file mode 100644 index 5c9964f0c..000000000 --- a/documentation/fluid_widget.gif +++ /dev/null diff --git a/documentation/fluid_widget_cxx.gif b/documentation/fluid_widget_cxx.gif Binary files differnew file mode 100644 index 000000000..1c64d5d3f --- /dev/null +++ b/documentation/fluid_widget_cxx.gif diff --git a/documentation/fluid_widget_gui.gif b/documentation/fluid_widget_gui.gif Binary files differnew file mode 100644 index 000000000..61dd76ad6 --- /dev/null +++ b/documentation/fluid_widget_gui.gif diff --git a/documentation/fluid_widget_style.gif b/documentation/fluid_widget_style.gif Binary files differnew file mode 100644 index 000000000..d7791eb8b --- /dev/null +++ b/documentation/fluid_widget_style.gif |
