# Priročnik snovalnika uporabniških vmesnikov Glade

Glade je snovalnik uporabniških vmesnikov za programe GTK+.

2006
Vincent Geddes
2004
2003
Sun Microsystems
2002
2000
Michael Vance
Projekt dokumentacije GNOME
Vincent
Geddes
Projekt dokumentacije GNOME

    vincent.geddes@gmail.com

Sun
Skupina dokumentacije GNOME
Sun Microsystems
Michael
Vance
Projekt dokumentacije GNOME
Priročnik Glade 3.0
5. december 2006

Vincent Geddes

Projekt dokumentacije GNOME

Priročnik Glade 2.1;
17. junij 2004

Skupina dokumentacije Sun GNOME

Projekt dokumentacije GNOME

Uporabniški priročnik Glade 2.0
25. februar 2004

Skupina dokumentacije Sun GNOME

Projekt dokumentacije GNOME

Uporabniški priročnik Glade 1.2
10. februar 2004

Skupina dokumentacije Sun GNOME

Projekt dokumentacije GNOME

Uporabniški priročnik Glade 1.1
30. marec 2002

Michael Vance

Projekt dokumentacije GNOME

Uporabniški priročnik Glade 1.0
11. maj 2000

Michael Vance

Projekt dokumentacije GNOME

Priročnik opisuje Glade različice 3.1.0

## Odziv

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

## Uvod

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.

## Kako začeti

### Zagon programa Glade

You can start Glade in the following ways:

Applications menu

  Choose Programming Glade Interface Designer .

Ukazna vrstica

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

### Ko zaženete Glade

When you start Glade, the following window is displayed.

#### Okno Glade

Pokaže okno Glade.

The Glade window contains the following elements:

Menijska vrstica

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

Orodna vrstica

  Orodna vrstica vsebuje podmnožico ukazov, ki so dostopni iz menijske vrstice.

Snovalno območje

  Snovalno območje je predel, kjer je mogoče vidno urejati uporabniški vmesnik.

Paleta

  Paleta vsebuje gradnike, ki se uporabljajo za izgradnjo uporabniškega vmesnika.

Nadzornik

  Nadzornik pokaže podrobnosti o gradnikih v projektu.

Urejevalnik lastnosti

  Urejevalnik lastnosti se uporablja za delo z lastnostmi gradnikov in za dodajanje povezav z izvorno kodo.

Vrstica stanja

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

## Delo s projekti

### Ustvarjanje novega projekta

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

### Odpiranje projekta

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

### Shranjevanje projekta

Projekte lahko shranite na naslednje načine:

- 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.

## Delo z gradniki

### Izbiranje gradnikov iz okna palete

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

Način izbiranja

  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.

  Za izbiranje gradnika lahko uporabite tudi vsebinski meni gradnika. Za odpiranje vsebinskega menija gradnika uporabite desni klik miške, postavljene na gradniku.

  You can add multiple widgets of a specific type from the Paleta 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 Paleta to return to normal mode.

Način postavitve gradnikov

  To use widget placement mode, select a widget in the Paleta 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.

Način umeščanja na najvišje ravni

  To use top level placement mode, select a defined top-level widget in the Paleta window. When you select a top-level widget in the Paleta 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.

### Urejanje gradnikov v projektu

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

- Vodoravno polje

- Navpično polje

- Preglednica

- Določen položaj

- Vodoravno polje gumbov

- Navpično polje gumbov

- Vodoraven pladenj

- Navpičen pladenj

- Beležnica

- Okvir

- Drsno okno

- Vidno polje

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.

### Dodajanje gradnika v odložišče

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

### Kopiranje gradnika v odložišče

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

### Prelepljenje gradnika iz odložišča v 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.

### Brisanje gradnika

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

### Spreminjanje lastnosti gradnika

Urejevalnik lastnosti se uporablja za urejanje lastnosti izbranega gradnika. Za spreminjanje lastnosti gradnika izberite gradnik in vnesite želeno vrednost v enega izmed polj v oknu lastnosti.

## O 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.