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 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
|
<html>
<head>
<LINK REL="stylesheet" HREF="styles.css" TYPE="text/css">
<title>FOX-Toolkit</title>
<!-- HTML Copyright 2001 Paul Laufer -->
</head>
<body bgcolor=#ffffff link=#990033 vlink=#4a73ad alink=#ed004f text=#000000>
<!--header-->
<table align=center border=0 cellpadding=0 cellspacing=0 width=100% >
<tr><td bgcolor=silver colspan=5 align=right height=50><img src=art/oul_grey.gif align=left valign=top width=8 height=8><img src=art/foxlogo.png valign=bottom alt="FOX Toolkit" height=50 width=500 border=0 ></td>
<td bgcolor=#557faa valign=top align=right><img src=art/our.gif width=8 height=8></td>
</tr>
<!-- end header -->
<tr>
<td bgcolor=#557faa colspan=2 valign=top align=left> </td>
<td bgcolor=#557faa colspan=3><font color=#ffffff size=+1><center>
<!-- Page Title -->
Documentation: Foreword
<!-- End Page Title -->
</center></font></td>
<td bgcolor=#557faa valign=top align=right> </td>
</tr>
<tr>
<td bgcolor=#557faa colspan=2> </td>
<td bgcolor=#ffffff valign=top align=left><img src=art/iul.gif width=8 height=8></td>
<td bgcolor=#ffffff> </td>
<td bgcolor=#ffffff valign=top align=right><img src=art/iur.gif width=8 height=8></td>
<td bgcolor=#557faa width=15> </td>
</tr>
<tr>
<td width=8 bgcolor=#557faa> </td>
<td valign=top bgcolor=#557faa link=#ffffff width=150>
<!-- start navbar content -->
<a href=fox.html><font color=#ffffff>Home</font></a><br>
<a href=news.html><font color=#ffffff>News</font></a><br>
<a href=download.html><font color=#ffffff>Download</font></a><br>
<a href=goals.html><font color=#ffffff>Goals & Approach</font></a><br>
<a href=doc.html><font color=#ffffff>Documentation</font></a><br>
<a href=faq.html><font color=#ffffff>FAQ</font></a><br>
<a href=rex.html><font color=#ffffff>FXRex</font></a><br>
<a href=screenshots.html><font color=#ffffff>Screenshots</font></a><br>
<br>
<a href=adie.html><font color=#ffffff>Adie</font></a><br>
<a href=pathfinder.html><font color=#ffffff>PathFinder</font></a><br>
<a href=calc.html><font color=#ffffff>FOX Calculator</font></a><br>
<br>
<a href=projects.html><font color=#ffffff>Projects</font></a><br>
<br>
<a href='http://fxpy.sourceforge.net'><font color=#ffffff>FXPy</font></a><br>
<a href='http://fxruby.sourceforge.net'><font color=#ffffff>FXRuby</font></a><br>
<a href='http://eiffelfox.sourceforge.net'><font color=#ffffff>EiffelFox</font></a><br>
<a href='http://eevolved.com/foxhole/'><font color=#ffffff>The FOX Hole</font></a><br>
<a href='http://takahr.dhis.portside.net/cgi-bin/rwiki.cgi?cmd=view;name=FOX+FAQ'><font color=#ffffff>Japanese Docs</font></a><br>
<br>
<center>
<a href="http://www.eff.org/br"><img SRC="art/freespeach.gif" border=0></a>
<p>
<a href="http://www.slashdot.org"><img SRC="art/slingerzbutton1.gif" border=0></a>
</center>
<!-- end navbar content -->
</td>
<td bgcolor=#ffffff> </td>
<td valign=top>
<!-- start main window content -->
<center><img src='art/foxstart.png'>
<BR><B>Documentation: Foreword</B>
</center>
<p><P>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.
<P>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>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.
<P>Some of the ideas and concepts underlying the FOX system are listed
below:
<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>
</UL>
<UL>
<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>
</UL>
</UL>
<UL>
<UL>
<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>
</UL>
</UL>
<UL>
<UL>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<UL>
<UL>
<LI>
<B>Selection. </B> FOX supports the transfer of data between Widgets
(possibly in different applications) through the X Selection mechanism.</LI>
<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>
<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>
<BR></LI>
<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>
<BR></LI>
<LI>
<B>Facilities</B> to watch network <B>sockets</B>, <B>pipes</B>, and other
i/o channels.</LI>
</UL>
</UL>
<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>
<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>
<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>
<P><BR>
<!-- end main window content -->
</td>
<td bgcolor=#ffffff> </td>
<td bgcolor=#557faa width=15> </td>
</tr>
<tr>
<td colspan=2 bgcolor="#557faa" align=center>
</td>
<td bgcolor=#ffffff valign=bottom align=left><img src=art/ill.gif width=8 height=8></td>
<td bgcolor=#ffffff> </td>
<td bgcolor=#ffffff valign=bottom align=right><img src=art/ilr.gif width=8 height=8></td>
<td bgcolor=#557faa width=15> </td>
</tr>
<tr>
<td valign=bottom align=left bgcolor=#557faa><img src=art/oll.gif width=8 height=8></td>
<td colspan=4 bgcolor=#557faa> </td>
<td valign=bottom align=right bgcolor=#557faa><img src=art/olr.gif width=8 height=8></td>
</tr>
</table>
<address>Copyright 1997-2002 <a href=mailto:jeroen@fox-toolkit.org>Jeroen van der Zijp</a></address>
<!-- Created: Mon Apr 10 11:20:32 CEST 2000 -->
<!-- hhmts start -->
<!-- hhmts end -->
</body>
</html>
|