Previous Up Next

KPlug Glade Tutorial

Basic Glade Layout

Some Considerations

Starting up Glade

When you first start Glade you'll see something like the figure to the right. There are three main windows to Glade, four if you turn on the view widget tree option in the view menu. We'll go through them and their functions very quickly. main glade layout

The Central Glade Window

In this window are listed the windows and widget combinations you create. By clicking on one of them you can bring it up for viewing and changing. The button bar at the top of the window gives access to the main Glade functions; opening a project, saving it, setting project options, and building the code for it. The menu bar above the button bar should be self explanatory. One thing to note, in the view menu you can find the 'show widget tree' option. This is often very useful. Glade help files and a Glade manual exist and are sources of good information. They are accessible from the menu if you are in Gnome (I can't vouch for KDE, I don't use it).

The Palette Window

The Palette is exactly that, a palette of all widgets available. There are 3 pages of them, the first contains basic widgets. Note here that the bottom 3 rows (as pictured) are 'container' widgets. These are important, as they will hold the other widgets within the window. The second page has extra gtk+ widgets, and the third page contains Gnome widgets. If you are developing a Gnome application, use these. They help standardize the interface for users.

The Properties Window

This window's entries change as widget type changes. Most of them are self-explanatory, or yield their secrets with some experimentation. Important is the 'signals' tab. Here is where you set the names of the callback functions. You will also probably want to at least set the name of the widget, and title it. You can use the default names, but they soon get confusing.

 
 
Widget Tree

The Widget Tree Window

The widget tree window doesn't show upon starting Glade, but it's very useful to know about. You can access it from the main menu->view->show widget tree option. This window shows all the widgets and their relationship to each other. It lets you cut and paste widgets from point to point, copy them, or delete them.

Previous Up Next