cvs: php-gtk-doc /examples/reference/gtk/gtkvbox constructor.phpw /manual/en/reference/gtk gtkvbox.xml /manual/en/tutorials doccing.xml

From: Date: Mon, 31 Oct 2005 10:31:40 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtkvbox constructor.phpw /manual/en/reference/gtk gtkvbox.xml /manual/en/tutorials doccing.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1588@lists.php.net to get a copy of this message
cweiske Mon Oct 31 05:31:40 2005 EDT Added files: /php-gtk-doc/examples/reference/gtk/gtkvbox constructor.phpw Modified files: /php-gtk-doc/manual/en/tutorials doccing.xml /php-gtk-doc/manual/en/reference/gtk gtkvbox.xml Log: - Added JP's gtkvbox file and example - Added Coding standards to the doccing howto http://cvs.php.net/diff.php/php-gtk-doc/manual/en/tutorials/doccing.xml?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/manual/en/tutorials/doccing.xml diff -u php-gtk-doc/manual/en/tutorials/doccing.xml:1.3 php-gtk-doc/manual/en/tutorials/doccing.xml:1.4 --- php-gtk-doc/manual/en/tutorials/doccing.xml:1.3 Wed Oct 26 04:55:15 2005 +++ php-gtk-doc/manual/en/tutorials/doccing.xml Mon Oct 31 05:31:39 2005 @@ -488,4 +488,37 @@ </sect2> </sect1> + + + <sect1 id="tutorials.doccing.standards"> + <title>Coding standards</title> + <simpara> + To keep the documentation consistent, we set the following rules + which have to be followed when writing the xml documentation files: + </simpara> + + <itemizedlist> + <listitem> + All files are to be written in + <ulink url="http://en.wikipedia.org/wiki/UTF-8">UTF-8</ulink> + </listitem> + <listitem> + Indent of XML tags is <literal>1</literal> more than its parent. + </listitem> + <listitem> + Space characters are used for indentation. Tabs are not allowed, not even + if enough spaces sum up to the width of one tab. + </listitem> + <listitem> + Lines have to be broken at 80 chars maximum. + </listitem> + </itemizedlist> + + <para> + PHP examples have to follow the + <ulink url="http://cvs.php.net/co.php/php-gtk/CODING_STANDARDS">PHP-Gtk + coding standards</ulink>. + </para> + </sect1> + </chapter> \ No newline at end of file http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkvbox.xml Mon Oct 31 05:31:39 2005 @@ -4,31 +4,65 @@ <classtitle>GtkVBox</classtitle> <classparent>GtkBox</classparent> <shortdesc> - + A vertical box for organizing child widgets. </shortdesc> <desc> - + <para> + The <classname>GtkVBox</classname> container is designed to organize child widgets along + a single column, by allocating the same width to all children. This overrides any child + requisition size, and child widgets that take up less than the allocated width are vertically + centered by default. + </para> + <para> + Adding child widgets to a <classname>GtkVBox</classname> is done by packing methods that are + either inherited from the <classname>GtkBox</classname> class, such as + <function class="GtkBox">pack_start</function>, or by the less flexible + <function class="GtkContainer">add</function>, common to all container widgets. + </para> + <para> + See also: + <classname>GtkHBox</classname>, <classname>GtkTable</classname>, <classname>GtkButtonBox</classname>, + <classname>GtkBox</classname>, <classname>GtkContainer</classname>. + </para> </desc> </classmeta> <constructors> - <constructor id="gtk.gtkvbox.constructor"> <funcsynopsis> <funcprototype> <funcdef> <function>GtkVBox</function></funcdef> <paramdef>bool <parameter><optional>homogeneous = FALSE</optional></parameter></paramdef> - <paramdef>int <parameter>spacing</parameter></paramdef> + <paramdef>int <parameter><optional>spacing = 0</optional></parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a container for arranging widgets vertically. </shortdesc> <desc> - + <para> + Creates a new vertical box container for packing child widgets into a column. + </para> + <para> + The parameter <parameter>homogeneous</parameter> is a boolean value which defines whether all + child widgets in the box should be assigned the height of the largest widget. The default + behaviour (false) is to maintain the individual height of the widgets unchanged. + The second parameter, <parameter>spacing</parameter>, defines the minimum number of pixels to + be left between widgets. + </para> + <example> + <title>GtkHBox and GtkVBox packing demonstration</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkvbox/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> </constructors> </classentry> + http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtkvbox/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtkvbox/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkvbox/constructor.phpw <?php //Here we create the GtkWindow $window = new GtkWindow(); $window->set_title("GtkHBox and GtkVBox packing demonstration"); $window->set_position(Gtk::WIN_POS_CENTER); $window->connect_simple("destroy", array("gtk", "main_quit")); $window->show(); //Adding a GtkVBox to our $window $vbox = new GtkVBox(false, 5); $window->add($vbox); //Let's add a GtkLabel as the first (topmost) widget in our $vbox $label = new GtkLabel(); $label->set_text("This GtkLabel is packed at the start of a GtkVBox. The GtkCalendar and the empty GtkTextView below are packed, respectively, at the start and the end of a GtkHBox, which is in turn packed at the end of the GtkVBox."); $label->set_justify(Gtk::JUSTIFY_LEFT); $vbox->pack_start($label, true, true, 5); $label->show(); //Adding a GtkHBox to the end (bottom) of the $vbox $hbox = new GtkHBox(true, 0); $vbox->pack_end($hbox); //Here we'll add GtkCalendar to the start (ie. the left) of the $hbox $calendar = new GtkCalendar(); $hbox->pack_start($calendar, true, true, 2); $calendar->show(); //Adding a GtkTextView to the end (ie. the right) fo the $hbox $text = new GtkTextView(); $text->set_editable(true); $hbox->pack_end($text, true, true, 2); $text->show(); $window->show_all(); Gtk::main(); ?>

« previous php.gtk.doc (#1588) next »