GNU/Linux Desktop Survival Guide
by Graham Williams
The Project Options dialog allows you to tune many aspects of the project you are developing with Glade. The types of options fall under three tabs: General, C Options, and LibGlade Options.
The Project Directory lists the directory in which the saved project file will be stored. This is also where the built source code will be written. Use the Browse button to identify a directory using a File Selection Dialog (which allows you to also create directories if you wish). As you change the Project Directory the Project Name, Program Name, and Project File values will also change, unless you have already changed these other fields separately to give them a different name.
When you save or build a project the directories will be silently created as needed.
The Project Name is the name of your project. This will be used as the title of the main application window you create (the Gnome Application Window). The name can have spaces and other characters. As you change the name of the project the Program Name, and Project File fields also change to reflect your project name (with spaces and other non-alphanumeric characters converted to dashes).
The Program Name is the name by which the final executable program will be known. This is used by Glade to name the output executable file in the Makefile it generates. Once again, as you change this field the following field (Project File) automatically changes to be the same. The previous fields do not change.
The Project File is then the file located in the Project Directory in which the interface is saved. This file has the extension .glade and is a gzip'ed XML document that records all of the project information. See Section 34.4.7 for details.
The Subdirectories fields indicate where Glade should place source code files it generates (Source Directory) and where Glade should place any pixmaps (graphics) used in the project (Pixmaps Directory). These subdirectories are located in the Project Directory and are silently created by Glade when it builds the project.
A choice of languages is available under Language. Only one can be chosen at a time. The choice tells Glade what to do when the Build button or menu is chosen. See Section 34.4.3 for details. The choices are C, C++, Ada95, Perl, and Eiffel. Note that this is not relevant when using as the conversion is effectively performed at run time.
The Enable Gnome Support check button causes Glade to generate the appropriate calls to initialise a Gnome application (rather than a Gtk+ application). For a Gnome project this should always be enabled.
The first general option indicates whether Glade should generate code to support the GNU gettext library so as to support internationalisation. It is a good idea to leave this on (which is the default). Internationalising your application is an important step in making your application user friendly.
The Set Widget Names check button is used to tell Glade to generate code to set the names of all widgets in your interface. This is relevant if you find that you want to use the Gtk+ function gtk_widget_path().
The Backup Source Files check button will cause Glade to copy files to .bak backup files before overwriting them. This applies to the .glade file and also to the source code files.
Copyright © 1995-2020 Togaware Pty Ltd