cvs: php-gtk /docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml

From: Date: Tue, 17 Apr 2001 01:29:08 +0000
Subject: cvs: php-gtk /docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1427@lists.php.net to get a copy of this message
sfox Mon Apr 16 18:29:08 2001 EDT Modified files: /php-gtk/docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml Log: Being brave! Hopefully constructor and methods look ok now on these.

Index: php-gtk/docs/en/classes/gtkaccellabel.xml diff -u php-gtk/docs/en/classes/gtkaccellabel.xml:1.5 php-gtk/docs/en/classes/gtkaccellabel.xml:1.6 --- php-gtk/docs/en/classes/gtkaccellabel.xml:1.5 Sun Apr 15 06:57:53 2001 +++ php-gtk/docs/en/classes/gtkaccellabel.xml Mon Apr 16 18:29:08 2001 @@ -2,19 +2,41 @@ <classmeta> <classtitle>GtkAccelLabel</classtitle> <classparent>GtkLabel</classparent> - <shortdesc>Displays accelerator keys</shortdesc> + <shortdesc>Displays accelerator keys.</shortdesc> <desc> <para> GtkAccelLabel is a widget for displaying an accelerator key to the right of the label text. </para> <para> - There are no signals associated with this object other than those it - inherits from the relevant base classes. + Labels do not emit signals. If you want to catch signals (e.g. from a + button click) you will need to put it in a <link linkend = "gtk.gtkeventbox">GtkEventBox</link>. </para> </desc> </classmeta> + <constructor id="gtk.gtkaccellabel.constructor.construct"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>construct</function> + </funcdef> + <paramdef>char <parameter>accel_label_text</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Constructs a GtkAccelLabel. + </shortdesc> + <desc> + <para> + The syntax to create a new GtkAccelLabel is: + <programlisting>$accellabel = &amp;new GtkAccelLabel(&quot;accel_label_string&quot;);</programlisting> + Alternatively you could pass a string to it by reference: + <programlisting>$accellabel = &amp;new GtkAccelLabel($name_for_accel_label);</programlisting> + </para> + </desc> + </constructor> + <methods> <method id="gtk.gtkaccellabel.method.get_accel_width"> @@ -26,12 +48,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - Returns the width of the accelerator display + Returns the width of the accelerator display. </shortdesc> <desc> <para> - Returns the width needed to display the accelerator key(s). - This is used by menus to align all GtkMenuItem widgets. + Returns the width needed to display the accelerator key(s). This is used + by menus to align all GtkMenuItem widgets. + <programlisting>$accellabel-&gt;get_accel_width();</programlisting> </para> </desc> </method> @@ -42,19 +65,18 @@ <funcdef> void <function>set_accel_widget</function> </funcdef> - <paramdef>resource <parameter>accel_widget</parameter></paramdef> + <paramdef>resource <parameter>accel_widget</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Sets the relevant widget for accel label display + Sets the relevant widget for accel label display. </shortdesc> <desc> <para> This is the method for setting the widget whose accelerators are going to be displayed. The syntax for using this is as follows: - <programlisting> -$widget =>($accellabel); - </programlisting> + <programlisting>$widget =&gt;($accellabel);</programlisting> + <!-- MARKUS, DIESE IST RICHTIG, ODER?--> </para> </desc> </method> @@ -68,14 +90,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - Recreates accelerator key string representation + Recreates accelerator key string representation. </shortdesc> <desc> <para> - This method recreates the string representing the accelerator key. - However the accelerator key strings are automatically updated whenever - accelerators are added to or removed from the associated widget, so + This method recreates the string representing the accelerator key. + However the accelerator key strings are automatically updated whenever + accelerators are added to or removed from the associated widget, so it's difficult to see where this might be of practical use. + <programlisting>$accellabel-&gt;refetch();</programlisting> </para> </desc> </method> Index: php-gtk/docs/en/classes/gtkitemfactory.xml diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.8 php-gtk/docs/en/classes/gtkitemfactory.xml:1.9 --- php-gtk/docs/en/classes/gtkitemfactory.xml:1.8 Sun Apr 15 14:22:56 2001 +++ php-gtk/docs/en/classes/gtkitemfactory.xml Mon Apr 16 18:29:08 2001 @@ -14,20 +14,24 @@ (for practical purposes) an abstract class when using GtkItemFactory, although an essential component when creating menus manually. </simpara> + <para> + The integer for the first parameter is found by using (for example) + <programlisting>GtkMenuBar::get_type()</programlisting> + as the first argument. The path name is arbitrary but must be placed within + &lt; and &gt; tags as the second parameter. The third parameter is provided + by a reference to a declared GtkAccelGroup. + </para> <para> <example> - <title>Using GTKOptionMenu</title> + <title>Using GTKOptionMenu</title> <simpara>Creating a GtkOptionMenu with GtkItemFactory.</simpara> <programlisting> $opt_menu = &amp;new GtkOptionMenu(); $accel_group = &amp;new GtkAccelGroup(); -$itemfactory = &amp;new -GtkItemFactory($opt_menu->get_type(),&quot;&lt;path>&quot;, $accel_group); - </programlisting> - <simpara> - See below for information regarding the menu array. - </simpara> - <programlisting> +$itemfactory = &amp;new GtkItemFactory($opt_menu->get_type(),&quot;&lt;path>&quot;, $accel_group); + </programlisting> + <simpara>See below for information regarding the menu array.</simpara> + <programlisting> $itemfactory->create_items($menu_array); $menu = $itemfactory->get_widget(&quot;&lt;path>&quot;); $menu->show(); @@ -36,10 +40,9 @@ </para> </desc> </classmeta> - - <methods> - <method id="gtk.gtkitemfactory.method.construct"> + + <constructor id="gtk.gtkitemfactory.constructor.construct"> <funcsynopsis> <funcprototype> <funcdef> @@ -53,16 +56,26 @@ <shortdesc> Constructs a GtkItemFactory menu. </shortdesc> + </constructor> + + <methods> + + <method id="gtk.gtkitemfactory.method.get_type"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_type</function> + </funcdef> + <paramdef>char <parameter>tba</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Short definition to go in here. + </shortdesc> <desc> - <para> - Constructs a GtkItemFactory menu. The integer for the first parameter is - found by using - <classname>GtkMenuBar</classname>::<function>get_type</function>() - as this first argument. The path name is arbitrary but - must be placed within <literal>&lt;</literal> and <literal>&gt;</literal> - tags. The third parameter is provided by a reference to a - declared GtkAccelGroup. - </para> + <simpara> + unknown quantity + </simpara> </desc> </method> @@ -130,7 +143,7 @@ <!-- TODO Document: get_item_by_action --> - <method id="gtk.gtkitemfactory.method.creat_items"> + <method id="gtk.gtkitemfactory.method.create_items"> <funcsynopsis> <funcprototype> <funcdef> @@ -147,82 +160,80 @@ Creates the menu items from an array, of which the values are as follows: <orderedlist numeration="none" spacing="compact"> <listitem> - <simpara> + <simpara> The menu path. The letter immediately after the underscore indicates an accelerator key which can be used when the menu in question is open. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> The accelerator key for entry. - </simpara> + </simpara> </listitem> <listitem> - <simpara> - The callback function. - </simpara> + <simpara> + The callback function. + </simpara> </listitem> <listitem> - <simpara> - The callback action. The default is 0. NEED TO LOOK INTO THIS FURTHER. - </simpara> + <simpara> + The callback action. The default is 0. NEED TO LOOK INTO THIS FURTHER + </simpara> </listitem> <listitem> - <simpara> - The item type, used to define what kind of an item within the menu each is. - </simpara> + <simpara> + The item type, used to define what kind of an item within the menu each is. + </simpara> </listitem> </orderedlist> </para> - <simpara> - The possible values for the item type are: - </simpara> <para> + The possible values for the item type are: <itemizedlist> <listitem> - <simpara> + <simpara> &lt;Title>: Creates a title item. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;Item>: Creates a simple item. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;CheckItem>: Creates a check item. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;ToggleItem>: Creates a toggle item. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;RadioItem>: Creates a radio item. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;Path>: Path of a radio item to link to. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;Separator>: Creates a separator. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;Branch>: Creates an item to hold sub items. - </simpara> + </simpara> </listitem> <listitem> - <simpara> + <simpara> &lt;LastBranch> Creates a right justified branch. - </simpara> + </simpara> </listitem> </itemizedlist> </para> @@ -246,7 +257,8 @@ Deletes menu (entire array) specified by path name. <note> <simpara> - <!-- Steph: You sure on this? Please check it out --> + <!-- Steph: You sure on this? Please check it out JAMES, I ALREADY DID, + IT GETS RID OF THE OBJECT COMPLETELY, DID I EXPLAIN THIS BADLY?--> This function needs to be called by reference. </simpara> </note> Index: php-gtk/docs/en/classes/gtklabel.xml diff -u php-gtk/docs/en/classes/gtklabel.xml:1.5 php-gtk/docs/en/classes/gtklabel.xml:1.6 --- php-gtk/docs/en/classes/gtklabel.xml:1.5 Sun Apr 15 06:57:53 2001 +++ php-gtk/docs/en/classes/gtklabel.xml Mon Apr 16 18:29:08 2001 @@ -1,157 +1,196 @@ <classentry id="gtk.gtklabel"> <classmeta> <classtitle>GtkLabel</classtitle> - <classparent>GtkMisc</classparent> - <shortdesc>Label class object</shortdesc> - <desc> - <para> - GtkLabel is a widget for displaying a small amount of text. If you need - to display a great deal of text, use GtkText instead. - </para> + <classparent>GtkMisc</classparent> + <shortdesc>Label class object</shortdesc> + <desc> + <para> + GtkLabel is a widget for displaying a small amount of text. If you need + to display a great deal of text, use GtkText instead. + </para> <para> - There are no signals associated with this object other than those it - inherits from the relevant base classes. + Labels do not emit signals. If you want to catch signals (e.g. from a + button click) you will need to put it in a <link linkend = "gtk.gtkeventbox">GtkEventBox</link>. </para> - </desc> + </desc> </classmeta> + <constructor id="gtk.gtklabel.constructor.construct"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>construct</function> + </funcdef> + <paramdef>char <parameter>labelstring</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Constructs a GtkLabel. + </shortdesc> + <desc> + <para> + The syntax to create a new GtkLabel widget is + <programlisting>$label = &amp;new GtkLabel(&quot;Initial or static label text&quot;);</programlisting> + </para> + </desc> +</constructor> + <methods> <method id="gtk.gtklabel.method.set_text"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>set_text</function> - </funcdef> - <paramdef>char <parameter>labeltext</parameter></paramdef> - </funcprototype> + <funcdef> + void <function>set_text</function> + </funcdef> + <paramdef>char <parameter>labeltext</parameter></paramdef> + </funcprototype> </funcsynopsis> <shortdesc> - Writes text to the label + Writes text to the label. </shortdesc> <desc> - <para> - <function>Set_text</function> is not needed when first creating a label; - this method is only useful for adding text to a label after it has been - created It could be used (for example) to declare server connection - status, or to reflect user input. - </para> - <para> - The syntax for creating a label with static text in it would be as follows: - <programlisting> - $label = &amp;new GtkLabel(&quot;Static Text From Start To Finish&quot;); - </programlisting> - </para> + <para> + <literal>set_text</literal> is not needed when first creating a label; + this method is only useful for replacing the text of the label later, + eg. to report a server connection status or to reflect user input. + </para> + <para> + <programlisting>$label-&gt;set_text(&quot;Whatever you wish to pass&quot;); + </programlisting> + This could also be passed as a reference to a string, e.g. + <programlisting>$label-&gt;set_text($pass_stuff);</programlisting> + </para> </desc> </method> <method id="gtk.gtklabel.method.set_justify"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>set_justify</function> - </funcdef> - <paramdef>int <parameter>justify</parameter></paramdef> - </funcprototype> + <funcdef> + void <function>set_justify</function> + </funcdef> + <paramdef>int <parameter>justify</parameter></paramdef> + </funcprototype> </funcsynopsis> <shortdesc> - Justify method + Justify method. </shortdesc> <desc> - <para> - This is the method for justifying text in GtkLabel. The options are - pre-set enum flags, giving the option of GTK_JUSTIFY_LEFT, - GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, or GTK_JUSTIFY_FILL. - </para> + <para> + This is the method for justifying text in GtkLabel. The options are + pre-set enum flags, giving the choices of: + </para> + <para> + <simplelist> + <member>GTK_JUSTIFY_LEFT,</member> + <member>GTK_JUSTIFY_RIGHT,</member> + <member>GTK_JUSTIFY_CENTER,</member> + <member>GTK_JUSTIFY_FILL.</member> + </simplelist> + </para> + <para> + <programlisting>$label-&gt;set_justify(GTK_JUSTIFY_LEFT);</programlisting> + </para> </desc> </method> <method id="gtk.gtklabel.method.set_pattern"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>set_pattern</function> - </funcdef> - <paramdef>char <parameter>pattern</parameter></paramdef> - </funcprototype> + <funcdef> + void <function>set_pattern</function> + </funcdef> + <paramdef>char <parameter>pattern</parameter></paramdef> + </funcprototype> </funcsynopsis> <shortdesc> - Underline method + Underline method. </shortdesc> <desc> - <para> - This is the method for underlining text in GtkLabel. It needs - to be defined as a pattern, eg if your text runs - <programlisting>&quot;Apple Banana Carrot&quot;</programlisting> then - <programlisting>&quot;_&nbsp;_&quot;</programlisting> will underline - Apple and Carrot but not Banana, where the space falls. - </para> + <para> + This is the method for underlining text in GtkLabel. It needs to be + defined as a pattern, eg if your text consists of + <literal>&quot;Apple Banana Carrot&quot;</literal>, then + &quot;__&nbsp;&nbsp;__&quot; will underline Apple and Carrot but not + Banana, as that is where the space falls. + </para> + <para> + <programlisting>$label-&gt;set_pattern(&quot;__ __&quot;);</programlisting> + </para> </desc> </method> <method id="gtk.gtklabel.method.set_line_wrap"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>set_line_wrap</function> - </funcdef> - <paramdef>bool <parameter>linewrap</parameter></paramdef> - </funcprototype> + <funcdef> + void <function>set_line_wrap</function> + </funcdef> + <paramdef>bool <parameter>linewrap</parameter></paramdef> + </funcprototype> </funcsynopsis> <shortdesc> - Linewrap toggle switch + Linewrap toggle switch. </shortdesc> <desc> <simpara> - Boolean switch between linewrap on and linewrap off, with + Boolean switch between linewrap on and linewrap off, with <literal>TRUE</literal> being linewrap on. </simpara> + <para> + <programlisting>$label-&gt;set_line_wrap(TRUE);</programlisting> + </para> </desc> </method> <method id="gtk.gtklabel.method.get"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>get</function> - </funcdef> - <paramdef>char <parameter>labeltext</parameter></paramdef> - </funcprototype> + <funcdef> + char <function>get</function> + </funcdef> + </funcprototype> </funcsynopsis> <shortdesc> - Method for harvesting current text content of label + Method for harvesting current text content of label. </shortdesc> <desc> - <para> - Writes the current text content of the label to the given string argument - <programlisting>&quot;labeltext&quot;</programlisting> - </para> + <para> + Returns the current text content of the label. + </para> + <para> + <programlisting>$label-&gt;get();</programlisting> + </para> </desc> </method> <method id="gtk.gtklabel.method.parse_uline"> <funcsynopsis> <funcprototype> - <funcdef> - void <function>parse_uline</function> - </funcdef> - <paramdef>char <parameter>text_to_be_parsed</parameter></paramdef> - </funcprototype> + <funcdef> + void <function>parse_uline</function> + </funcdef> + <paramdef>char <parameter>text_to_be_parsed</parameter></paramdef> + </funcprototype> </funcsynopsis> - <shortdesc> - Accelerator key definition method - </shortdesc> - <desc> - <para> - This method checks the text for underscores and then underlines the - character following the underscore. It will take the last underlined - character in a label and return it as a lower-case accelerator key, - eg <programlisting>&quot;_Save&quot;</programlisting> will return the - accelerator key value for <programlisting>&quot;s&quot;</programlisting>. - </para> - </desc> - </method> + <shortdesc> + Accelerator key definition method. + </shortdesc> + <desc> + <para> + This method checks the text for underscores, and then underlines the + character following the underscore. It will take the last underlined + character in a label and return it as a lower-case accelerator key, + e.g. &quot;_Save&quot; will return the accelerator key value for + &quot;s&quot;. + </para> + <para> + <programlisting>$label-&gt;parse_uline(&quot;_File&quot;);</programlisting> + </para> + </desc> +</method> - </methods> +</methods> </classentry> Index: php-gtk/docs/en/classes/gtktipsquery.xml diff -u php-gtk/docs/en/classes/gtktipsquery.xml:1.6 php-gtk/docs/en/classes/gtktipsquery.xml:1.7 --- php-gtk/docs/en/classes/gtktipsquery.xml:1.6 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtktipsquery.xml Mon Apr 16 18:29:08 2001 @@ -2,15 +2,34 @@ <classmeta> <classtitle>GtkTipsQuery</classtitle> <classparent>GtkLabel</classparent> - <shortdesc>Displays help text</shortdesc> + <shortdesc>Displays help text.</shortdesc> <desc> <para> - GtkTipsQuery is a widget for displaying help text in the user interface, + GtkTipsQuery is a widget for displaying help text in the user interface, triggered by a mouseover event. </para> </desc> </classmeta> + <constructor id="gtk.gtktipsquery.constructor.construct"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>construct</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Constructs a GtkTipsQuery. + </shortdesc> + <desc> + <para> + The syntax for creating a new GtkTipsQuery widget is: + <programlisting>$tipsquery = &amp;new GtkTipsQuery();</programlisting> + </para> + </desc> + </constructor> + <methods> <method id="gtk.gtktipsquery.method.start_query"> @@ -22,11 +41,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - Starts the query + Starts the query. </shortdesc> <desc> <para> - Starts the query + Starts the query. + <programlisting>$tipsquery-&gt;start_query();</programlisting> </para> </desc> </method> @@ -40,11 +60,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - Stops the query + Stops the query. </shortdesc> <desc> <para> - Stops the query + Stops the query. + <programlisting>$tipsquery-&gt;stop_query();</programlisting> </para> </desc> </method> @@ -55,17 +76,20 @@ <funcdef> void <function>set_caller</function> </funcdef> - <paramdef>char <parameter>var widget</parameter></paramdef> + <paramdef>char <parameter>$widget</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Sets the widget which initiates the query + Sets the widget which initiates the query. </shortdesc> <desc> <para> - Sets the widget which initiates the query. It would be equally simple - to slip this into the widget settings with the syntax as follows: - <programlisting>$widget->set_query()</programlisting> + Sets the widget which initiates the query. + <programlisting>$tipsquery-&gt;set_query($widget);</programlisting> + It would be equally simple to slip this into the widget settings with + the syntax as follows: + <programlisting>$widget->set_query();</programlisting> + <!-- MARKUS, DIESEN SIND RICHTIG, ODER? --> </para> </desc> </method> @@ -85,19 +109,27 @@ </shortdesc> <desc> <para> - Sets the text to display when the query is not running, and the text to - display when the query is running but the widget in question has no tooltip. + Sets the text to display when the query is not running, and the text to + display when the query is running but the widget in question has no + tooltip. +<programlisting>$tipsquery-&gt;set_labels(&quot;No query running&quot;, &quot;No tooltip&quot;);</programlisting> </para> </desc> </method> </methods> + <!-- Not at all sure what to do with signals. Markus, would you like to set + up some content as you would like to see it displayed, so that James can see what's needed here?--> + + <!--TODO - Rethink how we display signal parameters - SOME SIGNALS HAVE A + NUMBER OF PARAMETERS - sf.--> + <signals> <signal id="gtk.gtktipsquery.signal.start_query"> <signalname>start_query</signalname> - <firedwhen>Fired when the query is started</firedwhen> + <firedwhen>Fired when the query is started.</firedwhen> <shortdesc>Signal fired when tooltip query is started</shortdesc> <desc> <para> @@ -108,38 +140,37 @@ <signal id="gtk.gtktipsquery.signal.stop_query"> <signalname>stop_query</signalname> - <firedwhen>Fired when the query is stopped</firedwhen> + <firedwhen>Fired when the query is stopped.</firedwhen> <shortdesc>Signal fired when the tooltip query is stopped</shortdesc> <desc> - <simpara> + <para> This is the signal fired when a tooltip query is stopped. - </simpara> + </para> </desc> </signal> <signal id="gtk.gtktipsquery.signal.widget_entered"> <signalname>widget_entered</signalname> - <firedwhen>Fired when a widget is entered</firedwhen> + <firedwhen>Fired when a widget is entered.</firedwhen> <shortdesc> Fired when a widget is entered while the query is in effect </shortdesc> <desc> - <simpara> - This is the signal fired when a widget is entered while the - tooltip query is in effect. - </simpara> + <para> + This is the signal fired when a widget is entered while the tooltip query + is in effect. + </para> </desc> </signal> <signal id="gtk.gtktipsquery.signal.widget_selected"> <signalname>widget_selected</signalname> - <firedwhen>Fired when a widget is selected</firedwhen> + <firedwhen>Fired when a widget is selected.</firedwhen> <shortdesc>Fired when a widget is selected during a query</shortdesc> <desc> - <simpara> - I NEED TO TEST EVERYTHING ON LABELS BEFORE DOCUMENTING FURTHER. THIS - SIGNAL HAS A NUMBER OF PARAMETERS - sf. - </simpara> + <para> + This is the signal fired when a widget is selected. + </para> </desc> </signal>
« previous php.gtk (#1427) next »