Friday, September 12, 2008

Which Doctor To Consult For Cough

Example Walkthrough for Applications with Glade 3 and gtkmm (Part I)

Recently I've been using Glade 3, libglademm and gtkmm to make applications and the lack of tutorials that explain certain details that are sometimes required is low. So I decided to make this small example tutorial, which attempt to detail some functions. Despite the lack of documentation in English I got almost all the help we need can be obtained from the various forums, from anywhere in the world, set here is the same as set in Germany right? -.

Some of the tutorials that got them and they were useful:

http://www.micahcarrick.com/12-24-2007/gtk-glade-tutorial-part-1.html
... the other pages not lost.


try to follow the methodology of some tutorials that helped me though that focus on programming in C, Python, PHP and other bindings. For now I will not mention any definition of the concepts used or is Glade. We're just going to set (or at least see the code).

The first image shows the application should look like. My intention is not to explain how to use Glade, because I think it is very intuitive.

important thing is that after arranging the elements as you want, you will need the names of the widgets to use: Seen on the tree of widgets.




At this point, we have a functional GUI. We could write a few lines of code in C, Python, Ruby, or any number of programming languages \u200b\u200bto show our window and test what we added. For this tutorial, however, I will show how to implement various functions of the GUI using C + + with gtkmm.

Here are the files needed to compile the program by installing the appropriate libraries:

g + + $ (pkg-config - libs - cflags gtkmm-2.4) $ (pkg-config - libs - cflags libglademm-2.4 ) tutorial.cpp tutorial_principal.cpp-o tutorial