~ubuntu-branches/ubuntu/utopic/anjuta/utopic

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.1.56) (27.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20140712151739-eyw0ufhvwa5s11jc
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

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">
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>Start the user-interface editor</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 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.
79
 
                </p>
80
 
        </section>
81
 
 
82
 
</section>
83
 
 
84
 
 
85
 
</page>