cvs: php-gtk-doc /examples/reference/gtk/gtktreemodel filter_new.phpw /manual/en/reference/gtk gtktreemodel.xml

From: Date: Thu, 22 Dec 2005 09:52:39 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtktreemodel filter_new.phpw /manual/en/reference/gtk gtktreemodel.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1729@lists.php.net to get a copy of this message
cweiske Thu Dec 22 09:52:39 2005 EDT Added files: /php-gtk-doc/examples/reference/gtk/gtktreemodel filter_new.phpw Modified files: /php-gtk-doc/manual/en/reference/gtk gtktreemodel.xml Log: Finished (?) GtkTreeModel docs - just the methods which need to be changed are missing

http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml?r1=1.1&r2=1.2&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml:1.1 php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml:1.2 --- php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml:1.1 Thu Dec 22 01:39:18 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtktreemodel.xml Thu Dec 22 09:52:39 2005 @@ -28,15 +28,28 @@ <method id="gtk.gtktreemodel.method.filter_new"> <funcsynopsis> <funcprototype> - <funcdef>void <function>filter_new</function></funcdef> - <paramdef>void</paramdef> + <funcdef><classname>GtkTreeModelFilter</classname> <function>filter_new</function></funcdef> + <paramdef><classname>GtkTreePath</classname> <parameter>path</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new filter using the given path as root. </shortdesc> <desc> - + <para> + Creates and returns a new tree filter which uses the node referenced + by the given <parameter>path</parameter> as root node (not visible). + That means you can use it to display a part of the tree only. + </para> + <example> + <title>Displaying a part of the tree only</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtktreemodel/filter_new.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </method> @@ -252,16 +265,18 @@ <method id="gtk.gtktreemodel.method.iter_children"> <funcsynopsis> <funcprototype> - <funcdef>??? <function>iter_children</function></funcdef> - <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> + <funcdef><classname>GtkTreeIter</classname> <function>iter_children</function></funcdef> + <paramdef><classname>GtkTreeIter</classname> <parameter><optional>parent</optional></parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns iter for the first child row. </shortdesc> <desc> <para> - + Returns an iterator for the first child row of <parameter>parent</parameter>. + If the parameter is omitted, or <literal>NULL</literal> is passed, the iterator to + the first root row is returned. </para> </desc> </method> @@ -269,45 +284,53 @@ <method id="gtk.gtktreemodel.method.iter_has_child"> <funcsynopsis> <funcprototype> - <funcdef>void <function>iter_has_child</function></funcdef> - <paramdef>void</paramdef> + <funcdef>bool <function>iter_has_child</function></funcdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + If an iterator has one or more children. </shortdesc> <desc> - + <para> + Tells you if the passed iterator has children rows or not. + </para> </desc> </method> <method id="gtk.gtktreemodel.method.iter_n_children"> <funcsynopsis> <funcprototype> - <funcdef>void <function>iter_n_children</function></funcdef> - <paramdef>void</paramdef> + <funcdef>int <function>iter_n_children</function></funcdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the number of childen <parameter>iter</parameter> has. </shortdesc> <desc> - + <para> + Returns the number of children <parameter>iter</parameter> has. + </para> </desc> </method> <method id="gtk.gtktreemodel.method.iter_next"> <funcsynopsis> <funcprototype> - <funcdef>void <function>iter_next</function></funcdef> - <paramdef>void</paramdef> + <funcdef><classname>GtkTreeIter</classname> <function>iter_next</function></funcdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Next iterator on the same level. </shortdesc> <desc> - + <para> + Returns an iterator to the next row on the same level as + <parameter>sibling</parameter>. Returns NULL if the row + has no follower. + </para> </desc> </method> @@ -319,7 +342,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME: behavior needs to be changed </shortdesc> <desc> @@ -334,7 +357,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME: behavior needs to be changed </shortdesc> <desc> @@ -349,7 +372,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> @@ -360,14 +383,17 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>row_changed</function></funcdef> - <paramdef>void</paramdef> + <paramdef><classname>GtkTreePath</classname> <parameter>path</parameter></paramdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Emits the "row_changed" signal. </shortdesc> <desc> - + <para> + Emits the "row_changed" signal. + </para> </desc> </method> @@ -375,14 +401,16 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>row_deleted</function></funcdef> - <paramdef>void</paramdef> + <paramdef><classname>GtkTreePath</classname> <parameter>path</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Emits the "row_deleted" signal. </shortdesc> <desc> - + <simpara> + Emits the "row_deleted" signal. + </simpara> </desc> </method> @@ -390,14 +418,19 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>row_has_child_toggled</function></funcdef> - <paramdef>void</paramdef> + <paramdef><classname>GtkTreePath</classname> <parameter>path</parameter></paramdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Emits the "row_has_child_toggled" signal. </shortdesc> <desc> - + <simpara> + Emits the "row_has_child_toggled" signal. + This should be called by models after the child state of + a node changes. + </simpara> </desc> </method> @@ -405,14 +438,17 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>row_inserted</function></funcdef> - <paramdef>void</paramdef> + <paramdef><classname>GtkTreePath</classname> <parameter>path</parameter></paramdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Emits the "row_inserted" signal. </shortdesc> <desc> - + <simpara> + Emits the "row_inserted" signal. + </simpara> </desc> </method> @@ -424,7 +460,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtktreemodel/filter_new.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtktreemodel/filter_new.phpw +++ php-gtk-doc/examples/reference/gtk/gtktreemodel/filter_new.phpw <?php $store = new GtkTreeStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG); $nothern = $store->append(null, array('Northern europe', 0)); $western = $store->append(null, array('Western europe', 0)); $central = $store->append(null, array('Central europe', 0)); $ger = $store->append($central, array('Germany', 83251851)); $fr = $store->append($western, array('France', 59765983)); $nl = $store->append($western, array('Netherlands', 16318199)); $no = $store->append($nothern, array('Norway', 4525116)); //display it $wnd = new GtkWindow(); $wnd->set_title('GtkTreeStore example'); $wnd->connect_simple('destroy', array('gtk', 'main_quit')); //get the path to western europe $westpath = $store->get_path($western); //create view which shows western europe only $view = new GtkTreeView($store->filter_new($westpath)); //cell renderer, which actually displays the text $cell_renderer = new GtkCellRendererText(); //append one column to the view which displays the tree store column 0 $view->append_column(new GtkTreeViewColumn('Country', $cell_renderer, 'text', 0)); //display column 1 from the tree store $view->append_column(new GtkTreeViewColumn('Population', $cell_renderer, 'text', 1)); //show all children at once $view->expand_all(); $wnd->add($view); $wnd->show_all(); Gtk::main(); ?>
« previous php.gtk.doc (#1729) next »