GtkAda: a complete Ada graphical toolkit
Our latest release
GtkAda 3.8.4 can now be downloaded directly from the GNAT GPL download area, in the tools/gtkada section.
Access to the latest snapshot using SVN
The GtkAda repository is accessible read-only by anonymous SVN. Note that you should only use the GtkAda SVN tree if you know what you are doing and if using a development version (with possible instabilities) does not frighten you. To check it out:
svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda
You can also browse the repository directly.
If you would like to contribute, send your patches (contextual or unified diffs) and we will work with you on integrating them. If you have already contributed and would like write access to the tree, please contact us.
Introduction to Gtk+ and GtkAda
What is Gtk+?
What is GtkAda?
GtkAda is an Ada graphical toolkit based on Gtk+, providing the complete set of Gtk+ widgets using the Object-Oriented features of this language. GtkAda supports the latest 3.8 stable releases.
Status of this toolkit
This toolkit tries to map almost all the functions found in gtk and gdk. This is a thick binding, which means that while the functions are mapped on an almost one-to-one basis (a given Ada function is actually mapped to a single C function in most cases), we also tried to add a strong typing mechanism, which is one of the strongest feature of Ada. We are also now providing new features such as dynamic Glade support. The callbacks are mapped as generic packages which try to provide type safety. Along with this toolkit, you will find a lot of examples on how to use it. You will also find a few screenshots below.
- GtkAda User’s Guide
- GtkAda Reference Manual
- Glib C Reference Manual
- Gdk C Reference Manual
- Gtk+ C Reference Manual
We appreciate any contribution or bug report from you and we will try to include them whenever possible.
You will find lots of screenshots at the gtk web site. Here are a few extracted from our re-implementation of the testgtk program and the editor example.
We have been able to test GtkAda 3.8.x it on the following machines. Please let us know if you can use it/port it to other machines. As far as we know, it should work on every target supported by both Gnat and Gtk.
- GNU/Linux x86, ia64, x86-64
- Solaris sparc, x86
- Mac OS X x86-64
- FreeBSD x86
- Windows XP/Vista/7/8
Related Web Sites
The following are some useful related web sites:
- GTK+ Home Page
- GNOME Home Page.
- Glade User Interface Builder Home Page. Note that GNAT includes another GLADE which supports distributed computing.
Applications using GtkAda
More and more applications are being developed using GtkAda. This includes both commercial and non-commercial projects. Let us know if you have heard of any available application that you think should be included here. Here is a list of some of these applications.
- GPS, the GNAT Programming Studio is a powerful integrated development environment.
- Gate is the GtkAda translator that generates human readable code from the Glade GUI builder XML files.
- Dgate is a GtkAda testing tool that uses the dynamic XML loading capabilities of GtkAda.
- Gdialog is a simple utility that provides an easy way to display dialog boxes from shell scripts.
- Ada Source Library Browser is a browser for Ada source Libraries based on unit names instead of file names. Illustrates use of aflex, gnat library packages, GtkAda in a platform independant fashion.
- PowerGNU is a simple presentation viewer that comes as an example of GtkAda and gdk-pixbuf in the GtkAda sources.
- Adabill is a very promising project in development, that needs new developers. It is fully developed in Ada and GtkAda, and uses PostgreSQL as a database.
- DTraq, an Ada 95 data logging and interactive review and playback tool.
- Win_IO is a set of packages for simple graphical input and output.
- AdaOthello is the classic reversi game written in Ada.
- Zephyr Basecamp is a GPL application that would allow small and midsize businesses the same level of inventory, order entry, sales tracking and accounting functionality as would be expected from commercial applications.
- Cheddar provides services to automatically check temporal constraints of real-time tasks.
- Linxtris, a Tetris clone written in Ada.
This toolkit has been written by:
- Emmanuel Briot (briot at adacore.com)
- Joel Brobecker (broecker at adacore.com)
- Arnaud Charlet (charlet at adacore.com)
- Nicolas Setton (setton at adacore.com)
and is maintained and supported by AdaCore.
Please report any problem (and patch) directly to the gtkada mailing list if you are not supported. If you are a supported user, please send reports to firstname.lastname@example.org. If you are interested in becoming a supported GtkAda user, you should send an email to email@example.com.
You can also visit the GtkAda archives.