From 336996c7abb716844d3389df7bd7779298af3dcf Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 6 May 2001 16:25:05 +0000 Subject: Update documentation files to eliminate most of the warnings and errors reported by HTML Tidy. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/fluid.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'documentation/fluid.html') diff --git a/documentation/fluid.html b/documentation/fluid.html index 45ceb9e60..f6ed41335 100644 --- a/documentation/fluid.html +++ b/documentation/fluid.html @@ -29,7 +29,7 @@ These .cxx files must #include the .h file or they ca #include the .cxx file so it still appears to be a single source file. -

+

FLUID organization.

Normally the FLUID file defines one or more functions or classes which output C++ code. Each function defines a one or more FLTK @@ -113,7 +113,7 @@ 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. -

+

CubeView demo.

The window is of class CubeViewUI, and is completely generated by FLUID, including class member functions. The central display of the cube is a separate @@ -323,14 +323,14 @@ void CubeView::draw() {

The CubeViewUI Class

We will completely construct a window to display and control the CubeView defined in the previous section using FLUID. -

Defining the CubeViewUI Class

+

Defining the CubeViewUI Class

Once you have started FLUID, the first step in defining a class is to create a new class within FLUID using the New->Code->Class menu item. Name the class "CubeViewUI" and leave the subclass blank. We do not need any inheritance for this window. You should see the new class declaration in the FLUID browser window. -

+

FLUID file for CubeView.

Adding the Class Constructor

Click on the CubeViewUI class in the FLUID window and add a new method by selecting New->Code->Function/Method. The name of the @@ -352,7 +352,7 @@ None of these additions need be public. And they shouldn't be unless you plan to expose them as part of the interface for CubeViewUI.

When you are finished you should have something like this: -

+

FLUID window containing CubeView demo.

We will talk about the show() method that is highlighted shortly.

Adding the CubeView Widget

@@ -373,7 +373,7 @@ Code:" field enter #include "CubeView.h" CubeView as a member of CubeViewUI, so any public CubeView methods are now available to CubeViewUI. -

+

CubeView methods.

Defining the Callbacks

Each of the widgets we defined before adding CubeView can have @@ -401,7 +401,7 @@ appear on the screen. show(). We don't need a return value here, and since we will not be adding any widgets to this method FLUID will assign it a return type of void. -

+

CubeView constructor.

Once the new method has been added, highlight its name and select New->Code->Code. Enter the method's code in the code window. @@ -553,7 +553,7 @@ grid that all widgets snap to when you move and resize them, and for the "snap" which is how far a widget has to be dragged from its original position to actually change. -

+

FLUID Preferences Window

The output filenames control the extensions or names of the files the are generated by FLUID. If you check the "Include .h from .cxx" button the code @@ -617,7 +617,7 @@ to "visible" attributes (such as the color, label, box) are not undone by revert or cancel. Changes to code like the callbacks are undone, however. - +
- +

Widget Attributes

@@ -636,7 +636,7 @@ You pick the subtype off of this menu. The boxtype to draw as a background for the widget.
   The FLUID widget dialog.

Many widgets will work, and draw faster, with a "frame" instead of a @@ -918,7 +918,7 @@ to select the appropriate language and message file. "GNU gettext" from the "Use" chooser. Two new input fields will then appear to control the include file and function/macro name to use when retrieving the localized label strings. -

+

I18N using FLUID.

The "#include" field controls the header file to include for I18N; by default this is <libintl.h>, the standard I18N file for GNU gettext. @@ -934,7 +934,7 @@ need to call setlocale() to select the appropriate language. "POSIX catgets" from the "Use" chooser. Three new input fields will then appear to control the include file, catalog file, and set number for retrieving the localized label strings. -

+

I18N using FLUID

The "#include" field controls the header file to include for I18N; by default this is <nl_types.h>, the standard I18N file for POSIX catgets. -- cgit v1.2.3