Cross-Platform GUI Programming with wxWidgets

The latest version of wxWidgets can be downloaded from the wxWidgets web site, or you can use the version included on the CD-ROM. After you have downloaded the library source or copied it from the CD-ROM, you will need to extract the files to a location of your choice. Windows users also have the option of a self-extracting installer.

After you have unpacked wxWidgets, you may want to familiarize yourself with the organization of the files. The structure is similar to other open source projects, with separate directories for include files (include), source files (src), compiled library objects (lib), documentation (docs), sample programs (samples), and build information (build). Within some directories, there are further classifications of files based on which operating system(s) they are for:

  • common: Used by all platforms, such as strings, streams, and database connectivity.

  • expat: An XML parser library.

  • generic: Widgets and dialogs implemented by wxWidgets for use where native versions are not available.

  • gtk: For GTK+.

  • html: For the HTML controls designed for wxWidgets.

  • iodbc: The iODBClibrary for platforms without native ODBC support.

  • jpeg: The JPEG library for platforms without native JPEG support.

  • mac: For the Mac, further subdivided into classic (OS 9), carbon (OS 9 and OS X), and corefoundation (OS X).

  • msw: For Microsoft Windows.

  • png: The PNG image library for platforms without native PNG support.

  • regex: A regular expression processor for platforms without native regular expression processing (or when Unicode is enabled).

  • tiff: The TIFF image library for platforms without native TIFF support.

  • unix: Used by all Unix-based platforms, including Linux and Mac OS X.

  • xrc: wxWidgets' XML resource library.

  • xml: A C++ wrapper around the XML parser Expat.

  • zlib: The zlib compression library for platforms without native zlib support.

    Категории