Nada
Programming in XPCE / Prolog
Jan Wielemaker Anjo Anjewierden
wielemak@science.uva.nl anjo@science.uva.nl
XPCE / P rolog is a hybrid environment integrating logic programming and object-oriented programming for Graphical User Interfaces. Applications in XPCE / Prologare fully compatible across the supported X11 and Win32 (NT/2000/XP) platforms.
This document also applies to XPCE/Prolog 6.6.37 distributed as integrated packages to SWI-Prolog. Sources and binaries may be downloaded from http://www.swi-prolog.org
XPCE is distributed as Free Software with sufficient escapes to allow for producing non-free applications. The kernel is distributed under theLesser GNU Public License (LGPL) and the Prolog sources under the GNU Public License (GPL) with explicit permission to generate non-free executables.
Product information, documentation and additional resources specific to XPCE are available from http://www.swi.psy.uva.nl/products/xpce/. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the impliedwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the (Lesser) GNU General Public License for more details. Titlepage created using XPCE 4.8.10 on Windows-NT 4.0 Last updated February 2002 for XPCE version 6.6.37 Copyright c 1992-2005 University of Amsterdam
Contents
1 Introduction 1.1 Organisation of the XPCE documentation 1.2 Other sources of information . . . . . . .1.3 Language interfaces . . . . . . . . . . . . 1.4 Portability . . . . . . . . . . . . . . . . . . 1.4.1 Unix/X-windows . . . . . . . . . . 1.4.2 Win32 (Windows 95 and NT) . . . 1.5 Look-and-feel . . . . . . . . . . . . . . . . 1.6 A brief history of (X)PCE . . . . . . . . . . 1.7 About this manual . . . . . . . . . . . . . 1.8 Acknowledgements . . . . . . . . . . . . . 2 Getting started 2.1Starting XPCE / Prolog . . . . . . . . . 2.2 Prolog ... and what? . . . . . . . . . 2.2.1 Creating objects: new . . . . 2.2.2 Modifying object state: send 2.2.3 Querying objects: get . . . . 2.2.4 Removing objects: free . . . 2.3 Optional arguments . . . . . . . . . 2.4 Named arguments . . . . . . . . . . 2.5 Argument conversion . . . . . . . . . 2.6 Send and get with more arguments . 2.7 Notation . .. . . . . . . . . . . . . . 2.8 Example: show files in directory . . . 2.9 Summary . . . . . . . . . . . . . . . 3 Using the online manual 3.1 Overview . . . . . . . . 3.2 Notational conventions . 3.2.1 Argument types . 3.3 Guided tour . . . . . . . 3.3.1 Class browser . 3.3.2 Reading cards . 3.3.3 Search tool . . . 3.3.4 Class hierarchy . 3.4 Summary . . . . . . . .
. . . . . . . . . .
. .. . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . .. . .
. . . . . . . . . .
1 1 2 2 3 3 3 3 4 4 5 7 7 7 8 8 9 10 10 11 11 12 12 12 15 17 17 18 19 20 20 23 24 24 26 27 27
6.6.37
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
.. . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . ....
Regístrate para leer el documento completo.