cvs: php-gtk /docs manual.xml.in /docs/en/classes gtkdata.xml gtkitemfactory.xml gtkmisc.xml

From: Date: Tue, 10 Apr 2001 15:02:34 +0000
Subject: cvs: php-gtk /docs manual.xml.in /docs/en/classes gtkdata.xml gtkitemfactory.xml gtkmisc.xml
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1338@lists.php.net to get a copy of this message
sfox Tue Apr 10 08:02:34 2001 EDT Modified files: /php-gtk/docs manual.xml.in /php-gtk/docs/en/classes gtkdata.xml gtkitemfactory.xml gtkmisc.xml Log: Can't do any more with ItemFactory or Data, both need technical know-how pleae - all offers gratefull accepted :)

Index: php-gtk/docs/manual.xml.in diff -u php-gtk/docs/manual.xml.in:1.16 php-gtk/docs/manual.xml.in:1.17 --- php-gtk/docs/manual.xml.in:1.16 Sun Apr 8 08:40:26 2001 +++ php-gtk/docs/manual.xml.in Tue Apr 10 08:02:33 2001 @@ -49,9 +49,7 @@ <classsetmeta> <classsettitle>&GtkClasses;</classsettitle> <shortdesc>&GtkClassesShortDesc;</shortdesc> - <desc> - &GtkClassesDesc; - </desc> + <desc>&GtkClassesDesc;</desc> </classsetmeta> &classes.gtkobject; &classes.gtkwidget; Index: php-gtk/docs/en/classes/gtkdata.xml diff -u php-gtk/docs/en/classes/gtkdata.xml:1.2 php-gtk/docs/en/classes/gtkdata.xml:1.3 --- php-gtk/docs/en/classes/gtkdata.xml:1.2 Sun Apr 8 08:44:21 2001 +++ php-gtk/docs/en/classes/gtkdata.xml Tue Apr 10 08:02:33 2001 @@ -2,9 +2,15 @@ <classmeta> <classtitle>GtkData</classtitle> - <shortdesc>Abstract data class</shortdesc> + <shortdesc>A base class for widgets containing data</shortdesc> <desc> - GtkData is an abstract object used as the base class for class objects containing data, eg adjustment and tooltip class objects. It provides no methods and only one signal, "disconnect". + <para> + GtkData is an abstract object used as the base class for class objects containing data, eg adjustment and tooltip widgets. + </para> + <para> + This object should not be accessed by the PHP developer directly. It is used + and documented here for inheritance purposes, not for actual use. + </para> </desc> </classmeta> @@ -15,9 +21,7 @@ <firedwhen>fired when a data class object is no longer to be viewed</firedwhen> <shortdesc>Indicates disconnection from a data class object</shortdesc> <desc> - The disconnect signal is fired just before a data class object is destroyed. See the - signals documentation for information on how to use this - signal. + The disconnect signal is fired just before a data class object is destroyed. IT NEEDS TO HAVE THE SIGNAL HANDLER ID RETURNED TO IT (INTEGER) - HOW WOULD YOU GO ABOUT SETTING THIS UP? - NB THIS IS THE ONLY PARAMETER REQUIRED </desc> </signal> Index: php-gtk/docs/en/classes/gtkitemfactory.xml diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.1 php-gtk/docs/en/classes/gtkitemfactory.xml:1.2 --- php-gtk/docs/en/classes/gtkitemfactory.xml:1.1 Sun Apr 8 07:55:21 2001 +++ php-gtk/docs/en/classes/gtkitemfactory.xml Tue Apr 10 08:02:33 2001 @@ -2,9 +2,37 @@ <classmeta> <classtitle>GtkItemFactory</classtitle> - <shortdesc>Base class object of ItemFactory class objects.</shortdesc> + <shortdesc>A base class for ItemFactory widgets</shortdesc> <desc> - THIS NEEDS A CODE SAMPLE - REQUIRES THREE ARGS. No signals. + <simpara> + GtkItemFactory is a widget providing a shortcut to menu creation in PHP-GTK. + </simpara> + <simpara> + There are three possible menutype options: GtkMenu, GtkMenuBar or GtkOptionMenu. GtkMenu is a container rather than a menu format and is (for practical purposes) an abstract class when using GtkItemFactory, although an essential component when creating menus manually. + </simpara> + <para> + <informalexample> + <programlisting><![CDATA[ + <lineannotation> + /* -- Creating a GtkOptionMenu with GtkItemFactory -- */ </lineannotation> + + <varname>opt_menu</varname> = &amp;new GtkOptionMenu(); + + <varname>accel_group</varname> = &amp;new GtkAccelGroup(); + + <varname>itemfactory</varname> = &amp;new GtkItemFactory(<varname>opt_menu</varname>->get_type(),&quot;&lt;path>&quot;, <varname>accel_group</varname>); + + <lineannotation> + /* -- See below for information regarding the menu array -- */ </lineannotation> + + <varname>itemfactory</varname>->create_items(<varname>menu_array</varname>); + + <varname>menu</varname> = <varname>itemfactory</varname>->get_widget(&quot;&lt;path>&quot;); + + <varname>menu</varname>->show();]]> + </programlisting> + </informalexample> + </para> </desc> </classmeta> @@ -14,18 +42,20 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>construct</function> + void <function>construct</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>int <parameter>menu_type</parameter></paramdef> + <paramdef>char <parameter>path</parameter></paramdef> + <paramdef>resource <parameter>accel_group</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Get the type of an object. + Constructs a GtkItemFactory menu </shortdesc> <desc> - Longer definition to go in here inc samples. - + <para> + Constructs a GtkItemFactory menu. The integer for the first parameter is found by using <programlisting>GtkMenuBar::get_type()</programlisting> as part of the construct statement. The path name is arbitrary but must be placed within <programlisting><![CDATA[&quot;< >&quot;]]></programlisting>. The third parameter is provided by a reference to a declared GtkAccelGroup. + </para> </desc> </method> @@ -33,18 +63,16 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>get_item</function> + void <function>get_item</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>char <parameter>tba</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> Short definition to go in here. </shortdesc> <desc> - Longer definition to go in here inc samples. - + NOT SURE - BELIEVE THIS CALLS THE INDIVIDUAL MENU ITEMS FROM THE ARRAY, UNABLE TO TEST THIS THEORY - DATATYPE IS CORRECT </desc> </method> @@ -52,18 +80,18 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>get_widget</function> + void <function>get_widget</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>char <parameter>path</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Short definition to go in here. + Calls the GtkItemFactory menu widget by its path identity </shortdesc> <desc> - Longer definition to go in here inc samples. - + <simpara> + Calls the GtkItemFactory menu widget by its path identity. The path identity allocated does not seem to be important here, however it is only valid within its home function. + </simpara> </desc> </method> @@ -71,18 +99,16 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>get_widget_by_action</function> + void <function>get_widget_by_action</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>int <parameter>tba</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> Short definition to go in here. </shortdesc> <desc> - Longer definition to go in here inc samples. - + UNABLE TO TEST - INTEGER VALUES APPEAR TO BE 0 OR 1 (IE IT'S BOOLEAN REALLY) </desc> </method> @@ -90,18 +116,16 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>get_item_by_action</function> + void <function>get_item_by_action</function> </funcdef> <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> Short definition to go in here. </shortdesc> <desc> - Longer definition to go in here inc samples. - + UNABLE TO TEST </desc> </method> @@ -109,37 +133,70 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>creat_items</function> + void <function>create_items</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>char <parameter>array</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Short definition to go in here. + Creates the menu items from an array </shortdesc> <desc> - Longer definition to go in here inc samples. - - </desc> - </method> + <para> + Creates the menu items from an array, of which the values are as follows: + 1. The menu path. The letter immediately after the underscore indicates an + accelerator key which can be used when the menu in question is open; + 2. The accelerator key for entry; + 3. The callback function; + 4. The callback action. The default is 0. NEED TO LOOK INTO THIS FURTHER; + 5. The item type, used to define what kind of an item within the menu each is. The possible values here are: + </para> + <para> + <informalexample> + <programlisting><![CDATA[ + + NULL &quot;&lt;Item>&quot; ; + + &quot;&quot; &quot;&lt;Item>&quot; ; - <method> - <funcsynopsis> - <funcprototype> - <funcdef> - dtype <function>delete_item</function> - </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - </funcprototype> - </funcsynopsis> + &quot;&lt;Title>&quot; creates a title item ; + + &quot;&lt;Item>&quot; creates a simple item ; + + &quot;&lt;CheckItem>&quot; creates a check item ; + + &quot;&lt;ToggleItem>&quot; creates a toggle item ; + + &quot;&lt;RadioItem>&quot; creates a radio item ; + + &quot;&lt;path>&quot; path of a radio item to link to ; + + &quot;&lt;Separator>&quot; creates a separator ; + + &quot;&lt;Branch>&quot; creates an item to hold sub items ; + + &quot;&lt;LastBranch>&quot; creates a right justified branch]]> + + </programlisting> + </informalexample> + </para> + </desc> + </method> + + <method> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>delete_item</function> + </funcdef> + <paramdef>char <parameter>path</parameter></paramdef> + </funcprototype> + </funcsynopsis> <shortdesc> - Short definition to go in here. + Deletes item specified by path parameter </shortdesc> <desc> - Longer definition to go in here inc samples. - + Deletes menu (entire array) specified by path name. Needs to be called by reference, eg <programlisting><![CDATA[var delete_option = var item_factory->delete_item(&quot;&lt;path>&quot;);]]></programlisting>. nb This does not delete the window in which the menu array resides. </desc> </method> @@ -147,18 +204,17 @@ <funcsynopsis> <funcprototype> <funcdef> - dtype <function>popup</function> + void <function>popup</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>int <parameter>tba</parameter></paramdef> + <paramdef>int <parameter>tba</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Short definition to go in here. + Creates an instance of the menu. </shortdesc> <desc> - Longer definition to go in here inc samples. - + Creates an instance of the menu which is not automatically deleted or frozen should another instance be created. This method can be used in place of show(); to create something very like a familiar proprietary windows environment ;) - NB UNABLE TO ASCERTAIN WHICH FACET OF THE MENU'S BEHAVIOUR IS AFFECTED BY THE INTEGER VALUES DURING TEST (IE NOT SIZE NOR POSITION - DATATYPE IS CORRECT </desc> </method> Index: php-gtk/docs/en/classes/gtkmisc.xml diff -u php-gtk/docs/en/classes/gtkmisc.xml:1.2 php-gtk/docs/en/classes/gtkmisc.xml:1.3 --- php-gtk/docs/en/classes/gtkmisc.xml:1.2 Mon Apr 9 01:23:04 2001 +++ php-gtk/docs/en/classes/gtkmisc.xml Tue Apr 10 08:02:33 2001 @@ -1,9 +1,9 @@ -<classentry id='gtk.gtkmisc'> +<classentry id="gtk.gtkmisc"> <classmeta> <classtitle>GtkMisc</classtitle> <classparent>GtkWidget</classparent> <shortdesc> - A base class for widgets with alignments and padding. + A base class for widgets with alignments and padding </shortdesc> <desc> <para>
« previous php.gtk (#1338) next »