# Glade-Oberflächenentwicklung-Handbuch

Mit Glade können Sie Benutzeroberflächen für GTK+-Anwendungen entwerfen.

2006 Vincent Geddes
2004 2003 Sun Microsystems
2002 2000 Michael Vance
GNOME-Dokumentationsprojekt
Vincent Geddes
GNOME-Dokumentationsprojekt

    vincent.geddes@gmail.com

Sun GNOME-Dokumentationsteam
Sun Microsystems
Michael Vance
GNOME-Dokumentationsprojekt
Glade-Handbuch 3.0
5. Dezember 2006

Vincent Geddes

GNOME-Dokumentationsprojekt

Glade-Handbuch 2.1;
17. Juni 2004

Sun GNOME-Dokumentationsteam

GNOME-Dokumentationsprojekt

Glade-Benutzerhandbuch 2.0
25. Februar 2004

Sun GNOME-Dokumentationsteam

GNOME-Dokumentationsprojekt

Glade-Benutzerhandbuch 1.2
10. Februar 2004

Sun GNOME-Dokumentationsteam

GNOME-Dokumentationsprojekt

Glade-Benutzerhandbuch 1.1
30. März 2002

Michael Vance

GNOME-Dokumentationsprojekt

Glade-Benutzerhandbuch 1.0
11. Mai 2000

Michael Vance

GNOME-Dokumentationsprojekt

Dieses Handbuch beschreibt Version 3.1.0 von Glade.

Rückmeldungen

To report a bug or make a suggestion regarding the Glade application or this manual, follow the directions in the GNOME Feedback Page.

## Einführung

The Glade interface designer enables you to create and edit user interface designs for GTK+ applications.

The GTK+ library provides an extensive collection of user interface building blocks such as text boxes, dialog labels, numeric entries, check boxes, and menus. These building blocks are called widgets. You can use Glade to place widgets in a GUI. Glade allows you to modify the layout and properties of these widgets. You can also use Glade to add connections between widgets and application source code.

The user interfaces designed in Glade are stored in an XML format, enabling easy integration with external tools. You can use the libglade library to dynamically create GUIs from the XML description.

## Erste Schritte

### Glade starten

You can start Glade in the following ways:

Applications menu

  Choose Programming Glade Interface Designer .

Befehlszeile

  To start Glade from a command line, type the following command, then press Return: `glade-3`

### Beim Start von Glade

When you start Glade, the following window is displayed.

Glade-Fenster

Zeigt das Glade-Fenster.

The Glade window contains the following elements:

Menüleiste

  The menus on the menubar contain all of the commands you need to work with files in Glade.

Werkzeugleiste

  Die Werkzeugleiste enthält eine Auswahl der Befehle, die Sie über die Menüleiste erreichen.

Entwurfsbereich

  Der Entwurfsbereich ist der Bereich, in dem die Benutzeroberfläche grafisch bearbeitet werden kann.

Palette

  Die Palette enthält die Widgets, die zum Erstellen einer Benutzeroberfläche verwendet werden können.

Inspekteur

  Der Inspekteur zeigt Informationen über die Widgets eines Projekts an.

Eigenschafteneditor

  Der Eigenschafteneditor wird benutzt, um die Eigenschaften eines Widgets zu ändern und Verknüpfungen zum Quellcode zu erzeugen.

Statusleiste

  The statusbar displays information about current Glade activity and contextual information about the menu items.

## Arbeiten mit Projekten

### Erstellen eines neuen Projekts

To create a new project, choose File New. The application displays a new blank project in the Glade window.

### Öffnen eines Projekts

To open an existing project, choose File Open. The application displays the project in the Glade window.

### Speichern eines Projekts

Sie können Projekte auf folgende Arten speichern:

- To save changes to an existing project file, choose File Save.

- To save a new project file or to save an existing project file under a new filename, choose File Save As . Enter a name for the project file in the Save As dialog, then click Save.

## Arbeiten mit Widgets

### Auswählen von Widgets aus der Palette

You can work with the widgets in the Palette window in the following ways:

Auswahlmodus

  To use selection mode, click on the Selector arrow. The pointer changes to an arrow to indicate that selection mode is active. In this mode, you use the mouse to select widgets in your project. You can then use the Properties window to edit the properties of the widgets.

  Sie können auch das Widget-Kontextmenü zur Auswahl eines Widgets benutzen. Ein Klick mit der rechten Maustaste auf ein Widget öffnet das Widget-Kontextmenü.

  You can add multiple widgets of a specific type from the Palette to your project by holding down the Control key when you select a widget. You need to click on the Selector arrow or another widget in the Palette to return to normal mode.

Widget-Platzierungsmodus

  To use widget placement mode, select a widget in the Palette window. When you select most widgets, the pointer changes to a pointer-plus-cross. You can then place the widget inside containers, top-level widgets, and so on. After you place a widget, the mode returns to selection mode.

Platzierungsmodus in der obersten Ebene

  To use top level placement mode, select a defined top-level widget in the Palette window. When you select a top-level widget in the Palette window, the widget appears immediately on your desktop. You can then edit the widget. After you select a top-level widget, the mode returns to selection mode.

### Organisieren von Widgets in Ihrem Projekt

You use widget containers, or boxes, to layout and organize widgets in your project window. You can choose the following widget containers from the Palette window:

- Horizontale Box

- Vertikale Box

- Tabelle

- Feste Positionen

- Horizontales Knopffeld

- Vertikales Knopffeld

- Horizontale Leisten

- Vertikale Leisten

- Reitermappe

- Rahmen

- Rollbares Fenster

- Sichtfeld

You can nest boxes to create complex layout structures. When you create horizontal and vertical boxes, Glade asks you how many rows or columns to create initially, though rows and columns can easily be added or deleted later.

When you have created all the boxes you require, you can add specific widgets like labels, buttons, and more complicated widgets into the boxes. Notice that Glade packs widgets into the layout which eliminates a lot of tedious work. The use of boxes enables windows to change size to accommodate different size labels in different languages when the application is localized.

### Ablegen eines Widgets in der Zwischenablage

To remove a widget from a parent and place the widget on the clipboard, select the widget then choose Edit Cut .

### Kopieren eines Widgets in die Zwischenablage

To copy a widget to the clipboard, select the widget then choose Edit Copy . The original widget remains attached to the parent.

### Einfügen eines Widgets aus der Zwischenablage in Ihr Projekt

To paste a widget that exists on the clipboard into your project, choose Edit Paste .

All widgets must have a unique name within Glade. If you cut a widget, and then paste the widget into your project, then the widget and all of the children of the widget keep their original names. If you copy a widget, or paste the widget multiple times into your project, then Glade generates new names for the widget copies.

### Entfernen eines Widgets

To delete a widget from the parent without moving the widget to the clipboard, select the widget then choose Edit Delete .

### Ändern der Eigenschaften eines Widgets

Der Eigenschafteneditor kann dazu verwendet werden, die Eigenschaften eines ausgewählten Widgets anzupassen. Um die Eigenschaften eines Widgets zu ändern, wählen Sie das Widget aus und ändern Sie den entsprechenden Wert in einem der Eingabefelder des Eigenschafteneditors.

## Info zu Glade

Glade is maintained by the Glade developers and GNOME community volunteers. To find more information about Glade, please visit the Glade Web site.

To report a bug or make a suggestion regarding this application or this manual, you can submit them using bugzilla.

Another excellent source of information are the Glade user and developer mailing lists. In addition to subscribing, you might also want to browse the list archives, available via these same links.

This program is distributed under the terms of the GNU General Public license as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license can be found at this link, or in the file COPYING included with the source code of this program.

glade
Grafischer Oberflächenentwurf