aboutsummaryrefslogtreecommitdiff
path: root/SrcUnix/espws-2.0/flsurf.html
blob: 4796df5d75c9b141a00974cde6ab113059e5c53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<HTML>
<HEAD>
	<TITLE>The Help Application (flsurf) - ESP Widget Set for FLTK</TITLE>
	<LINK REL="STYLESHEET" TYPE="text/css" HREF="fltk.css">
	<MAP NAME="navbar">
		<AREA SHAPE="RECT" COORD="20,19,74,36" HREF="index.html" ALT="Widget Set Home Page">
		<AREA SHAPE="RECT" COORD="96,19,240,36" HREF="documentation.html" ALT="Widget Set Documentation">
		<AREA SHAPE="RECT" COORD="262,19,356,36" HREF="download.html" ALT="Download Widget Set">
		<AREA SHAPE="RECT" COORD="378,19,416,36" HREF="http://www.easysw.com" ALT="ESP Home Page">
		<AREA SHAPE="RECT" COORD="438,19,487,36" HREF="http://www.fltk.org" ALT="FLTK Home Page">
	</MAP>
</HEAD>

<BODY BGCOLOR="#ccccff">

<H1>The Help Application (flsurf)</H1>

<P>The <CODE>HelpApp</CODE> widget provides a simple web browser application,
complete with bookmarks, proxy support, and so forth. The <CODE>flsurf</CODE>
application included with the distribution demonstrates how to use it.

<H2>Implementation</H2>

<P>The <CODE>HelpApp</CODE> widget is composed of several windows and control
widgets. The HTML viewing portion is handled by the <CODE>HelpView</CODE>
widget, while file selection is handled by the <CODE>FileChooser</CODE>
widget.

<P>HTTP access to files is handled by the <A HREF="http://www.cups.org">CUPS</A>
HTTP functions. Currently only a single file is cached, so any navigation
results in a reload.

<H2>Using the HelpApp Widget</H2>

<P>The source for <CODE>flsurf</CODE> is shown below:

<UL><PRE>
#include "HelpApp.h"
#include &lt;FL/x.H>

int				// O - Exit status
main(int  argc,			// I - Number of command-line arguments
     char *argv[])		// I - Command-line arguments
{
  HelpApp	*app;		// Help application


  fl_open_display();

  app = new HelpApp;

  if (argc >= 2)
    app->load(argv[1]);

  app->show();

  Fl::run();

  delete app;

  return (0);
}
</PRE></UL>

</BODY>
</HTML>