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

From: Date: Fri, 13 Apr 2001 15:50:06 +0000
Subject: cvs: php-gtk /docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml gtkwindow.xml
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1369@lists.php.net to get a copy of this message
jmoore Fri Apr 13 08:50:06 2001 EDT Modified files: /php-gtk/docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml gtkwindow.xml Log: - We dont need to escape $'s any more - Corrected Stephs XML in gtkitemfactory.xml Index: php-gtk/docs/en/classes/gtkaccellabel.xml diff -u php-gtk/docs/en/classes/gtkaccellabel.xml:1.3 php-gtk/docs/en/classes/gtkaccellabel.xml:1.4 --- php-gtk/docs/en/classes/gtkaccellabel.xml:1.3 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtkaccellabel.xml Fri Apr 13 08:50:05 2001 @@ -53,7 +53,7 @@ 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); +$widget =>($accellabel); </programlisting> </para> </desc> Index: php-gtk/docs/en/classes/gtkitemfactory.xml diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.4 php-gtk/docs/en/classes/gtkitemfactory.xml:1.5 --- php-gtk/docs/en/classes/gtkitemfactory.xml:1.4 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtkitemfactory.xml Fri Apr 13 08:50:05 2001 @@ -18,18 +18,18 @@ <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); +$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->create_items(\$menu_array); -\$menu = \$itemfactory->get_widget(&quot;&lt;path>&quot;); -\$menu->show(); +$itemfactory->create_items($menu_array); +$menu = $itemfactory->get_widget(&quot;&lt;path>&quot;); +$menu->show(); </programlisting> </example> </para> @@ -139,43 +139,87 @@ </shortdesc> <desc> <para> - <!-- TODO COrrect XML used here (itemized list!) --> 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: + <orderedlist numeration="none" spacing="compact"> + <listitem> + <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> + </listitem> + <listitem> + <simpara> + The accelerator key for entry. + </simpara> + </listitem> + <listitem> + <simpara> + The callback function; + </simpara> + </listitem> + <listitem> + <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> + </listitem> + </orderedlist> </para> + <simpara> + The possible values for the item type are: + </simpara> <para> - <informalexample> - <programlisting> - <!-- TODO Figure out WTF this is --> - NULL &quot;&lt;Item>&quot; ; - - &quot;&quot; &quot;&lt;Item>&quot; ; - - &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> + <itemizedlist> + <listitem> + <simpara> + &lt;Title>: Creates a title item. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;Item>: Creates a simple item. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;CheckItem>: Creates a check item. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;ToggleItem>: Creates a toggle item. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;RadioItem>: Creates a radio item. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;Path>: Path of a radio item to link to. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;Separator>: Creates a separator. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;Branch>: Creates an item to hold sub items. + </simpara> + </listitem> + <listitem> + <simpara> + &lt;LastBranch> Creates a right justified branch. + </simpara> + </listitem> + </itemizedlist> </para> </desc> </method> @@ -199,7 +243,7 @@ <example> <title>Deleting a Menu</title> <programlisting> -\$delete_option = \$item_factory->delete_item(&quot;&lt;path>&quot;); +$delete_option = $item_factory->delete_item(&quot;&lt;path>&quot;); </programlisting>. </example> <note> Index: php-gtk/docs/en/classes/gtklabel.xml diff -u php-gtk/docs/en/classes/gtklabel.xml:1.3 php-gtk/docs/en/classes/gtklabel.xml:1.4 --- php-gtk/docs/en/classes/gtklabel.xml:1.3 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtklabel.xml Fri Apr 13 08:50:05 2001 @@ -39,7 +39,7 @@ <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;); + $label = &amp;new GtkLabel(&quot;Static Text From Start To Finish&quot;); </programlisting> </para> </desc> Index: php-gtk/docs/en/classes/gtktipsquery.xml diff -u php-gtk/docs/en/classes/gtktipsquery.xml:1.3 php-gtk/docs/en/classes/gtktipsquery.xml:1.4 --- php-gtk/docs/en/classes/gtktipsquery.xml:1.3 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtktipsquery.xml Fri Apr 13 08:50:05 2001 @@ -65,7 +65,7 @@ <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> + <programlisting>$widget->set_query()</programlisting> </para> </desc> </method> Index: php-gtk/docs/en/classes/gtkwindow.xml diff -u php-gtk/docs/en/classes/gtkwindow.xml:1.3 php-gtk/docs/en/classes/gtkwindow.xml:1.4 --- php-gtk/docs/en/classes/gtkwindow.xml:1.3 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtkwindow.xml Fri Apr 13 08:50:05 2001 @@ -43,13 +43,13 @@ The correct way to create a new window </simpara> <programlisting> -\$window = &amp;new GtkWindow(); +$window = &amp;new GtkWindow(); </programlisting> <simpara> This will cause problems later on </simpara> <programlisting> -\$window = new GtkWindow(); +$window = new GtkWindow(); </programlisting> </example> </refsect1>

« previous php.gtk (#1369) next »