1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="anjuta-glade-start" xml:lang="ro">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="index#anjuta-glade" group="first"/>
7
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
9
<name>Johannes Schmid</name>
10
<email>jhs@gnome.org</email>
14
<title>Getting started with the user interface editor</title>
17
<title>Pornirea editorului de interfețe pentru utilizator</title>
20
<title>Create a new user-interface file</title>
24
<title>Open an existing user-interface file</title>
30
<title>Add widgets</title>
33
<title>Organize widgets in containers</title>
37
<title>Common widgets and what they are used for</title>
43
<title>Add widget properties</title>
47
<title>Generating code for widgets</title>
50
<title>Introduction</title>
51
<p>In a GUI program, sometimes, some widgets are only important for
52
generating events (eg: static buttons) while other ones are needed to
53
get or show data to the user (eg: a text entry). In this later case,
54
some code has to be generated so that these widgets can be accessed at
55
runtime. With the glade plug-in, <app>Anjuta</app> is able to automatically
61
<title>Automatic generation</title>
62
<p>To automatically generate code for a widget, some conditions must be
63
met: the glade plug-in must be running and the source file that will
64
hold the code must be opened. To make sure that the glade plug-in is
65
running, it is enough to open the <file>.ui</file> file that holds the UI for the
66
current project. By default, the file that will hold the code for the
67
widgets is the same one where callbacks will be created (eg:
68
<file>application.c</file>). Both files can easily be found in the project file list
69
and are automatically created by the project template.
72
<p>Once the glade plug-in is running and the file that will hold the code
73
is being viewed, simply double click a widget in the glade inspector.
74
The file being viewed will then be scanned for some marker comments
75
(/* ANJUTA: Widgets declaration for application.ui - DO NOT REMOVE */ and
76
/* ANJUTA: Widgets initialization for application.ui - DO NOT REMOVE */) and, if
77
found, code will be added right after such comments. So, for this feature to work
78
correctly, it is important not to modify such marker comments.