cvs: php-gtk-doc /examples/reference/gtk/gtkdialog constructor.phpw /examples/reference/gtk/gtkeventbox constructor.phpw /manual/en/reference/gtk
gtkaboutdialog.xml gtkarrow.xml gtkcalendar.xml gtkcurve.xml gtkdialog.xml gtkeventbox.xml gtkfontbutton.xml gtkmessagedialog.xml

From: Date: Wed, 28 Dec 2005 12:11:30 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtkdialog constructor.phpw /examples/reference/gtk/gtkeventbox constructor.phpw /manual/en/reference/gtk
gtkaboutdialog.xml gtkarrow.xml gtkcalendar.xml gtkcurve.xml gtkdialog.xml gtkeventbox.xml gtkfontbutton.xml gtkmessagedialog.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1737@lists.php.net to get a copy of this message
cweiske Wed Dec 28 12:11:30 2005 EDT Added files: /php-gtk-doc/examples/reference/gtk/gtkdialog constructor.phpw /php-gtk-doc/examples/reference/gtk/gtkeventbox constructor.phpw Modified files: /php-gtk-doc/manual/en/reference/gtk gtkaboutdialog.xml gtkarrow.xml gtkcalendar.xml gtkcurve.xml gtkdialog.xml gtkeventbox.xml gtkfontbutton.xml gtkmessagedialog.xml Log: Committing Anant's patches

http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml:1.5 Sat Nov 5 15:23:14 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkaboutdialog.xml Wed Dec 28 12:11:29 2005 @@ -5,14 +5,14 @@ <classparent>GtkDialog</classparent> <classimage fileref="&directory.images;/reference/gtk/gtkaboutdialog.png"/> <shortdesc> - Display information about an application + Display information about an application. </shortdesc> <desc> <para> The GtkAboutDialog offers a simple way to display information about a program like its logo, name, copyright, website and license. It is also possible to give credits to the authors, - documenters, translators and artists who have worked on the + the documentation team, translators and artists who have worked on the program. An about dialog is typically opened when the user selects the About option from the Help menu. All parts of the dialog are optional. @@ -40,7 +40,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - Constructs a new about dialog + Constructs a new about dialog. </shortdesc> <desc> <para> @@ -79,7 +79,7 @@ </shortdesc> <desc> <simpara> - Returns artists credits as an array. + Returns artists credits as an array. </simpara> <para> See also: @@ -100,14 +100,13 @@ Returns authors credits as an array. </shortdesc> <desc> - <simpara> - Returns authors credits as an array. - </simpara> + <simpara> + Returns authors credits as an array. + </simpara> <para> See also: <function class="GtkAboutDialog">set_authors</function> </para> - </desc> </method> @@ -129,7 +128,6 @@ See also: <function class="GtkAboutDialog">set_comments</function> </para> - </desc> </method> @@ -151,7 +149,6 @@ See also: <function class="GtkAboutDialog">set_copyright</function> </para> - </desc> </method> @@ -167,13 +164,12 @@ </shortdesc> <desc> <simpara> - Returns documenter credits as an array. + Returns documenter credits as an array. </simpara> <para> See also: <function class="GtkAboutDialog">set_documenters</function> </para> - </desc> </method> @@ -195,7 +191,6 @@ See also: <function class="GtkAboutDialog">set_license</function> </para> - </desc> </method> @@ -218,7 +213,6 @@ See also: <function class="GtkAboutDialog">set_logo</function> </para> - </desc> </method> @@ -240,7 +234,6 @@ See also: <function class="GtkAboutDialog">set_logo_icon_name</function> </para> - </desc> </method> @@ -262,7 +255,6 @@ See also: <function class="GtkAboutDialog">set_name</function> </para> - </desc> </method> @@ -285,7 +277,6 @@ See also: <function class="GtkAboutDialog">set_translator_credits</function> </para> - </desc> </method> @@ -307,7 +298,6 @@ See also: <function class="GtkAboutDialog">set_version</function> </para> - </desc> </method> @@ -329,7 +319,6 @@ See also: <function class="GtkAboutDialog">set_website</function> </para> - </desc> </method> @@ -351,7 +340,6 @@ See also: <function class="GtkAboutDialog">set_website_label</function> </para> - </desc> </method> @@ -367,10 +355,13 @@ </shortdesc> <desc> <para> + This function sets the strings that should be displayed in the artists + tab that is placed on the secondary credits dialog. + </para> + <para> See also: <function class="GtkAboutDialog">get_artists</function> </para> - </desc> </method> @@ -386,30 +377,29 @@ the secondary credits dialog. </shortdesc> <desc> - <simpara> - The <classname>GtkAboutDialog</classname> supports secondary - credits for artists, authors, documenters and translators, if any of these - are set the <classname>GtkAboutDialog</classname> window will - automatically display a "Credits" button , clicking this displays the secondary - credits window. - </simpara> <simpara> - <function class="GtkAboutDialog">set_authors</function>, - <function class="GtkAboutDialog">set_artists</function> and - <function class="GtkAboutDialog">set_documenters</function> all - accept a string array of credits, if any of the credits are recognised as email - addresses or urls then these are displayed as links assuming the appropriate - hooks have been set with <function class="GtkAboutDialog">set_email_hook</function> + The <classname>GtkAboutDialog</classname> supports secondary + credits for artists, authors, the documentation team and translators, + if any of these are set the <classname>GtkAboutDialog</classname> window will + automatically display a "Credits" button , clicking this displays the + secondary credits window. + </simpara> + <simpara> + <function class="GtkAboutDialog">set_authors</function>, + <function class="GtkAboutDialog">set_artists</function> and + <function class="GtkAboutDialog">set_documenters</function> all + accept a string array of credits, if any of the credits are recognized as email + addresses or urls then these are displayed as links assuming the appropriate + hooks have been set with <function class="GtkAboutDialog">set_email_hook</function> or <function class="GtkAboutDialog">set_url_hook</function> </simpara> <simpara> - As of writing, the url and email hooks are not currently implemented. + As of writing, the url and email hooks are not currently implemented. </simpara> <para> See also: <function class="GtkAboutDialog">get_authors</function> </para> - </desc> </method> @@ -433,7 +423,6 @@ See also: <function class="GtkAboutDialog">get_comments</function> </para> - </desc> </method> @@ -450,14 +439,13 @@ <desc> <simpara> Set the copyright text. It is displayed between the - <link linked="gtk.gtkaboutdialog.method.set_comments">comments</link> and + <link linkes="gtk.gtkaboutdialog.method.set_comments">comments</link> and the <link linked="gtk.gtkaboutdialog.method.set_website">website</link>. </simpara> <para> See also: <function class="GtkAboutDialog">get_copyright</function> </para> - </desc> </method> @@ -469,14 +457,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - Sets the strings which are displayed in the documenters tab of the secondary credits dialog. + Sets the strings which are displayed in the documenters tab of the secondary credits dialog. </shortdesc> <desc> <para> + This function is used to set the string which will be displayed + documenters tab that placed in the secondary credits dialog. + </para> + <para> See also: <function class="GtkAboutDialog">get_documenters</function> </para> - </desc> </method> @@ -515,7 +506,6 @@ See also: <function class="GtkAboutDialog">get_license</function> </para> - </desc> </method> @@ -583,7 +573,6 @@ <function class="GtkAboutDialog">get_logo_icon_name</function>, <function class="GtkAboutDialog">set_logo</function> </para> - </desc> </method> @@ -633,7 +622,6 @@ See also: <function class="GtkAboutDialog">get_translator_credits</function> </para> - </desc> </method> @@ -664,20 +652,20 @@ </shortdesc> <desc> <simpara> - Set the version of your program. + Set the version of your program that will be displayed alongside the + name of the program. </simpara> <simpara> It is wise not to hard-code the value in your "about code", but use a central constant or a variable from within your program class. If done so, - you can change the program version at one central place and - don't forget one. + you can change the program version at one central place without having + to remember to change it at all places that you mentioned it. </simpara> <para> See also: <function class="GtkAboutDialog">get_version</function> </para> - </desc> </method> @@ -693,13 +681,13 @@ </shortdesc> <desc> <simpara> - Set the program's website. + Set the program's website. This will be displayed just below the + program description. </simpara> <para> See also: <function class="GtkAboutDialog">get_website</function> </para> - </desc> </method> @@ -721,7 +709,6 @@ See also: <function class="GtkAboutDialog">get_website_label</function> </para> - </desc> </method> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml?r1=1.3&r2=1.4&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml:1.3 Sat Nov 19 10:06:48 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkarrow.xml Wed Dec 28 12:11:29 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkArrow</classtitle> <classparent>GtkMisc</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkarrow.png"/> <shortdesc> Displays an arrow pointing in one of the four cardinal directions. </shortdesc> @@ -15,7 +16,7 @@ parameters GtkShadowType and GtkArrowType. </para> <para> - <classname>GtkArrow</classname> will fill any space alloted to it, + <classname>GtkArrow</classname> will fill any space allotted to it, but since it is inherited from <classname>GtkMisc</classname>, it can be padded and/or aligned, to fill exactly the space the programmer desires. @@ -33,13 +34,13 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkArrow</function></funcdef> - <paramdef><enumname>GtkArrowType</enumname> <parameter>arrow_type</parameter></paramdef> + <paramdef><enumname>GtkArrow</enumname> <parameter>arrow_type</parameter></paramdef> <paramdef><enumname>GtkShadowType</enumname> <parameter>shadow_type</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> Creates the arrow widget pointing in one of the four cardinal - directions + directions. </shortdesc> <desc> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml?r1=1.7&r2=1.8&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml:1.7 php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml:1.8 --- php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml:1.7 Wed Nov 23 09:56:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcalendar.xml Wed Dec 28 12:11:29 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkCalendar</classtitle> <classparent>GtkWidget</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkcalendar.png"/> <shortdesc> Displays a calendar and allows the user to select a date. </shortdesc> @@ -27,7 +28,7 @@ <para> The visual style of the calendar may be modified comprehensively using <function class="GtkCalendar">set_display_options</function>. Of course, - the whole purpose of creating the calendar itself is to retrive the + the whole purpose of creating the calendar itself is to retrieve the input from the user! You may use <function class="GtkCalendar">get_date</function>to retrieve the date selected by the user. @@ -65,7 +66,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes all visual markers. </shortdesc> <desc> @@ -80,7 +81,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets display options for the calendar. </shortdesc> <desc> @@ -199,7 +200,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the display options of the calendar. </shortdesc> <desc> <para> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.5 Fri Dec 2 21:49:21 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml Wed Dec 28 12:11:29 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkCurve</classtitle> <classparent>GtkDrawingArea</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkcurve.png"/> <shortdesc> Widget that allows editing of a curve. </shortdesc> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml:1.5 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkdialog.xml Wed Dec 28 12:11:29 2005 @@ -3,11 +3,51 @@ <classmeta> <classtitle>GtkDialog</classtitle> <classparent>GtkWindow</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkdialog.png"/> <shortdesc> - + A popup window. </shortdesc> <desc> - + <para> + As the name suggests, <classname>GtkDialog</classname> is a widget that + is useful whenever you want to interact with the user. For example, + you might want to ask the user a question, prompt for certain input, or + confirm some action. The <classname>GtkDialog</classname> helps in such + cases by providing a suitable window for interaction. Don't be fooled + by the simple example, a <classname>GtkDialog</classname> can do much + more powerful things than what is shown! + </para> + <para> + A <classname>GtkDialog</classname> is basically made up of two main + areas, the top area, where you may pack widgets like + <classname>GtkLabel</classname> or a <classname>GtkEntry</classname>. + The bottom area may be used to display + <classname>GtkButton</classname>s that will perform some action, like + OK or cancel. The bottom area of the dialog is known as the + <propname class="GtkDialog">action_area</propname>, while the top area + is a <propname class="GtkDialog">vbox</propname>. + </para> + <para> + The general procedure for creating a dialog box would be to create a + Dialog Box with its constructor and then adding the appropriate widgets + to the <propname class="GtkDialog">vbox</propname> and + <propname class="GtkDialog">action_area</propname>. Alternatively, + instead of adding the required buttons to the + <propname class="GtkDialog">action_area</propname>, you may make use of + the <function class="GtkDialog">add_button</function> method. The + advantage of this method is that you get to choose a response signal. + You may choose a response ID from <enumname>GtkResponseType</enumname>, + that suits the purpose of your button. The third and most convenient way + to add buttons to the dialog is passing them as parameters while using + the constructor. + </para> + <note> + Most of the time however, you do not have to go through all this + trouble unless you want to create a highly customized dialog. The + common types of dialog boxes have widgets of their own, like the + <classname>GtkFileChooserDialog</classname> or the + <classname>GtkColorSelectionDialog</classname>. + </note> </desc> </classmeta> @@ -17,17 +57,34 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkDialog</function></funcdef> - <paramdef>void</paramdef> + <paramdef>string <parameter><optional>title = NULL</optional></parameter></paramdef> + <paramdef>GtkWidget <parameter><optional>parent_window = NULL</optional></parameter></paramdef> + <paramdef><enumname>GtkDialogFlags</enumname> <parameter><optional>dialog_flags = 0</optional></parameter></paramdef> + <paramdef>array <parameter><optional>(GtkButton, + <enumname>GtkResponseType</enumname>)</optional></parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new dialog box. </shortdesc> <desc> - + <para> + Use the constructor to generate a dialog box in accordance with the + parameters provided. Alternatively, you may not pass any parameters and + construct all elements of the dialog manually. + </para> + <example> + <title>An reconstruction of the GtkMessageDialog using GtkDialog.</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkdialog/constructor.phpw" + parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> - </constructors> <methods> @@ -41,10 +98,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Add a widget to the <literal>action_area</literal> </shortdesc> <desc> - + <para> + Use this method to add an activatable widget to the + <literal>action_area</literal> of the dialog. The response ID to be + generated when the widget is activated is passed as a parameter to the + method. The widget is appended to the end of the dialog's action area. + </para> + <note> + Only <literal>activatable</literal> widgets may be added using this + method. To add a non-activatable widget, use the add method on the + <literal>action_area</literal> property of + <classname>GtkDialog</classname>. + </note> </desc> </method> @@ -57,10 +125,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Adds a button to the dialog. </shortdesc> <desc> - + <para> + You may use this method to manually add a button to the + <literal>action_area</literal> property of the Dialog. Of course, you + may also add buttons after you have called the constructor with + buttons. You may add a custom button or a stock item, depending on + whether you pass a stock-ID or plain text as the string parameter. The + response signal may also be indicated as given in + <enumname>GtkResponseType</enumname>s. + </para> + <para> + The created button is returned as a widget by this method, but mostly + you wouldn't need to use it. + </para> </desc> </method> @@ -72,10 +152,9 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME. Not yet Implemented </shortdesc> <desc> - </desc> </method> @@ -87,14 +166,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the dialog has a separator. </shortdesc> <desc> <para> + You may use this function to determine whether the dialog box contains + a separator (between the <literal>vbox</literal> and + <literal>action_area</literal> properties). The function return + <literal>TRUE</literal> if it does, <literal>FALSE</literal> + otherwise. + </para> + <para> See also: <function class="GtkDialog">set_has_separator</function> </para> - </desc> </method> @@ -106,10 +191,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Emits the response signal. </shortdesc> <desc> - + <para> + This methods emits the response signal on the dialog. The response + signal will be of the type specified by the response ID that is passed + as a parameter. + </para> </desc> </method> @@ -121,10 +210,31 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Blocks the main loop until the dialog is destroyed. </shortdesc> <desc> - + <para> + This is the method that allows you to analyze the response generated + by the dialog. When you call this method on a + <classname>GtkDialog</classname>, the main Gtk loop is blocked until + the dialog is either destroyed or emits a response signal. + </para> + <para> + The dialog is also automatically set as the modal type, and the show + method is also called automatically. However, you need to show any + child widgets yourself. + </para> + <para> + It is highly recommended to generate a response signal to exit from + the run loop. If you destroy the dialog when the loop is being run, + then your post-run code will not know whether the dialog was actually + destroyed or not. + </para> + <para> + The function will return the response ID as soon as one is generated + and exit itself. Note that you need to destroy the dialog manually when + you have processed the response. + </para> </desc> </method> @@ -136,10 +246,9 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME. Not yet implemented. </shortdesc> <desc> - </desc> </method> @@ -151,10 +260,9 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME. Not yet implemented. </shortdesc> <desc> - </desc> </method> @@ -166,10 +274,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the response ID to be generated by the dialog. </shortdesc> <desc> - + <para> + This function is used to set the response ID generated by the widget + that was added last to the <literal>action_area</literal>. The last + widget is usually the default widget for the dialog, and will be + activated when the return key is pressed. The response ID is passed as + a parameter to the method. + </para> </desc> </method> @@ -181,14 +295,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the dialog has a separator. </shortdesc> <desc> <para> + You may use this method to set whether the <literal>vbox</literal> and + <literal>action_area</literal> are separated by a (usually horizontal) + separator. Pass <literal>TRUE</literal> as a parameter if you want the + separator to be present, <literal>FALSE</literal> otherwise. + </para> + <para> + The setting is <literal>TRUE</literal> by default. + </para> + <para> See also: <function class="GtkDialog">get_has_separator</function> </para> - </desc> </method> @@ -201,10 +323,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the activatable widgets to be sensitive or not. </shortdesc> <desc> - + <para> + You may use this function to conveniently sensitize/desensitize dialog + buttons present in the <literal>action_area</literal>. This function + calls <function classname="GtkWidget">set_sensitive</function> on each + widget present in the <literal>action_area</literal> with the given + response ID (passed as a parameter). The setting may either be + <literal>TRUE</literal> or <literal>FALSE</literal> depending on + whether you want the corresponding buttons to be sensitive or not. + </para> </desc> </method> @@ -216,9 +346,10 @@ <propname>action_area</propname> <proptype>GtkWidget</proptype> <shortdesc> + Describes the area of the dialog that holds the action widgets + (buttons). </shortdesc> <desc> - </desc> </property> @@ -226,9 +357,10 @@ <propname>vbox</propname> <proptype>GtkWidget</proptype> <shortdesc> + Describes the area of the dialog that holds the prompt widgets + (labels). </shortdesc> <desc> - </desc> </property> @@ -245,6 +377,7 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the dialog is destroyed. </shortdesc> <desc> @@ -261,9 +394,9 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when an action widget (button) is clicked. </shortdesc> <desc> - </desc> </signal> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml:1.2 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkeventbox.xml Wed Dec 28 12:11:29 2005 @@ -4,10 +4,25 @@ <classtitle>GtkEventBox</classtitle> <classparent>GtkBin</classparent> <shortdesc> - + A widget used to catch events. </shortdesc> <desc> - + <para> + The primary purpose of this class is to provide those widgets who do + not have native event handling functions with the ability to receive + and act on user-driven input. + </para> + <para> + The most common usage is its application on images. Sometimes, you may + want images that you have displayed on your application to respond to + events. <classname>GtkEventBox</classname> helps you do just that. Of + course, you can always use this class on any widget that does not have + its own window. + </para> + <para> + This class is a subclass of <classname>GtkBin</classname> and therefore + has its own window. + </para> </desc> </classmeta> @@ -21,11 +36,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new event box. </shortdesc> <desc> - + <para> + Use this constructor to create a new + <classname>GtkEventBox</classname>. + </para> + <example> + <title>A Demonstration of usage of the event box.</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkeventbox/constructor.phpw" + parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> + </constructor> </constructors> @@ -40,14 +69,28 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the event box is above or below the window of its + child. </shortdesc> <desc> <para> + You may use this method to determine whether the event box should be + above or below the window of its child. If the window is above, + then all events inside the event box will go to the event box itself. + However, if the window is below, events in the event boxes' + children will first go to that widget, and then to the parent. + </para> + <para> + The default option keeps the window below the child. + </para> + <para> + The function will return <literal>TRUE</literal> if the window is + above the child, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkEventBox">set_above_child</function> </para> - </desc> </method> @@ -59,14 +102,24 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the event box contains a visible window. </shortdesc> <desc> <para> + Use this method to determine whether the event boxes' child window is + visible or not. In case, it is invisible, that event box will only + receive events and nothing else. On the other hand, if the child + window is visible, it acts as the parent window for the widget + contained in the event box. + </para> + <para> + The function will return <literal>TRUE</literal> if the child window + is visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkEventBox">set_visible_window</function> </para> - </desc> </method> @@ -78,14 +131,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the event box is positioned above the window of its child. </shortdesc> <desc> <para> + You may use this method if you wish to position your event box above + the window of its child, as opposed to below it. As mentioned before, + if the window is above, all events received inside the event box will + go to the event box itself. However is the window is positioned below, + events in the window of the child will first go to that widget and then + to its parents. + </para> + <para> + The default keeps the window below the child. You may pass + <literal>TRUE</literal> as a parameter to this method to position the + window above the child. + </para> + <para> See also: <function class="GtkEventBox">get_above_child</function> </para> - </desc> </method> @@ -97,14 +162,30 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the child window of the event box is visible or not. </shortdesc> <desc> <para> + You may use this method to set whether the child window of the event + box will be visible or not. An invisible child window will only + receive events and nothing else. However if the child window is + visible, it will act as a parent window for the widget that was added + to the event box. + </para> + <para> + You may make the child window invisible if you wish to trap events + only. Visible child windows are useful when you want to set the + background for the box to a different color or draw on it. + </para> + <para> + The default behavior is to make the child window visible. You may + pass <literal>FALSE</literal> as a parameter to the method if you wish + to make the window invisible. + </para> + <para> See also: <function class="GtkEventBox">get_visible_window</function> </para> - </desc> </method> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml?r1=1.4&r2=1.5&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml:1.4 Tue Aug 2 11:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkfontbutton.xml Wed Dec 28 12:11:29 2005 @@ -3,11 +3,24 @@ <classmeta> <classtitle>GtkFontButton</classtitle> <classparent>GtkButton</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkfontbutton.png"/> <shortdesc> - + A button that launches a font selection dialog. </shortdesc> <desc> - + <para> + This button is very similar to the + <classname>GtkColorButton</classname> or the + <classname>GtkFileChooserButton</classname>. The two functions of this + button are to display the current font selected, and to launch a font + selection dialog when clicked. + </para> + <para> + When clicked the <classname>GtkFontButton</classname>, will launch a + <classname>GtkFontSelectionDialog</classname>. You may set many of the + dialog's properties using its methods. The button is most suitable in + preference dialogs, where you need the user to select a font. + </para> </desc> </classmeta> @@ -21,10 +34,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkFontButton. </shortdesc> <desc> - + <para> + Use the constructor to generate a new font button that will launch a + <classname>GtkFontSelectionDialog</classname> when clicked. + </para> </desc> </constructor> @@ -36,10 +52,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Create a new GtkFontButton with a preset font selected. </shortdesc> <desc> - + <para> + Use this method if you want to the font button to show a preset font + already selected. Pass the name of the font that you would like + selected as a parameter to this method. + </para> </desc> </constructor> @@ -55,14 +75,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the name of the font selected. </shortdesc> <desc> <para> + Use this method to retrieve the name of the font that is selected by + the user. Note that if the user hasn't used the button at all, the + method will return the default font that + <classname>GtkFontButton</classname> had initially showed. + </para> + <para> See also: <function class="GtkFontButton">set_font_name</function> </para> - </desc> </method> @@ -74,14 +99,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the font size is displayed on the label. </shortdesc> <desc> <para> + Use this method to determine whether the font size is displayed in the + label of the <classname>GtkFontButton</classname>. The method will + return <literal>TRUE</literal> if it does show, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">set_show_size</function> </para> - </desc> </method> @@ -93,10 +123,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the font style is displayed on the label. </shortdesc> <desc> <para> + Use this method to determine whether the font style is displayed in + the label of the <classname>GtkFontButton</classname>. The method will + return <literal>TRUE</literal> if the styles such as bold, italic; + will be shown, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">set_show_style</function> </para> @@ -112,14 +148,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the title of the resulting font selection dialog. </shortdesc> <desc> <para> + Use this method when you want to retrieve the title that is displayed + on the font selection dialog that results when the + <classname>GtkFontButton</classname> is clicked. + </para> + <para> See also: <function class="GtkFontButton">set_title</function> </para> - </desc> </method> @@ -131,14 +171,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the selected font is used by the button. </shortdesc> <desc> <para> + Use this method when you want to determine whether the + <classname>GtkFontButton</classname> uses the font selected in the + font selection dialog. This means that the label of the font button + itself will be displayed in the selected font. The function will + return <literal>TRUE</literal> if it does, <literal>FALSE</literal> + otherwise. + </para> + <para> See also: <function class="GtkFontButton">set_use_font</function> </para> - </desc> </method> @@ -150,14 +197,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the selected font size is used by the button. </shortdesc> <desc> <para> + Use this method to determine whether the font size selected in the + font selection dialog will be used by the + <classname>GtkFontButton</classname> This means that the label of + the font button itself will be displayed in the selected font size. + The function will return <literal>TRUE</literal> if it does, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">set_use_size</function> </para> - </desc> </method> @@ -169,14 +223,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the font used by the button. </shortdesc> <desc> <para> + This function will set the font name used by the + <classname>GtkFontButton</classname>. It is therefore, the font + displayed on the button's label. Pass the name of the font as a + parameter to this method. + </para> + <para> See also: <function class="GtkFontButton">get_font_name</function> </para> - </desc> </method> @@ -188,14 +247,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the font size will be shown on the button. </shortdesc> <desc> <para> + Use this method to set whether the font size selected by the font + selection dialog will be shown on the label of the + <classname>GtkFontButton</classname>. Pass <literal>TRUE</literal> as + a parameter if you want it to, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">get_show_size</function> </para> - </desc> </method> @@ -207,14 +271,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the font style will be shown on the button. </shortdesc> <desc> <para> + Use this method to set whether the font style selected by the font + selection dialog, such as bold or italics, will be shown on the + <classname>GtkFontButton</classname>. Pass <literal>TRUE</literal> as + a parameter if you want it to, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">get_show_style</function> </para> - </desc> </method> @@ -226,14 +295,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the title of the resulting font selection dialog. </shortdesc> <desc> <para> + Use this function to set the title that will be displayed on the font + selection dialog that will appear when the + <classname>GtkFontButton</classname> is clicked. You may pass the + title to be displayed as a parameter to the method. Note that, if you + do not use this method, the title will appear as "Pick a Font". + </para> + <para> See also: <function class="GtkFontButton">get_title</function> </para> - </desc> </method> @@ -245,14 +320,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the font button will use the selected font. </shortdesc> <desc> <para> + If you want the label of the font button itself to be displayed in the + font that is selected, then pass <literal>TRUE</literal> as a + parameter to the function; <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">get_use_font</function> </para> - </desc> </method> @@ -264,14 +343,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the font button will use the selected font size. </shortdesc> <desc> <para> + If you want the label of the font button to be displayed in the font + size as selected in the font selection dialog, then pass + <literal>TRUE</literal> as a parameter to this function; + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkFontButton">get_use_size</function> </para> - </desc> </method> @@ -288,9 +372,9 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the user selects a font. </shortdesc> <desc> - </desc> </signal> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml?r1=1.4&r2=1.5&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.4 Tue Aug 2 10:48:33 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml Wed Dec 28 12:11:29 2005 @@ -5,7 +5,7 @@ <classparent>GtkDialog</classparent> <classimage fileref="&directory.images;/reference/gtk/gtkmessagedialog.png" frame="no"/> <shortdesc> - A convenient message window + A convenient message window. </shortdesc> <desc> <para> @@ -33,13 +33,13 @@ <funcdef> <function>GtkMessageDialog</function></funcdef> <paramdef><classname>GtkWindow</classname> <parameter>parent</parameter></paramdef> <paramdef><enumname>GtkDialogFlags</enumname> <parameter>flags</parameter></paramdef> - <paramdef><enumname>GtkMessageType</enumname> <parameter>type</parameter></paramdef> + <paramdef><enumname>GtkMessage</enumname> <parameter>type</parameter></paramdef> <paramdef><enumname>GtkButtonsType</enumname> <parameter>buttons</parameter></paramdef> <paramdef>string <parameter>message</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Creates a new message dialog + Creates a new message dialog. </shortdesc> <desc> <para> @@ -122,7 +122,7 @@ <propname>image</propname> <proptype>GtkWidget</proptype> <shortdesc> - The image icon widget + The image icon widget. </shortdesc> <desc> <para> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtkdialog/constructor.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtkdialog/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkdialog/constructor.phpw <?php /* Creating and initialising the dialog box */ $dialogBox = new GtkDialog("This is a Dialog", NULL, Gtk::DIALOG_MODAL, array(Gtk::STOCK_NO, Gtk::RESPONSE_NO, Gtk::STOCK_YES, Gtk::RESPONSE_YES)); /* Creating and adding a question to the dialog */ $dialogQues = new GtkLabel("Do you like PHP-Gtk2?"); $topArea = $dialogBox->vbox; $topArea->add($dialogQues); /* Showing all widgets added */ $dialogBox->show_all(); /* Running the dialog box */ $result = $dialogBox->run(); /* Accessing the result and performing appropriate action */ switch($result) { case (Gtk::RESPONSE_YES): echo "Thanks!\n"; break; case (Gtk::RESPONSE_NO): echo "Why Not?!\n"; break; } /* Destroying the dialog box */ $dialogBox->destroy(); ?> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtkeventbox/constructor.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtkeventbox/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkeventbox/constructor.phpw <?php /* Initialising the event box and adding an image to it */ $imageEvent = new GtkEventBox(); $imageWidget = GtkImage::new_from_stock(Gtk::STOCK_DIALOG_WARNING, Gtk::ICON_SIZE_DIALOG); $imageEvent->add($imageWidget); /* Initialising another event box and adding a label to it */ $labelEvent = new GtkEventBox(); $labelWidget = new GtkLabel("Click Something!"); $labelEvent->add($labelWidget); /* Connecting the signals to the callback */ $imageEvent->connect("button_press_event", "doSomething"); $labelEvent->connect("button_press_event", "doSomething"); /* The callback function */ function doSomething($widget, $event) { /* Determining which widget triggered the signal */ $widget = $widget->get_child()->get_name(); if ($widget=='GtkImage') { $type = 'image'; } else { $type = 'label'; } /* Displaying a dialog that displays a message */ $dialog = new GtkMessageDialog(NULL,1,0,1,'You Clicked the '.$type.'!'); $dialog->run(); $dialog->destroy(); } /* Creating a VBox to add the event boxes to */ $vbox = new GtkVBox(); $seperator = new GtkHSeparator(); $vbox->pack_start($imageEvent); $vbox->pack_start($seperator); $vbox->pack_start($labelEvent); /* Creating a window and adding the VBox to it */ $window = new GtkWindow(); $window->add($vbox); $window->set_position(Gtk::WIN_POS_CENTER); $window->set_default_size(200,150); $window->show_all(); $window->set_title("Event Boxes!"); $window->connect_simple("destroy", array('gtk', 'main_quit')); /* Starting main loop */ Gtk::main(); ?>
« previous php.gtk.doc (#1737) next »