next up previous
Next: Implementation Up: A simple application Previous: A simple application


Glade

Figure 5 shows Glade and a project named example. The sample GUI has only one top-level window (named window1).

Figure 5: Designing the example by means of Glade for GTK2
\includegraphics[width=8cm]{eps/example_glade.eps}

The Widget Tree Window shows the widgets hierarchy. There are essentially the three main components (one button and two labels), grouped inside a set of containers, which supplies alignments and resizing capabilities.

On the right side of Figure 5, the Properties Window shows that the widget named button1 has signal clicked associated with function on_button1_clicked. This means that the Controller will have to supply this function in order to handle the click event occurring in button1.



Roberto Cavada 2004-11-16