cvs: php-gtk-doc /examples/reference/gtk/gtkcolorselection constructor.phpw /examples/reference/gtk/gtkcolorselectiondialog constructor.phpw
/images/reference/gtk gtkcolorselection.png gtkcolorselectiondialog.png gtkexpander.png /manual/en/reference/gtk gtkcolorselection.xml
gtkcolorselectiondialog.xml gtkexpander.xml

From: Date: Fri, 02 Dec 2005 23:27:20 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtkcolorselection constructor.phpw /examples/reference/gtk/gtkcolorselectiondialog constructor.phpw
/images/reference/gtk gtkcolorselection.png gtkcolorselectiondialog.png gtkexpander.png /manual/en/reference/gtk gtkcolorselection.xml
gtkcolorselectiondialog.xml gtkexpander.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1686@lists.php.net to get a copy of this message
cweiske Fri Dec 2 18:27:20 2005 EDT Added files: /php-gtk-doc/images/reference/gtk gtkcolorselection.png gtkcolorselectiondialog.png gtkexpander.png /php-gtk-doc/examples/reference/gtk/gtkcolorselection constructor.phpw /php-gtk-doc/examples/reference/gtk/gtkcolorselectiondialog constructor.phpw Modified files: /php-gtk-doc/manual/en/reference/gtk gtkcolorselection.xml gtkcolorselectiondialog.xml gtkexpander.xml Log: Added some small examples and some images for expander, colorselection and colorselection dialog http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml?r1=1.5&r2=1.6&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.5 Fri Dec 2 16:49:21 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml Fri Dec 2 18:27:19 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkColorSelection</classtitle> <classparent>GtkVBox</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkcolorselection.png"/> <shortdesc> Widget that is used to select a color. </shortdesc> @@ -29,8 +30,21 @@ Creates a new <classname>GtkColorSelection</classname> </shortdesc> <desc> - Creates a new <classname>GtkColorSelection</classname> widget used to - select a color. + <para> + Creates a new <classname>GtkColorSelection</classname> widget used to + select a color. + </para> + + <example> + <title>GtkColorSelection embedded in a window</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkcolorselection/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> + </desc> </constructor> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.4 Fri Dec 2 16:49:21 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml Fri Dec 2 18:27:19 2005 @@ -3,12 +3,13 @@ <classmeta> <classtitle>GtkColorSelectionDialog</classtitle> <classparent>GtkDialog</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkcolorselectiondialog.png"/> <shortdesc> - A standard dialog box selecting a color. + A standard dialog box to select a color. </shortdesc> <desc> The <classname>GtkColorSelectionDialog</classname> provides a standard - dialog box which allows the user to select a color. The Dialog box + dialog box which allows the user to select a color. The dialog box implements the <classname>GtkColorSelection</classname> widget to enable the user to pick a color. </desc> @@ -27,8 +28,21 @@ Creates a new GtkColorSelectionDialog. </shortdesc> <desc> - Use the constructor to create a new - <classname>GtkColorSelectionDialog</classname>. + <para> + Use the constructor to create a new + <classname>GtkColorSelectionDialog</classname>. + </para> + + <example> + <title>Customized GtkColorSelectionDialog</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkcolorselectiondialog/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> + </desc> </constructor> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml?r1=1.5&r2=1.6&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.5 Fri Dec 2 16:49:21 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml Fri Dec 2 18:27:19 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkExpander</classtitle> <classparent>GtkBin</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkexpander.png"/> <shortdesc> A container that can hide its child. </shortdesc> http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtkcolorselection/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtkcolorselection/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkcolorselection/constructor.phpw <?php //Create the window in which the colorselector will be placed $window = new GtkWindow(); //Set the window title $window->set_title('GtkColorSelection demo'); //Quit the gtk loop when the window is being destroyed $window->connect_simple('destroy', array('gtk', 'main_quit')); //our color selection widget $colorsel = new GtkColorSelection(); //An extra button to be placed in the window $btnClose = new GtkButton('_Quit'); $btnClose->connect_simple('clicked', array($window, 'destroy')); //color selector and button will be placed there $vbox = new GtkVBox(); $vbox->pack_start($colorsel); $vbox->pack_start($btnClose, false); $window->add($vbox); $window->show_all(); Gtk::main(); ?> http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtkcolorselectiondialog/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtkcolorselectiondialog/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkcolorselectiondialog/constructor.phpw <?php //Create the color selection dialog $dlgColorsel = new GtkColorSelectionDialog('GtkColorSelectionDialog demo'); //Quit Gtk loop when destroying the dialog $dlgColorsel->connect_simple('destroy', array('gtk', 'main_quit')); //Let the Cancel button quit the program $dlgColorsel->cancel_button->connect_simple('clicked', array($dlgColorsel, 'destroy')); //The OK button shows the current color $dlgColorsel->ok_button->set_label('Show color'); $dlgColorsel->ok_button->connect('clicked', 'showColor'); //The callback function when the OK button is clicked function showColor($button) { $dlgColorsel = $button->get_toplevel(); $color = $dlgColorsel->colorsel->get_current_color(); //The GdkColor has 48 bit depth (each R, B and G 16 bit). As //we just want 8 bit, we shift the values by 8 bit $strColor = 'RGB: ' . ($color->red >> 8) . ' ' . ($color->green >> 8) . ' ' . ($color->blue >> 8); $msg = new GtkMessageDialog(null, 0, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, $strColor); $msg->run(); $msg->destroy(); }//function showColor($button) //The help button shall be hidden $dlgColorsel->help_button->hide(); //show the dialog $dlgColorsel->show(); //start the main loop Gtk::main(); ?>

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