The Glade Client for Developing in GNOME

If you prefer to use GNOME and its development tools, the Glade GTK+ GUI builder (the giade-2 client) can help you save time and effort when building a basic skeleton for a program. You launch giade-2 from the desktop panel's Programming menu or from the command line of a terminal window, like this:

When you launch Glade, a directory named Projects is created in your home directory, and you see a main window, along with two floating Palette and Properties windows. (See Figure 30.3, which shows a basic GNOME client with a calendar widget added to its main window.) You can use Glade's File menu to save the blank project and then start building your client by clicking and adding user interface elements from the Palette window. For example, you can first click the Palette window's Gnome button and then click to create your new client's main window. A window with a menu and a toolbar appearsthe basic framework for a new GNOME client!

Figure 30.3. You can use the GNOME Glade client to build and preview a graphical interface for a custom GNOME program.

Figure 30.3. You can use the GNOME Glade client to build and preview a graphical interface for a custom GNOME program.

When you have finished building the client, you can select Build Source Code from the Project window's File menu, and Glade builds the necessary source code and scripts for the project. You can then build the project's configure script by executing the autogen.sh script in the project directory, as follows:

After you set up the project, as with KDevelop projects, you are ready to configure, build, and install your project. To begin that process, execute the following:

# make install

You will need to add code to fill in the actions for your new KDE or GNOME client when using these rapid prototyping tools. But kdevelop, designer, and glade can help save development time and effort. Use these environments to create a working skeleton application, and then fine-tune your new client's user interface.

Was this article helpful?

0 0

Post a comment