[PHP-GTK-DOC] sorry all, in .txt add files again.
[email protected] (mikespook) Mon, 11 Dec 2006 21:24:03 +0800
| Newsgroups | php.gtk.doc |
|---|---|
| Message-ID | <[email protected]> |
Added files: php-gtk-doc/manual/zh_cn/tutorials/changes.xml php-gtk-doc/manual/zh_cn/tutorials/glade.xml php-gtk-doc/manual/zh_cn/tutorials/packing.xml Log: Translated. Now, I know why no one received my .patch file in the list. Sorry again. It will be .txt next time. Mike -- 广州市一方信息咨询有限公司 地址:广州市 江南大道中 穗花村 三巷12号204 邮编:510245 电话:020-39738561 020-39738571 传真:020-84476279 网站:www.i-fang.com 邮件:[email protected]
glade.xml.txt
(text/plain, 6.7 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- EN-Revision: 1.6 Maintainer: mikespook Status: ready -->
<!-- $Revision: 1.5 $ -->
<chapter id="tutorials.helloglade">
<title>Hello Glade!</title>
<sect1>
<title></title>
<para>
PHP-Gtk 2 <literal>.glade</literal>
</para>
<para>
Glade2 Gtk 2
<filename>.glade</filename>
PHP-Gtk 2
</para>
<simpara>
Glade
Glade
</simpara>
</sect1>
<sect1 id="tutorials.helloglade.preparation">
<title></title>
<simpara>
Glade
<filename>.glade</filename>
</simpara>
<para>
id <literal>wndClose</literal>
<literal>btnClose</literal>
</para>
<example>
<title> .glade - helloglade.glade</title>
<programlisting role="xml">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/helloglade.glade" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect1>
<sect1 id="tutorials.helloglade.loading">
<title></title>
<para>
<filename>.glade</filename>
<classname>GladeXML</classname>
</para>
<example>
<title> .glade </title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/loading.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
<para>
</para>
<sect2 id="tutorials.helloglade.connecting">
<title></title>
<para>
<function class="GtkObject">connect</function>
<function class="GtkObject">connect_simple</function>
<function class="GladeXML">get_widget</function> id
</para>
<example>
<title></title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/connecting_by_hand.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect2>
<sect2 id="tutorials.helloglade.autoconnect">
<title> Glade </title>
<para>
<filename>.glade</filename> <signal>
<function class="GladeXML">signal_autoconnect</function> Glade
</para>
<para>
<literal>Classname::methodName</literal>
</para>
<example>
<title> signal_autoconnect</title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/autoconnect.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect2>
<sect2 id="tutorials.helloglade.autoconnect_instance">
<title></title>
<para>
</para>
<para>
<function class="GladeXML">signal_autoconnect_instance</function>
<function class="GladeXML">signal_autoconnect</function>
</para>
<example>
<title> signal_autoconnect_instance</title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/autoconnect_instance.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect2>
</sect1>
<sect1 id="tutorials.helloglade.partial">
<title> .glade </title>
<para>
<filename>.glade</filename>
<filename>.glade</filename>
a) b) Glade
<function class="GladeXML">signal_autoconnect_instance</function>
<filename>.glade</filename>
</para>
<para>
<classname>GladeXML</classname>
id
<filename>.glade</filename>
</para>
<example>
<title> .glade </title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/helloglade/partially.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect1>
</chapter>
changes.xml.txt
(text/plain, 10.3 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- EN-Revision: 1.6 Maintainer: mikespook Status: translating -->
<!-- $Revision: 1.6 $ -->
<chapter id="tutorials.changes">
<title>PHP-GTK 1 </title>
<sect1>
<title></title>
<simpara>
PHP-GTK 1 PHP-GTK 2
</simpara>
<simpara>
PHP-GTK 2 GTK 2
PHP-GTK 2
</simpara>
</sect1>
<sect1 id="tutorials.changes.loadmodule">
<title> php_gtk </title>
<para>
PHP-GTK 1 phpgtk
<filename>php.ini</filename>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/changes/extension_load.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</para>
<para>
PHP 5 <literal>dl()</literal>
PHP-GTK
PHP-GTK
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/changes/extension_check.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</para>
</sect1>
<sect1 id="tutorials.changes.references">
<title>& </title>
<para>
PHP 4 OO
Java GTK
<programlisting role="php"><![CDATA[
//PHP 4:
$a = new GtkLabel();
$a->set_text('1');
$b = $a;
$b->set_text('2');
echo $a->get();//still 1
]]></programlisting>
&
<programlisting role="php"><![CDATA[
//PHP 4:
$a = new GtkLabel();
$a->set_text('1');
$b = &$a;
$b->set_text('2');
echo $a->get();//is 2 now
]]></programlisting>
<emphasis></emphasis>
GTK
<programlisting role="php"><![CDATA[
//PHP 4:
$a = &new GtkLabel();
]]></programlisting>
</para>
<para>
PHP 5
PHP 5 PHP-GTK 2
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/changes/ampersand_php5.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</para>
<para>
PHP 4 GTK 1
<programlisting role="php"><![CDATA[
$window->connect_object('destroy', array(&$object, 'function'));
]]></programlisting>
PHP 5 GTK 2 &
<programlisting role="php"><![CDATA[
$window->connect_simple('destroy', array($object, 'function'));
]]></programlisting>
</para>
</sect1>
<sect1 id="tutorials.changes.constants">
<title>GTK </title>
<para>
GTK + PHP-GTK 1
<programlisting role="php"><![CDATA[
echo GTK_WIN_POS_CENTER;
]]></programlisting>
PHP-GTK 2
</para>
<screen><![CDATA[
PHP Notice: Use of undefined constant GTK_WIN_POS_CENTER -
assumed 'GTK_WIN_POS_CENTER' in /path/to/file.php on line 23
]]></screen>
<para>
PHP-GTK 1
<literal>GTK_WIN_POS_CENTER</literal> <literal>1</literal>
<literal>"GTK_WIN_POS_CENTER"</literal> PHP-GTK 2
The string literal itself,
<literal>"GTK_WIN_POS_CENTER"</literal>, is all PHP-GTK 2 sees
- which is likely to break your code.
</para>
<para>
PHP 5 PHP-GTK
<literal>Gtk</literal><literal>Gdk</literal>
</para>
<para>
<literal>_</literal>
: PHP-GTK 1 <literal>GTK_WIN_POS_CENTER</literal>
PHP-GTK 2 <literal>Gtk::WIN_POS_CENTER</literal>
</para>
<para>
PHP-GTK 2
<literal>Gtk</literal><literal>Gdk</literal><literal>Pango</literal>
<literal>Atk</literal>
</para>
</sect1>
<sect1 id="tutorials.changes.connect">
<title></title>
<para>
PHP-GTK 1
<function class="GtkObject">connect</function>,
<function class="GtkObject">connect_object</function>,
<function class="GtkObject">connect_after</function> or
<function class="GtkObject">connect_object_after</function>.
<literal>connect_object</literal>
</para>
<para>
GTK API PHP-GTK 2
<literal>connect_object</literal> <function
class="GtkObject">connect_simple</function>
<literal>connect_object_after</literal> <function
class="GtkObject">connect_simple_after</function>
<emphasis>Simple</emphasis>
<literal>connect_object</literal>
</para>
</sect1>
<sect1 id="tutorials.changes.deprecated">
<title></title>
<simpara>
GTK 2
</simpara>
<simpara>
GTK 3
</simpara>
<!-- xsltproc segfaults when I uncomment the table!
Because of that I used the unordered list.
<table>
<title>List of deprecated widgets</title>
<tgroup>
<thead>
<row>
<entry>Old widget class</entry>
<entry>New widget class</entry>
</row>
</thead>
<tbody>
<row>
<entry><classname>GtkCList</classname></entry>
<entry><classname>GtkTreeView</classname> with <classname>GtkListStore</classname></entry>
</row>
<row>
<entry><classname>GtkCTree</classname></entry>
<entry><classname>GtkTreeView</classname> with <classname>GtkTreeStore</classname></entry>
</row>
<row>
<entry><classname>GtkPixmap</classname></entry>
<entry><classname>GtkImage</classname> with <classname>GdkPixbuf</classname></entry>
</row>
</tbody>
</tgroup>
</table>
-->
<para>
<itemizedlist>
<title></title>
<listitem>
<classname>GtkCList</classname> <classname>GtkList</classname> =>
<classname>GtkTreeView</classname> <classname>GtkListStore</classname>
</listitem>
<listitem>
<classname>GtkCTree</classname> =>
<classname>GtkTreeView</classname> <classname>GtkTreeStore</classname>
</listitem>
<listitem>
<classname>GtkCombo</classname> <classname>GtkOptionMenu</classname> =>
<classname>GtkComboBox</classname> <classname>GtkTreeModel</classname>
</listitem>
<listitem>
<classname>GtkItemFactory</classname> =>
<classname>GtkUIManager</classname>
</listitem>
<listitem>
<classname>GtkOldEditable</classname> =>
<classname>GtkEditable</classname>
</listitem>
<listitem>
<classname>GtkPixmap</classname> and <classname>GtkPreview</classname> =>
<classname>GtkImage</classname> <classname>GdkPixbuf</classname>
</listitem>
<listitem>
<literal>GtkText</literal> =>
<classname>GtkTextView</classname> <classname>GtkTextBuffer</classname>
</listitem>
</itemizedlist>
</para>
<para>
<itemizedlist>
<title></title>
<listitem>
<function class="GtkWindow">set_policy</function> =>
<function classname="GtkWindow">set_resizable</function>
</listitem>
</itemizedlist>
</para>
<simpara>
<ulink url="mailto:[email protected]">php-gtk-doc</ulink>
</simpara>
</sect1>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
packing.xml.txt
(text/plain, 7.1 KB)
<?xml version="1.0" encoding="utf-8" ?>
<!-- EN-Revision: 1.5 Maintainer: mikespook Status: ready -->
<!-- $Revision: 1.5 $ -->
<chapter id="tutorials.packing">
<title></title>
<sect1 id="tutorials.packing.about">
<title></title>
<simpara>
</simpara>
<para>
Visual Basic Visual C++
<literal>(x,y)</literal>
</para>
<simpara>
Gtk
</simpara>
</sect1>
<sect1 id="tutorials.packing.basics">
<title></title>
<simpara>
Gtk
</simpara>
<itemizedlist>
<listitem></listitem>
<listitem></listitem>
<listitem></listitem>
</itemizedlist>
<para>
<classname>GtkWindow</classname>
</para>
<para>
<classname>GtkHBox</classname>
<classname>GtkVBox</classname><classname>GtkTable</classname>
<classname>GtkFixed</classname>
</para>
<!-- TODO: Explain filling and expanding, with screenshot -->
</sect1>
<sect1 id="tutorials.packing.box">
<title> GtkHBox GtkVBox</title>
<para>
<classname>GtkBox</classname>
<classname>GtkHBox</classname> <classname>GtkVBox</classname>
<classname>GtkHBox</classname>
<classname>GtkVBox</classname>
</para>
<para>
<function class="GtkBox">pack_start</function>
<function class="GtkBox">pack_end</function>
<function class="GtkBox">pack_start</function>
<function class="GtkBox">pack_end</function>
</para>
<para>
<function class="GtkBox">pack_start</function>
<function class="GtkBox">pack_end</function>
</para>
<example>
<title> <classname>GtkVBox</classname> </title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/packing/boxes.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
<para>
<varname>scrwnd</varname>
<literal>true</literal> <literal>false</literal>
</para>
<para>
<classname>GtkBox</classname>
<classname>GtkHButtonBox</classname> <classname>GtkVButtonBox</classname>
<classname>GtkButton</classname>
</para>
</sect1>
<sect1 id="tutorials.packing.table">
<title> GtkTable </title>
<para>
<classname>GtkBox</classname>
<classname>GtkTable</classname>
</para>
<example>
<title></title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/packing/table.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
<para>
<literal>Id</literal>
<classname>GtkLabel</classname>
<function class="GtkLabel">set_justify</function>
<classname>GtkAlignment</classname>
<literal>Name</literal>
</para>
</sect1>
<sect1 id="tutorials.packing.fixed">
<title></title>
<para>
<function class="GtkWidget">set_size_request</function>
</para>
<simpara>
</simpara>
<example>
<title> <classname>GtkFixed</classname> </title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/tutorials/packing/fixed.phpw" parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
</example>
</sect1>
</chapter>