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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
|
<html>
<head>
<link rel="stylesheet" href="page.css" type="text/css">
<title>Home</title>
</head>
<body bgcolor=#ffffff link=#990033 vlink=#990033 alink=#990033 text=#000000>
<!---- TOPIC TITLE WITH LOGO--->
<table border=0 cellpadding= cellspacing=2 width=100% ><tr><td><a href='http://www.fox-toolkit.org' target=_top><img src='art/foxlogo_small.jpg' border=0></a></td><td width=100% valign=bottom id="HEADLINE"><b>
Documentation: Foreword <A href='foreword.html' target="_top" align=left><font size=-2>[Remove Frame]</font></a>
<br><img src='art/line.gif' width=100% height=1></b></td></tr></table>
<p>
<!--- TOPIC TITLE WITH LOGO --->
<ul>
FOX stands for Free Objects for X. It is a C++ based class library
for building Graphical User Interfaces.
Initially, it was developed for <A HREF="http://www.redhat.com">LINUX</A>, but the
scope of this project has in the course of time become somewhat more ambitious.
Current aims are to make FOX completely platform independent, and thus programs
written against the FOX library will be only a compile away from running
on a variety of platforms.
<br><br>
The idea of designing and implementing something like FOX started in
spring '97. In the course of using several different systems, ranging
from OSF Motif, NeXTstep, MS Windows, and Intergraph's System
5, the author has developed some conception of what the ideal GUI toolkit
was supposed to look like. After a couple of false starts, and some
experimentation with various ideas under different platforms, FOX was born.
<br><br>
Because it draws from so many sources, most experienced GUI programmers
will probably recognize a few of the underlying concepts; but only FOX
brings all these together in one integrated system.
<br><br>
Some of the ideas and concepts underlying the FOX system are listed
below:
<br><br>
<UL>
<LI><B>Ease of Development. </B>Developing Graphical User Interfaces is a fairly
complicated process. FOX reduces the burden on the developer significantly:</LI>
<br>
<UL>
<LI><B>Orthogonality.</B> A few powerfull concepts that can be recombined in many
intuitive ways is preferable to a hodge-podge of ad-hoc solutions. In a well designed
orthogonal toolkit, the developer will be able to transfer knowledge gained from one
scenario to another.</LI>
<br>
<LI><B>Consistency</B>. Consistent naming of member functions, consistent ordering
of arguments and default parameters, as well as consistent behaviour of each Widget makes
the system much more easy to learn.</LI>
<br>
<LI><B>Conciseness</B>. <I>Every line of code <B>not</B> written is a
<B>correct</B>
one</I>. So minimizing the number of lines of code to accomplish the job is a Good Thing.
FOX helps with this by being able to create and initialize most Widgets with a single line
of code. The C++ capability for default parameters to arguments is heavily used, and a
lot of glue code to cement Widgets to each other is eliminated completely by the ability
of FOX Widgets to send messages to each other.</LI>
</UL>
</UL>
<br>
<UL>
<LI><B>C++ Based.</B> Since FOX is completely written in C++ from the ground up, developers
can easily <I>augment the basic toolkit with their own Widgets.</I> Since FOX is not a wrapper
around some legacy toolkit, these third-party Widgets are full citizens in the FOX system.
Many GUI toolkits have been written before the advent of C++. Some toolkits have subsequently
been repackaged into C++ wrapper libraries, to give the C++ programmer the feel of working with
a C++ based toolkit.
However, this approach denies users some of the benefits of C++, such as derivation and
overloading to induce new behaviour, as the basic functionality is not really implemented
in C++.</LI>
</UL>
<br>
<UL>
<LI><B>Modern GUI Features. </B> FOX provides a rich set of Widgets, and
moreover, this set is easily extensible by application programmers.
In the core system, several basic facilities are supported which are part
and parcel of current GUI development:</LI>
</UL>
<br>
<UL>
<UL>
<LI><B>Icons and Images. </B> FOX provides easy to use facilities for
creating icons and images. Resources such as Icons and Images can
be compiled into the application, and may be instantiated as needed.
FOX supports both GIF and BMP image formats.</LI>
<BR>
<LI>A <B>Registry</B>, or persistent settings database whereby applications
can save certain parameters such as recent file list, customizations, and
so on.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Tool Tips. </B> Controls in FOX support Tool Tips or Balloon Help.
When the user hovers the cursor over a button or other control, a small
yellow window appears near the cursor with further information detailing
the button operation.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Status Line Help</B>. Besides Tool Tips, FOX also supports additional
help on the status line for each Control. The Status Line typically
displays more extensive help information about the Control the cursor is
over than a Tool Tip.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Floatable Tool Bars</B>. Toolbars can be interactively dragged
and docked or undocked. Dock sites allow for parking of toolbars side-by-side.</LI>
</UL>
</UL>
<br>
<UL>
<UL><LI><B>Tab Books.</B> Ever more sophisticated applications need considerable
more screen real-estate. With Tab Books, several panels of GUI Widgets
may be placed on top of each other and flipped over, similar to browsing
through file folders.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Tree Lists. </B>Many applications need to present hierarchically
organized information to a user. The FOX Tree List provides a concise
view of a hierarchy, allowing users to open and close sublists with the
click of a mouse.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Multiple Document Interface (MDI) Widgets. </B>FOX supports both
Single Document Interface applications as well as Multiple Document Interface
applications, by providing convenient Widget sets for this purpose.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>3D <A HREF="http://www.opengl.org/">OpenGL</A> Widgets. </B> FOX
supports simple, as well as advanced 3D Widgets which make it easy for
developers to get started writing 3D enabled applications.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Drag and Drop.</B> FOX supports Drag and Drop using
<A HREF="http://www.newplanetsoftware.com/xdnd/">XDND.</A>
Using <B><I>drag & drop</I></B>, a user can move data objects from
one Widget to another, even between applications running on different machines.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Selection. </B> FOX supports the transfer of data between Widgets
(possibly in different applications) through the X Selection mechanism.</LI>
<br>
<LI><B>Clipboard Support</B>. Ability to transfer arbitrary data structures
between programs via <B><I>cut & paste</I></B>, even between programs
running on different machines.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>Timers, Idle Processing. </B> FOX supports both scheduled timers,
i.e. pseudo-events that will cause some action to happen in the future,
as well as Idle Processing, or background actions that execute while no
activity is performed by the user.<BR>
</LI>
<br>
<LI><B>WYSIWYG</B> Rendering. FOX's <B>device context</B> classes provide abstract
rendering facilities which allow a single rendering code to produce output
to an [user extensible] variety of output devices.<BR>
</LI>
<br>
<LI><B>Facilities</B> to watch network <B>sockets</B>, <B>pipes</B>, and other <B>i/o channels</B>,
as well as <B>signals</B>.
Also supported are a <B>thread</B> class, <B>semaphores</B>, <B>mutexes</B>, <B>conditions</B>.
The FOX library uses <B>reentrant</B> library functions when compiled normally.</LI>
</UL>
</UL>
<br>
<UL>
<UL>
<LI><B>C++ Exceptions</B> are used in the library to signal errors during allocation
of memory, windows, and other system resources, permitting application to handle
low-resource conditions gracefully.</LI>
</UL>
</UL>
<br>
<UL><LI><B>GUI Updating. </B>FOX makes it easy to keep the graphical user
interface consistent with your application data structures using a unique
facility called GUI Updating. In essence, the FOX Controls such as
Buttons, Sliders, and so on will continuously interrogate the application
and change their state; for example, from enabled to disabled, checked
to unchecked, pressed or unpressed, etc.</LI>
</UL>
<br>
<UL>
<LI><B>Target/Message Based. </B> FOX is a target/message based system,
in that all GUI events or actions are ultimately translated into messages
sent between objects. As FOX Widgets are also objects, glue-code
which would normally have to be written by the developer can often be eliminated
by simply making one FOX Widget directly the target of another. In
some cases, these messages may even be bi-directional.</LI>
</UL>
<br>
<UL>
<LI><B>Platform Independence. </B>Applications using FOX are not dependent
directly on X-Windows. As all platform-dependencies are completely
hidden from view by the FOX System (applications don't even include X-Windows
header files!!), such applications will be easily ported to other platforms,
simply by recompiling.</LI>
</UL>
<br>
</ul>
<!--- COPYRIGHT -->
<p>
<table width=100% cellpadding=0 cellspacing=0><tr><td width=100% valign=top id=HEADLINE align=right>
<img src='art/line.gif' width=100% height=1><font size=-1>
Copyright © 1997-2005 Jeroen van der Zijp</font>
</td></tr></table>
</p>
<!--- COPYRIGHT -->
</body>
</html>
|