]>
Manual do deseñado de interfaces Glade Glade é un deseñador de interface de usuario para aplicativos GTK+ 2006 Vincent Geddes 2004 2003 Sun Microsystems 20022000 Michael Vance Proxecto de Documentación de GNOME Vincent Geddes GNOME Documentation Project
vincent.geddes@gmail.com
Sun GNOME Documentation Team Sun Microsystems Michael Vance GNOME Documentation Project
Glade Manual 3.0 5 December 2006 Vincent Geddes GNOME Documentation Project Glade Manual 2.1; 17 June 2004 Sun GNOME Documentation Team GNOME Documentation Project Glade User Manual 2.0 25 February 2004 Sun GNOME Documentation Team GNOME Documentation Project Glade User Manual 1.2 10 Feb 2004 Sun GNOME Documentation Team GNOME Documentation Project Glade User Manual 1.1 30 Mar 2002 Michael Vance GNOME Documentation Project Glade User Manual 1.0 11 May 2000 Michael Vance GNOME Documentation Project Este manual describe a versión 3.1.0 de Glade. Comentarios To report a bug or make a suggestion regarding the Glade application or this manual, follow the directions in the GNOME Feedback Page.
glade user interface designer Introdución O deseñador de interfaces Glade permítelle crear e editar deseños de interfaces de usuario para aplicativos GTK+. As bibliotecas GTK+ fornecen unha extensa colección de bloques de construción de interfaces de usuario tales como caixas, etiquetas de diálogo, entradas numéricas, casillas de selección e menús. Estes bloques de construción chámanse widgets. Pode usar Glade para emprazar widgets nun GUI. Glade permítelle modificar o esquema e propiedades deses widgets. Tamén pode usar Glade para engadir conexións entre widgets e o código fonte dun aplicativo. As interfaces de usuario deseñados en Glade almacénanse nun formato XML, permitindo unha integración doada con ferramentas externas. Pode usar a biblioteca libglade para crear dinamicamente GUIs desde a descrición XML. Inicio Para iniciar <application>Glade</application> Pode iniciar Glade das seguintes formas: Menú Aplicativos Choose Programming Glade Interface Designer . Liña de ordes To start Glade from a command line, type glade and then press Return. Cando inicie <application>Glade</application> Mostrarase a seguinte xanela cando inicie Glade.
Xanela de <application>Glade</application> Shows theGlade window.
A xanela do Glade contén os seguintes elementos: Barra de menú Os menús da barra de menú contén tódolas ordes que poida precisar para traballar con ficheiros en Glade. Barra de ferramentas A barra de ferramentas contén un xogo de ordes ás que pode acceder desde a barra de menú. Área de deseño O área de deseño é onde se pode editar visualmente unha interface de usuario. Paleta A paleta contén os widtets que se poden usar para construír unha interface de usuario. Inspector O inspector mostra información sobre os widgets dun proxecto. Editor de propiedades O editor de propiedades úsase para manipular as propiedades dos widgets, así como para engadir conexións ao código fonte. Barra de estado A barra de estado mostra información sobre a actividade actual de Glade e tamén información contextual sobre os elementos de menú.
Traballar con proxectos Crear un novo proxecto Para crear un novo proxecto, seleccoine FicheiroNovo. O aplicativo mostrará un proxecto baleiro nunha xanela de Glade. Abrir un proxecto Para abrir un proxecto existente, seleccione FicheiroAbrir. O aplicativo mostrará o proxecto na xanela de Glade. Gardar un proxecto Para gardar proxectos das seguintes formas: Para gardar cambios sobre un ficheiro de proxecto existente, seleccione FicheiroGardar. 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. Traballar con widgets Para seleccionar widgets da xanela de paleta Pode traballar con widgets da xanela Paleta das seguintes formas: Modo de selección Para usar o modo de selección, prema na frecha do Selector. O punteiro do rato cambiará a unha frecha para indicar que o modo de selección está activado. Neste modo, pode usar o rato para seleccionar widgets no seu proxecto. Entón poderá usar a xanela de Propiedades para editar as propiedades dos widgets. Tamén pode usar o menú contextual para seleccionar un widget. Prema co botón dereito do rato sobre un widget para abrir un menú contextual do widget.Desde a Paleta pode engadir múltiples widgets dun tipo específico ao seu proxecto mantendo premida a tecla Control cando seleccione un widget. Debe premer sobre a tecla do Selector ou sobre outro widget na Paleta para volver ao modo normal. Modo de emprazamento de widgets 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. Modo de emprazamento de nivel superior 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. Para organizar os widgets no seu proxecto 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: Caixa horizontal Caixa vertical Táboa Posicións fixas Botonera horizontal Botonera vertical Paneis horizontais Paneis verticais Caderno Marco Xanela con barras de desprazamento Área de visualización 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. Para emprazar un widget no portapapeis To remove a widget from a parent and place the widget on the clipboard, select the widget then choose Edit Cut . To Copy a Widget to the Clipboard To copy a widget to the clipboard, select the widget then choose Edit Copy . The original widget remains attached to the parent. To Paste a Widget From the Clipboard Into Your Project 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. Para eliminar un widget To delete a widget from the parent without moving the widget to the clipboard, select the widget then choose Edit Delete . Para cambiar unha propiedade dun widget The property editor is used to edit the properties of a selected widget. To change a property of a widget, select the widget and then enter an appropriate value in one of the Property window's property fields. Sobre 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.