1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="anjuta-glade-start">
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>Ξεκινώντας με τον επεξεργαστή διεπαφής χρήστη</title>
17
<title>Έναρξη του επεξεργαστή διεπαφής χρήστη</title>
20
<title>Δημιουργία νέου αρχείου διεπαφής χρήστη</title>
24
<title>Άνοιγμα υπάρχοντος αρχείου διεπαφής χρήστη</title>
30
<title>Προσθήκη γραφικών συστατικών</title>
33
<title>Οργάνωση των γραφικών συστατικών σε περιέκτες</title>
37
<title>Κοινά γραφικά συστατικά και η χρήση τους</title>
43
<title>Προσθήκη ιδιοτήτων γραφικών συστατικών</title>
47
<title>Παραγωγή κώδικα για γραφικά συστατικά</title>
50
<title>Εισαγωγή</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>Αυτόματη παραγωγή</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 open, simply double click a widget in the glade inspector.
74
The associated file 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.