next up previous
Next: Glade Up: A Model-View-Controller pattern implementation Previous: Special members for Observable


A simple application

This section describes the process of creation of a sample application, from the design with Glade, to the integration of views and code inside the MVC Infrastructure.

We want to design and implement a simple application constituted by only one window, containing two string labels. One label shows a text, while the other shows the number of characters displayed (i.e. the length of the string) by the first one. There is also a button the user can press. By pressing the button, the user can change the displayed text, and of course this action might change also the displayed text length. Figure 4 gives an idea on how the application should appear.

Figure 4: The sample Application
\includegraphics[width=3cm]{eps/example.eps}



Subsections

Roberto Cavada 2004-11-16