~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to manuals/anjuta-manual/ro/anjuta-glade-start.page

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-17 23:48:26 UTC
  • mfrom: (1.1.50)
  • Revision ID: package-import@ubuntu.com-20120817234826-fvk3rfp6nmfaqi9p
Tags: 2:3.5.5-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump vala dependency to 0.18 series
  - Drop graphviz from build-depends
* debian/watch: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
3
 
 
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"/>
 
8
    <credit type="author">
 
9
      <name>Johannes Schmid</name>
 
10
      <email>jhs@gnome.org</email>
 
11
    </credit>
 
12
  </info>
 
13
 
 
14
  <title>Getting started with the user interface editor</title>
 
15
 
 
16
<section>
 
17
<title>Pornirea editorului de interfețe pentru utilizator</title>
 
18
 
 
19
<section>
 
20
<title>Create a new user-interface file</title>
 
21
</section>
 
22
 
 
23
<section>
 
24
<title>Open an existing user-interface file</title>
 
25
</section>
 
26
 
 
27
</section>
 
28
 
 
29
<section>
 
30
<title>Add widgets</title>
 
31
 
 
32
<section>
 
33
<title>Organize widgets in containers</title>
 
34
</section>
 
35
 
 
36
<section>
 
37
<title>Common widgets and what they are used for</title>
 
38
</section>
 
39
 
 
40
</section>
 
41
 
 
42
<section>
 
43
<title>Add widget properties</title>
 
44
</section>
 
45
 
 
46
<section>
 
47
<title>Generating code for widgets</title>
 
48
 
 
49
        <section>
 
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
 
56
                generate such code.
 
57
                </p>
 
58
        </section>
 
59
 
 
60
        <section>
 
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.
 
70
                </p>
 
71
 
 
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.
 
79
                </p>
 
80
        </section>
 
81
 
 
82
</section>
 
83
 
 
84
 
 
85
</page>