cvs: php-gtk-doc / gen_manual.sh /manual global.ent /manual/en/reference/gtk gtkiconview.xml gtkmessagedialog.xml
| From: | Christian Weiske | Date: | Tue, 02 Aug 2005 05:51:52 +0000 |
| Subject: | cvs: php-gtk-doc / gen_manual.sh /manual global.ent /manual/en/reference/gtk gtkiconview.xml gtkmessagedialog.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1497@lists.php.net to get a copy of this message | ||
cweiske Tue Aug 2 01:51:52 2005 EDT
Modified files:
/php-gtk-doc gen_manual.sh
/php-gtk-doc/manual/en/reference/gtk gtkiconview.xml
gtkmessagedialog.xml
/php-gtk-doc/manual global.ent
Log:
XIncludes are used now for examples scripts, which shall be placed in
the php-gtk-doc/examples/ directory. To reference such an file in a
programlisting, do a
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="&directory.examples;/reference/gtk/gtkiconview/constructor.phpw"
parse="text">
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
Maybe we should change the text a bit?
http://cvs.php.net/diff.php/php-gtk-doc/gen_manual.sh?r1=1.2&r2=1.3&ty=u
Index: php-gtk-doc/gen_manual.sh
diff -u php-gtk-doc/gen_manual.sh:1.2 php-gtk-doc/gen_manual.sh:1.3
--- php-gtk-doc/gen_manual.sh:1.2 Mon May 2 08:24:28 2005
+++ php-gtk-doc/gen_manual.sh Tue Aug 2 01:51:50 2005
@@ -70,7 +70,7 @@
rm -R $build_dir/*
fi
-xsltproc --param base.dir "'./$build_dir/'" $xslfile
manual/$language/$manualfile
+xsltproc --param base.dir "'./$build_dir/'" --xinclude $xslfile
manual/$language/$manualfile
if [ $type == "html" ] && [ $test == "0" ]; then
$php -q distribute_html.php $language
http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml?r1=1.6&r2=1.7&ty=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.6
php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.7
--- php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.6 Wed Jul 27 07:45:23 2005
+++ php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml Tue Aug 2 01:51:52 2005
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
<classentry id="gtk.gtkiconview">
<classmeta>
<classtitle>GtkIconView</classtitle>
@@ -41,44 +42,10 @@
<example>
<title><classname>GtkIconView</classname> filled with stock
icons</title>
<programlisting role="php">
- <![CDATA[
-<?php
-//GtkIconView example
-$wnd = new GtkWindow();
-$wnd->set_title('GtkIconView');
-$wnd->set_default_size(400, 400);
-$wnd->connect_object('destroy', array('gtk', 'main_quit'));
-
-$iv = new GtkIconView();
-
-$model = new GtkListStore(GdkPixbuf::gtype, Gtk::TYPE_STRING);
-$iv->set_model($model);
-
-//fill the model with some nice icons
-$ids = Gtk::stock_list_ids();
-sort($ids);
-foreach ($ids as $id) {
- $pixbuf = $iv->render_icon($id, Gtk::ICON_SIZE_DIALOG);
- $model->set($model->append(), 0, $pixbuf, 1, $id);
-}
-
-$iv->set_pixbuf_column(0);
-$iv->set_text_column(1);
-
-//number of columns in view, not model
-$iv->set_columns(0);
-$iv->set_item_width(100);
-
-//make it scrollable
-$scrollwin = new GtkScrolledWindow();
-$scrollwin->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
-$scrollwin->add($iv);
-
-$wnd->add($scrollwin);
-$wnd->show_all();
-Gtk::main();
-?>
- ]]>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtkiconview/constructor.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
</programlisting>
</example>
</desc>
http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml?r1=1.2&r2=1.3&ty=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.2
php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.3
--- php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.2 Wed Jul 27 10:01:47 2005
+++ php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml Tue Aug 2 01:51:52 2005
@@ -46,30 +46,10 @@
<example>
<title>A modal <classname>GtkMessageDialog</classname></title>
<programlisting role="php">
- <![CDATA[
-<?php
-$dialog = new GtkMessageDialog(
- null,//parent
- Gtk::DIALOG_MODAL,
- Gtk::MESSAGE_QUESTION,
- Gtk::BUTTONS_YES_NO,
- 'Do you like PHP-Gtk2?'
-);
-//optional colored text
-$dialog->set_markup('Do <b>you</b> like PHP-Gtk <span
foreground="red">2</span>?');
-
-$answer = $dialog->run();
-$dialog->destroy();
-
-if ($answer == Gtk::RESPONSE_YES) {
- echo "You like me! Thanks!\r\n";
-} else if ($answer == Gtk::RESPONSE_NO) {
- echo "Why not?\r\n";
-} else {
- echo "Why didn't you press a button?\r\n";
-}
-?>
- ]]>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtkmessagedialog/constructor.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
</programlisting>
</example>
<para>
http://cvs.php.net/diff.php/php-gtk-doc/manual/global.ent?r1=1.1&r2=1.2&ty=u
Index: php-gtk-doc/manual/global.ent
diff -u php-gtk-doc/manual/global.ent:1.1 php-gtk-doc/manual/global.ent:1.2
--- php-gtk-doc/manual/global.ent:1.1 Mon Apr 11 17:04:07 2005
+++ php-gtk-doc/manual/global.ent Tue Aug 2 01:51:52 2005
@@ -1,5 +1,5 @@
<!--
- $Id: global.ent,v 1.1 2005/04/11 21:04:07 cweiske Exp $
+ $Id: global.ent,v 1.2 2005/08/02 05:51:52 cweiske Exp $
Contains global "macros" for all the XML documents.
All URLS and emails should be placed in here then
referenced in the text as, for example &url.gtk -->
@@ -58,3 +58,6 @@
<!ENTITY version.php "<en>4.3.4</en>">
<!ENTITY version.phpgtk "<en>1.0.0</en>">
+
+<!-- for xincludes: the directory -->
+<!ENTITY directory.examples "../../examples">