aboutsummaryrefslogtreecommitdiff
path: root/SrcUnix/espws-2.0/FileBrowser.html
blob: 4a0203298ed4c7660bafa9ca51d68af735c1acfe (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
67
68
69
70
71
72
73
74
75
76
77
78
79
<HTML>
<HEAD>
	<TITLE>FileBrowser - 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">

<!-- NEW PAGE -->
<H2>class FileBrowser</H2>

<HR>

<H3>Class Hierarchy</H3>

<UL><PRE>
Fl_Browser
   |
   +----<B>FileBrowser</B>
</PRE></UL>

<H3>Include Files</H3>

<UL><PRE>
#include "FileBrowser.h"
</PRE></UL>

<H3>Description</H3>

<P>The <CODE>FileBrowser</CODE> widget displays a list of filenames,
optionally with file-specific icons.

<H3>Methods</H3>

<UL>

	<LI><A HREF="#FileBrowser.FileBrowser">FileBrowser</A>
	<LI><A HREF="#FileBrowser.~FileBrowser">~FileBrowser</A>
	<LI><A HREF="#FileBrowser.iconsize">iconsize</A>
	<LI><A HREF="#FileBrowser.filter">filter</A>
	<LI><A HREF="#FileBrowser.load">load</A>

</UL>

<H4><A NAME="FileBrowser.FileBrowser">FileBrowser(int xx, int yy, int ww, int hh, const char *l = 0)</A></H4>

<P>The constructor creates the <CODE>FileBrowser</CODE> widget at the specified
position and size.

<H4><A NAME="FileBrowser.~FileBrowser">~FileBrowser()</A></H4>

<P>The destructor destroys the widget and frees all memory that has been
allocated.

<H4><A NAME="FileBrowser.iconsize">void iconsize(uchar s)<BR>
uchar iconsize() const</A></H4>

<P>Sets or gets the size of the icons. The default size is 20 pixels.

<H4><A NAME="FileBrowser.filter">void filter(const char *pattern)<BR>
const char *filter() const</A></H4>

<P>Sets or gets the filename filter. The pattern matching uses the
<CODE>filename_match()</CODE> function in FLTK.

<H4><A NAME="FileBrowser.load">int load(const char *directory)</A></H4>

<P>Loads the specified directory into the browser. If icons have been
loaded then the correct icon is associated with each file in the list.

</BODY>
</HTML>